YoYoGames / GMEXT-FMOD

Repository for GameMaker's FMOD Extension
Apache License 2.0
54 stars 2 forks source link

Build fails when trying to get a user property #14

Closed PheonixMetal closed 2 months ago

PheonixMetal commented 2 months ago

Description

Version: v2024.6.2.162 Runtime v2024.6.1.208 (tried attaching a YYZ but don't see where to do so)

GM FMOD Error Output.txt

Rhythm System.zip

I am attempting to get User Properties for events that I've set up, but the build says it failed and I pinpointed the exact function: image If I Build my FMOD Studio project in order to get the properties, I use fmod_studio_event_description_get_user_property() which gets me a build error directly at line 2233 where the function fmod_studio_event_description_get_user_property_multiplatform() is called. This is a function that doesn't lead me to anywhere documented or within the projects functions.

The value I tried to get from user properties was BPM = 140.

I've put a break point directly on this function and if you continue from there the build immediately fails and goes no further.

Expected Change

A fix for the build error you get when trying to get user properties from FMOD Studio events.

Steps To Reproduce

  1. Start GameMaker
  2. Open the project provided
  3. Run the project
  4. See the issue

How reliably can you recreate this issue using your steps above?

Always

Which version of GameMaker are you reporting this issue for?

Monthly

Which platform(s) are you seeing the problem on?

Windows

Compiler Log File

Sample .yyz File

DiasFranciscoA commented 2 months ago

The error you are seeing is NOT a build error.. is a runtime (execution) error, the game is build properly and runs correctly the problem occurs when trying to execute the function fmod_studio_event_description_get_user_property the other function you are seeing is an internal function that shouldn't be changed or called directly. We will look at the bug and get back to you as soon as possible with a proper fix.

[!WARNING] We never post fixes here in the comments, never download anything posted here marked as a fix. Proper fixes are addressed by us with a new release. Never download or run any software from the comment section.

DiasFranciscoA commented 2 months ago

@PheonixMetal we just noticed that no project was attached in the original bug report. Please if possible make sure you include a repro project so we can investigate the issue.

PheonixMetal commented 2 months ago

@PheonixMetal we just noticed that no project was attached in the original bug report. Please if possible make sure you include a repro project so we can investigate the issue.

Sorry about that, how would you like me to attach it? I tried to upload a zip with the yyz but that didn't work.

[Edit] Nevermind, I've included a Zip file of the project in the state that gave me the runtime error. Thanks for your help!

DiasFranciscoA commented 2 months ago

Fixed in b091c0befba5af411f543effff243957cdfc1009

The release is already up on github (0.0.9)