Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undo #43

Open
fireglow opened this issue May 19, 2014 · 15 comments
Open

Undo #43

fireglow opened this issue May 19, 2014 · 15 comments

Comments

@fireglow
Copy link

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 :-)

@Uberi
Copy link
Owner

Uberi commented May 23, 2014

Hi fireglow, I think that's a good idea. Expect to see it in the next version!

@Uberi Uberi added this to the 1.1 milestone May 23, 2014
@fireglow
Copy link
Author

Cool, I'm looking forward to it :)

@JuniorJPDJ
Copy link

still waiting :D

@sfan5 sfan5 changed the title Feature request: undo Undo Jan 5, 2016
@sfan5 sfan5 removed this from the 1.1 milestone Jul 18, 2016
@pyrollo
Copy link

pyrollo commented Jul 28, 2016

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.

@LoneStar-
Copy link

undo is very important, especially if importing a large schematic and is placed wrong.

@HybridDog
Copy link
Contributor

FYI: I've made a we_undo mod: https://github.com/HybridDog/we_undo

@beyondlimits
Copy link
Contributor

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.

@HybridDog
Copy link
Contributor

HybridDog commented Feb 1, 2019

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.

@niwla23
Copy link
Contributor

niwla23 commented Apr 11, 2019

Please put @HybridDog s undo mod into we, but it should be improved so it can undo everything

@AFCMS
Copy link

AFCMS commented May 11, 2020

It's a very useful functionality. I think it should be included.

@Anulo2
Copy link

Anulo2 commented Jul 28, 2020

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

@Git-Forked
Copy link

+1: I also would like to see the undo feature native in this mod.

@vraisunge
Copy link

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

@AmyMoriyama
Copy link

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?

@HybridDog
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests