Godot Version
4.3
Question
Hi Everyone, (sorry about the melodramatic title!)
I’ve been struggling with an issue with Godot for the past 3-4 weeks and I have exhausted everthing I can think of doing in my limited 1 year of experience…
Basically, I went to export my game to post on itch last month and for some reason the enemies in my game were no longer being loaded in.
I have no idea why the game would be working fine in the inspector, but just the enemy is not working in the exported version… i.e:
What is should look like:
I’ve been wracking my brain trying to resolve this, but nothing has worked.
I ended up asking ai to debug, and the main fix it suggested was the mismatched casing, and that everything should be snake_case. I should have waited and tackled this later, as the game was working before I did anything about this, but I’ve heard this could cause issues and decided to start to work on it anyway, but this turned into a waking nightmare so late in development!
I’ve finally resolved all these issues (as far as I can tell), I think it took a couple of weeks after I used a batch script to do it and all of the links in my project broke - i had to manually rename everything back, then reconnect everything in the inspector. Do not recommend. Definitely never making that mistake again.
I’m really hoping theres someone here with more experience than me that might be able to spot what the issue is, so far I seem to be blind to it.
Here is the console output from the exported game:
There are issues here with the card_visuals, which both the enemy and player cards use, but the player cards seem to be completely fine.
There seems to be an issue with the enemy_card_ui, im not sure if this would be enough to crash the entire enemy set up? I’ve taken a look at the scenes and scripts that use the enemy_card_ui but nothing jumps out to me as an issue, particularly because it seems to be fine running from the inspector.
The enemies are being set by the map script as they should be, but the enemy handler is not spawning the enemies in the battle scene from the enemy battle resource as expected.
Weirdest thing is, that as far as I can see going back through my git commits, I don’t think I’ve changed anything that would cause the enemies to no longer load in.
I even tried to revert the branch back to 2 months ago when the issue did not exist, and it still didn’t work! Probably unlikely, but could this be a Godot error?
I’m hoping this is enough information to go on, but I’m more than happy to share more if it resolves this.
Big thanks in advance to anyone that read this far!
Dan





