I can build and debug my game without any problem, but when I tried to create bundle for any platform, with Editor 2 or BOB.jar, there is an error as following…
Do you have any .ogg files in your project? If so, where? I took a look at the code and the error is generated when the build pipeline tries to make a lookup of compiled file extension (ie *.collectionc, *.scriptc etc) and doesn’t find a mapping of it. Could it be that a .ogg file has ended up inside the build folder somehow?
@britzl Yes, I have a background music file lobby_bgm.ogg in my project. It can be played correctly when I run or debug my game with Editor 2, but once I tried to bundle the game for any platform, this error message occurs and the bundle process failed.
My bad… I added this sound component by “Add component file” directly. After added it with “Add component->Sound”, the bundle process works smoothly. Thanks for the kindly help.
Just had this issue as well, with the same resolution. Not a showstopper but it did mean having to create ~20 sound components that weren’t really necessary.
I totally understand. I’m thinking that it could be solved using an editor script that creates the in-between sound component. But the real fix is obviously in the editor itself. I’ll put it on our list of things to investigate It should be quite a quick fix.
I work on Editor Script to do exactly this - create sound component from ogg/wav in Outline (so under some game object or go in collection), but I’m doing it on purpose, because I want to be able to just put sounds quicker. So, seeing this issue on Github, I’m thinking if you touched this already? If so, what is your thinking about resolving it now? Allowing for such inline creation? If so, how would you see it?
I think you’ll still be able to add a wav or ogg directly, but we do some kind of transformation under the hood. I think it was @AGulev who looked into it recently?