![]() |
|
|
#1 |
|
Reading a static array from a config file
Ok, so I have an ini file, AnnihilationBuildMenus.ini where it lists the needed arrays.
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];
}
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' 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 by JamesKilton; 11th Oct 2003 at 07:02 PM. |
|
|
|
|
|
|
#2 |
|
I think it's better to check the array via a replicated function and direct the array, since all entries have to be replicated and that's not very efficient.
As for this problem, I have no idea
__________________
elmuerte.com - Magicball Network - UnrealWiki - The Unreal Admin page - UT3 WebAdmin Explode Mode! - Idle Ballad - Year of the PS3 - igndotcom - IdleThumbs |
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|