[Done for V0.42] RTC Recorder

Messages are moved here (should anyone ever want to see them again) once they are no longer applicable to the current version (e.g. suggestions that have been implemented or bugs that have been fixed).

Moderator: George Gilbert

Forum rules
Please read the Forum rules and policies before posting.
Post Reply
User avatar
Paul Stevens
CSBwin Guru
Posts: 4318
Joined: Sun Apr 08, 2001 6:00 pm
Location: Madison, Wisconsin, USA

[Done for V0.42] RTC Recorder

Post by Paul Stevens »

If only George would break down and allow
recordings to be created and played back.
The things he has done already are much more difficult.
And, besides allowing people to show off their dungeoning
skills, recordings can be such wonderful debug
aids.
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

Oh, go on then - if you insist :wink:

Done for V0.42
User avatar
beowuuf
Archmastiff
Posts: 20687
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Post by beowuuf »

Heh, insane I tells you, insane! So, in CSBwin it basically recorded every keystroke and action and basically auto-played the game - how does it work in RTC?
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

Pretty much the same I guess...

...it takes a copy of the internal state at the start of the recording, then records every mouse movement, click and key press along with the time that they were made. At time of playback, it just restores the state and then at the appropriate times, pumps in the mouse / key data. The existing engine takes care of everything else.
User avatar
Lee
Artisan
Posts: 182
Joined: Wed Mar 16, 2005 8:09 pm
Location: Montréal
Contact:

Post by Lee »

Ha! :lol:

Top man, George.
User avatar
THOM
Artisan
Posts: 198
Joined: Sat Feb 28, 2004 9:22 pm
Location: Cologne, Germany
Contact:

Post by THOM »

does that mean Monsters act autonomous again - so that they could be on a different tile because of a different decision of movement?
User avatar
Gambit37
Should eat more pies
Posts: 13715
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Post by Gambit37 »

Flippin 'eck -- RTC movies! Sweeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeet. :) :) :)
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

thom wrote:does that mean Monsters act autonomous again - so that they could be on a different tile because of a different decision of movement?
I can see where you're coming from on this one. The decisions made by monsters are done apparantly at random (although weighted by the environment), which means that each time you play the game its different. Therefore, if you're only recording keystrokes etc, how can the game be the same when played back...

At this point, we could have an interesting philosophical debate here about what "random" means. However, the upshot would be that *no* computer game has truly autonomous features in it - everything is deterministic - by playing exactly the same set of movements in at exactly the same time, you'll get exactly the same result. Which is what happens with the playback in RTC (and presumably CSBWin); you'll get exactly the same decisions made by all the monsters.

In fact, if you played the game ordinarily twice, it's possible to get exactly the same behaviour by the monsters. Of course you'd have to put every single key stroke / mouse movement in at exactly the same time (down to the nearest millisecond) as the previous time; but in principle it would work.

Of course, "random" is very different from "unpredictable by a player"; and it's that what really counts.


************

BTW - generating *truly* random decisions is big business. You can buy CDs which only contain random numbers which you can use and they cost a fortune (thousands of dollars each). As mentioned above though, virtually every case you can think of requiring randomness, with the exception of extremely high level cryptography, merely "unpredictable" (or even "unpredictable in real time" for games) will do.
User avatar
Paul Stevens
CSBwin Guru
Posts: 4318
Joined: Sun Apr 08, 2001 6:00 pm
Location: Madison, Wisconsin, USA

Post by Paul Stevens »

Now if George would only break down and
compile a version of RTC for the PocketPC,
the Nokia 770, Linux, and the Macintosh.
Then I could retire.
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

Don't push your luck :wink:
User avatar
Lee
Artisan
Posts: 182
Joined: Wed Mar 16, 2005 8:09 pm
Location: Montréal
Contact:

Post by Lee »

:lol:
User avatar
Sophia
Concise and Honest
Posts: 4240
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Post by Sophia »

George Gilbert wrote:<lots of random stuff about randomness>
So, basically, you store the random seed that you used in the recording so any random numbers generated come out the same each time?
User avatar
Daecon
Expert
Posts: 329
Joined: Tue May 16, 2006 1:56 pm
Location: Upper Hutt, New Zealand

Post by Daecon »

Basic determinism.

If you flip a coin at x degrees at y distance above the ground with z force, it will always land the same way up every time, similarly, if you do action x at y time then the monster will do action z every time...

At least, that's the way I understand it. :)
Child of Darkness,
Child of Light,
Cast your Influence,
Cast your Might!
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

Sophia wrote:
George Gilbert wrote:<lots of random stuff about randomness>
So, basically, you store the random seed that you used in the recording so any random numbers generated come out the same each time?
Yep - I was trying to explain without needing to know about seeds!
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

ZoKathRa wrote:Basic determinism.

If you flip a coin at x degrees at y distance above the ground with z force, it will always land the same way up every time, similarly, if you do action x at y time then the monster will do action z every time...

At least, that's the way I understand it. :)
Yep, although in the "real" example, you'd need alot more than just x, y and z. In particular you'd also need to reset the position, velocity, weight etc of every single molecule (and atomic / sub-atomic particle) within a radius of about 600,000 km of your coin. Even getting a single one out of place may result in the coin landing the other way up.

But in principle, yes :wink:

On a less flippant note (pun intended), a similar principle applies to the dungeon. Whether the party decides to throw an item or not, may change which direction a monster will turn many levels below (i.e a seemingly insignificant change in one area can influence larger scale events elsewhere). Somewhat amusingly, in mathematics such a thing is known as Chaos theory...oh the irony :D
Post Reply