-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Defold project doesnt load when building for HTML5 when using fmod #32
Comments
I have same exact issue.
|
Same here :-( The only solution I found so far is going back to Defolds version 1.7.0. Then, HTML5 builds work, with fmod added to the project. However, the Defold version is quite outdated. @dapetcu21, do you have any plans to dig deeper into this problem? Or do you have any ideas what might cause these errors? Mb i could dive into this if I find the time. |
Hi! It's most likely because the fmod library (provided by the fmod devs) is compiled for a older version of the emscripten ABI. Defold updated its emscripten version and the old lib probably doesn't work anymore. The solution is an overall update of the fmod lib. Unfortunately life got in the way and I really didn't have the bandwidth to do the maintenance work. It's still on my list though. |
Hi Marius, |
I suggest the guys who need this to put up a cash bounty in the forum, you each can pitch in some $ and then give it to the person who makes a satisfactory update. |
@dapetcu21 Hey Marius, I'm interested in tackling this issue, can you help me? here they mention it can be manually built to any Emscripten version
I'm running linux ubuntu, without docker. @subsoap Do you know of any bounty platform that rewards based in merges of PR for given task, something like that? I would like to start a bounty, but do not want to manage anyone's "investment/donation" money. |
@dapetcu21 random question, Defold's html5 uses lua 5.1, can you anticipate any issues from the |
Hi! I'm not sure this was the case when last the library was updated. I think fmod bytecode distributions came at a later point. I don't remember having compiled the bytecode into a library myself. You can check if there's a bytecode distribution for the version of fmod the library currently uses, if that's the case, it should be easier. You don't need to do a version upgrade, just compile that particular version from bytecode. As for luajit headers being used for emscripten: Good catch! This could be solved with an ifdef, but I don't think the luajit and lua5.1 headers are significantly different enough in practice for it to cause issues. |
Updating here, Fmod bytecode is "fastcomp" and that is deprecated tech. Emscripten removed fastcomp support around version 2.0 if I recall correctly. So I ask them(fmod) help on a similar thread on their forum. https://qa.fmod.com/t/compiling-bitcode-to-wasm-html5/21141 Downgrading Defold broke my project, so Ill look for ways to upgrade fmod eventually, even though they don't have Emscripten 3.5(it's 2.0) on latest FMOD versions, so I'm afraid not even that could solve it. |
Hi everyone, I have just seen that the latest FMOD version (2.02.25) was built with Emscripten 3.1.67. This is good news, right? But how to proceed with that info? I would be happy to help, but to be honest, I don't know where to start. Any ideas? |
Hey @britzl would you know if the Defold foundation have any plans of starting to own this FMOD bindings? @0xbeefbeef have you checked if OPENAL could replace your FMOD use case? |
@Kaiqgs: As far as I understand, OPENAL is not designed for adaptive audio as FMOD, which provides horizontal and vertical sequencing that can directly be controlled from the game. It would be really great if FMOD could be revived in the Defold world. |
Yes we do have plans. I can't say exactly when, but hopefully fairly soon. |
That would be awesome 😀 |
This error is shown in console when the fmod dependecy is added to the project.
I was told it could be caused by fmod not working with the latest Emscripten?
The text was updated successfully, but these errors were encountered: