Minetest-WorldEdit
Minetest-WorldEdit copied to clipboard
Undo
Hi, I think a undo function to rollback the last change made by WorldEdit would be a good addition to the tool. Thank you for considering it :-)
Hi fireglow, I think that's a good idea. Expect to see it in the next version!
Cool, I'm looking forward to it :)
still waiting :D
How would you code a rollback/undo feature ? I was thinking about saving to disk affected areas and keeping a defined number of undo files per player.
undo is very important, especially if importing a large schematic and is placed wrong.
FYI: I've made a we_undo mod: https://github.com/HybridDog/we_undo
Minecraftian WorldEdit had an undo/redo feature. I haven't ever checked though what happens when multiple people operate on the same area and perform undoing/redoing like: player A undoes, player B undoes, player A redoes, player B redoes. Will it result in state just before undoing?
Also it's open-source, so maybe a good source to see and learn.
My mod saves the differences compressed in memory; it does not save the state before and after but only the difference to before (or after in case of redo). A journal list for each player stores the differences for multiple undoing and redoing. When multiple players undo changes at the same positions, the journal for the redo command remembers the current nodes when undo is applied. e.g. air -> B sets wood -> A sets stone stone, A undoes -> wood, B undoes -> air, A redoes -> stone, B redoes -> wood It does not result in the state before undoing; otherwise B's redoing would need to do nothing or be blocked.
Please put @HybridDog s undo mod into we, but it should be improved so it can undo everything
It's a very useful functionality. I think it should be included.
The undo feature is a must have when using worldedit. I didn't know of the existence of @HybridDog undo mod and it would have saved me multiple times hours of work when building. This feature should be present in worldedit without the need of installing another mod. Hope it will be added soon
+1: I also would like to see the undo feature native in this mod.
especially for schematics its very nice to have the undo feature (sadly not working with HybridDogs extention :( ).. i'd love to see this included and optimized into we
I'd like to see this undo feature too. It's almost impossible to get large things right the first try and it's more logical to use //undo than to have to set everything to air. It has been about 7 years since this issue was opened, is this ever going to be added?
especially for schematics its very nice to have the undo feature (sadly not working with HybridDogs extention :( ).
I've implemented undoing for //mtschemplace and //load in we_undo by now.