Time Nick Message 08:43 MTDiscord mh registered at the forum but no mail so far. would be nice if someone could resend the mail. ty 08:48 MinetestBot 02[git] 04x2048 -> 03minetest/minetest: Offset cuboid origin after scaling the cuboid. (#12558) 13b270a46 https://github.com/minetest/minetest/commit/b270a46e533eaec289a65440f63eb227f0872286 (152022-07-19T08:48:00Z) 09:34 sfan5 @Bla I can also manually activate your account 09:35 MTDiscord that would be great too ? 09:35 sfan5 account name? 09:35 MTDiscord Bla 09:37 sfan5 done 09:37 MTDiscord ty 09:50 Izaya Is there a mod that formats the F5 debug info more pleasantly? I'd love something between WAILA (from Minecraft) and a map mod, where it has a nicely formatted "viewed block info" and the coordinates. 09:54 erle funny result https://forum.minetest.net/viewtopic.php?f=47&t=28350&p=412431#p412431 09:54 erle TL;DR optimizing your assets can result in a situation where the zip file delivering your mod is bigger than if you had not done it 09:55 erle which is relevant when filesize is below 4kb 09:55 erle because then regardless of how small the file is, it takes up 4kb of disk space on contemporary filesystems once uncompressed 09:56 erle this seems hilarious and it seems to me as if optipng is entirely the wrong route, unless you are applying it to a tilesheet 10:16 sfan5 another misinformed post from erle, sad. 10:16 erle sfan5 tell please 10:17 erle are there filesystems with another blocksize than 4kb that i do not know? 10:17 erle anyways, i think the solution is to use more tilesheets 10:17 sfan5 "optimizing your assets can make your ZIP file bigger" I assume this is just mistyped since in your post you say the opposite 10:18 sfan5 "[...] a situation where the zip file encoder is not able to exploit similarities between different files [...]" files in ZIPs are all compressed independently so this doesn't apply 10:18 erle oh that's good to know 10:18 erle well, optimizing the assets individually. then why is zip(optimized files) bigger than zip(raw files)? 10:19 sfan5 if that is the case then your zipping utility messed up 10:19 erle sfan5 you seem to be right. putting two identical files into a zip file bloats its size. 10:20 sfan5 or the nested compression happened to work better on the unoptimized assets (can happen, obviously) 10:20 erle this thing is so easy, you can try it out yourself. take all the >200 or so PNGs from minetest_game default/textures and zip them. then do it again with all of them converted to uncompressed (this is important) TGA. or any other uncompressed format, probably (i have not tested that). 10:21 erle the effect stops working as soon as your input is compressed in any way. for example, applying RLE and then zipping it makes it bigger. 10:22 sfan5 doing such an underspecified experiment is a waste of time 10:22 sfan5 for example what does "zipping" mean? zip -0? zip -9? with 7zip? with winrar? some more intelligent settings? 10:23 erle i actually left it vague on purpose to encourage people to try it themselves, but i see that was a bad idea 10:23 sfan5 "4kb of disk space on contemporary filesystems" lastly, regardless of blocksize not all filesystems suffer from the one-file-one-block limitation so this certainly isn't good general advice 10:25 erle which leads me to a tangent. since the code for reading directly from zips has not been removed from irrlichtmt, why does minetest unpack downloaded mods at all? loading time optimization? 10:25 erle i mean quake and so on do not 10:25 erle (pk3 is just zip basically) 10:26 erle i can imagine it being slower or taking more RAM to do it on the fly 10:26 erle but i wonder if it can be worth it if you have many small files. git does something like that after all. 10:31 erle sfan5 which filesystems should i look into to educate myself about the one-file-one-block thing? 10:35 erle if you are referring to ext4 inode inline data, that is *very* limited (file smaller than 60 bytes i think?) 10:36 sfan5 https://superuser.com/questions/1352833/#answer-1643841 10:37 erle ah thanks, the word is “block suballocation” 10:37 erle if you have not considered doing so, i bet it would be helpful if you posted to the thread 10:38 sfan5 maybe later, feel free to link the irc conversation there 10:38 erle ok! 10:40 erle btrfs is a strange beast. i especially find it funny that it is impossible to estimate the amount of free space at the file layer. yes, i am *that* user who will free up just enough disk space to make things work in a pinch. 15:12 muurkha 09:55 < erle> because then regardless of how small the file is, it takes up 4kb of disk space on contemporary 15:12 muurkha filesystems once uncompressed 15:12 muurkha I do not think this is true of any mainstream Linux filesystem 15:13 muurkha 10:23 < erle> i actually left it vague on purpose to encourage people to try it themselves, but i see that was 15:13 muurkha a bad idea 15:14 muurkha this is good when you are offering exercises to a class but not when you are trying to make your results reproducible so that your statements about them can be objectively true or false :) 15:15 muurkha hmm, interesteing, apparently on new enough disks ext4fs *does* use 4k blocks. thanks sfan5! 15:16 muurkha (according to the superuser thread) 16:54 jwmhjwmh MisterE[m]: What mapgen did you use for that terrain? 16:55 MTDiscord Reverb 16:56 MTDiscord https://github.com/Jordach/minetest/tree/mg_reverb 18:27 MinetestBot 02[git] 04x2048 -> 03minetest/minetest: Restore flags texture to fix interlaced stereo mode (#12560) 1370c54ab https://github.com/minetest/minetest/commit/70c54abc2a09d2299f6a7de327d4aecbbad625a5 (152022-07-19T18:26:57Z) 21:23 fluxionary_ is there a correct way to register something that is both a node and a tool and have it function as both? (e.g. the pitchfork from Sokomine's cottages mod) 21:23 fluxionary_ if i register it as a node, wear doesn't work right 21:24 rubenwardy you can register a node _and_ a tool, and have the tool place the node and the node drop the tool 21:24 rubenwardy this is how MTG doors work 21:24 rubenwardy for some reason. Really should be a craftitem rather than tool 21:25 rubenwardy oh I didn't remember correctly. Maybe I was thinking of keys or something 21:25 rubenwardy https://github.com/minetest/minetest_game/blob/master/mods/doors/init.lua#L255 21:25 fluxionary_ that's how it works currently, but can i have them share a name? 21:25 rubenwardy no 22:53 fluxionary_ i guess giving up on wear creates the fewest problems 23:35 MTDiscord "problems" <- there arent many problems with placing a node with a tool, if you program it correctly.