Forum rules - please read before posting.

ActionList not replaying properly

I have an action list that doesn't seem to replay properly after restarting/resetting data from the End Game action.

I have a Level Select scene that when choosing level 1, it changes to a Prologue scene. This scene runs a script playing a few dialogue:play speech actions and camera fades/pans, fade in sprites then switches to level 1. On first run through it works as designed.

If I quit the game (which i have setup to return me to the level select, and repeat the process the Prologue scene no longer plays the dialogue:play speech actions and sprites that should fade in at a certain point are loaded fully visible.

I've tried using the End Game - Restart Game/Reset Data/Reset Scene in various ways. All of which seem to work for other aspects of the game (items, inventory, conversations, variables etc) But this one issue in particular seems to be stubborn.

Apologies for the long post, been trying to fix this for most of the day now and my brain is fried.

Unity 2022.3.20 with AC 1.80.1

Comments

  • Though the "Restart Game" command ought to clear the scene's data, the Prologue scene may not need to hold any Remember components that store data if it's only used for a pre-set animation. If there's a Remember Visibility on your sprite, for example, it sounds like it can be removed.

    Is there any logic being run that would cause the ActionList to behave differently upon revisiting it? Depending on a global variable value, for example?

    Does your Level Select scene open the Prologue scene with a regular "Scene: Switch" Action?

    Try adding ActionList: Comment Actions to the tops of the lists involved - text you type in there will appear in the Console when run, which can help to determine which of the lists are being triggered.

  • Hi Chris,

    Just checked, there are no remember components on anything in the scene. No global or local variables that should cause any issues. The scene is launched via a Unity UI button with a script using " UnityEngine.SceneManagement.SceneManager.LoadScene("Prologue");"

    I just tried changing the the script to call an Action List instead using Scene:Switch but the result is the same.

    Also added the comment to the action list in the prologue, it too is working. I also viewed the sprite in the scene view and it actually is fading in but it does so before the camera reaches it so it just appeared to be fully faded in.

    It feels like it is something to do with the dialogue:play speech actions, these action dont highlight in the action list view and because they dont play the rest of the prologue timings are messed up (fade, camera changes etc). They have associated audio files (Player106,107 etc) Could these be getting stuck somewhere?

    Thanks

  • If they played correctly the first time, I can't see why they'd have trouble a second - unless their Speech Manager entries have Only say once? checked. Do any related messages appear in the Console?

    As an aside: if you're looking to create a cutscene where the camera / speech / fade etc is all to be timed together, you may be better off using a Timeline. AC has its own custom tracks for handling these aspects - a video on this can be found here.

  • Ok thanks for that pointer, the speech manager entries DID have Only Say Once checked. I turned those off and now the first dialogue plays but it doesn't progress through the rest of the actions (it just holds on that action) . This is also for the initial run of the Prologue scene, but at least im getting somewhere with it playing after a restart now.

    No messages showing in the console related to this.

    I probably should have done all this through timeline but as it was all working as expected I never thought to try another method. This is pretty much the "dumbest" scene in the game with just basic transitions and dialogue.

  • I changed the action list from When Running: "Pause Gameplay" to "Run in Background" and coupled with the Only say Once option in the speech manager it is now working.

    Thanks for pointing me in the right direction!

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.