I’ve hit upon an odd glitch involving loading enemy reinforcements. Depending on how I move my units on the first turn, the next turn when the enemy reinforcements are supposed to arrive only certain ones get loaded. So say I am trying to load 7 units. Sometimes the game will only load 4, other times 5, other times all of them, and sometimes none of them. Seemingly at complete random.
I don’t know if its related to the problem or not, but I’ve coded these units to only get loaded depending on a choice the player made during the beginning chapter events.
Here is the enemy unit code:
Charles_Valkyrie1:
UNIT 0x76 Valkyrie 0x0 Level(8,Enemy,False) [19,26] [19,24] [Thunder][0x00,0x00,0x00,0x00]
UNIT 0x76 Valkyrie 0x0 Level(8,Enemy,False) [19,26] [18,25] [Thunder][0x00,0x00,0x00,0x00]
UNIT 0x76 Valkyrie 0x0 Level(8,Enemy,False) [19,26] [19,25] [Thunder][0x00,0x00,0x00,0x00]
UNIT 0x76 Valkyrie 0x0 Level(8,Enemy,False) [19,26] [20,25] [Thunder][0x00,0x00,0x00,0x00]
UNIT 0x76 Valkyrie 0x0 Level(8,Enemy,False) [19,26] [18,26] [Thunder][0x00,0x00,0x00,0x00]
UNIT 0x76 Valkyrie 0x0 Level(8,Enemy,False) [19,26] [20,26] [Thunder][0x00,0x00,0x00,0x00]
UNIT
Turn2:
IFYN 0x05
CMON
LOU1 Wilhelm_Ally
ENUN
TEX1 0xA0A
REMA
LOU1 Charles_Valkyrie1
ENUN
ELSE 0x06
ENIF 0x05
CMON
LOU1 Karl_P
ENUN
TEX1 0xA0B
REMA
ENIF 0x06
ENDA
As far as I can tell my code seems to be fine. I have noticed that some glitchiness has been happening because in the Opening Chapter events I load, then reposition, then move, and ultimately DISA a bunch of civilian NPCs. Altogether 10 of them. I’ve noticed this has resulted in some problems. For instance if I load an enemy unit at the coordinates where one of the civilian NPCs was last located before I made them DISA, then the enemy unit won’t load. However, the units in the glitch I am asking about, are loaded no where near where any of the civilians ever were.
Here are some pictures to demonstrate my problem. As you can see, in each snap shot my units are located at different places, and in each one the amount of enemy Valkyries that got loaded is different:
EDIT: I’ve been experimenting around more. And it seems that there is a cap on the amount of enemies I can load. After a certain limit I start getting these problems of units not loading. As far as I know there isn’t a cap on how many units you can have in a chapter. Furthermore, Chapters like Cog of Destiny load way more units than I am doing in this chapter.