Minetest logo

IRC log for #minetest-hub, 2019-07-25

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

All times shown according to UTC.

Time Nick Message
00:56 ANAND joined #minetest-hub
01:29 Ganome317 joined #minetest-hub
06:06 ssieb joined #minetest-hub
06:14 Ruslan1 joined #minetest-hub
06:25 CWz_ joined #minetest-hub
08:06 CWz_ joined #minetest-hub
09:23 BuckarooBanzai Any thoughts on this: https://github.com/minetest/minetest/issues/8710 ? (for all the server-owners in here)
09:23 BuckarooBanzai !title
09:23 MinetestBot BuckarooBanzai: Add server tags and banner image to server announce payload · Issue #8710 · minetest/minetest · GitHub
09:25 ANAND I'm not a server owner, but that's a neat idea
10:56 Fixer joined #minetest-hub
11:56 Rafi59 joined #minetest-hub
13:06 Bobr joined #minetest-hub
13:40 pauloue joined #minetest-hub
13:42 ANAND The new PR template is a little too specific, and I end up deleting most of the lines for my PRs. :(
13:56 * Sokomine desperately searches for some cooling
15:37 aerozoic joined #minetest-hub
16:08 luk3yx joined #minetest-hub
16:09 DS-minetest joined #minetest-hub
16:33 Krock joined #minetest-hub
16:50 behalebabo Is this the proper way to request decoration notifications? `minetest.set_gen_notify({decoration = true}, {id})` where id is the return value from minetest.register_decoration
16:51 behalebabo I'm not getting any decorations in register_on_generated, just dungeons which were requested in another mod
16:51 behalebabo and the decorations specified are being generated
16:54 Krock checking def of read_flags
16:54 Krock can either be ("decoration") or ({ decoration = true })
17:15 behalebabo https://forum.minetest.net/viewtopic.php?f=47&t=20852 this is exactly my problem, except it looks like it was fixed some time ago
17:19 Krock fixed by 5.0.0. what's your minetest version=
17:19 Krock *?
17:19 behalebabo 5.1.0-dev-ecd20de6
17:21 behalebabo the documentation doesn't say anything about a required order for generation notification and on_generated calls, so I don't know if I'm messing up there
17:21 Krock apparently it works for fireflies https://github.com/minetest/minetest_game/blob/master/mods/fireflies/init.lua#L263
17:21 behalebabo I'll try reordering stuff to be like fireflies
17:21 Krock ensure you're registering the decoration before getting its ID
17:29 behalebabo Krock: success at last; if I use minetest.get_decoration_id(decodef.name) instead of the return value from minetest.register_decoration(decodef) then I get notifications
17:29 behalebabo I assumed they were the same
17:31 behalebabo but no, the returned value is some huge number but get_decoration_id is just 14
17:31 Krock oh. could be a conversion bug
17:31 Krock checking
17:32 Krock lua_pushinteger(L, handle);  after decomgr->add(deco);
17:32 Krock the other returns the index: lua_pushinteger(L, deco->index);
17:34 Krock register_decoration returns a handle. dunno where the difference should be, though.
17:34 behalebabo the docs could probably be clearer on that
17:35 Krock since the handle is used to detect what kind of decoration it is
17:35 behalebabo also, that means that you can only get decoration notifications if your decoration has a name
17:35 Krock *what kind of mapgen object is is
17:36 Krock index = handle_id & 0x3FFFF
17:37 Krock the 18 bits counting from LSB are the index you need of that kind of mapgen object
17:37 Krock very hacky
17:38 Krock so in lua you could check whether (handle_id % 0x40000) == deco_id
17:41 sfan5 note that lua does not support hexadecimal numbers
17:42 Krock biome registration returns the same kind of handle
17:42 Krock JIT: ON SSE2 SSE3 fold cse dce fwd dse narrow loop abc sink fuse
17:42 Krock > return 0x5000
17:42 Krock 20480
17:42 rubenwardy Lua does support hexadecimal:
17:42 Krock just LuaJIT things?
17:43 Krock no. also works ni lua 5.1.5
17:43 Krock > change your mind
17:43 rubenwardy I had a screenshot to show, but sshing into my server is taking a while
17:44 rubenwardy https://rwdy.uk/yze0R.png
17:46 behalebabo a small clarification PR so nobody else falls into the trap: https://github.com/minetest/minetest/pull/8713
17:48 sfan5 > 0xabc
17:48 sfan5 stdin:1: unexpected symbol near '0xabc'
17:49 sfan5 Krock: lua 5.2.4
17:49 sfan5 wonder why they'd remove a feature in 5.2 only to add it again in 5.3
17:49 behalebabo try =0xabc
17:50 sfan5 oh it requires things to be printed
17:50 sfan5 thats stupid
17:50 Krock wtf Lua
17:50 rubenwardy it's because it's not a valid statement by its own
17:51 rubenwardy I guess
17:51 rubenwardy Hexadecimal literals are required by the HUD API, btw
17:51 rubenwardy as one of the many different formats of specifying color
17:51 Krock oh, that's supposed to be an entire line? yes sure, Lua cannot do anything with that, neither with strings nor numbers
17:52 rubenwardy is weird   https://rwdy.uk/tD794.png
17:52 Krock also C/C++ conditional magic like  (a and b or c).do_something()   freak out Lua
17:52 Krock rubenwardy: did not work before 5.
17:52 Krock * 5.3
17:53 rubenwardy oh ofc
17:56 rubenwardy argh, the internet here sucks
17:59 Krock the internet can't suck unless you forwarded ports. usually you suck the internet FYI
17:59 Krock top-tier shitpost
18:48 ssieb joined #minetest-hub
19:17 IhrFussel joined #minetest-hub
19:31 sfan5 Krock: rpi1 is too weak for MT https://0x0.st/zpDb.jpg
19:32 BuckarooBanzai 2.5 fps... ;)
19:32 rdococ can a CSM override the default death screen?
19:34 Calinou 2.5 SPF :P
19:34 Calinou (seconds per frame)
19:37 Krock just 400ms per frame, can't be that bad
19:37 Krock so you're actually getting two FPS
19:38 Krock sfan5: too bad, but thanks for the testing :D
19:46 sfan5 wanted to test that anyway
19:46 sfan5 minetest could use proper raspberry pi support
19:56 Sokomine krock: i wonder how it runs on the newer pi4
19:56 Sokomine er, sfan5 :-)
19:57 Krock both are potentially interested
20:00 Sokomine my pi 2b might be too weak. though i remember some discussions about people spending more effort on getting it to run. just don't remember how far they got. the new pi in theory ought to do well
20:02 sfan5 the rpi 1 is very very weak, chances are it might run well on a 2b
20:18 luk3yx rdococ: CSMs indeed can.
20:18 rdococ yay!
20:18 luk3yx You'd do something like https://github.com/minetest/minetest/blob/master/builtin/client/death_formspec.lua in your CSM.
20:19 rdococ can CSMs move the camera around?
20:19 luk3yx And it'd override that built-in one.
20:19 luk3yx Not sure.
20:19 luk3yx Not according to the documentation, unless entering third-person view counts.
20:19 rdococ looks like they made a spelling mistake "bultin"
20:20 luk3yx It is too
21:08 IhrFussel Anyone here knows where luajit stores its executable in Ubuntu? Installed via apt
21:09 sfan5 /usr/bin/luajit
21:25 IhrFussel I managed to get more information about the newly occuring segaults caused by luajit itself... well at least the function that causes it by subtracting the ip hex value in dmesg from the base address and entering into addr2line -> lua_atpanic bei ??:? ... doesn't help much but nice to know
21:25 IhrFussel segfaults*
21:26 IhrFussel These segfaults started since I use modstorage for my ranking system...coincidence?
22:26 IhrFussel Why does u_skins save the ENTIRE skin list (player name + ID) whenever a player joins?
22:26 IhrFussel That caused much lag on my server (~ 50 ms in on_joinplayer())
22:27 IhrFussel I made it now one save per 5 minutes...should be good enough

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