"EventNotFoundException: FMOD Studio event not found 'event....'" in build


(Tobias Nylin) #1

Hi! In the Unity editor the sound works as usual but when I run a build of the game it crashes and I get this error:

“EventNotFoundException: FMOD Studio event not found ‘event…’”

The “StreamingAssets” folder has been copied to the build data folder and the “Master Bank.bank” and “Master Bank.strings.bank” is inside it.

Help with this would be much appreciated!

UPDATE:

The issue seems to be that it doesn’t copy over the newest banks to the build folder. Because the size of the Master Bank in the project is 669 kB but in the build it is only 22 kB.

We’re using Perforce as source control and that seems to be the problem. First I thought it was because the files were not checked out, but now I tried to check them out but it still can’t copy the files to the build folder.

In the editor we’re getting this error:

UnauthorizedAccessException: Access to the path “FMODAssets\Desktop//Master Bank.strings.bank” or “D:/PerforceGameProject3/2018_GP3_Team_1/GameProject3/Assets/StreamingAssets/Master Bank.strings.bank” is denied.


(Cameron Baron) #2

Are the banks, in the source directory, marked as read only?


(Tobias Nylin) #3

No they are not.


(Cameron Baron) #4

Could you try:

  • deleting the StreamingAssets folder competely
  • deleting the Studio build folder completely
  • rebuild Studio
  • see if the integration copies the banks over

If this does not help, can you tell me the integration version you are using?


(Tobias Nylin) #5

Deleting and rebuilding worked, thanks a lot Cameron!


(Cameron Baron) #6

Are the banks being loaded before you are trying to use the event?
Are you getting any other errors or warnings?


(Tobias Nylin) #7

Thanks for the response, see update above.