Forum rules - please read before posting.

"Play Music" sometimes doesn't restart after Load

Howdy, like the title says, across 7 chapters and 100 scenes I always start music on the first scene using a cutscene, and i used the sound:play music action, with "Loop" and "Resume if played before" checked. The baffling thing that I just can't figure out is only on some scenes, when you save the game, quit and load, it loads with no music (if you walk back to the first scene of the chapter, it will start then). I have been pulling my hair out, and I really cannot find a reason, or even something that is common on every scene this happens. Any suggestions or help would be great because I feel like I'm losing my mind.

Comments

  • To be clear: you have 7 instances of the Sound: Play music Action - each in the first scene of each chapter?

    What are your AC/Unity versions, and are there any other instances of this Action that may be causing it to stop? You can use the Actions Manager to search for all instances of a given Action.

    If not, we'll need to see if it's a case of the music state not being recorded in save-game files, or if this state isn't being restored when saves are loaded.

    To do this, open up the Save-game Manager (click Manage save-game files in the Settings Manager), select the problematic save file, expand the Data tab and copy/paste the "Main" data section here as Json using the button underneath.

  • Hi Chris,

    Thanks for the response! Correct, I play a new song in each chapter, and sometimes have a second one play just across 1 or 2 other scenes within it.

    AC: v1.70.4
    Unity: 2019.4.39f1
    ( I know both those versions are super old, but I'm launching my game soon and don't want to risk updating anything lol)
    I checked the instances of the action and they all seem fine.

    Had a hard time doing the Json thing, or even selecting the the data to copy, so I attached screenshots below. Let me know if you can figure anything out! Should I be adding "on load" to it as well?

    https://imgur.com/uIhY4cf

    https://imgur.com/23voy4q

    https://imgur.com/agSPUFC

    Thanks!

  • The data suggests that the Music state isn't being recorded - only what was previously playing.

    I can't recreate the issue, however - neither in v1.70.4 nor in the latest release.

    You say this only occurs in certain scenes - is there a pattern to which scenes, and does it work if you immediately load after saving (as opposed to quitting the game first)?

  • Hey Chris, thanks for the help. I ended up adding an "on load" to every scene since I couldn't figure out how to fix this issue. Seems to work hah.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.