Saving tape with timelimit and loading without

Found a bug in R'n'D? Report it here!

Moderators: Flumminator, Zomis

Post Reply
Zomis
Posts: 1502
Joined: Mon Jun 21, 2004 1:27 pm
Location: Sweden
Contact:

Saving tape with timelimit and loading without

Post by Zomis »

When you create a level with the default time limit of 100 seconds, save the level and then play the level for something like 95 seconds. Save a tape/instant-snapshot. Change the time limit for the level to 0 seconds (no time limit) and save the level. Then you load the tape/instant-snapshot.

You will see that when the timer reaches 100 seconds, you will explode. But you shouldn't explode since you removed the timelimit, right?

When playing the tape, pausing and starting to record again it works fine, as expected. So this is related to instant snapshots.
Daniel H.
Posts: 535
Joined: Sun Apr 02, 2006 7:13 pm
Location: USA

Post by Daniel H. »

If I understand correctly, an instant snapshot basically includes a copy of the level and its properties as they were when the snapshot was taken. Any modifications to the level will not affect past snapshots.

So perhaps instant snapshots should be invalidated when a level is modified? :?
The H. World levelset can be downloaded from http://www.bd-fans.com/RnD.html -- search The H. World on that page.
User avatar
Holger
Site Admin
Posts: 4073
Joined: Fri Jun 18, 2004 4:13 pm
Location: Germany
Contact:

Post by Holger »

The behaviour Zomis described is indeed a bug, but it's also right that a game snapshot could/should be invalidated under certain conditions after it was changed. In some cases, however, it may be useful to not invalidate the snapshot even though the level was changed (if the change does not affect the game play recorded by the snaphot), but one should be aware of this (and possibly expect arbitrary strange results ;-) ).

I'll have a look at the case Zomis described, and try to fix it
.
Daniel H.
Posts: 535
Joined: Sun Apr 02, 2006 7:13 pm
Location: USA

Post by Daniel H. »

I agree that it may sometimes be useful (and confusing) not to invalidate the snapshot in some cases.

After this particular time limit case is fixed, what will happen if:
  1. a snapshot is recorded of a level that has no time limit;
  2. a time limit is later added to the level;
  3. and the snapshot is reloaded past the end of the new time limit?
The H. World levelset can be downloaded from http://www.bd-fans.com/RnD.html -- search The H. World on that page.
Post Reply