Game build behaving differently to how it runs in the editor

  • #1, by ianfoxSunday, 14. April 2019, 03:01 6 years ago
    I've run into an issue after making a couple of seemingly unconnected edits to my game.
    When returning to certain scenes using a 'resume' button (which loads an autosave) from the main menu the scene's background music no longer starts playing.

    For instance:
    1. Character is on 'Scene A' with 'BG Music 1' playing.
    2. Hit 'Esc' key to show Main Menu - 'Menu Background Music' starts playing 
    3. Hit 'Resume' button on main menu - sent back to 'Scene A', 'Menu Background Music' stops as it should,  but 'BG Music 1' does not start playing, despite all setting showing it should.  Doesn't even start when entering an adjacent room with the same background music.

    What bugs me is that this is only an issue in the built game, not when I'm running it in the editor, so I'm not sure where the problem actually is!

    I'm using and building for Mac so I was not really expecting any differences from editor to build.

    Any guidance appreciated.

    Newbie

    24 Posts


  • #2, by sebastianSunday, 14. April 2019, 13:59 6 years ago
    Has 'Scene A' an own music set or is it just continuing the music from a previous scene.
    If that, it sounds normal that the load game loads action "nothing".

    Thread Captain

    2346 Posts

  • #3, by ianfoxSunday, 14. April 2019, 20:04 6 years ago
    No all the scenes have the actual music file selected for background music. No 'continue music from previous scene' anywhere.

    Newbie

    24 Posts

  • #4, by sebastianSunday, 14. April 2019, 20:08 6 years ago
    No all the scenes have the actual music file selected for background music. No 'continue music from previous scene' anywhere.

    was the save created previously where these settings were different?
    Always test with recent save files, as things can break when loading a file 

    Thread Captain

    2346 Posts

  • #5, by ianfoxSunday, 14. April 2019, 22:17 6 years ago
    Thanks Sebastian,

    I went back in and deleted all existing saves and autosaves which seems to have fixed the issue.  (:

    Newbie

    24 Posts