Jump to content

Adding custom "StartEntities" to a custom Civ


Recommended Posts

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
        }
        ],
...

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...