Godot Version
4.3.beta3 (and beta2 too)
Problem
I don’t know how long ago this started as I didn’t test exported game thoroughly, but in 4.3 betas I have the following situation.
In my game there are enemies which have @export var stats: CreatureStats
, and these stats are my custom Resource
-s. From within the editor this export var is set correctly and I have valid values in _ready()
of creature’s script. However, in exported game I have null
values there, but only for some creatures (I don’t know why)
To be clear, I don’t load resources manually (e.g. by path) and aware of resource remapping on export. This is extremely annoying and also hard to trace.
As a work-around I just copy-pasted the same resources in the File Dock, added _2
suffix to their names and assigned these _2
-duplicates to the exported var-s of the scenes for broken creatures. Now everything works perfectly.
Hope this work-around saves someone’s life