Luanti logo

IRC log for #luanti, 2025-10-10

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

All times shown according to UTC.

Time Nick Message
00:10 mtvisitor Just a reminder:
00:10 mtvisitor If there is some good practice(not best practice yet) of mod development from the luanti game engine development's perspective, please also add some unittest if possible.
00:11 mtvisitor This will be helpful for some other mod developers with good or positive content. thanks.
00:11 * mtvisitor made 2 Refrigerators near his house on "Out Here" test game server. (one is for food, and another is for drinks)
00:12 mtvisitor https://forum.luanti.org/viewtopic.php?p=431694#p431694
00:13 mtvisitor Every day is a fresh start. Enjoy the moment and relax!
01:01 pgimeno joined #luanti
01:05 Eragon joined #luanti
01:52 wallabra joined #luanti
01:55 qqe joined #luanti
01:57 Verticen joined #luanti
02:20 qqe joined #luanti
02:21 lemonzest joined #luanti
02:45 qqe joined #luanti
03:23 Verticen joined #luanti
04:00 MTDiscord joined #luanti
04:54 SFENCE joined #luanti
05:27 Verticen joined #luanti
05:41 SFENCE joined #luanti
05:43 FeXoR joined #luanti
05:44 Warr1024 joined #luanti
07:24 YuGiOhJCJ joined #luanti
08:28 characteristic joined #luanti
08:32 amfl2 joined #luanti
08:35 kimapr__ joined #luanti
08:38 characteristic left #luanti
08:39 mrkubax10 joined #luanti
08:54 amfl2 joined #luanti
09:09 cow321 joined #luanti
09:42 qqe joined #luanti
10:15 stg-developer joined #luanti
10:38 repetitivestrai- joined #luanti
11:11 Kimapr joined #luanti
11:36 turtleman joined #luanti
12:00 PoochInquisitor joined #luanti
12:01 j4n joined #luanti
13:06 pgimeno joined #luanti
13:55 crazylad joined #luanti
15:22 JerryXiao joined #luanti
15:41 crazylad joined #luanti
16:09 JerryXiao joined #luanti
16:22 fluxionary joined #luanti
16:39 JerryXiao joined #luanti
16:54 JerryXiao joined #luanti
17:07 Bombo joined #luanti
17:14 mrkubax10 joined #luanti
17:17 ireallyhateirc joined #luanti
17:24 mrkubax10 joined #luanti
17:29 crazylad does anyone know where the engine parses the Lua node def?
17:39 jaca122 joined #luanti
18:16 Krock crazylad: yeah well the thing is
18:17 Krock https://i.imgflip.com/45jzj6.jpg
18:20 user333_ (nobody knows ig :P)
18:20 jonadab warnock applies
18:20 Krock well it's trivial to find out, but they left.
18:21 user333_ time to go digging through 300 files to find out!
18:22 jonadab There's this thing called grep.
18:23 user333_ yeah but how do you even know what to grep for?
18:23 jonadab Look for a string that consistently always has to be there in every node def.
18:24 Krock register_node would be a good start
18:25 Krock then you'll find register_item_raw and the C++ function related to parsing the item def fields
18:27 user333_ i ran 'grep -r register_node' in src/ and it found only 1 thing, a comment in src/script/common/c_content.cpp
18:28 Krock I meant register_node as in core.register_node, which is present in register.lua
18:29 Krock in this regard, the Lua side provides a wrapper for the C++ implementation to make things mod-friendly.
18:29 user333_ err... builtin/game/register.lua:core.register_node = make_register_item_wrapper("node")
18:30 user333_ basically, a node is a type of item when in inventory?
18:33 user333_ i only found register_node 3 times in builtin/game/register.lua; core.register_node = make_register_item_wrapper("node"), core.register_node(":air", {, and core.register_node(":ignore", {
18:34 user333_ mostly unrelated, i assume register_item parses it
19:32 repetitivestrain joined #luanti
19:41 zarac joined #luanti
19:41 jonadab So you look up make_register_item_wrapper ...
19:41 jonadab This is not rocket surgery.\
19:48 [MatrxMT] joined #luanti
19:54 SFENCE joined #luanti
19:54 crazylad joined #luanti
20:21 silverwolf73827 joined #luanti
20:49 erle joined #luanti
20:49 chilledfrogs joined #luanti
21:04 Trifton joined #luanti
21:44 Talkless joined #luanti
21:53 silverwolf73827_ joined #luanti
21:55 Trifton_ joined #luanti
21:56 zarac_ joined #luanti
21:57 lemonzest1 joined #luanti
22:03 Kimapr joined #luanti
22:15 stg-developer joined #luanti
22:33 panwolfram joined #luanti
23:07 user333_ who named default:stonebrick and default:stone_block... why not default:stone_brick and default:stone_block / default:stonebrick and default:stoneblock
23:08 user333_ (i know MTG is maintenance-only, this is not a request to change it)
23:15 luatic consistency aliases could be considered
23:34 stg-developer joined #luanti
23:55 cheapie default:xXx_sToNe_bLoCk_xXx

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