Pablostuka
King
Hi all,
I am struggling with two unit types that I can't build where I should. For some reason I cannot build them despite not having any particular tech prerequisites, not going obsolete, and being allowed in the @UNITS_ADVANCED section. There are no typos in the Rules file as the scenario loads normally.
See for instance the following two units (@UNITS) with no prerequisites, no expiration, etc:
Republican infantry, nil, 0, 2.,0, 6a,4d, 2h,1f, 2,0, 0, nil, 0000000000000000
Anarchist militia (CNT/FAI), nil, 0, 1.,0, 4a,4d, 1h,1f, 1,0, 1, nil, 0000001000000000
See their configuration in @UNITS_ADVANCED
00000100, 00000000, -1, 0000000000000000,0000000000000000,0000000000000000, 10000000 ;Republican infantry
00000100, 00000000, -1, 0000000000000000,0000000000000000,0000000000000000, 10000000 ;Anarchist militia (CNT/FAI)
Section A, flag 00000100 means that only the Republican Spanish can build them. As you can see, both units have the same flags, same prerequisites, etc, just different stats, AI role and alpine flag.
In game, only the second unit is buildable (Anarchist militia (CNT/FAI)), but not the first (Republican infantry), see screenshot:
But the unit is buildable as per Pedia (otherwise I'd see the red text "You cannot build this unit"):
I am having the exact same issue with the Nationalist infantry for the other tribe, I can build other units with the same flags but not that one
.
Given these 2 are units placed in slots 5 & 6 of the Units file, I thought that maybe the reason behind this would be because of the Gunpowder advance, which "Makes obsolete all defensive role units with a defence strength less than that of the unit in the musketeer slot of the RULES.TXT.". But no, because:
1) The tribes don't have the Gunpowder tech, I have disabled it just in case.
2) The AI role for the unit I can't build is 0 = Attack , so it's not a defensive unit.
3) I have temporarily amended the stats of the "musketeer slot" unit to have less defence than the infantry.
So I ran out of ideas and got tired of trying things with no luck. Any ideas?
Many thanks,
Pablo
I am struggling with two unit types that I can't build where I should. For some reason I cannot build them despite not having any particular tech prerequisites, not going obsolete, and being allowed in the @UNITS_ADVANCED section. There are no typos in the Rules file as the scenario loads normally.
See for instance the following two units (@UNITS) with no prerequisites, no expiration, etc:
Republican infantry, nil, 0, 2.,0, 6a,4d, 2h,1f, 2,0, 0, nil, 0000000000000000
Anarchist militia (CNT/FAI), nil, 0, 1.,0, 4a,4d, 1h,1f, 1,0, 1, nil, 0000001000000000
See their configuration in @UNITS_ADVANCED
00000100, 00000000, -1, 0000000000000000,0000000000000000,0000000000000000, 10000000 ;Republican infantry
00000100, 00000000, -1, 0000000000000000,0000000000000000,0000000000000000, 10000000 ;Anarchist militia (CNT/FAI)
Section A, flag 00000100 means that only the Republican Spanish can build them. As you can see, both units have the same flags, same prerequisites, etc, just different stats, AI role and alpine flag.
In game, only the second unit is buildable (Anarchist militia (CNT/FAI)), but not the first (Republican infantry), see screenshot:
But the unit is buildable as per Pedia (otherwise I'd see the red text "You cannot build this unit"):
I am having the exact same issue with the Nationalist infantry for the other tribe, I can build other units with the same flags but not that one

Given these 2 are units placed in slots 5 & 6 of the Units file, I thought that maybe the reason behind this would be because of the Gunpowder advance, which "Makes obsolete all defensive role units with a defence strength less than that of the unit in the musketeer slot of the RULES.TXT.". But no, because:
1) The tribes don't have the Gunpowder tech, I have disabled it just in case.
2) The AI role for the unit I can't build is 0 = Attack , so it's not a defensive unit.
3) I have temporarily amended the stats of the "musketeer slot" unit to have less defence than the infantry.
So I ran out of ideas and got tired of trying things with no luck. Any ideas?
Many thanks,
Pablo