alessandrofama / wwise-godot-integration

Wwise Integration for the Godot Engine
Other
276 stars 14 forks source link

Parse error with wwise_id.gd [Godot 4.2, Wwise 2023.1] #91

Open Voyager0001 opened 9 months ago

Voyager0001 commented 9 months ago

Wwise integration version

wwise-2023.1-for-godot-4.2-stable-2.0.4

System information

Windows 11

Issue description

https://github.com/alessandrofama/wwise-godot-integration/assets/83073365/d2b856df-400a-4c74-8681-70aa1c1e8ad9

Creating any wwise node crashes the project

Steps to reproduce

Having wwise authoring app open and generating wwise ids in godot, throws parse error then creating any node crashes godot

It doesn't matter if there's soundbanks in the GeneratedSoundBanks/Windows folder or not

Minimal reproduction project

new game project.zip

alessandrofama commented 9 months ago

Ah I see. As a quick workaround you can change

NON-ENVIROMENTAL

to

NON_ENVIROMENTAL

in the generated Wwise IDs. Or you can change the Bus name to not include a -.

Voyager0001 commented 9 months ago

That fixed it but it threw even more parse errors, i found some variables starting with numbers and underscore like 00_FIGHT and 01_THEME, i made them just FIGHT and THEME and now it works perfectly!

alessandrofama commented 9 months ago

Cool! I'll fix this soonish.