carenalgas / popochiu

Godot plugin to make point n' click games in a similar way to tools like Adventure Game Studio and Power Quest.
MIT License
154 stars 15 forks source link

Save and Load game bug #219

Closed mapedorr closed 2 months ago

mapedorr commented 2 months ago

Bug description

Based on a message by @anthonyirwin82 in Discord's 🐞 | bugs channel.

https://github.com/carenalgas/popochiu/assets/4536477/43c65be9-c91c-49fd-bab3-7ee9b316bc88

Video provided by Anthony.

Steps to reproduce

  1. Make the character say something when the room is visited for the first time.
  2. Save the game.
  3. Load the game.
  4. The character will say the lines despite the game was saved after it says them (after the room was already visited).

Expected vs observed behavior

The visited_first_time state property should be stored when the game is saved.

Environment information (please complete):

anthonyirwin82 commented 2 months ago

I think the problem is that the state.visited_first_time is still true and has not been set to false by popochiu. If you manually change the value it does save it and the cutscene does not play.

mapedorr commented 2 months ago

Thanks for the clarification. I'll work on this issue tomorrow.