Forum rules - please read before posting.

Trouble gathering/Importing text

Hi,

When gathering text it looks like AC goes through all the scenes first once, and then on the second time it gets stuck on a certain scene and the program hangs. Please see below imgur for the error message.

After a few attempts it did manage to gather all text (still with error messages) but then when trying to import back, I first get error messages when opening the file in Import wizard (see below), and then when clicking "Apply", AC goes through the scenes and then gets stuck on the same scene again.

Where should I look to see what can be strange with that scene? There are 5 Local string variables in the scene. There are no local action lists in the scene although there is a trigger that runs an action list asset. (similar trigger is also in other scenes).

https://imgur.com/a/3N9Plqf

AC 1.81.7, Unity 2022.3.3 5f1

// Magnus

Comments

  • I'll take a look.

  • Can you open up AC's SpeechManager script and let me know what's on your copy of line 2978?

  • Here it is:

    #if UNITY_2019_4_OR_NEWER
                    if (settingsManager.events != null)
                    {
                        foreach (EventBase _event in settingsManager.events)
                        {
                            SmartAddAsset (_event.ActionListAsset);
                        }
                    }
    #endif
    

    2978 is the "SmartAddAsset..."

    I also have this error whenever opening the project:
    https://imgur.com/a/YtIjHRg
    I've tried deleting and re-adding all global events, but the error is still there, even with all events deleted.

  • You can fix the error message by adding this just above:

    if (_event == null) continue;
    

    That won't resolve the underlying issue with events, however. Do all the events you've defined run correctly?

  • Thanks, yes, now now Gather Text works flawlessly. For the events, all events work fine and I haven't encountered any errors or strange things...

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.