Anyone know how to add a Custom Soverign to a Custom Faction so the AI will play them?

(something odd happened when adding a custom Soverign to a custom Faction

Anyone know how to add a Custom Soverign to a Custom Faction so the AI will play them?

 

5,560 views 12 replies
Reply #1 Top

Open up the faction file, there should be a line that is <SovereignUnitType>[sovereign internal name goes here]</SovereignUnitType> if not copy it into the file below the <RaceClassification>[race name goes here]</RaceClassification> line.

 

Internal sovereign name can be found in the file containing the custom sovereign at the beginning of its data.

 

Reply #2 Top

Quoting Sythvipers, reply 1
Open up the faction file, there should be a line that is <SovereignUnitType>[sovereign internal name goes here]</SovereignUnitType> if not copy it into the file below the <RaceClassification>[race name goes here]</RaceClassification> line.

 

Internal sovereign name can be found in the file containing the custom sovereign at the beginning of its data.

 
End of Sythvipers's quote

Ok thanks

Reply #3 Top

Were is this faction file located. I'm in the Elemental Directory and I looked in every fold but I'm not finding it. I am a bit of a noob at this.

Reply #4 Top

I'm not sure where the folder for the default faction files is, but for the custom ones, it's in

My Documents\My Games\Elemental\Race

or the corresponding folder that your OS uses

Reply #6 Top

Yes, remove any sovereign unit from that faction's XML code and it will select a random one from the NPCs. Kinda cool, imo.

Reply #8 Top

No to my knowledge. If you can figure out how, that'd be a cool discovery.

Reply #9 Top

Ok following the instructions both my friend and I copied the

<SovereignUnitType>[sovereign internal name goes here]</SovereignUnitType>

to the  file below the <RaceClassification>[race name goes here]</RaceClassification> line.

Now we got a weird result.  I created 5 factions and 5 Soverigns  my friend created 10 of each. We associated using the instruction above each Custom soverign to a Custom faction then started a game only using the custome factions. This is what happen:

My Friend: During the game all factions had the same custom Soverign instead of the assigned soverign.

My Games: What I found is that the Soverigns were with the wrong factions

We both checked the files to see if we made an error in coping but the Custom factions and the correct Soverigns name in it. I enlisted the help of a third friend to also check our files but he confirmed that they were correct according to the instructions.

We tested this on many games with the same results.  

Any Idea what we did wrong?

Reply #10 Top

The game defaults to the last Sovereign you created every time you edit the faction with the In Game editor ;)

Check the code, it may already be in the file for another sovereign, and if it's further down the line it could be overriding your inserts. Keep in mind you have to use the full internal name, the easiest way is to just copy and paste the name of the XML file and remove the .xml off of the end.

Example
        <SovereignUnitType>Virgil_514838508-80551</SovereignUnitType>