Game definition jsons - Map lists

Here you may find answers to your questions.

Game definition jsons - Map lists

Postby Stratego (dev) » Mon Sep 18, 2017 5:41 pm

Campaign and random maps are defined in this json: maps.json

like this, simply listing the maps, defining the random/"campaign" map groups and the "button" reference, and listing the maps into the groups

Code: Select all
{
"groups": [

   {"c": "Fix, random maps", "buttonName": "-", "type": "FIX", "groupID": -100, "items": [
      {"mapFileName": "rnd_the_lake_20_20.map", "publishStatus": "HIDDEN"},
      {"mapFileName": "rnd_island_20_20.map"},
      {"mapFileName": "rnd_islands_20_20.map"},
      {"mapFileName": "rnd_france_20_20.map"},
      {"mapFileName": "rnd_iwo_jima_20_20.map"},      
      {"mapFileName": "rnd_map_001_20_20.map"},
      {"mapFileName": "rnd_map_002_20_20.map"},
      {"mapFileName": "rnd_the_bridge_20_20.map"},
      {"mapFileName": "rnd_archipelago_20_20.map"},      
      {"mapFileName": "rnd_mountains_climb_20_20.map"},
      {"mapFileName": "rnd_summer_forest_20_20.map"},
      {"mapFileName": "rnd_crash_landing_20_20.map"},
      {"mapFileName": "rnd_glacier_20_20.map"},
      {"mapFileName": "rnd_amalienborg_palace_mp_25_25.map"},   
      {"mapFileName": "rnd_the_frozen_lands_25_25.map"},
      {"mapFileName": "rnd_east_ward_25_25.map"},
      {"mapFileName": "rnd_italy_25_25.map"},
      {"mapFileName": "rnd_egypt_30_30.map"},
      {"mapFileName": "rnd_stalingrad_30_30.map"},
      {"mapFileName": "rnd_hawaii_30_30.map"},
      {"mapFileName": "rnd_citys__30_30.map"},
      {"mapFileName": "rnd_map_003_50_50.map"},
   ]},
         
         
   
   {"c": "FAN maps here", "buttonName": "btCampaignUser", "type": "CAMPAIGN", "items": [
      {"mapFileName": "camp_user_operation_barbarossa_southern_assault_50_50.map", "locktype": "PAY"},
      {"mapFileName": "camp_user_operation_typhoon_25_40.map", "locktype": "PAY"},
      {"mapFileName": "camp_user_the_battle_of_stalingrad_20_30.map", "locktype": "PAY"},
      {"mapFileName": "camp_user_the_siege_of_leningrad_40_40.map", "locktype": "PAY"},
   ]},

   {"c": "Fictive skirmish maps", "buttonName": "btCampaignFictive", "type": "CAMPAIGN", "items": [
      {"mapFileName": "camp_user_kursk_30_15.map", "locktype": "LOCK_PAY"},
      {"mapFileName": "camp_user_operation_cobra_1_20_20.map", "locktype": "LOCK_PAY"},
      {"mapFileName": "camp_user_operation_overlord_50_50.map", "locktype": "LOCK_PAY"},
      {"mapFileName": "camp_user_under_fire_15_15.map", "locktype": "LOCK_PAY"},
   ]},


   {"c": "Tutorial maps", "buttonName": "btCampaignTutorial", "type": "TUTO", "items": [
      {"mapFileName": "camp_user_tutorial_-_production_10_10.map", "locktype": "NONE"},
      {"mapFileName": "camp_user_tutorial__mines_20_20.map", "locktype": "NONE"},
      {"mapFileName": "camp_user_tutorial__submarines_20_10.map", "locktype": "NONE"},
   ]},

   {"c": "Multiplayer missions (Hotseat)", "buttonName": "btCampaignMultiplayerMissions", "type": "CAMPAIGN", "items": [

   ]},

   {"c": "Empire Of Van by Midonik", "buttonName": "btCampaignEmpireOfVan", "type": "CAMPAIGN", "items": [
      {"mapFileName": "camp_user_landing__30_30.map", "locktype": "LOCK_PAY"},
      {"mapFileName": "camp_user_urban_warfare__30_30.map", "locktype": "LOCK_PAY"},
      {"mapFileName": "camp_user_sabotage_15_25.map", "locktype": "LOCK_PAY"},
      {"mapFileName": "camp_user_mountain_battle__20_25.map", "locktype": "LOCK_PAY"},
   ]},
   
   {"c": "Twilight of the Gods by Redeemer, prof. gamer", "buttonName": "btCampaignTwilightoftheGods", "type": "CAMPAIGN", "items": [
      {"mapFileName": "camp_user_operation_barbarossa_central_assault_25_35.map", "locktype": "LOCK_PAY"},
      {"mapFileName": "camp_user_the_blockade_of_leningrad_35_35.map", "locktype": "LOCK_PAY"},
      {"mapFileName": "camp_user_battle_for_the_caucasus_35_30.map", "locktype": "LOCK_PAY"},
   ]},
   
   {"c": "MAP_LIST_STORY_ARBITER by Aleksandar Glumac alias LordOfAles", "listName": "ARBIT", "buttonName": "btCampaignArbiter", "type": "CAMPAIGN", "items": [
      {"mapFileName": "camp_user_passing_thru_enemy_defenses_10_30.map", "locktype": "LOCK_PAY"},
      {"mapFileName": "camp_user_forest_ambush_15_15.map", "locktype": "LOCK_PAY"},
      {"mapFileName": "camp_user_base_outskirts_20_30.map", "locktype": "LOCK_PAY"},
      {"mapFileName": "camp_user_the_grand_opening_30_30.map", "locktype": "LOCK_PAY"},
   ]},
   
   
   {"c": "MAP_LIST_STORY_LIT_MADNESS by Aleksandar Glumac alias LordOfAles", "requiredListName": "ARBIT", "buttonName": "btCampaignLitMadness", "type": "CAMPAIGN", "items": [
   
      {"mapFileName": "camp_user_armageddon_25_25.map", "locktype": "LOCK_PAY"},
      {"mapFileName": "camp_user_the_tour_20_20.map", "locktype": "LOCK_PAY"},
      {"mapFileName": "camp_user_tunnels_30_30.map", "locktype": "LOCK_PAY"},
      {"mapFileName": "camp_user_destroying_maya_15_15.map", "locktype": "LOCK_PAY"},

   ]},


]
}



Avaliable lock types:
PAY- gives gems if you win
LOCK_PAY - means the map needs to be locked (so only if you finish prior map wil be able to be opened), also gives gems.
NONE - no locked, and not gives gems.



Publish status: you can inactivate maps using the HIDDEN status, this means running games will be handled but no new game can be created with this map (so considered as DEPRECATED).
Current publish statuses (if you do not specify it then it is considered FULL - like u see in most samples except "the_lake" map)

FULL, // can start new game and existing games will use it
HIDDEN // existing games will use it, but you can not create new map with it - so considered as DEPRECATED


Locked campaigns
You can set a camapign locked until an other campaign is finished, see as a sample above: "MAP_LIST_STORY_LIT_MADNESS" will require "MAP_LIST_STORY_ARBITER" by the "requiredListName" and "listName" settings
Stratego (dev)
Site Admin
 
Posts: 6026
Joined: Fri Apr 25, 2014 9:28 pm

Re: Game definition jsons - Map lists

Postby Midonik » Fri Sep 22, 2017 3:39 pm

What "locktype" means? Is it mean that you need to pass latest map or what?
Support new AoS variant, Age of Galaxy,its si-fi themed: viewforum.php?f=135
All help will be welcome.
Midonik
 
Posts: 2088
Joined: Mon Sep 05, 2016 5:27 pm
Location: Poland

Re: Game definition jsons - Map lists

Postby Stratego (dev) » Fri Sep 22, 2017 4:53 pm

good questions, updated the first post with the answer
Stratego (dev)
Site Admin
 
Posts: 6026
Joined: Fri Apr 25, 2014 9:28 pm

Re: Game definition jsons - Map lists

Postby Midonik » Fri Sep 22, 2017 4:59 pm

Thanks.
Support new AoS variant, Age of Galaxy,its si-fi themed: viewforum.php?f=135
All help will be welcome.
Midonik
 
Posts: 2088
Joined: Mon Sep 05, 2016 5:27 pm
Location: Poland

Re: Game definition jsons - Map lists

Postby Stratego (dev) » Sun Oct 29, 2017 7:35 am

publish status introduced
Stratego (dev)
Site Admin
 
Posts: 6026
Joined: Fri Apr 25, 2014 9:28 pm

Re: Game definition jsons - Map lists

Postby Sunrise Samurai » Sun Oct 29, 2017 11:41 am

And that explains why some maps are greyed out and can't be played.
The Tournament of Dragons has begun
viewtopic.php?f=73&t=4516&p=44652&sid=7430fb9fba1d158e718711599ac4e38e#p44652
Follow the progress on the link. Be sure to root for your favorite player
User avatar
Sunrise Samurai
 
Posts: 1895
Joined: Thu Jun 18, 2015 11:21 pm
Location: Florida, U.S.

Re: Game definition jsons - Map lists

Postby Stratego (dev) » Sun Oct 29, 2017 7:35 pm

no. that is different.
Stratego (dev)
Site Admin
 
Posts: 6026
Joined: Fri Apr 25, 2014 9:28 pm

Re: Game definition jsons - Map lists

Postby Puss_in_Boots » Sun Oct 29, 2017 7:40 pm

This will definitely be very important to know for AoUFO.

If some random player makes a map design, should players know Midonik's email since he is the moderator of it?
A handsome forums woefully Underpopulated by Bees?
A high Influx of Bees oughta put a stop to that!
User avatar
Puss_in_Boots
 
Posts: 1427
Joined: Fri Apr 21, 2017 1:23 am
Location: Fairy Tales and Television.

Re: Game definition jsons - Map lists

Postby Sunrise Samurai » Mon Oct 30, 2017 12:03 am

Lol moderator? He practically became the first design leader by default, and has been doing a pretty good job of it too.
The Tournament of Dragons has begun
viewtopic.php?f=73&t=4516&p=44652&sid=7430fb9fba1d158e718711599ac4e38e#p44652
Follow the progress on the link. Be sure to root for your favorite player
User avatar
Sunrise Samurai
 
Posts: 1895
Joined: Thu Jun 18, 2015 11:21 pm
Location: Florida, U.S.

Re: Game definition jsons - Map lists

Postby Puss_in_Boots » Mon Oct 30, 2017 12:22 am

...He is the moderator of the topic for AoUFO.

But anyways he's not really taken care of his json file studies. I hope he can manage completeing most of it by Christmas Holidays.
A handsome forums woefully Underpopulated by Bees?
A high Influx of Bees oughta put a stop to that!
User avatar
Puss_in_Boots
 
Posts: 1427
Joined: Fri Apr 21, 2017 1:23 am
Location: Fairy Tales and Television.

Re: Game definition jsons - Map lists

Postby Midonik » Mon Oct 30, 2017 2:06 pm

Well,its hard. I have mot engoun patience. Anyway,I will try again in xmas probably.
Support new AoS variant, Age of Galaxy,its si-fi themed: viewforum.php?f=135
All help will be welcome.
Midonik
 
Posts: 2088
Joined: Mon Sep 05, 2016 5:27 pm
Location: Poland

Re: Game definition jsons - Map lists

Postby Stratego (dev) » Sun Nov 05, 2017 10:24 pm

Locked campaigns
You can set a camapign locked until an other campaign is finished, see as a sample above: "MAP_LIST_STORY_LIT_MADNESS" will require "MAP_LIST_STORY_ARBITER" by the "requiredListName" and "listName" settings
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