Time Nick Message 09:44 MinetestBot 02[git] 04y@y -> 03minetest/minetest: Removed debug.upvaluejoin to prevent leak of insecure environment 13ecd20de https://git.io/fjDzO (152019-07-24T09:43:09Z) 12:47 Hellime Hello everyone, I would like to know if there are any resources, how minetest was made: example - algorithms, and how the core of minetest works? 14:36 Tianshee Is there already implemented physics for mobs(to walk and collide with nodes and probably other entities) or I have to write it myself? 14:37 VanessaE look into mobs_redo 14:37 VanessaE it's an API for that stuff, plus addons that actually supply some good mobs 14:38 Tianshee So I have to write it myself or depend on mobs_redo, there is no default physics? 14:39 VanessaE there's basically no default, no. 14:41 Tianshee Then how "physical", "gravity" and "weight" are used by minetest(or minetest_game) itself? They are not? 14:41 Tianshee They are there for something else to use? 14:42 VanessaE I'm not sure, beyond how they affect entities and players in general. 14:43 Tianshee Even " 14:43 Tianshee makes_footstep_sound"! 14:44 Tianshee Sorry, I somehow copied empty line. Dunno how this happened. Installed HexChat one hour ago, never used it before. 14:44 VanessaE heh 14:44 VanessaE s'ok 14:45 Tianshee I'm playing on your server btw and found two bugs. One is exploitable but not very serious since anyone can protect anything with chat commands anyway, another one is frustrating. 14:45 VanessaE what bugs? 14:46 Tianshee Infinite protection blocks and armor removing items in inventory when you are trying to place it in inventory and exchange it with something else. 14:47 VanessaE mmh,. 14:47 VanessaE file bugs against the respective mods :) 14:47 Tianshee But they are on your server... 14:47 Tianshee I don't even know that those mods are. 14:48 Tianshee Oh... 14:48 VanessaE which server? 14:48 Tianshee I can probably throw those items on ground to see how they are called... 14:48 Tianshee Survival. 14:48 VanessaE which one? I have several that run in survival mode :) 14:49 Tianshee I think it's called Dreambuilder Survival. 14:49 VanessaE ok 14:49 VanessaE then that'll be cheapie's areasprotector mod, an dstu's 3darmor mod 14:49 Tianshee I'm new in minetest and trying to understand how to play and create mods. 14:52 Tianshee You only use that one mod for area protection? 14:52 VanessaE I use a few actually 14:53 VanessaE but which one(s) depends on which server 14:53 Tianshee I thought it could be a result of their interaction if there are multiple. 14:53 VanessaE nah 14:55 VanessaE areas is the main mod most use, areasprotector uses areas as its backend. one of the servers has its own specific kind of protection block, one of the others has yet another type specific to that server, etc etc 14:56 Tianshee I think if you place protection block in existing protected area it will not be taken from your inventory but will be placed anyway, so you can make a castle out of single block. 14:57 VanessaE sssh 14:57 Tianshee You know? 14:57 VanessaE cheapie: ^ 14:57 VanessaE this channel is logged so you shouldn't discuss exploits in here (research responsible disclosure) 14:58 Tianshee I thought since protection is free and you can't recycle protection blocks into anything, it's like generation cobble(or something similar) and protecting it. 14:58 Tianshee Like, it does not let you do anything you normally can't. 15:00 Tianshee It would be a problem if protection were not free of if protection blocks were useful resource on their own. 15:00 VanessaE ahem. 15:00 VanessaE again, don't talk about it in here. 15:00 VanessaE please file bug reports. 15:00 Tianshee Like if you could turn them back into locks. It's not possible. 15:06 Tianshee I don't like asking for anything and expect my bug reports to be ignored anyway. If someone is reading this, feel free to do it yourself if you want that "free exposure". I didn't break anything intentionally. 20:12 Tianshee How to add owner to area? 20:13 Tianshee I don't want to create new area inside it, I want to give them same level of control that I have. 20:16 calcul0n Tianshee, that depends on the protection mod in use 20:17 calcul0n if you type /help do you see select_area and add_owner in the list? 21:26 Tianshee I used add_owner. 21:26 Tianshee But I'm not sure it was best idea. 21:26 Tianshee Why it added new area? 21:26 Tianshee It's weird. 21:29 calcul0n you cant' really add someone to an area, it just creates a new area owned by the player 21:29 calcul0n but the result is the same 22:01 Tianshee What if I will create an area partially overlapping someone else's protected area? 22:04 calcul0n i guess it won't work, that's the point of "protected" areas :) 22:04 calcul0n unless you're added to this area of course 22:20 adfeno Hi there, how to use .[lang].tr files? which should be the main name of the file (the part before the first dot)? and [lang] shoud be in which format? 22:22 sfan5 i'm pretty sure the documentation says how to do this 22:23 adfeno It says that the suffix is ".[lang].tr", but not the preffix. 22:23 adfeno And [lang] has no format specified as far as I have read according to lua_api.txt. 22:24 sfan5 probably the same language codes gettext uses but just the first part 22:25 sfan5 so not de_DE but de 22:26 adfeno Ah, OK 22:26 adfeno Now I wonder what should I put before the first dot in ".[lang].tr"? 22:28 sfan5 anything works i guess 22:28 sfan5 e.g. the name of your mod 22:29 adfeno and `# textdomain:` means that I must replace the "textdomain" part with the according name? 22:29 adfeno Or must I put the desired textdomain immediatelly after the two dots (":")? 22:32 sfan5 after the dot 22:34 adfeno Hm... Thanks :D 22:34 adfeno Now, I wonder how I can check if my Minetest has translations enabled? 22:35 adfeno I tried LANG=[Some code to match the translation, lowercase] minetest And got no results. 22:36 sfan5 you can also try setting language in minetest.conf 22:36 sfan5 `language = de` 22:37 adfeno Hm... Interesting, the Minetest menu did change, but the item/block description didn't. 22:38 adfeno (the Minetest menu also changed when using the LANG variable, as expected, but I had the same issue I just described in regards to my mod specifically) 22:40 adfeno In my init.lua I have this: local S = minetest.get_translator("testmod") And in strings that can be translated I have S("String.") No string needs arguments as this is a test. 22:41 adfeno The .TR file has: # textdomain:testmod And each line has: String.=Translation. 22:55 adfeno Hm, found a possible cause: VERBOSE[Main]: Translations: can't find translation for string "Bloco de fosforite" in textdomain "fosforo" 22:55 adfeno fosforo is testmod (I just changed name 23:01 adfeno And I do have the original string "Bloco de fosforite" (without quotes nor spaces betwen equal sign) = "Translation (also without quotes and no spaces between the equal sign) 23:03 rubenwardy Check that the extension is lowercase 23:04 rubenwardy And that the filename is the same case as use domain 23:04 rubenwardy ...and gtg 23:05 adfeno Yes, the file name is "fosforo.en.tr" (again, fosforo being the textdomain and also the mod's name). 23:09 adfeno I'll see what strace gives me in this regard 23:31 adfeno Hm.... strace is somewhat confusing me, as it doesn't tell which part of the file is problematic. 23:46 adfeno Is there a way to see which files Minestest is looking at when searching for the translations? 23:47 adfeno Unless I missed it, strace isn't helping