Forum rules - please read before posting.

Gathering Text Error

Hey!

Using the latest Adventure creator, using
Unity Version: 2019.2.11f1

Currently when I try to gather text, this error comes up

https://i.imgur.com/5S6NYZQ.png

It then begins to hang indefinitely, and seems not to collect all the text.

Have you seen this before?

Comments

  • No, but the error suggests this is caused by a corrupted ActionList somehow.

    This won't fix the ActionList itself (which may still work regardless), but you can get rid of the error by opening SpeechManager.cs, and replacing the instances of:

    foreach (Action action in actions)
    {
    

    On lines 2924, 2940, and 2976, with:

    foreach (Action action in actions)
    {
        if (action == null) continue;
    
  • is there a way I can track down the potential corrupted action list?

  • Tried to issue the fix, but I may be doing it incorrectly. Initially I tried just adding the extra line on top of what was there already, then I tried replacing it like this

    https://i.imgur.com/tRgQSZS.png

    No luck unfortunately, still comes out like this

    https://i.imgur.com/1UcWZ6j.png

  • is there a way I can track down the potential corrupted action list?

    I'll have a think. Perhaps they can be listed during the gathering process.

    Initially I tried just adding the extra line on top of what was there already

    It's a replacement - not an addition. Don't add an extra closing brace beneath, you need to swap those two lines (the foreach + the open brace) with three (foreach, open brace, if).

    If you still have trouble, let me know if you want to be involved in beta-testing, as this should be addressed in the next release.

  • So I believe I've done what you've said
    https://i.imgur.com/zyTm1WL.png
    However I am still getting the error, am I missing something?

    on line 2940 it uses _action instead of action, so I Just adjusted it to that.

    Yes I'd love to be a part of the beta if possible, or at least get this temp fix working ASAP, as I'm getting voice acting and editing one at the moment.

    Thank you!

  • That looks correct, but are you sure the error is the same? The line endings may have changed even if the message itself is similar.

    What is the error now, and what is on the line that it's referring to?

  • Look for the following around line 2990:

    Action _action = actionList[i];
    

    Insert the following beneath it:

    if (_action == null) return;
    
  • Thanks Chris! that worked a treat

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.