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?
(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?
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.
Ok thanks
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.
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
Is there anyway to make the AI pick from a pool of multiple sovereigns for a given faction?
Yes, remove any sovereign unit from that faction's XML code and it will select a random one from the NPCs. Kinda cool, imo.
But can I limit that random draw to 2 or 3 of the say 12 sovereign?
No to my knowledge. If you can figure out how, that'd be a cool discovery.
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?
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>
and this forum can be usefull for your first xml editing:
Delete
Welcome Guest! Please take the time to register with us.