Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Bug: Objects disappearing after rollback

A topic by Phantosler created Feb 25, 2020 Views: 104 Replies: 3
Viewing posts 1 to 3
Submitted

So I'm having a bug where if the player dies and has to rollback the first listed object in the room vanishes, but still works as if still present. it does return after the player exits and reenters the room. 

Is there a way to fix this issue? 

Host (2 edits)

Is the first listed object a treasure? If so, I think I noticed this bug and am currently looking at it. After I fix the bug, you will need to recompile with the new version of Adventuron.

UPDATE: I have just issued an update to adventuron (beta 27c, and this issue should now be resolved). To try out the fix, press CONTROL + F5 to force a refresh of Adventuron Classroom editor.

Please confirm that this fixes your issue.

Quick way to test the fix, start this game, type LOSE (to end game), then type "YES" at the "ROLLBACK?" questions:


start_at       = my_location
treasure_room  = my_location_2
start_theme    = two
game_settings {
   rollback_enabled = true
} locations {
   my_location   : location "You are in a room." ;
   my_location_2 : location "You are in a room." ;
} connections {
   from, direction, to = [
      my_location, east, my_location_2, 
   ]
} objects {
   ring : object "a diamond ring" start_at = "my_location" treasure = "true" ;
   shrimp : object "a shrimp" start_at = "my_location" ;
} on_command {
   : match "kill _; lose _"  {
      : lose_game;
   }
}
Submitted

Don't forget that you can type L or LOOK to refresh the room description. You don't have to exit the room and come back.

Adventuron has been testing my game and we discovered that rewind/undo worked in the editor, but not in the compiled game. Could this be your issue? If so, I think it is fixed in beta 27b, but I haven't compiled a game with that version yet. Try that, otherwise wait until the next build. Adventuron is normally very quick to fix any bugs that we find and he said he's working on it.

Host

It's a different issue Garry. You are correct that 27b fixed rewind not working on standalone HTML files.

27c (released this very minute) fixes the non printing of treasure formatted text upon rollback OR rewind OR redo.

Chris