Uberi / Minetest-WorldEdit

The ultimate in-game world editing tool for Minetest! Tons of functionality to help with building, fixing, and more.
https://forum.minetest.net/viewtopic.php?f=11&t=572
GNU Affero General Public License v3.0
162 stars 81 forks source link

New command: dump "partial" mapblocks #126

Closed Fixer-007 closed 7 years ago

Fixer-007 commented 7 years ago

Say I have a map saved by local map saving hack-feature, since it saves not on mapblock basis, it adds problems.

Now comes "dump partial mapblocks" command, what it does is gradually parses the map for uncomplete mapblocks and just removes them.

Doable?

sfan5 commented 7 years ago

since it saves not on mapblock basis,

but it does

What problems does it cause? And generally Lua can't do work on the "raw" MapBlocks.

Fixer-007 commented 7 years ago

Someone said local_map_saving is not working on mapblock basis but saves differently, so you end up with hacky kind of map save that can crash minetest if you try to set it up as v7/flat/whatever instead of singlenode to have a save you can play further.

sfan5 commented 7 years ago

@Fixer-007 I don't know who this someone is but I can tell you: I coded local_map_saving and it definitely does save on a MapBlock basis.

What it doesn't do (because it can't) is saving on a MapChunk basis which can cause problems with some mapgens. However this is a quite rare usecase and shouldn't be in WorldEdit IMO