Time Nick Message 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 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 12:55 erle_on_ic hey, anyone of you on WHY2025? 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:44 [MatrxMT] how do you remove translation sequences? 16:38 [MatrxMT] nvm ```string.gsub(string.gsub(str, ".+%)", ""), string.char(27).."E", "")``` worked 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:56 [MatrxMT] birdlover32767: you can also consider `core.get_translated_string` depending on what you want to do with the resulting string 16:57 [MatrxMT] i want to save the item's description to be viewed in an external application 16:57 [MatrxMT] but having \u0027 in the descriptions messes it up 16:58 [MatrxMT] also, is there a global table of craft recipes? i cant seem to find it in the lua api 16:59 [MatrxMT] 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 ^ 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