Author Topic: Redo flaw  (Read 1833 times)

If there were to be a "Redo" addon, (is there?) could It be used to make floating bricks?

Lets say theres a 2 bricks stacked, you Dwand the top brick, and someone else Dwands the bottom, you "redo" and the top is back, and floating.

Would this be possible?

I don't know how the redo add-on is made, but the right way to program a redo action in 'most' programs I'd imagine is to clear out all the redo actions once a change has been made.


Ex: User does 1, then 2, then 3
------*
1, 2, 3

user undos to 1
*
1, 2, 3

user does 4 now
---*
1, 4, 3


If the user redo's to action '3', it might cause corruption, because a change took place after the initial action, and action 3 could mean something completely different now that the changes took place.


I think how AGlassOfMilk (I think that's who made it) programmed the redo to just re-plant the brick after it's been removed, and in that case, the worst-case scenario is a floating brick or a brick inside another brick, if that.

You know, it's not hard at all to throw in the couple of error checking lines.
It could detect floating and whatnot.

I just needed a yes/no question.
« Last Edit: July 09, 2010, 04:34:52 PM by Sabbin »

I n=just needed a yes/no question.

If the buffer was cleared when the user did an action, or before replanting, a brick did a check to see if it could be placed, then no. Otherwise, yes.

If there were to be a "Redo" addon, (is there?) could It be used to make floating bricks?

Lets say theres a 2 bricks stacked, you Dwand the top brick, and someone else Dwands the bottom, you "redo" and the top is back, and floating.

Would this be possible?

If the Redo button was truly a redo button, the bricks you "Dwanded" would've been respawned when you pressed it...

you can also get someone to build the bottom brick and you build the top brick

where they /clearbricks

or you can try not doing something overly complicated and just deleting the bottom brick.

If you want this flaw to exist:
You're better off just removing the planting errors, however releasing the add-on would likely result in it being crap-on'd.
If you don't want the flaw to exist:
It's not hard to fix.

destiny made a redo mod that I've found works quite well

Floating bricks are not hard to make at all.

1 Person Server: Make 1 brick. Use Mission Editor to move the brick up. Floating brick.

2 People (or more) (W/ Admin): Person 1 makes makes a brick. Person 2 makes a brick on top of Person 1's. Person 2/1 clears Person 1's brick.

2 People (or more) (W/o Admin): Person 1 makes a brick. Person 2 makes a brick on top of Person 1's. Person 1 presses Ctrl-Z. (Not sure if this one works though) Last one doesn't.
« Last Edit: July 10, 2010, 01:53:32 AM by TheKhoz »

2 People (or more) (W/o Admin): Person 1 makes a brick. Person 2 makes a brick on top of Person 1's. Person 1 presses Ctrl-Z. (Not sure if this one works though)
Build trust = "xxx does not trust you enough to do that."
Full trust = Kills bricks over it.

Why can't you guys just like the non hacky way by just non rendering the bottom brick?

Build trust = "xxx does not trust you enough to do that."
Full trust = Kills bricks over it.
Mk, thought so.

that would be good add on or default