Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

0 votes
Hi all

I have a serious problem with my wwise intergration in unity.

I intergrated Wwise into unity, and everything worked. I then recieved a push on GIT and since it stopped working (we checked GIT and nothing in there should have anything to do with it)

When I play a sound in the Editor on the AkEvent its telling me "Event ID not found" as if were missing the appropiate soundbank

When I play the game is "missing game obejct ID" and when I stop is writes "Sound engine initialized succesfully" everytime, don't know if it suppose to do that?

Unity also unchecks the AkGameObj by it self when I play sometimes, and then I can't re-enable it, also resetting the AkEvent and AkBank so that it doesn't have a event/bank assaigned to it anymore.

I have tried different soundbanks/events, re-intergrated Wwise into unity, and even made a new Wwise project and nothings works.

Any help is much appreciated

Thanks
closed with the note: All I can say is that I am almost 100% sure that the problem is somewhere in unity's end and not Wwises.
in General Discussion by Lasse Skak E. (110 points)
closed by Mads Maretty S. (Audiokinetic)
I saw the comments mentioning that turning off "Skip Reload Domain" fixes this issue. But maybe you don't need to disable that option.

You can try the fixes I posted on this other question, to see if they fix your issue while still retaining the option to work with disabled Domain Reload for faster iteration:

https://www.audiokinetic.com/qa/9567/support-for-unitys-enter-play-mode-settings

1 Answer

0 votes
Hey Lasse,

Did you try deleting your SoundBanks completely (along with the Wwise IDs) and then re-generate?
If that doesn't help, try to copy the event ID and in the WwiseIDs file, search and see if you can find it.

Let me know how it goes.
by Mads Maretty S. (Audiokinetic) (39.8k points)
Yes I tried erasing the soundbanks and building new one, I also tried integrating a completely new Wwise project with new soundbanks, and received the same errors, so I am thinking the problem must be in the unity project, and/or its connection to Wwise in gerneral.

Not sure what the WwiseId file is, is it in the Wwise project folder?

Thanks
Most often, you'll find the Wwise_Ids.h file in your Assets > Streaming Assets > Audio > GeneratedSoundBanks folder. That file is generated by Wwise and includes all Event IDs for Events, RTPC, and such. If you get a Event ID not found error, it might be because Wwise didn't update that file. You can make sure that file is generated in your SoundBank Settings > Generate header file.
Ah okay. Found it :)

The IDs in the Wwise events matches completely with IDs in the Wwise.ID.h (except they end with an "U" in script but I suppose that is suppose to be like that)
Thanks
Yes, it's suppose to be like that. If this problem persists, maybe you could also try deleting the Library folder, the AkWwiseProjectData.asset file or check your Wwise Editor Settings in Unity whether paths are OK, etc.
Hmm tried erasing both, and the AkWwisedata.asset wasn't a functional asset before regenerating it, however, it still doesn't work.

I tried just making an empty scene without a sound bank, or any events just the listener, and I get the error:
"Wwise: Unknown listener game object ID. Make sure the game object is registered before using it and do not use it once it was unregistered. (GameObject: Main Camera (UnityEngine.GameObject)) (Instance ID: 18446744073709516550)"
So it can't even connect to the listener it seems.
Don't know if this rings any bells, otherWwise thanks for taking your time to help me!
Happy to help! That sounds really strange. What Wwise version + Unity version are you on? What error message do you get when you profile the empty scene (with API profiling enabled)?

Wwise: Unknown listener game object ID - generally just means that the listener game object cannot be registered. So typically, I'd say check if the listener is on the camera, but then again seems like you did that.
I'm on unity 2019.4.10f1 and Wwise 2019.2.5.7349.
I get no errors in a completely blank scene, but yes I checked the camera for listener and even added a manuel script with registergameobject on start/awake to no help.

In the end we made a new unity and Wwise project and copied the assets and so on over, and finally it works, but I don't really consider that a fix, but we had to move on.

Again, I appreciate all of your help (and the Wwise 301 videos too. (-8 ), and sorry that I can't provide a definit solution for anyone else who encounters this problem, though I think its related to our sharing of files on GIT, and therefore probably an unique error.
All I can say is that I am almost 100% sure that the problem is somewhere in unity's end and not Wwises.
See you out there!
Alright. Good to hear. Thanks for letting us know.
Update here............................
Apparently our gamedesigner applied a setting in unity under project settings called "Enter Play Mode Options (Experimental)", and it seems that that causes the error. It is made to make the game start faster, but it does so that Wwise don't have time to load the soundbank before starting?? or something like that.
Anyway, NOW that we were doing something else he remembered checking that box and the causes the error again in the new project (And unchecking it fixes it, luckily), so problem solved.
2 full work days for unchecking a box, I wish it was a paid project haha.
Thanks again
I just fixed it this way too.  Turned off the "Enter Playmode Settings" -> Skip "Reload Domain" option, in Unity -> Project Settings -> Editor, and everything worked.
I wanted to say a big thank you for taking the time to update us on this matter. Turns out I had the same option turned on. I could have wasted days trying to find the solution, so really thank you.
...