chrismaltby / gb-studio

A quick and easy to use drag and drop retro game creator for your favourite handheld video game system
https://www.gbstudio.dev
MIT License
8.57k stars 472 forks source link

Game Data Save > On Load event doesn't read Script Calls #1595

Closed joeledge closed 1 month ago

joeledge commented 1 month ago

Describe the bug Putting script into the Game Data Save 'On Load' event works, putting that script into a custom script and calling that script from the Game Data Save 'On Load' won't work. Assume this isn't intended.

To Reproduce Steps to reproduce the behavior:

  1. Game Data Save 'On Load', add in a dialogue box saying 'test'
  2. Save the game, load the game, the dialogue box will appear
  3. Put this dialogue box into a custom script, use the Call Script event to call it in the Game Data Save 'On Load'
  4. the dialogue box wont appear

Expected behavior There are no indications that custom scripts wouldn't work here, so should either work, not allow you to call them or have a note.

Screenshots If applicable, add screenshots to help explain your problem.

Platform (please complete the following information):

joeledge commented 1 month ago

Removing as I think it's probably a different problem