Skip to content
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

Odd "nonexistent function" error only in macOS export #226

Open
StasysMusial opened this issue May 31, 2024 · 3 comments
Open

Odd "nonexistent function" error only in macOS export #226

StasysMusial opened this issue May 31, 2024 · 3 comments

Comments

@StasysMusial
Copy link

Hi there!
FMOD engine loads up correctly and starts playing an event using the FmodEventEmitter2D node. I can change volume using the volume property or using set_volume(). However using set_parameter() or get_parameter() results in the following error message:

SCRIPT ERROR: Invalid call. Nonexistent function 'set_parameter' in base 'FmodEventEmitter2D'.

This results in not being able to change parameters.

Here is the full console log.

This is the class that is calling the set_parameter() function.

Everything works fine in the editor both on macOS and windows. Windows export also does not experience this issue and functions as expected.

Not sure if this matters but I went through a bit of troubleshooting to get this working on macOS in the first place. Mainly allowing all the library files in gatekeeper and using Xcode code signing instead of ad-hoc. But judging by the other issues/discussions here this seems to be the way to go.

I haven't tried using something like AnimationPlayer to change the parameter values that are exposed to the editor. While that might change something, that isn't suitable for what I am planning to do with FMOD.

Godot 4.2.2

System:
M2 MacBook Air
OS: macOS Ventura 13.6.1

Export settings:
Bildschirmfoto 2024-05-31 um 19 33 45

This is my first ever bug/report issue I've created so please let me know if you need more information to be able to help :)

@piiertho
Copy link
Member

Hello !
Thanks for reporting.

Can you tell if you have same behaviour in both debug and release exports ?

@StasysMusial
Copy link
Author

Good call! It seems to only be an issue when "Export with debug" is enabled. I obviously can't check the console in a regular build but I can hear the parameters changing so it seems to function as expected.
At least for now I am gonna use the dictionary-like way to access parameters I saw in #217 which uses square brackets on the FmodEventEmitter to access properties because that also works in debug builds.

@piiertho
Copy link
Member

I can't find why this happens only on debug builds. Can you provide a sample project so that I can dive in and debug this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants