Luanti logo

IRC log for #luanti, 2025-08-08

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

All times shown according to UTC.

Time Nick Message
00:15 sparky4 joined #luanti
00:36 v-rob joined #luanti
02:00 Swissa1pS joined #luanti
02:06 syl joined #luanti
02:07 fluxionary joined #luanti
02:17 aliasalreadytake joined #luanti
02:25 SFENCE joined #luanti
03:00 SFENCE joined #luanti
03:10 SFENCE joined #luanti
03:18 chilledfrogs joined #luanti
03:25 Swissa1pS joined #luanti
03:41 SFENCE joined #luanti
03:48 SFENCE joined #luanti
03:49 YuGiOhJCJ joined #luanti
04:00 MTDiscord joined #luanti
07:28 Talkless joined #luanti
07:50 wsor4035 joined #luanti
08:04 jistr joined #luanti
09:43 repetitivestrain calling core.generate_decorations appears to generate all registered decorations without regard for the biomemap
09:43 repetitivestrain is this expected?
09:50 repetitivestrain Apparently this is
09:51 repetitivestrain https://paste.debian.net/1390289/
09:52 repetitivestrain Is there any reason in particular why this behavior is not the default
09:52 repetitivestrain or at least available to modders?
09:53 sfan5 the answer is almost always: because it wasn't implemented, because of an oversight, because nobody thought of it
09:53 dv^_^ joined #luanti
09:53 sfan5 very rarely are limitations intentional
09:54 repetitivestrain hmm... in any event, is it possible by any other means for an on_generate function in the emerge environment to precede decoration placement?
09:54 repetitivestrain since disabling decorations in mg_flags and invoking core.generate_decorations manually doesn't cut it
09:57 sfan5 no
09:57 * repetitivestrain sighs in exasperation
09:57 repetitivestrain are there any existing lua implementations of decoration placement
09:58 sfan5 why would there be
09:58 repetitivestrain custom/lua mapgens, i imagine?
09:58 sfan5 they would implement their own decoration systems according to their own needs
09:58 sfan5 and not build a reimplementation of the engine one, I imagine
10:00 repetitivestrain sure but in my case i'm trying to adapt my minecraft-derived structure generation system to mgv7, and this requires compatibility with luanti-style decoration definitions
10:01 repetitivestrain hmm this gives me a handful of new keywords for Google search
10:01 repetitivestrain Aha!!
10:01 repetitivestrain https://gitlab.com/gaelysam/biomegen/
10:02 sfan5 seems easier to contribute the fix to the engine tho?
10:02 repetitivestrain yeah, but it won't appear until 5.14 at the earliest
10:03 repetitivestrain and this would still be required for earlier releases
10:03 repetitivestrain https://paste.debian.net/1390289/ <-- like i might have neglected to say, i'll reformat this and place it behind an option in a bit
10:16 seasharp_ joined #luanti
10:23 definitelya joined #luanti
11:39 ireallyhateirc joined #luanti
12:00 mazes_83 joined #luanti
12:08 chloetax joined #luanti
12:47 ttyyls joined #luanti
12:55 erle_on_ic joined #luanti
12:55 erle_on_ic hey, anyone of you on WHY2025?
12:56 jaca122 joined #luanti
13:09 SwissalpS joined #luanti
13:12 Krock joined #luanti
14:38 repetitivestrain sfan5: would you mind reviewing this patch?  attached is a ticket template if that's necessary https://paste.debian.net/1390337/ https://codeberg.org/halon/Minetest/commit/98be83d8486355185265ced68dfa0f84f2a1311c
15:12 gregon joined #luanti
15:16 gregon left #luanti
15:44 [MatrxMT] <birdlover32767> how do you remove translation sequences?
15:45 v-rob joined #luanti
16:38 [MatrxMT] <birdlover32767> nvm ```string.gsub(string.gsub(str, ".+%)", ""), string.char(27).."E", "")``` worked
16:41 Can0xfBows joined #luanti
16:48 wrrrzr joined #luanti
16:49 wrrrzr Hello, can i don't change Minetest directory in android
16:49 wrrrzr This is very hard for me
16:51 wrrrzr sorry, not this topic
16:54 wrrrzr left #luanti
16:56 [MatrxMT] <y5nw> birdlover32767: you can also consider `core.get_translated_string` depending on what you want to do with the resulting string
16:57 [MatrxMT] <birdlover32767> i want to save the item's description to be viewed in an external application
16:57 [MatrxMT] <birdlover32767> but having \u0027 in the descriptions messes it up
16:58 [MatrxMT] <birdlover32767> also, is there a global table of craft recipes? i cant seem to find it in the lua api
16:59 [MatrxMT] <y5nw> core.get_translated_string then. It also places the parameters (@1, @2, etc) correctly if you have such items
17:18 rubenwardy @birdlover32767 you should definitely use get translated string ^
17:48 nekobit joined #luanti
17:49 lumidify joined #luanti
18:25 gideonstar minetest-server 5.6 debian -> luanti-server 5.13 alpine docker -> success! :-)
18:30 sfan5 the following works to strip escapes too https://github.com/Uberi/Minetest-WorldEdit/blob/bf154b12c7099fb2a7ca0810a0ca729e65df950b/worldedit_commands/nodename.lua#L3-L27
18:30 sfan5 note that the parameters will be placed correctly even with this
18:33 jaca122 joined #luanti
19:29 wsor4035 joined #luanti
19:31 jemius joined #luanti
19:47 gregon joined #luanti
19:48 gregon left #luanti
20:23 amfl joined #luanti
21:33 SFENCE joined #luanti
22:04 kimapr joined #luanti
22:14 ireallyhateirc joined #luanti
22:34 panwolfram joined #luanti
22:40 turtleman joined #luanti
23:05 Eragon joined #luanti
23:20 Trifton_ joined #luanti

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