Page 1 of 1

Game definition jsons - Races

Posted: Tue Sep 12, 2017 8:31 pm
by Stratego (dev)
here is how races defined in races.json

AOF:

Code: Select all

[
{"assetIconName":"race_humans.png","name":"Humans","raceID":100,"raceIDString":"RACE_HUMAN"},
{"assetIconName":"race_orcs.png","name":"Orks","raceID":101,"raceIDString":"RACE_ORC"},
{"assetIconName":"race_undead.png","name":"Undead","raceID":102,"raceIDString":"RACE_UNDEAD"},
{"assetIconName":"race_elf.png","name":"Elf","raceID":103,"raceIDString":"RACE_ELF"}
]
AOW:

Code: Select all

[
{"assetIconName":"race_allies.png","name":"Allies","raceID":100,"raceIDString":"RACE_ALLIES"},
{"assetIconName":"race_axis.png","name":"Axis","raceID":101,"raceIDString":"RACE_AXIS"},
{"assetIconName":"race_usa.png","name":"USA","raceID":102,"raceIDString":"RACE_US"},
{"assetIconName":"race_germany.png","name":"Germany","raceID":103,"raceIDString":"RACE_GER"},
{"assetIconName":"race_ussr.png","name":"Russia","raceID":104,"raceIDString":"RACE_RU"}
]
the "raceIDString" can be used in other jsons (eg. unit jsons)

other attributes:
  ERaceStatus raceStatus if not set than it means ACTIVE, possible options: ERaceStatus{ACTIVE, UNFINISHED, ACTIVE_FOR_PROS}
int activeAboveLevel; //if  ACTIVE_FOR_PROS case this is the XP level the player needs to be to play in multiplayer

raceStatus{
ACTIVE, //usable everywhere
UNFINISHED, //"Unfinished" factions can not be used in multiplayer matches
ACTIVE_FOR_PROS //can be played only above the activeAboveLevel value
MAPEDITOR_ONLY //this race can only be used on multiplayer case - otherwise will show as inactive race
}

Re: Game definition jsons - Races

Posted: Wed Aug 09, 2023 6:21 pm
by Stratego (dev)
new attributes:
  ERaceStatus raceStatus if not set than it means ACTIVE, possible options: ERaceStatus{ACTIVE, UNFINISHED, ACTIVE_FOR_PROS}
int activeAboveLevel; //if  ACTIVE_FOR_PROS case this is the XP level the player needs to be to play in multiplayer

Re: Game definition jsons - Races

Posted: Fri Aug 16, 2024 6:42 pm
by Stratego (dev)
new race stratus :
MAPEDITOR_ONLY //this race can only be used on multiplayer case - otherwise will show as inactive race