Game definition jsons - Categories and terrains

Here you may find answers to your questions.

Game definition jsons - Categories and terrains

Postby Stratego (dev) » Wed Sep 13, 2017 8:29 pm

In the consts.json you can define the
- categories,
- category encapsulations
- category - effect category relations
- tile types
- their groupings

Code: Select all
{
   "categories": [
      {"id": 1001111,       "idString": "U_MY_CAT"}
   ],
   "catAss": [
      {"catIdString": "U_MY_CAT",          "toCatIdStrings": ["U_BURNABLE","U_ZOMBIES"]}
   ],
   "catModifierRels": [
      {"catIdString": "U_ELVES",                 "toCatIdStrings": ["M_ELVEN_BUFFS"]},
      {"catIdString": "U_GOBLINS",               "toCatIdStrings": ["M_GOBLIN_BUFFS"]},      
      {"catIdString": "U_ZOMBIES",               "toCatIdStrings": ["M_UNDEAD_MODIFIERS"]},
      {"catIdString": "U_SKELETONS",                "toCatIdStrings": ["M_UNDEAD_MODIFIERS"]},
      {"catIdString": "U_ZOMBIES",               "toCatIdStrings": ["M_ZOMBIE_MODIFIERS"]},
      {"catIdString": "U_BURNABLE",              "toCatIdStrings": ["M_BURNING"]},
      {"catIdString": "U_ARCHERS",               "toCatIdStrings": ["M_ARCHER_MODIFIERS"]},
      {"catIdString": "U_ANTI_ARCHER_RANGED",    "toCatIdStrings": ["M_ARCHER_MODIFIERS"]},
      {"catIdString": "U_WAR_UNITS",             "toCatIdStrings": ["M_WAR_UNIT_BUFFS"]},
      {"catIdString": "U_NON_STRUCTURE_UNITS",   "toCatIdStrings": ["M_NON_STRUCTURE_UNIT_BUFFS"]},
      {"catIdString": "U_BUILDINGS",             "toCatIdStrings": ["M_STRUCTURE_UNIT_BUFFS"]},
      {"catIdString": "U_MELEE",                 "toCatIdStrings": ["M_MELEE_MODIFIERS"]},
      {"catIdString": "U_INFANTRY_MELEE_ANTI_MOUNTED","toCatIdStrings": ["M_MELEE_MODIFIERS"]},
      {"catIdString": "U_FLESH_AND_BLOOD",       "toCatIdStrings": ["M_FLESH_AND_BLOOD_MODS"]}
   ],
   "tileTypes": [
      {"id": 100,    "idString": "TERRAIN_WATER",          "jsonNaming": "water",     "rgb": "#5c8eb1",  "tileType": "WATER",       "isWater": true},
      {"id": 110,    "idString": "TERRAIN_DEEP_WATER",     "jsonNaming": "dwater",    "rgb": "#42667f",  "tileType": "DWATER",      "isWater": true},
      {"id": 210,    "idString": "TERRAIN_HILL_CLIFF",     "jsonNaming": "cliff",     "rgb": "#808080",  "tileType": "HILL",        "isWater": false},
      {"id": 215,    "idString": "TERRAIN_HILL_CLIFF_SNOW","jsonNaming": "cliffsnow", "rgb": "#aaaaaa",  "tileType": "HILL",        "isWater": false},
      {"id": 150,    "idString": "TERRAIN_OBSTACLE",       "jsonNaming": "obst",      "rgb": "#808080",  "tileType": "OBSTACLE",    "isWater": false},
      {"id": 180,    "idString": "TERRAIN_SNOW",           "jsonNaming": "snow",      "rgb": "#f0f0f0",  "tileType": "SNOW",        "isWater": false},
      {"id": 170,    "idString": "TERRAIN_DESERT",         "jsonNaming": "desert",    "rgb": "#c1ad3b",  "tileType": "DESERT",      "isWater": false},
      {"id": 160,    "idString": "TERRAIN_ROCK",           "jsonNaming": "rock",      "rgb": "#808080",  "tileType": "ROCK",        "isWater": false},
      {"id": 190,    "idString": "TERRAIN_ROAD",           "jsonNaming": "road",      "rgb": "#ae9b75",  "tileType": "ROAD",        "isWater": false},
      {"id": 120,    "idString": "TERRAIN_WOOD",           "jsonNaming": "wood",      "rgb": "#396a18",  "tileType": "WOOD",        "isWater": false},
      {"id": 130,    "idString": "TERRAIN_CLEARGROUND",    "jsonNaming": "ground",    "rgb": "#738f2c",  "tileType": "CLEARGROUND", "isWater": false},
      {"id": 200,    "idString": "TERRAIN_BRIDGE",         "jsonNaming": "bridge",    "rgb": "#ae9b75",  "tileType": "BRIDGE",      "isWater": false},
      {"id": 140,    "idString": "TERRAIN_HILL",           "jsonNaming": "hill",      "rgb": "#808080",  "tileType": "HILL",        "isWater": false}
   ],
   "tilePairs": [
      {"id": 10032,    "idString": "TERRAINS_FOREST_ONLY_WALKABLE",    "toTileIdStrings": ["TERRAIN_WOOD"]},
      {"id": 10020,    "idString": "TERRAINS_SAILABLE",                "toTileIdStrings": ["TERRAIN_WATER", "TERRAIN_DEEP_WATER", "TERRAIN_BRIDGE"], "isWater": true},
      {"id": 10031,    "idString": "TERRAINS_MOUNTAINWALKABLE",        "toTileIdStrings": ["TERRAIN_HILL", "TERRAIN_HILL_CLIFF", "TERRAIN_HILL_CLIFF_SNOW"]},
      {"id": 10000,    "idString": "TERRAINS_PLAINSWALKABLE",          "toTileIdStrings": ["TERRAIN_CLEARGROUND", "TERRAIN_DESERT", "TERRAIN_SNOW", "TERRAIN_ROAD", "TERRAIN_BRIDGE"]},
      {"id": 10010,    "idString": "TERRAINS_FORESTWALKABLE",          "toTileIdStrings": ["TERRAIN_CLEARGROUND", "TERRAIN_DESERT", "TERRAIN_SNOW", "TERRAIN_ROAD", "TERRAIN_BRIDGE", "TERRAIN_WOOD"]},
      {"id": 10030,    "idString": "TERRAINS_FLYABLE",                 "toTileIdStrings": ["TERRAIN_WATER", "TERRAIN_DEEP_WATER", "TERRAIN_CLEARGROUND", "TERRAIN_DESERT", "TERRAIN_SNOW", "TERRAIN_ROAD", "TERRAIN_BRIDGE", "TERRAIN_HILL", "TERRAIN_HILL_CLIFF", "TERRAIN_HILL_CLIFF_SNOW", "TERRAIN_OBSTACLE", "TERRAIN_ROCK", "TERRAIN_WOOD"]}
   ]
   
}




the json for AOW at 2017.09.23
here:
consts.json
(8.88 KiB) Downloaded 13 times


the json for aof
there is no json for aof yet, but the categories are here
Code: Select all
      DOC_RANGED,
      DOC_CLOSE_COMBAT,
      DOC_MAGIC,
      DOC_OTHERS,
      DOC_SIEGE,
      DOC_SHIPS,
      DOC_BUILDING,
      DOC_ENVIRONMENT,
      
      
   U_ARCHERS,
      U_CHEAP_ARCHERS,
      U_ARCHERS_OTHERS,
      
   U_INFANTRY_MELEE,   
      U_CHEAP_INFANTRY_MELEE,
      U_INFANTRY_MELEE_ANTI_MOUNTED,
      U_INFANTRY_MELEE_OTHERS,

   U_MOUNTED,      
      U_MOUNTED_MELEE,
         U_MOUNTED_KNIGHTS,
      U_MOUNTED_ARCHERS,
      U_MOUNTED_OTHERS,
         
   U_MELEE,
      //U_INFANTRY_MELEE
      //U_MOUNTED_MELEE
      
   U_SHIELDED,
       U_SHIELDED_INFANTRY,
       U_SHIELDED_CAVALRY,
   
   U_CASTERS,   
      
   U_SHIPS,
      U_SHIP_WAR,
         U_SHIP_SIEGE_RANGE,
         U_SHIP_ATTACK, 
         U_ANTI_SHIP_SHIP, 
      U_SHIP_TRANSPORT,

   U_BUILDINGS,   
      U_MEGA_BUILDINGS,
      U_FORTIFIED_BUILDINGS,      
      U_OTHER_BUILDINGS,
   
   U_SIEGE,
      U_SIEGE_MACHINE,
            
   U_GROUND_TRANSPORTS,
      U_GROUND_ONLY_INFANTRY_TRANSPORTS,
 
   U_BURNABLE,
      U_OTHER_BURNABLE,
 
      
   U_ANTI_SHIP_GROUND,
   U_ANTI_BUILDING_INFANTRY,
   U_ANTI_ARCHER,
     U_ANTI_ARCHER_FOOT,
     U_ANTI_ARCHER_RANGED,
     U_ANTI_ARCHER_MOUNTED,
   U_ANTI_INFANTRY,
   U_ANTI_AIR,
   U_ANTI_GIANTS,
   U_ANTI_MOUNTED,
         //U_INFANTRY_MELEE_ANTI_MOUNTED
   
   U_WAR_UNITS,   
         //U_ARCHERS,
         //U_INFANTRY_MELEE,
         //U_SHIP_WAR,
         //U_MOUNTED,
         //U_ANTI_ARCHER,
         //U_ANTI_MOUNTED,
         //U_ANTI_BUILDING_INFANTRY,
         //U_MOUNTED,
         //U_CASTERS,
         U_OTHER_WAR_UNITS,
   
   U_BUILDING_SIZED_UNITS,
   U_WORKERS,
   
   U_SKELETONS,
   U_ZOMBIES,   
   
   U_GOBLINS,
   U_ORCS,
   U_ORC_URUKS, 
   U_DRAGONS,
   U_TROLLS,
   U_ELVES,
   U_GIANTS,
   U_FLYING,
   U_ANIMALS_PLANTS,
   U_FLESH_AND_BLOOD,
         //U_INFANTRY_MELEE_ANTI_MOUNTED,
         //U_MELEE,
         //U_ARCHERS, 
         //U_ANTI_ARCHER,
         //U_MOUNTED,
         //U_WORKERS,
         //U_CASTERS,
         U_FLESH_AND_BLOOD_OTHERS,
   
   U_NON_STRUCTURE_UNITS,
         //U_WAR_UNITS
         //U_SHIPS
         //U_WORKERS


         
   M_ALL,
   M_GOBLIN_BUFFS,
   M_ELVEN_BUFFS,
   M_BURNING,
   M_MELEE_MODIFIERS,
   M_ARCHER_MODIFIERS,
   M_UNDEAD_MODIFIERS,
   M_ZOMBIE_MODIFIERS,
   M_WAR_UNIT_BUFFS,
   M_NON_STRUCTURE_UNIT_BUFFS,
   M_STRUCTURE_UNIT_BUFFS, 
   M_FLESH_AND_BLOOD_MODS,
      
Stratego (dev)
Site Admin
 
Posts: 6026
Joined: Fri Apr 25, 2014 9:28 pm

Re: Game definition jsons - Categories and terrains

Postby Stratego (dev) » Sat Sep 23, 2017 2:53 pm

AOW current categories are in first post of this thread.
Stratego (dev)
Site Admin
 
Posts: 6026
Joined: Fri Apr 25, 2014 9:28 pm

Re: Game definition jsons - Categories and terrains

Postby Stratego (dev) » Sun Sep 24, 2017 12:24 pm

AOF categories listed.
Stratego (dev)
Site Admin
 
Posts: 6026
Joined: Fri Apr 25, 2014 9:28 pm


Return to FAQ

Who is online

Users browsing this forum: No registered users and 1 guest