Luanti logo

IRC log for #minetest, 2018-09-23

| Channels | #minetest index | Today | | Google Search | Plaintext

All times shown according to UTC.

Enable nick filtering
Time Nick Message
27 more elements. Show/hide.
12:05 MinetestBot [git] Lourens-Rich -> minetest/minetest: Fix "Hunk #1 FAILED at 9 (different line endings)." 65af7d2 https://git.io/fAFI2 (2018-09-23T12:03:05Z)
26 more elements. Show/hide.
17:47 Wuzzy hey there
17:48 Wuzzy is there a way to instantly detect in Lua when an item was added or removed from the player inventory?
17:48 Wuzzy a callback would be ideal. i want to avoid polling
17:49 Krock https://github.com/minetest/minetest/blob/master/doc/lua_api.txt#L3680
17:50 Krock hello
17:50 Krock requires 5.0-dev, though.
18:13 nowhereman_ joined #minetest
18:16 Wuzzy is this always called when inventory changes? minetest.register_allow_player_inventory_action
18:20 Krock it is called when you move itemstacks around
18:20 sfan5 i'd imagine :set_stack bypasses those callbacks
18:21 Krock yes, also set_size and set_list
18:21 Krock I assumed the question was limited to direct user interactions
3 more elements. Show/hide.
19:03 IceDragon Hello, I have a lua api question, is there a function that takes a face (an integer 0-5 representing a node's face) and a facedir and returns the face's new rotated equivalent? (whereis_face(face, facedir) => rotated_face), my use case is to determine where the "bottom" of a node is when it's rotated
19:05 paramat no
19:06 IceDragon ugh, I guess I'll have to write one then, thanks for the quick answer
19:07 Krock Screwdriver offers some conversion tables
19:07 Krock maybe have a look in there
19:07 Krock or pointed facedir to dir functions (not sure if that's what you want)
19:08 Krock - off -
19:13 MinetestBot [git] paramat -> minetest/minetest: Fix various code issues found by cppcheck (#7741) 8543df7 https://git.io/fAF0O (2018-09-23T19:12:39Z)
19:30 minduser00 joined #minetest
19:32 rubenwardy Wuzzy: I use a checksum in crafting to do thst
19:33 rubenwardy Sha1 of the inventory contents
19:33 nowhereman_ joined #minetest
19:34 Wuzzy rubenwardy: in crafting? huh?
19:35 Wuzzy crafting is not the only way to detect when inventory changed
19:35 Wuzzy i mean
19:35 Wuzzy there are many other ways the inventory contents might change
19:35 Wuzzy collecting item, using chest, craft item, direct inventory manipulation by mod, ...
19:36 Wuzzy all i need to
19:37 rubenwardy My mod
19:37 rubenwardy My mod crafting
19:37 rubenwardy My mod crafting uses a checksum to see if the inventory changed. It's not instant though
19:38 rubenwardy Can't type much now
19:56 nowhereman_ joined #minetest
20:08 MinetestBot [git] paramat -> minetest/minetest: Builtin//misc_helpers: Various fixes (#7737) 4a2a112 https://git.io/fAFEH (2018-09-23T20:06:51Z)
11 more elements. Show/hide.

| Channels | #minetest index | Today | | Google Search | Plaintext