I've just created script sheet from my game and found that most of NPC speech lines came up labelled as "Narrator". I assume that's because I mostly use global action lists and when I create them I normally just drag NPC prefab from Hierarchy window into the action list, and not from a prefab folder... (all lines that come from scene action lists are labelled with correct character names). The NPC prefabs all have their constant IDs though (but unlike my player, they don't have "Retain in prefab" box checked - could that be a problem?)
Cutting the script up for actors now will become incredibly hard... because everyone's a Narrator
Can I still do something to fix that?
Using Unity 2022.3.0 and AC v1.78.4
Please help!
-Rem
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
If you aren't checking "Retain in prefab?" on your NPCs, how are the lines being linked to the NPCs in the scene at runtime?
Is it not possible to update your AC? I suspect this is an issue that's since been fixed, as I'm not able to recreate this in the current release.
You can try it with an NPC prefab that has a Constant ID value. While it'd be a slog, you could also attach descriptions to your lines in the Speech Manager and then include them in the script sheet.
"If you aren't checking "Retain in prefab?" on your NPCs, how are the lines being linked to the NPCs in the scene at runtime?"
Somehow, it's always worked both in editor and in build... All characters spoke fine. The problem only occured when creating script sheet and... at this stage, 3 years and 8000 lines later, and the publisher waiting for the VO, this is... kinda serious.
I checked "Retain in prefab?" on one of the NPCs. Then I reset and gathered all text again and created a new script sheet - nothing's changed, that NPC's name still comes up as Narrator and not his real name...
"Is it not possible to update your AC? I suspect this is an issue that's since been fixed, as I'm not able to recreate this in the current release."
I'm really scared of updating AC at this point... I'd added some custom actions, some little scripts here and there (like a camera culling script etc) and I'm just worried they'll get wiped away? Is there a way to update just this one specific thing to fix this particular issue without risking that everything falls apart?...
Firstly it's best to update and just see if it's working on your end. Use a duplicate / take backups / use version control to ensure such testing is only temporary.
The main files involved in this operation are ActionSpeech and SpeechManager. I wouldn't expect they can both just be copied over from the latest release without issue, but if you create proper backups it's easy to test.
I updated my AC to the latest version. That did not fix the issue, sadly... but it didn't break the game either.
I ended up adding a tool that replaced all scene instances of prefabs with Project versions of prefabs in all speech actions in global actionlists and that's finally fixed it - I gathered text again and succesfully created a script sheet that has all the character names in it... but it was a hell of a stressful fight and a lesson for the future for sure.
So, kids - make sure you always drag the prefabs from Project window, not the scene, into the Speaker box or it will bite you in the a** later!