Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Audio autoread bug

A topic by Scarlet String Studios created Dec 03, 2020 Views: 150 Replies: 8
Viewing posts 1 to 9

Hey, just reporting something that I think is a bug. It seems that setting up an STM component with an AudioSource to only works when autoRead is true. If autoRead is false and you force the text to read (e.g. by calling Read(0f)), the audio will play once at the end of the line, but it won't play continuously while the line is reading. I tested it on two unrelated objects so I think the bug will be reproducible. This is ver 1.11.

Developer

Hey!


Within the IEnumerator "ReadOutText", there's n if statement that reads "if(startTime.Equals(0f))" please try commenting out this if statement, but leaving everything inside it intact. It appears to fix the issue, but I'm having trouble thinking about if this should cause any additional issues. Everything appears to work fine when Read() and Append() is called after doing this fix but I'm not 100% certain yet. Thank you so much for catching this!

Hmm. It should look like this, right?

That still doesn't work for me. Same behavior as before.

Developer

That looks correct...  I'm going to be taking another look into this, I'm sure it's just gotta be some variable I'm forgetting to check somewhere... sorry for the inconvenience, and thank you for your patience!

Developer

Just an update, still working on this but it might take a bit more time than usual.

If this is an emergency to get a project working ASAP, you can use Rebuild(true) to force STM to start reading for the time being!

Oh! Okay. Rebuild(true) is working, and that's good enough for my purposes right now. Of course, still let me know when the bug is fixed, but I should be fine for now.

Developer

Okay, i believe I fixed this and a related bug that cropped up to (This must have happened when I was adding RTL support, a specific variable related to that wasn't resetting itself in a certain spot, and I was checking for events in a dumb way) I'm going to email you a new build in a moment to test! Thank you so much for your patience.

Perfect — all working with Read() instead of Rebuild() now. Thanks for the fix!

Developer

Awesome, I'll make sure to push this update soon!