Game definition jsons - Map lists

Learn the .json format
used to define characteristics of units and other game elements
Post Reply
Stratego (dev)
Site Admin
Posts: 7163
Joined: Fri Apr 25, 2014 9:28 pm

Game definition jsons - Map lists

Post by 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

Midonik
Posts: 2690
Joined: Mon Sep 05, 2016 5:27 pm
Location: Poland

Re: Game definition jsons - Map lists

Post by 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.

Fielderan Crown's Great Hetman
viewtopic.php?f=66&t=4729

Stratego (dev)
Site Admin
Posts: 7163
Joined: Fri Apr 25, 2014 9:28 pm

Re: Game definition jsons - Map lists

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

good questions, updated the first post with the answer

Midonik
Posts: 2690
Joined: Mon Sep 05, 2016 5:27 pm
Location: Poland

Re: Game definition jsons - Map lists

Post by 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.

Fielderan Crown's Great Hetman
viewtopic.php?f=66&t=4729

Stratego (dev)
Site Admin
Posts: 7163
Joined: Fri Apr 25, 2014 9:28 pm

Re: Game definition jsons - Map lists

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

publish status introduced

User avatar
Sunrise Samurai
Posts: 2650
Joined: Thu Jun 18, 2015 11:21 pm
Location: Florida, U.S.

Re: Game definition jsons - Map lists

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

And that explains why some maps are greyed out and can't be played.
Currently residing at the local ninja academy. I'm still watching though.

Stratego (dev)
Site Admin
Posts: 7163
Joined: Fri Apr 25, 2014 9:28 pm

Re: Game definition jsons - Map lists

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

no. that is different.

User avatar
Puss_in_Boots
Posts: 1835
Joined: Fri Apr 21, 2017 1:23 am

Re: Game definition jsons - Map lists

Post by 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?
RED, WHITE and BLUE!

User avatar
Sunrise Samurai
Posts: 2650
Joined: Thu Jun 18, 2015 11:21 pm
Location: Florida, U.S.

Re: Game definition jsons - Map lists

Post by 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.
Currently residing at the local ninja academy. I'm still watching though.

User avatar
Puss_in_Boots
Posts: 1835
Joined: Fri Apr 21, 2017 1:23 am

Re: Game definition jsons - Map lists

Post by 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.
RED, WHITE and BLUE!

Midonik
Posts: 2690
Joined: Mon Sep 05, 2016 5:27 pm
Location: Poland

Re: Game definition jsons - Map lists

Post by 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.

Fielderan Crown's Great Hetman
viewtopic.php?f=66&t=4729

Stratego (dev)
Site Admin
Posts: 7163
Joined: Fri Apr 25, 2014 9:28 pm

Re: Game definition jsons - Map lists

Post by 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

Post Reply

Return to “Game Definition .JSON”