Luanti logo

IRC log for #minetest, 2024-08-31

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

All times shown according to UTC.

Enable nick filtering
Time Nick Message
34 more elements. Show/hide.
09:43 MinetestBot [git] Emojigit -> minetest/minetest_game: Simplify Butterfly and Firefly code (#3125) 2ce8ff3 https://github.com/minetest/minetest_game/commit/2ce8ff3306e3624571d88858f9f7dddd9997c18f (2024-08-31T09:43:07Z)
09:45 MinetestBot [git] kromka-chleba -> minetest/minetest: Add new vector utils (ceil, sign, abs, random_in_area) (#14807) a6ba530 https://github.com/minetest/minetest/commit/a6ba5304c41bb66d310b2a2e749ec72b37b608bf (2024-08-31T09:43:52Z)
09:45 MinetestBot [git] SmallJoker -> minetest/minetest: Debloat IVideoDriver and IrrlichtDevice includes (#15080) efd7792 https://github.com/minetest/minetest/commit/efd7792add70ccfafb14e4b2e3ddd6d52457dd8e (2024-08-31T09:44:30Z)
15 more elements. Show/hide.
14:06 MinetestBot [git] cx384 -> minetest/minetest: Add hotbar Lua HUD element and replace hardcoded hotbar 52376fd https://github.com/minetest/minetest/commit/52376fd87a0cebb75bcd99113deed0fd569e6786 (2024-08-31T14:04:14Z)
5 more elements. Show/hide.
16:12 MinetestBot [git] grorp -> minetest/minetest: Restore proportional minimap scaling (#15022) 322a9c2 https://github.com/minetest/minetest/commit/322a9c2f74a83603b709497c34ca03edf43c7bfd (2024-08-31T16:11:56Z)
16:42 MTDiscord <warr1024> heh, btw, the hotbar has been acting a bit weird for me in 5.10-dev, and it predates that merge.
16:43 MTDiscord <warr1024> I had a server running some version of 5.10-dev, and when setting the hotbar size to 4, for some reason it was still aligned as if it had 8 slots, and if I selected a slot off the end of the hotbar, I couldn't use prev/next keys to get back to a valid item
16:44 MTDiscord <warr1024> I tried updating both client and server to the current version and it still happened, but weirdly it never happened on local hosting 🤷
16:44 MTDiscord <warr1024> I assume it could already be a known issue.  I'll probably retry it in a few days, could file a bug report if it happens again.  But for now, I don't have enough rigor in my testing for that.
2 more elements. Show/hide.
17:18 [MatrxMT] <Bram> Can minetest.get_item_group return nil or will it always return a number?
17:20 SFENCE joined #minetest
17:21 Krock Bram: https://github.com/minetest/minetest/blob/master/builtin/game/misc_s.lua#L27-L33
17:21 Krock returns 0 if there's no such group found
17:22 [MatrxMT] <Bram> Great, thanks. 🙌
17:23 Krock the documentation says "returns a rating"
17:23 Krock given the example it must be a number and cannot be nil
17:27 [MatrxMT] <Bram> I interpreted the example as a clarification. NOTE: 0 means not in group.
17:27 [MatrxMT] <Bram> Which to me refers to the fact that a user can both use `nil` or `0` to indicate that a node is not in a group.
17:36 Krock `nil` deletes the key/value pair from the group table
3 more elements. Show/hide.
18:29 ireallyhateirc I have two separate on_generated functions running in the mapgen env. I noticed that running minetest.save_gen_notify overwrites whatever was saved previously. My question then is: does each register_on_generated get its own variable for storing gennotify or will this too get overwritten?
18:30 ireallyhateirc I mean when they both have the same custom gennotify label
18:31 sfan5 gennotify is like a shared table that gets cleared after a chunk is done generating
18:32 ireallyhateirc okay, but is there a way to get it? In the documentation I only see a way to save it
18:32 sfan5 here's a full example
18:32 sfan5 https://gist.github.com/sfan5/1a124eb496a39734f53fb4daffc47bee
18:33 ireallyhateirc there you get the mapgen object, but that's on the side of the normal env: local g = minetest.get_mapgen_object("gennotify")
18:33 ireallyhateirc Can I get a mapgen object in mapgen env too?
18:34 sfan5 no
18:34 sfan5 or maybe yes actually
18:34 sfan5 but that doesn't make much sense
18:34 Talkless joined #minetest
18:35 sfan5 we need the gennotify api specifically because you can't just "share" data between different threads and lua environments
18:35 sfan5 if you have two pieces of code running in the mapgen environment they don't need any support to talk to eachother. just use a global variable
18:35 ireallyhateirc I only want to share the data in one thread with one mapchunk
18:36 ireallyhateirc is there any way to access the object that was just saved with minetest.save_gen_notify?
18:36 ireallyhateirc other than making a global variable in the mapgen env
18:37 sfan5 well you can try if minetest.get_mapgen_object works
18:38 ireallyhateirc will do
18:38 ireallyhateirc Well I can get a biomemap in the mapgen env...
18:38 ireallyhateirc So I hope this will work for my custom thing
18:42 ireallyhateirc Yeah, it works, thanks :D
18:44 SFENCE joined #minetest
18:45 MinetestBot [git] grorp -> minetest/minetest: TouchControls: Fix outdated player controls in TOSERVER_INTERACT eae9a70 https://github.com/minetest/minetest/commit/eae9a70385d0cafde1df178c7be12f33dd09689d (2024-08-31T18:45:32Z)
18:47 MinetestBot [git] grorp -> minetest/minetest: Basic unittest for HP change calculation 5c171f6 https://github.com/minetest/minetest/commit/5c171f6d61b6ddab0d0d28482bfabb6e3564197e (2024-08-31T18:45:53Z)
18:47 MinetestBot [git] grorp -> minetest/minetest: Fix uninitialized SkyboxParams::fog_color 6608057 https://github.com/minetest/minetest/commit/6608057971f7ce247b2a7e10f0b88fd0e9bc9794 (2024-08-31T18:46:14Z)
18:47 MinetestBot [git] red-001 -> minetest/minetest: connection: Remove unused timeout feature 1b8b84b https://github.com/minetest/minetest/commit/1b8b84bee828db44a9c3e5d48e741ee618fff082 (2024-08-31T18:46:27Z)
18:47 MinetestBot [git] red-001 -> minetest/minetest: Don't attempt to process packets when there are none 48e65ac https://github.com/minetest/minetest/commit/48e65ac846479c2712496851e635ef65b8e532b1 (2024-08-31T18:46:27Z)
18:47 MinetestBot [git] (4 newer commits not shown)
9 more elements. Show/hide.
20:42 cheapie Hmm, apparently Intel did make a CPU called the "Celeron D 355" - maybe this is the ideal CPU for Minetest, starts with "celeron" and ends with "55" :P
15 more elements. Show/hide.

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