One particular battle is causing an issue in both Gameplay and during Preview. It shows the black screen with the error:
"
TypeError
Cannot read property 'height' of undefined."
Can anyone help me out?
'Cannot read property '...' of undefined means the system is trying to access data that is no longer present.
You might have a troop trying to add an enemy that's been removed from the database.
If you have changed your database and lowered the max of any object in the database, and you load an old save where this object was still present, you will get an error like this.
Lets say you had an actor with class #4, then save the game and change the max of classes to #3 and then load the save again, it will read info from a class that doesn't exist.
If you would have just clicked delete, but not changed the max, then the error would not have shown. Since, even if the slot is empty, but the slot exists, all other parameters coming with it exist, even if the parameters are all set to 0 or default.
Getting this error, in most cases doesn't mean your project is broken, but your save game might be corrupt. Starting a new game instead of loading an old save might solve the problem in most cases.
If this is the case, then please not the following: If you work on an update of a project you already released, then your players will have the same problem too. Therefor, always be careful with lowering the max of anything, after you already shared (parts of) the game with your audience.