Slave Add to City Mechanic?

Silverfang

Chieftain
Joined
Dec 30, 2008
Messages
66
Hi,

I've been working on a custom civilization, for my personal use. Basically it's a cross between the D'tesh and the Scions, without the D'tesh "devour everything" complex.

Everything works well, except that none of the slaves have the "add to city" function that D'tesh slaves normally have. Which, as you can imagine, is a serious barrier, especially since the cities don't benefit from Scion events that add population to their cities.

I have scoured both the XML and the Python files, but I haven't been able to find a reference to that function, and thus I can't find a way to implement it for my custom civilization's slaves. Would anyone be able to tell where I could find that and/or how to attach it to units for the custom civ.

Also, while I'm asking questions, does anyone know how to add the Jotnar and Frozen modules into the game? The RiFe launcher suffers a fatal error every time I try to use the "manage modules" function, and cutting and pasting the folders from inactive modules, to the "normal" folder of active modules results in long strings of XML errors when trying to launch the game.

Thanks in advance for any pointers or tips! :)
 
I think I found the answer, just by searching "add to city" in RifE files. (Notepad++ and "find in files" are your friends. Use them :D)

The string description appears in CIV4GameText_FFH2.xml
The code appears in CIV4SpellInfos.xml, line 4383 to 4403.
Code:
<SpellInfo> <!-- Add to City 2 --> <!-- DTESH ABILITIES -->
...

That code calls a py function (line 4399)
Code:
<PyRequirement>reqAddToCityDtesh(pCaster)</PyRequirement>
which is in CvSpellInterface.py, line 8662 to 8671.

If you want this abilty to work for your personal civ, just change the prereq in CIV4SpellInfos.xml from
Code:
<CivilizationPrereq>CIVILIZATION_DTESH</CivilizationPrereq>
to D'tesh or your civ.

Good luck
 
Everything works well, except that none of the slaves have the "add to city" function that D'tesh slaves normally have. Which, as you can imagine, is a serious barrier, especially since the cities don't benefit from Scion events that add population to their cities.

I have scoured both the XML and the Python files, but I haven't been able to find a reference to that function, and thus I can't find a way to implement it for my custom civilization's slaves. Would anyone be able to tell where I could find that and/or how to attach it to units for the custom civ.

I dont have the Rife code in front of me, but I would imagine its done via a spell/ability. Look in spellinfos.xml
 
Back
Top Bottom