Giter Club home page Giter Club logo

Comments (15)

HybridDog avatar HybridDog commented on August 28, 2024 6

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

from minetest-worldedit.

HybridDog avatar HybridDog commented on August 28, 2024 6

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.

from minetest-worldedit.

vraisunge avatar vraisunge commented on August 28, 2024 3

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

from minetest-worldedit.

HybridDog avatar HybridDog commented on August 28, 2024 3

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.

from minetest-worldedit.

AmyMoriyama avatar AmyMoriyama commented on August 28, 2024 2

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?

from minetest-worldedit.

Git-Forked avatar Git-Forked commented on August 28, 2024 1

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

from minetest-worldedit.

Uberi avatar Uberi commented on August 28, 2024

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

from minetest-worldedit.

fireglow avatar fireglow commented on August 28, 2024

Cool, I'm looking forward to it :)

from minetest-worldedit.

JuniorJPDJ avatar JuniorJPDJ commented on August 28, 2024

still waiting :D

from minetest-worldedit.

pyrollo avatar pyrollo commented on August 28, 2024

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.

from minetest-worldedit.

LoneStar- avatar LoneStar- commented on August 28, 2024

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

from minetest-worldedit.

beyondlimits avatar beyondlimits commented on August 28, 2024

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.

from minetest-worldedit.

niwla23 avatar niwla23 commented on August 28, 2024

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

from minetest-worldedit.

AFCMS avatar AFCMS commented on August 28, 2024

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

from minetest-worldedit.

Anulo2 avatar Anulo2 commented on August 28, 2024

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

from minetest-worldedit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.