Forum rules - please read before posting.

GatherText Bug at SetOrderIDs

Hi Chris,
we have a problem with executing the GatherText function in the speechmanager. We always get a NullReferenceException in the SpeechManager SetOrderIDs function when we run it. I have put a debug.log in there to see at which action he is failing, but if i remove the action, where we get stuck, it just gets stuck at another action. We have added the scenes to Scenes in Build.
Here is the stacktrace:
https://imgur.com/eTc0VfZ

Sincerely
Max

Comments

  • This looks to be a duplicate of this issue.

    I will be addressing this in the next update - but that thread offers a temporary solution in the meantime.

  • Thanks for checking, couldnt find the issue befor.
    I actually tried that fix befor to see what will happen, unfortunately we get stuck at a different function. is it possible, that the whole actionlist is corrupted and needs to be replaced? if so, how could we prevent this in the future?

    Here is my stacktrace:
    https://imgur.com/SBH5g5Q

    Here is a sample of the code at the SetOrderIDs function in the SpeechManager.cs:
    https://imgur.com/0ifMVx2

    Hope that helps a bit more.

    Sincerely
    Max

  • The ActionList shouldn't require replacing, don't worry. The issue seems to be that there's a "null" Action somewhere, but running / editing ActionLists should ignore this.

    You'll need to insert:

    if (_action == null) return;
    

    in a couple more places in this function. In your screenshot, this would be between 2944 and 2945. Sorry for the hassle - again, it'll be addressed in the next release.

  • Thanks Chris, with this insert and the one from the other thread combined, i was able to fix it

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.