Announcement: Be excellent to each other.


Caravel Forum : DROD Boards : Bugs : Unlimited Undo (With Room Lock)
New Topic New Poll Post Reply
Poster Message
bomber50
Level: Smitemaster
Rank Points: 872
Registered: 09-18-2006
IP: Logged
icon Unlimited Undo (+1)  
1.Create a room with a tar mother that grows. (You don't have to, but it helps you see that the bug is real).

2. Put a master wall on the outside of the room.

3. Make a entrance on the outside of the room without a master wall.

4. Create a staircase.

5. Go beside either the staircase, master wall, or on the entrance.

6. Turn Room Lock on.

7. Wait 200 turns or so. (To help explain the point).

8. Now,make the Room Lock message appear (or a beep, for the master wall).

9. Then Undo.

10. Repeat 8+9. If you do it enough, you can go 200 turns back.

And by the way, I'm using version 3.1.0.54 .






[Last edited by bomber50 at 09-30-2007 07:05 PM]
09-30-2007 at 07:02 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
Kwakstur
Level: Smiter
Avatar
Rank Points: 385
Registered: 05-05-2006
IP: Logged
icon Re: Unlimited Undo (0)  
bomber50 wrote:
(or a beep, for the master wall)
I think I see two problems here.

____________________________
Also known as ExpHP everywhere else.
09-30-2007 at 07:06 PM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts Quote Reply
Jason
Level: Smitemaster
Rank Points: 1076
Registered: 05-05-2006
IP: Logged
icon Re: Unlimited Undo (0)  
Awesome.

____________________________
Play my holds?
09-30-2007 at 07:18 PM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
Ezlo
Level: Smitemaster
Avatar
Rank Points: 1214
Registered: 01-08-2006
IP: Logged
icon Re: Unlimited Undo (0)  
Whoa... this is serious.
09-30-2007 at 07:33 PM
View Profile Send Private Message to User Send Email to User Show all user's posts This architect's holds Quote Reply
bomber50
Level: Smitemaster
Rank Points: 872
Registered: 09-18-2006
IP: Logged
icon Re: Unlimited Undo (0)  
For the master wall, as I have just discovered, room lock isn't even needed.
09-30-2007 at 08:17 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
Briareos
Level: Smitemaster
Avatar
Rank Points: 3516
Registered: 08-07-2005
IP: Logged
icon Re: Unlimited Undo (0)  
Kwakstur wrote:
bomber50 wrote:
(or a beep, for the master wall)
I think I see two problems here.
I don't - I get the same chime as with room lock and a message that bumping a closed master wall is not allowed.

np: Burnt Friedman - Healer (ft. Theo Altenberg) (First Night Forever)

____________________________
"I'm not anti-anything, I'm anti-everything, it fits better." - Sole
R.I.P. Robert Feldhoff (1962-2009) :(
09-30-2007 at 09:27 PM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts Quote Reply
Tuttle
Level: Smitemaster
Avatar
Rank Points: 1545
Registered: 02-22-2003
IP: Logged
icon Re: Unlimited Undo (0)  
Ezlo wrote:
Whoa... this is serious.
I'm not sure it's all that serious. If I understand the repro steps correctly, you can only undo while you're standing next to a room exit or master wall. With most rooms the interesting stuff happens away from the edges, so it's not going to completely change the high score table or anything.
10-01-2007 at 01:28 AM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores Quote Reply
coppro
Level: Smitemaster
Rank Points: 1308
Registered: 11-24-2005
IP: Logged
icon Re: Unlimited Undo (0)  
It's not really serious. You can UU along a room edge, master wall, or a staircase, but that's it. Nothing big.

[Last edited by coppro at 10-01-2007 01:36 AM]
10-01-2007 at 01:36 AM
View Profile Show all user's posts Quote Reply
Ezlo
Level: Smitemaster
Avatar
Rank Points: 1214
Registered: 01-08-2006
IP: Logged
icon Re: Unlimited Undo (0)  
Oh, I though you just had to start near and then you could move further away. Didn't test it out myself. :blush
10-01-2007 at 01:46 AM
View Profile Send Private Message to User Send Email to User Show all user's posts This architect's holds Quote Reply
Jatopian
Level: Smitemaster
Rank Points: 1842
Registered: 07-31-2005
IP: Logged
icon Re: Unlimited Undo (0)  
In related news, all larrymurk holds will now feature staircases to nowhere instead of walls and obstacles.

____________________________
DROD has some really great music.
Make your pressure plates 3.0 style!
DROD architecture idea generator
10-01-2007 at 03:36 AM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
Sillyman
Level: Smiter
Avatar
Rank Points: 339
Registered: 09-08-2006
IP: Logged
icon Re: Unlimited Undo (0)  
Heh. Let me guess, for Unlimited Undo? But what happens if you walk into a staircase? Do you have to start the room over? :P

____________________________
Who, me?
FNORD
10-01-2007 at 03:38 AM
View Profile Send Private Message to User Show all user's posts Quote Reply
Jatopian
Level: Smitemaster
Rank Points: 1842
Registered: 07-31-2005
IP: Logged
icon Re: Unlimited Undo (0)  
Sillyman wrote:
Heh. Let me guess, for Unlimited Undo? But what happens if you walk into a staircase? Do you have to start the room over? :P
That's what room lock does: keeps one from unintentionally exiting the room via edges or stairs.

____________________________
DROD has some really great music.
Make your pressure plates 3.0 style!
DROD architecture idea generator
10-01-2007 at 03:43 AM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
Sillyman
Level: Smiter
Avatar
Rank Points: 339
Registered: 09-08-2006
IP: Logged
icon Re: Unlimited Undo (0)  
Yeah, I know that, but what if someone doesn't turn room lock on, then walks down the stairs? Where do the stairs take them THEN?

____________________________
Who, me?
FNORD
10-01-2007 at 03:45 AM
View Profile Send Private Message to User Show all user's posts Quote Reply
Jatopian
Level: Smitemaster
Rank Points: 1842
Registered: 07-31-2005
IP: Logged
icon Re: Unlimited Undo (0)  
Sillyman wrote:
Yeah, I know that, but what if someone doesn't turn room lock on, then walks down the stairs? Where do the stairs take them THEN?
Death. Or someplace else the player wouldn't want to go, like an inescapable empty room.

____________________________
DROD has some really great music.
Make your pressure plates 3.0 style!
DROD architecture idea generator
10-01-2007 at 04:04 AM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
Chaco
Level: Smitemaster
Rank Points: 3623
Registered: 10-06-2005
IP: Logged
icon Re: Unlimited Undo (0)  
Or how about something less bad, say, the start of the room?

In any case, my policy is that whenever I do not want the player to enter a region of space, I will probably not use a staircase to do this.

I am also not in favor of kludging solutions together to give players unlimited undo if the program itself does not support it.

____________________________
Quick links to my stuff (in case you forgot where it was):
Click here to view the secret text

10-01-2007 at 11:43 AM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
Jatopian
Level: Smitemaster
Rank Points: 1842
Registered: 07-31-2005
IP: Logged
icon Re: Unlimited Undo (0)  
Chaco wrote:
I am also not in favor of kludging solutions together to give players unlimited undo if the program itself does not support it.
Remember that time somebody made a joke, and you didn't understand that it was a joke, and then you proceeded to lecture them? That wasn't awesome.

____________________________
DROD has some really great music.
Make your pressure plates 3.0 style!
DROD architecture idea generator
10-02-2007 at 12:25 AM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
mrimer
Level: Legendary Smitemaster
Avatar
Rank Points: 5056
Registered: 02-04-2003
IP: Logged
icon Re: Unlimited Undo (+1)  
It's tricky. On this forum, if you say things like "Raygun!", then you get instant laughter. Or what about...

"Mothingness!"

Yeahhhhhh!

"Potatoes!"

Hoo, hoo, hoo!

"Ketchup!"

Hahahaha.

"Puppies!"

*cheers*

"Unlimited undo!"

...grumble, grumble...

"Bunnies!"

<silence..."Uh, wha?">

Sometimes, some people just can't tell a joke. Can't we all just get along?

____________________________
Gandalf? Yes... That's what they used to call me.
Gandalf the Grey. That was my name.
I am Gandalf the White.
And I come back to you now at the turn of the tide.
10-02-2007 at 12:37 AM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
Jacob
Level: Smitemaster
Rank Points: 3741
Registered: 10-01-2004
IP: Logged
icon Re: Unlimited Undo (0)  
Pah! Couldn't you tell that Chaco was joking on your joke?

Edit: (incidentally, my analysis was: Jatopian was joking, Chaco didn't get it, but Sillyman did. So I made this little joke to give Chaco a get out clause, and to reference the Mighty Boosh)

____________________________
New to DROD? You may want to read this.
My Holds and Levels:
Click here to view the secret text


[Last edited by Jacob at 10-02-2007 11:12 AM]
10-02-2007 at 12:58 AM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
schep
Level: Smitemaster
Avatar
Rank Points: 864
Registered: 03-01-2005
IP: Logged
icon Re: Unlimited Undo (+2)  
I sure couldn't tell who was joking here. I think this post is not a joke.

I changed the code surrounding the main pCurrentGame->ProcessCommand() in CGameScreen::ProcessCommand(int nCommand, bool bMacro=false) to read:
	UINT wPrevTurnNo = this->pCurrentGame->wTurnNo;
	this->pCurrentGame->ProcessCommand(nCommand, this->sCueEvents);

	//Undo handling:
	//1. Don't allow undo during cut scenes.
	//2. If the command didn't increment wTurnNo, it doesn't affect the undo flag.
	if (!this->pCurrentGame->dwCutScene &&
	    this->pCurrentGame->wTurnNo > wPrevTurnNo)
		this->bUndoJustMade = false;
And now I can't use this trick with master walls or staircases, but ordinary one-turn-only Undo seems unaffected. Interactions of Undo and double potions haven't changed either (in those cases, the bUndoJustMade flag is forced to stay false anyway).

[Last edited by schep at 10-02-2007 02:13 AM]
10-02-2007 at 02:07 AM
View Profile Send Private Message to User Send Email to User Show all user's posts This architect's holds Quote Reply
Someone Else
Level: Smitemaster
Avatar
Rank Points: 1299
Registered: 06-14-2005
IP: Logged
icon Re: Unlimited Undo (+2)  
You're kidding, right?
10-02-2007 at 02:17 AM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
mrimer
Level: Legendary Smitemaster
Avatar
Rank Points: 5056
Registered: 02-04-2003
IP: Logged
icon Re: Unlimited Undo (0)  
schep wrote:
I changed the code surrounding the main pCurrentGame->ProcessCommand() in CGameScreen::ProcessCommand(int nCommand, bool bMacro=false) to read:
	UINT wPrevTurnNo = this->pCurrentGame->wTurnNo;
	this->pCurrentGame->ProcessCommand(nCommand, this->sCueEvents);

	//Undo handling:
	//1. Don't allow undo during cut scenes.
	//2. If the command didn't increment wTurnNo, it doesn't affect the undo flag.
	if (!this->pCurrentGame->dwCutScene &&
	    this->pCurrentGame->wTurnNo > wPrevTurnNo)
		this->bUndoJustMade = false;
And now I can't use this trick with master walls or staircases, but ordinary one-turn-only Undo seems unaffected. Interactions of Undo and double potions haven't changed either (in those cases, the bUndoJustMade flag is forced to stay false anyway).
I've pasted this fix into build 55.

____________________________
Gandalf? Yes... That's what they used to call me.
Gandalf the Grey. That was my name.
I am Gandalf the White.
And I come back to you now at the turn of the tide.
11-01-2007 at 07:03 PM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD Boards : Bugs : Unlimited Undo (With Room Lock)
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.