# Invalid fmod type error. please help!

**URL:** <https://qa.fmod.com/t/invalid-fmod-type-error-please-help/22237>\
**Category:** Other\
**Created:** [October 30, 2024, 1:37am UTC](https://qa.fmod.com/t/invalid-fmod-type-error-please-help/22237 "2024-10-30T01:37:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MesaAudioLabs](https://avatars.discourse-cdn.com/v4/letter/m/eb9ed0/32.png) [@MesaAudioLabs](https://qa.fmod.com/u/MesaAudioLabs)\
**Post date:** [October 30, 2024, 1:37am UTC](https://qa.fmod.com/t/invalid-fmod-type-error-please-help/22237/1 "2024-10-30T01:37:53Z")

</div>

I am working for a studio that is creating a game in Gamemaker, I have only ever worked in Unity and Unreal so a bit of a learning game for me. I keep getting errors saying that my banks cant be found. Yet I can see them in the engine and when pushing changes on git.

 ![Screenshot 2024-10-29 170128](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/2/21a74b4b8d74bf4c1ce44180a12920e61037e0ec.png)

any help would be greatly appreciated!!

here is my code for reference to the errors I am receiving

show\_debug\_message(“Obj\_Fmod::Create”)

var \_max\_channels = 1024;  
var \_flags\_core = FMOD\_INIT.NORMAL;  
var \_flags\_studio = FMOD\_STUDIO\_INIT.LIVEUPDATE;

#macro FMOD\_OK 0  
#macro USE\_FMOD\_STUDIO true  
#macro USE\_DEBUG\_CALLBACKS true

if (USE\_DEBUG\_CALLBACKS) {  
fmod\_debug\_initialize(FMOD\_DEBUG\_FLAGS.LEVEL\_LOG, FMOD\_DEBUG\_MODE.CALLBACK);  
}

if (USE\_FMOD\_STUDIO) {  
// creating and initialize FMOD Studio system  
fmod\_studio\_system\_create();  
show\_debug\_message("fmod\_studio\_system\_create: " + string(fmod\_last\_result()));

```
fmod_studio_system_init(_max_channels, _flags_studio, _flags_core);
show_debug_message("fmod_studio_system_init: " + string(fmod_last_result()));

if (!fmod_studio_bank_is_valid("vta mother.bank")) {
	show_debug_message("Gamemaker makes my head hurt");
} else {
	show_debug_message("I will work for you");
}

fmod_main_system = fmod_studio_system_get_core_system();
show_debug_message("fmod_studio_system_get_core_system: " + string(fmod_last_result()));

// loading sound banks
var bank_path = fmod_path_bundle("vta sfx.bank");
var bank_ref = fmod_studio_system_load_bank_file(bank_path, FMOD_STUDIO_LOAD_BANK.NORMAL);
show_debug_message("bank load result for vta sfx.bank: " + string(fmod_last_result()));

var strings_bank_path = fmod_path_bundle("vta mother.strings.bank");
var strings_bank_ref = fmod_studio_system_load_bank_file(strings_bank_path, FMOD_STUDIO_LOAD_BANK.NORMAL);
show_debug_message("bank load result for vta mother.strings.bank: " + string(fmod_last_result()));

//retieve event counts, I want to see if it can even find this
var event_count = -1;
if fmod_last_result() == FMOD_OK {
	event_count = fmod_studio_bank_get_event_count("bank_ref");
	show_debug_message("event count in bank: " + string(event_count));
} else {
	show_debug_message("error loading bank, cannot retrieve event count");
}

// getting event description and creating instance
var event_description_ref = fmod_studio_system_get_event("event:/char/player/atk/sword/cut_attack"); 
//the line above this may be the cause of the problem
//i

show_debug_message("event load result: " + string(fmod_last_result()));

var event_description_instance_ref = fmod_studio_event_description_create_instance(event_description_ref);
//this line spits out an error.
// "[ERROR] fmod_studio_event_description_create_instance :: Invalid fmod type, type not compatible with extension call."
show_debug_message("event instance creation result: " + string(fmod_last_result()));
//this spits out -1;

// start event instance
fmod_studio_event_instance_start(event_description_instance_ref);
show_debug_message("event instance start result: " + string(fmod_last_result()));

	var _player_atk = fmod_studio_system_get_event("event:/char/player/atk/sword/cut_attack");
		fmod_studio_event_instance_start(_player_atk)

```

}

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [November 5, 2024, 10:39pm UTC](https://qa.fmod.com/t/invalid-fmod-type-error-please-help/22237/2 "2024-11-05T22:39:16Z")

</div>

The [GameMaker FMOD Integration](https://github.com/YoYoGames/GMEXT-FMOD) is maintained by YoYoGames, have a look through their documentation/forum otherwise I’d recommend posting this to their forum.
