Time Nick Message 08:47 shaft Is there a way for mods to run code before games and mods get loaded? 08:52 sfan5 no 08:52 sfan5 or not really 08:59 MTDiscord write to builtin to execute your mod 09:00 shaft How? 09:01 MacroFaxSax shatf 09:01 shaft Is there something like registered_crafts for recipes? 09:01 MacroFaxSax shaft: hi 09:01 shaft hi whoever you are 09:01 MacroFaxSax kgdrenefort is here. :) 09:01 MacroFaxSax Your friend 09:02 MTDiscord that was a horrible joke that you should never try to do, but basically you need to be a trusted mod by the user, somehow detect where builtin is and write to it 09:04 shaft I don't remember talking to kgdrenefort 09:05 MacroFaxSax shaft: Oh I apologize then! 09:05 MacroFaxSax There seem to be SO many of you these days. 09:05 MTDiscord also shaft, i don't think there's registered_crafts but i looked at https://github.com/dennisjenkins75/digiline_craftdb/blob/main/craftdb.lua and found minetest.get_all_craft_recipes(item_name) 09:06 MacroFaxSax I confuse you all... 09:06 shaft Oh that's very useful. Should solve my problem. Thanks et086 09:07 MacroFaxSax Bye shaft 09:48 kgdrenefort Hi MacroFaxSax 09:48 kgdrenefort hi shaft 09:48 shaft hi 09:52 MacroFaxSax kgdrenefort: ye there he is, the troll. 09:53 kgdrenefort hm ? 09:53 kgdrenefort MacroFaxSax: wdym ? 10:17 kgdrenefort MacroFaxSax: ? 10:38 MTDiscord https://tenor.com/view/thonk-thinking-sun-thonk-sun-thinking-sun-gif-14999983 11:01 ireallyhateirc this reminds me of that Microsoft meme where Bill Gates lies on the desk in his office and there's "Baby, there's nothing about me that's Micro or Soft" (pls don't ban lol) 11:10 kgdrenefort ban ! 11:10 kgdrenefort :D 12:31 shaft How do I learn the magic of formspec? 12:37 MTDiscord see: https://api.minetest.net/search.html?q=formspec and https://rubenwardy.com/minetest_modding_book/en/players/formspecs.html 12:40 shaft Ah, the modding book has good examples 13:02 shaft How do I get a container with a scrollbar? 13:04 Muma Hi there, is there someone who can help me? 13:04 Muma trying to switch language of minetest installation minetest-5.8.0-win64 13:04 Muma all settings looks changed but UI and game itself still in english 13:05 shaft Are you using the flatpak? 13:05 Muma no, just downloaded the client from web site and ran it 13:06 shaft Oh win64 13:06 shaft Did you restart the game? 13:06 Muma i can take any other client ;) 13:06 Muma x32 will be better? 13:06 shaft No 13:07 shaft So did you restart the game? iirc it doesn't change immediatly, you need to restart it for the changes to become effective 13:08 Muma yes, i did, dozen times, checked also all .conf files and see the settings as expected 13:09 Muma i'm running the server on docker btw, if it's possible to change on server side i'll do it 13:09 Muma client - win10 - srv docker 13:09 shaft Why didn't you say so right away? Docker runs Linux right? 13:10 Muma yep, i'm running client on win10 machine - english is not changed 13:10 Muma tried to connect to mineclone2 game installed in docker (i'm able to play) but language is still english 13:11 shaft Is the text of your main menu in your configured language? 13:11 Muma yes, i set the correct language (Ro) 13:12 shaft I think it uses the language of the server for the games. 13:12 shaft You should change the language of your MT server 13:12 Muma but what's wrong with client? 13:12 Muma btw, when trying to set FallBack fonts - it crashes 13:13 shaft Minetest games run entirely on the server and just transmit what to display to the client 13:14 shaft I think translations are also handled by the server 13:15 MTDiscord When you're in minetest, even your brain is running on the server 13:15 Muma ok, how can i configure the server to switch language? 13:15 Muma in config file: worlds/worldname/world.mt 13:15 Muma i have language = ro 13:17 shaft There's no such setting in there and adding one probably doesn't do anything. The setting is in minetest.conf 13:18 Muma right 13:18 Muma i have it like this: 13:18 Muma # Set the language. Leave empty to use the system language. 13:18 Muma # A restart is required after changing this. 13:18 Muma # type: enum values: , be, bg, ca, cs, da, de, el, en, eo, es, et, eu, fi, fr, gd, gl, hu, id, it, ja, jbo, kk, ko, lt, lv, ms, nb, nl, nn, pl, pt, pt_BR, ro, ru, sk, sl, sr_Cyrl, sr_Latn, sv, sw, tr, uk, vi, zh_CN, zh_TW 13:18 Muma language = ro 13:18 shaft Does it work? 13:18 Muma nope 13:18 shaft minetest.conf on your server? 13:18 Muma yes 13:18 shaft And your client? 13:19 Muma on windows machine 13:19 shaft And on the docker? 13:20 Muma the server is on the docker, see config above 13:20 shaft Yes and did you change the minetest.conf of your docker server? 13:21 Muma yes, this what i'm saying ;( all settings looks as documented, but nothing is changed 13:22 shaft What OS is your sever? 13:22 MTDiscord shaft, Muma: MT mods should use client-side translations so you should set the language in your client. If the interface is still in English then it is likely that the mod is not yet translated to the target language 13:23 shaft They do? 13:23 Muma there is locale files on required language in game/mod 13:23 Muma how can i validate? 13:24 Muma btw, when i'm NOT connected to server, client still in english even when connected to other servers 13:24 shaft Does the language switch back to English when you restart the game? 13:24 Muma it's ALWAYS in english 13:24 shaft Go to settings and change it to your language. Then restart the game. 13:26 shaft Make sure your minetest.conf isn't write protected 13:26 MTDiscord shaft: translations are implemented using special escape sequences, and the translation files are sent to the client. The client parses the translation string and uses that in combination with the translation files for the translated string. 13:27 Muma i did it dosens times, minetest.conf is not protected, moreover it holds the correct language paramater 13:27 Muma i even switched it to another languages to check... it's always stayed ion english 13:27 shaft Romanian works for me but only in the main menu 13:27 shaft MTG doesn't seem to have Romanian translation yet 13:28 shaft Sorry nothing I can do 13:28 MTDiscord If you are on an MSVC build on Windows there is also a chance that the client does not support translations since it is not built with gettext correctly 13:30 Muma i can try this build 13:30 Muma https://minetest.kitsunemimi.pw/builds/win64/minetest-5.9.0-fbec378-win64.7z 13:30 Muma might be helpfull? 13:30 shaft He won't get translation either way in the games because MCL and MTG don't have romanian translation files. 13:30 ROllerozxa y5nw: the official builds use mingw so that shouldn't be an issue 13:30 shaft Nobody translated it yet. 13:30 ROllerozxa if you see partial translations then that's because the translations are incomplete 13:32 y5nw ROllerozxa: ah, ok. I was thinking about the CI builds since I recall there was one built with MSVC that did not have translations 13:32 Muma 5.9 the same... 13:33 Muma checked on 3 PCs btw (all 3 with win10) 13:33 Muma :( 14:24 Krock Muma: is this a new issue or do older Minetest builds not switch languages either? At least "src/unsupported_language_list.txt" does not blacklist "ro", so if "minetest.exe --version" shows "USE_GETTEXT=1" there should be support for it. 14:24 Krock ... 14:30 shaft Is there a function to get the maximum stack size? 14:33 Krock 65535 14:33 Krock also https://github.com/minetest/minetest/blob/master/doc/lua_api.md?plain=1#L7570-L7571 for specific items 14:37 shaft I thought about common items in MTG and MCL like wood which stack up to 99 and 64 14:38 shaft Probably no function for that 14:40 shaft btw will you merge my PR? 14:59 Blockhead256 !tell Muma Sorry, but Minetest Game is not available in Romanian. It has translations into: de, eo, es, fr, id, it, ja, jbo, ms, pl, pt_BR, ru, sk, sv, uk, zh_CN, zh_TW -- only 14:59 MinetestBot Blockhead256: I'll pass that on when Muma is around 14:59 Krock Blockhead256: https://hosted.weblate.org/projects/minetest/minetest/ro/ 15:00 Krock there is some translation .. just not very much. 15:00 Blockhead256 Mineclone2 isn't available in Romanian either 15:00 Blockhead256 the main menu of Minetest Engine is available in Romanian, and that's about it 15:00 shaft Krock, sorry if I'm annoying. What about the PR? 15:01 Blockhead256 so someone will need to do the translation work for that language to make it available 15:02 Krock shaft: low priority for me, but I've seen the changes 15:03 shaft What does that mean? Will you merge it, decide about merging it or just do nothing and leave it sit there for another month? 15:04 shaft The entire reason I asked anyone for review was to get it merged 15:05 Krock well yes that's obvious. I'll give it a test this weekend - which means a to review it 15:05 Krock -a 15:09 shaft That's great! 15:26 shaft Do I have to continually rebake the entire GUI formspec string if I want to change things dynamically? 15:28 Krock yes 17:22 shaft How do I find or check if an item matches a description like "group:flower,color_green"? 17:22 shaft There must be functions for this. Decoding this by hand will take me forever 17:22 shaft It's a crafting recipe 17:26 sfan5 never seen that comma syntax but if it's just a single group then that's easy to look for in registered_items 17:26 sfan5 but it sounds useful if the engine provided a helper for this, consider opening a feature request 17:28 Krock as far as I know it's for specifying multiple groups that must match 17:28 Krock I've only ever seen it being used with colors 17:39 MTDiscord shaft: https://github.com/appgurueu/modlib/blob/5f0dea2780b88d44d85b9704e0e81348c459404d/minetest/misc.lua#L176-L194 17:39 MTDiscord nodename is misleading there tbh, should be called itemname, but you get the idea 17:41 shaft Oh I get it. I thought color green was some inbuilt but it's just a list of groups 17:41 shaft Not that hard then 17:50 shaft How do you call nodename_matcher from a mod? 17:55 shaft It's neither in the global nor the minetest table. 17:58 sfan5 the answer is to copy it into your mod 18:00 shaft Alright it's mine now and CC0 18:01 MTDiscord ...thats not how licenses work 18:02 Krock lmao what 18:02 shaft Just kidding I'll rewrite it 18:02 MTDiscord also not how that works 18:06 sfan5 it does work like that to some extent, but people do white-room reverse engineering for a reason 18:07 shaft Someone writes 5+5. I write 5+5. Fight me. 18:07 MTDiscord well i assume they read it, and would in effect be creating a derivative work, rather than just writing a function that also does $thing 18:08 sfan5 for this function in particular you can argue that there's nothing ingenious about a for loop and a callback that makes it copyrightable 18:08 MTDiscord that is true 18:09 MTDiscord This server is now gplv3 18:09 MTDiscord begone virus 18:10 MTDiscord https://tenor.com/view/gnu-efi-uefi-osdev-programming-gif-25428685 18:11 MTDiscord yeah, because gnu boot when so well for that 18:31 shaft Can you attach more data to a formspec element than just the name? 18:54 shaft And why does image not get clipped by the boundraries of the scroll container while all other elements do?