KingDuits Posted May 3, 2020 Report Share Posted May 3, 2020 Hi. I'm playing around in the "civs" folder of the game and trying to add a new faction. It was easy to create by copying an existing json file and renaming the faction "Code", "Culture" and "Name" to have the new playable faction in the game. However, I hit a snag when trying to change the "StartEntities" to my custom units. The game keeps looking for the removed "StartEntities" with the new civ prefix instead of loading the units I've entered. If I rename my custom units to one of the removed units it does however show up in the game with no problems. Is there a parent file to these files or what am I missing? This is the edited code in my testciv.json file: { "Code": "testciv", "Culture": "testciv", "Name": "Testciv", "Emblem": "session/portraits/emblems/emblem_chinese.png", "History": "China is one of the world's oldest nations and remains one of the most powerful, dating back over 4,000 years to the present day. The origins of the empire derive from civilizations along the Yellow and Yagntze River valleys. Among the technological achievements of the Han Dynasty era that drive its reputation are the seismograph, medicinal innovations such as acupuncture and highly-disciplined educational institutions. However, perhaps the most memorable achievements of the ancient Chinese are architectural, notably the Terracotta Army and the Great Wall.", "Music":[ {"File":"Omri Lahav - Red Dawn.ogg", "Type":"peace"}, {"File":"Omri Lahav - Hill of Sorrows.ogg", "Type":"peace"} ], "Factions": [ { "Name": "Testciv", "Description": "The Rebelling Chinese", "Technologies": [ ... "WallSets": [ "other/wallset_palisade", "structures/chin_wallset_stone" ], "StartEntities": [ { "Template": "units/testciv_hero_king", "Count": 4 }, { "Template": "units/testciv_infantry_knight", "Count": 2 } ], ... Quote Link to comment Share on other sites More sharing options...
Nescio Posted May 3, 2020 Report Share Posted May 3, 2020 "StartEntities" only applies to random maps; for skirmish maps, you need the "SkirmishReplacements"; those that are not listed in the civ file default to the templates listed in `simulation/templates/skirmish/*/*.xml`. Quote Link to comment Share on other sites More sharing options...
KingDuits Posted May 9, 2020 Author Report Share Posted May 9, 2020 Thanks for the reply, but I'm still struggling with this. I've added the following to "SkirmishReplacements": "SkirmishReplacements": { "skirmish/units/default_infantry_melee_b": "units/testciv_infantry_knight", "skirmish/units/default_cavalry" : "units/testciv_infantry_knight", "skirmish/units/default_support_female_citizen": "testciv_infantry_knight", "skirmish/structures/default_house_10": "units/testciv_infantry_knight" }, Still I'm seeing only the default units appear in the game? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.