Time Nick Message 02:05 Parnikkapore_m TIL "orthogonal distance"; I've always called it taxicab / manhattan 02:06 muurkha or L1 02:07 muurkha the L₁ norm: https://en.wikipedia.org/wiki/Taxicab_geometry 02:07 muurkha "orthogonal distance" doesn't appear in that article 11:31 independent56 Sorry about the earlier downtime. We were moving Babushka into our house, and the router was down from 17:00 to 12:30 11:31 independent56 This downtime will be logged 11:33 sfan5 ? 11:37 independent56 Let me explain myself: my server used to be hosted in my babushkas house, 2 km away from our current house. We are planning on selling that house, so we moved our stuff, and EE would not turn our router until midday here 11:37 independent56 So the server was offline 11:37 independent56 But things are slowly coming back 14:35 fluxionary pretty sure this isn't a thing, but there's no way to get the y-elevation of the "surface" given x/z coords, outside the heightmap mapgen object, which is only for the most recently generated chunk? 14:41 sfan5 I believe the mapgen class has a method for this, that could just be exposed 14:42 sfan5 also depending on mapgen you can reimplement the "getSurfaceAtPoint" code in Lua if you need it 14:44 fluxionary alright, perhaps i'll put in a PR for something in a bit 14:47 fluxionary currently have to fix a bug where i assumed that checking to see if the biome @ water_level was an ocean biome meant that the area was once an ocean... 18:23 MTDiscord Is there a way to restore entities after a /clearobjects from a backup? 18:24 sfan5 there is always a way but it will not be easy 18:28 MTDiscord How would one go about that? 18:32 sfan5 write one script that exports static objects for each map block, write another one that imports these into existing map blocks 18:39 MTDiscord Ok. Anyone done something similar I could take a look at? Because from zero I wouldn't even know here to start. With script you most likely refer to a sql script instea of lua? 18:41 sfan5 you need something external that can connect to your database and can decode the format it has 18:41 sfan5 python is well suited I'd say 18:42 sfan5 I have some existing library-like code that'd do much of the job but I haven't updated it to read the 5.5 map format 18:49 MTDiscord Heh, time for me to learn python then. Unfortunately it's a 5.5.1 server which uses the new map format. Not sure if every mapblock already migrated though 18:51 sfan5 if you write python stuff that can connect to whatever database you have and read write the data blobs blocks are made of then I have the rest of the solution pretty much here and we can get it figured out 18:52 MTDiscord It's a postgresql database, but a 76GB backup ... 19:00 sfan5 that doesn't sound like a problem except you need correctly sized second server to load that backup first 19:00 sfan5 but that's also not a problem 19:01 sfan5 oh actually speaking of clearobjects, by default that only clears objects in active blocks (and those that become active in the future), you can avoid future object deletions by resetting the clearobjects time in map_meta.txt 19:01 sfan5 but the objects in blocks that have been loaded since then will already be lost 19:01 Sokomine it's one of the situations where i wish we had a field in the database that'd store date of last (player-based) modification in a mapblock 19:03 Sokomine such a field could narrow the amount of things to be checked from tons of gb to a couple of mb i guess... 19:03 MTDiscord We have a testserver and a liveserver. For this operation I'll set up a third server where we can test the insert script on the live DB, before it goes "fully live" 19:05 MTDiscord Regarding the map_meta.txt: Do I need to restart the server to have it read? 19:08 Sokomine isn't that file only relevant when generating new map data? anyway...i think it's read just once at start of the server 19:08 MTDiscord I don#t see a clearobjects time in mapt_meta.txt? 19:09 Sokomine afaik map_meta.txt is for the mapgen - version (i.e. v6, v5, valleys, ..) and its parameters 19:09 MTDiscord its in env_meta.txt 19:10 Sokomine that only gives you the time. might be helpful, yes, but only marginal 19:16 sfan5 yes you need to restart 19:43 MTDiscord I removed the value from env_meta.txt, restarted the server and at least the unloaded mapblocks kept their NPCs and mobs. 21:58 rubenwardy !title https://blog.rubenwardy.com/2022/06/22/gpt-3-minetest-modding/ 21:58 MinetestBot rubenwardy: GPT-3: An AI that can write Minetest mods... kinda - Blog - rubenwardy