Ok, so I have an ini file, AnnihilationBuildMenus.ini where it lists the needed arrays.
Then I have this:
Now, in my Interaction, I display the values of these arrays 7 elements at a time. My problem is that sometimes the first 8 or so values load correctly, sometimes only the first loads correctly, and whatever in-between. This will probably work fine if I changed to a dynamic array, but I might have to check these arrays between the server and client, so really want to stay with static. Has anyone come across this problem?
Snippet from AnnihilationBuildMenus.ini:
UaArmKBotLab extends UaStructure
I'm stumped.
Note: I have logged the arrays themselves, and for the Arm KBot Lab above, the log shows that only CanBuild[0] was loaded, everything else is None.
Then I have this:
Code:
class UaBuildable extends Pawn
config(AnnihilationBuildMenus);
{
}
class UaStructure extends UaBuildable
{
var config class<UaUnit> CanBuild[35];
}
class UaUnit extends UaBuildable
{
var config class<UaStructure> CanBuild[35];
}
Now, in my Interaction, I display the values of these arrays 7 elements at a time. My problem is that sometimes the first 8 or so values load correctly, sometimes only the first loads correctly, and whatever in-between. This will probably work fine if I changed to a dynamic array, but I might have to check these arrays between the server and client, so really want to stay with static. Has anyone come across this problem?
Snippet from AnnihilationBuildMenus.ini:
Code:
[Annihilation.UaArmKBotLab]
CanBuild[0]=class'Annihilation.UaArmConstructionKBot'
CanBuild[1]=class'Annihilation.UaArmPeewee'
//CanBuild[2]=class'Annihilation.UaArmRocko'
//CanBuild[3]=class'Annihilation.UaArmHammer'
CanBuild[4]=class'Annihilation.UaArmJethro'
//CanBuild[5]=class'Annihilation.UaArmWarrior'
//CanBuild[6]=class'Annihilation.UaArmFlea'
UaArmKBotLab extends UaStructure
I'm stumped.
Note: I have logged the arrays themselves, and for the Arm KBot Lab above, the log shows that only CanBuild[0] was loaded, everything else is None.
Last edited: