Time Nick Message 12:01 sfan5 today in differences between PUC Lua and LuaJIT 12:01 sfan5 > =string.format("%s", "a\000b") 12:01 sfan5 a 12:01 sfan5 > =string.format("%s", "a\000b") 12:01 sfan5 ab 12:04 MTDiscord sfan5: decimal escapes may have at most 3 chars 12:04 MTDiscord that's actually documented in the reference manual 12:05 sfan5 isn't it octal? 12:05 MTDiscord ah nvm, this is about null termination 12:05 sfan5 but that's not the point here 12:05 MTDiscord sfan5: nah, it's decimal 12:05 sfan5 that's awful 12:06 MTDiscord LuaJIT supports hex ;) 12:06 MTDiscord PUC Lua 5.1 doesn't however 12:06 sfan5 because it's unlike many other languages including C, JavaScript, Python, ... 12:07 MTDiscord sfan5: This is still documented though: "This function does not accept string values containing embedded zeros, except as arguments to the q option." 12:07 MTDiscord https://www.lua.org/manual/5.1/manual.html#pdf-string.format 12:07 MTDiscord that's because it uses printf behind the scenes 12:07 sfan5 did that change in 5.2 or is it non-standard luajit behaviour? 12:08 sfan5 (didn't have 5.1 here to test, the line I pasted is from 5.2) 12:08 MTDiscord sfan5: It seems to have changed in 5.3 12:09 MTDiscord Yep, 5.2 refman: "Option q expects a string; option s expects a string without embedded zeros." 12:09 MTDiscord 5.3: "Option s expects a string; if its argument is not a string, it is converted to one following the same rules of tostring. If the option has any modifier (flags, width, length), the string argument should not contain embedded zeros. " 12:09 MTDiscord TL;DR: Don't use embedded zeros :P 12:10 MTDiscord Most of what's dirty in Lua has been inherited from C 12:10 sfan5 nothing prevents them from writing their own printf implementation 12:10 MTDiscord Indeed 12:11 MTDiscord Other things like locale or os.* things are limited though 12:11 sfan5 and it looks like they did in 5.3 for %s but didn't bother handling anything more complex 12:11 MTDiscord 5.4: "The specifier s expects a string; if its argument is not a string, it is converted to one following the same rules of tostring. If the specifier has any modifier, the corresponding string argument should not contain embedded zeros. " 12:36 sfan5 with that fixes my test just hangs on Lua 12:36 sfan5 o.O 12:47 sfan5 "terminate called without an active exception" wat 12:54 sfan5 okay it doesn't like string.format("%s", true) and also because of other brokenness the error gets swallowed 16:26 muurkha other brokenness in Lua or in your test? 16:51 sfan5 in Minetest 16:54 muurkha btw I did eventually get Minetest 5.5 installed but I had to compile it from source. Ubuntu still only has 5.4, even in snaps 16:55 sfan5 yeah it's unfortunate 16:55 muurkha and I can verify that combining accents now work properly in the chat, which is awesome 16:55 muurkha compiling it from source was especially problematic because I tried compiling the 5.5.1 release 16:56 muurkha and apparently somebody thought it would be a good idea to remove irr::core::list from irrlichtmt and at the same time remove its use from minetest 16:56 muurkha which means that you can't compile minetest 5.5.1 from a month ago againt current irrlichtmt 16:56 sfan5 you're supposed to use "matching" versions but the README doesn't mention that at all 16:57 muurkha I think this is bad because there's no way to tell what's "matching" 16:57 muurkha git submodules have their problems but they do solve this one because they tell you what commit hash the submodule is at 16:58 muurkha so I looked through the git log for irrlichtmt and saw the commit message (which, by the way, are very nice) 16:59 muurkha the accented letters still don't work with VanessaE's signslib but at least I can type them 17:01 muurkha I was hoping that this would be a straightforward compilation from source experience for my girlfriend to enjoy but instead she had to learn to interpret C++ compile errors (in a foreign language, because for whatever reason G++'s error messages were in English) and detached HEAD state 17:03 rubenwardy muurkha: we have an official PPA here https://launchpad.net/~minetestdevs/+archive/ubuntu/stable 17:03 muurkha rubenwardy: oh cool! maybe it would be worthwhile mentioning it on the downloads page, or did i just miss it? 17:04 rubenwardy Probably, we also shouldn't recommend snap 17:04 muurkha I'm not a fan of snap myself 17:04 rubenwardy no one is 17:04 muurkha I think probably unless irrlichtmt is in the same repo as minetest it would be worthwhile to have a deprecation policy and transition period for incompatible changes like that 17:04 sfan5 the PPA used to be mentioned but it was unmaintaned or something 17:04 sfan5 (it's also missing 5.5.1 even now) 17:05 rubenwardy I've not met a single person who likes snap or prefers it overr flatpak/appimage 17:05 muurkha I haven't compared it to them, but I don't prefer it to apt 17:05 rubenwardy Like, I'm a fan of containerising dependencies - it's makes it easier to ship an application across distros 17:05 muurkha even though in theory it has some advantages apparently there's no way to keep snap from updating things at random times? 17:06 muurkha so I can't use a snap-based laptop on a metered cellphone connection because it will eat my entire day's worth of data in a few mintues? 17:06 rubenwardy You can mark the cellphone connection as metered 17:06 muurkha without a transition period for incompatible changes, compiling minetest from source requires acquiring knowledge that isn't in the actual source code itself, namely which exact sub-release version of the dependency is needed 17:07 muurkha I'll google that, thanks 17:07 sfan5 you can also delay updates with snap 17:07 sfan5 or so I read 17:08 muurkha what I'd really like to be able to do is roll back updates, like guix/nix allows me to do 17:08 muurkha you'd think containerization would make that straightforward in many cases 17:23 MinetestBot 02[git] 04rollerozxa -> 03minetest/minetest: Fix Android input box crash 13992f501 https://github.com/minetest/minetest/commit/992f501159b2fc6c5878d86cc477413250b4efa2 (152022-06-14T17:22:22Z) 18:08 shrikant Hello. Can i change entity texture in runtime? 18:15 MTDiscord Yes. Look for "set_properties" in the docs and read the section on object properties. 18:15 MTDiscord There is a "textures" property. 18:17 shrikant luatic: Oh, awesome. Thank you! 22:33 settl3r[m] Hello, does someone know how to use the prospector tool (of the technic mod) ? i already tried it out in creative mode, but can't find out how to find ores with it.. 22:37 settl3r[m] the problem is, that the prospector "does nothing", i clicked it in various circumstances 22:37 settl3r[m] (only the right-click configuration menu works, but thats all) 22:38 settl3r[m] i can switch to different blocks, but it doesnt find more.. is there a readme for this tool? 22:38 settl3r[m] if i left-click, it only shows the attack-animation 22:39 settl3r[m] (also, i discovered its existence by pure accident) 23:41 Pexin settl3r[m]: right click to set which node to search for 23:41 Pexin left click while targeting any node to activate the search 23:41 Pexin can't just click the air 23:42 Pexin full disclosure I've only used prospector mk2