Simple Solution For Building Roads


Quick solution to adding the Roadbuilding ability to a specific faction's pioneers without actually modding would be to edit 2 xml files directly and will only take a few seconds. I will use the Alatrian Race for example, but you can use this trick for any of the races (Naturally it will require the proper race name).

 

First edit the CoreUnit XML file:

 1. Locate the string for Unit_Pioneer_Altarian  (or the race you want to edit)

 2. Replace this string:

<SelectedAbilityBonusOption>Blood_Altarian</SelectedAbilityBonusOption>

<SelectedAbilityBonusOption>Weak</SelectedAbilityBonusOption>

 with this string:

<SelectedAbilityBonusOption>Blood_Altarian</SelectedAbilityBonusOption>

<SelectedAbilityBonusOption>RoadBuilding</SelectedAbilityBonusOption>

<SelectedAbilityBonusOption>Weak</SelectedAbilityBonusOption>

 

Next you edit the CoreAbilities XML file:

1. Locate the string for RoadBuildingAbility

2. Change this variable

<Attribute>Race_Type_Mancers</Attribute>

to this:

<Attribute>Race_Type_Altarians</Attribute>   (or the race you choose to add this ability to)

 

Hope this helps.

8,164 views 2 replies
Reply #1 Top

Next you edit the CoreAbilities XML file:

1. Locate the string for RoadBuildingAbility

2. Change this variable

Race_Type_Mancers

to this:

Race_Type_Altarians (or the race you choose to add this ability to)



Hope this helps.
End of quote

If you want to add it to several races, I guess you need to copy the ability though, just saying ;)
Dunno if its good enough just to copy the string though, and can't test ^_^

~ K

Reply #2 Top

Your point is valid and accurate for those who are more experienced with modding or coding in XML. The easy way to add this ability to multiple races would indeed to copy the ability verbatim, rename it as a new ability, and then edit each of the pioneer strings listed in the CoreAbilities XML file to add this new ability as a Selected ABility Bonus Option. For some of us this would be easy to do, but for others it would be a bit more difficult/troublesome. I just happened to notice there are many posts scattered across Stardock forums asking about adding roads so for the sake of making it easy to follow for everyone in general, I posted this example (hence the title simple solution ;) )

 

As for those who would like to delve deeper into the fray and add this ability to multiple races, I believe that Kongdej and I have explained that as well. Or you can check out the modding section of this forum for some user-created mods. I'm certain somebody has made a mod for this by now. Happy coding!