Hi Folks, I just registered on this Forum, but I have been reading it for a while.
After playing insanely lots both SP and MP, I tried to MOD some stuff, and here is my -so far- couple of struggle.
1/
It's a general question, as I'm not that good with XML yet, but I'll ask it over my Civics issue.
Context : It's A Post-reny era MOD, basically, it looks kinda colonization similar.
Anyway, I'v decided that I'd put no Religion, which I did, so that let me the whole Last column of civics available.
First sub-question, How do you RENAME such a thing ?
I'd just want to Rename the CIVIC_OPTION_RELIGION, so that it appear like "elite unit" column, do I need to go through all the pain of retagging 3 Files
with CIVIC_OPTION_ELITE ? (--> is There a <name> Tag ? I can't put my finger on it.)
Anyway, So I've decided that the 3 first RelCivic would be so that :
1 - -25% Military Prod, +3XP for Siege.
2 - -25% Military Prod, +3XP for Mounted.
3 - -25% Military Prod, +3XP for Guns.
Here was the Initial Code :
In CivicInfos.XML, for all Civics
in GameInfo Schemas :
So, I though It would work with this :
Civic Info (just an example, here for Vassalage maybe
And the GameInfoscheme :
Well, that code is FAR From working out...
So I was wondering if you guys could help me,
Knowing if I'm heading towards a wall or something ?
I'm just wondering if :
- This should be dealt with those 2 files, but differently
- There is another upper file, a upper schem sorta.
- This command is not-understood, this has to be explained in a Python file (I've checked, didn't see anything)
After playing insanely lots both SP and MP, I tried to MOD some stuff, and here is my -so far- couple of struggle.
1/
It's a general question, as I'm not that good with XML yet, but I'll ask it over my Civics issue.
Context : It's A Post-reny era MOD, basically, it looks kinda colonization similar.
Anyway, I'v decided that I'd put no Religion, which I did, so that let me the whole Last column of civics available.
First sub-question, How do you RENAME such a thing ?
I'd just want to Rename the CIVIC_OPTION_RELIGION, so that it appear like "elite unit" column, do I need to go through all the pain of retagging 3 Files
with CIVIC_OPTION_ELITE ? (--> is There a <name> Tag ? I can't put my finger on it.)
Anyway, So I've decided that the 3 first RelCivic would be so that :
1 - -25% Military Prod, +3XP for Siege.
2 - -25% Military Prod, +3XP for Mounted.
3 - -25% Military Prod, +3XP for Guns.
Here was the Initial Code :
In CivicInfos.XML, for all Civics
Code:
<iFreeExperience>0</iFreeExperience>
Code:
<ElementType name="iFreeExperience" content="textOnly" dt:type="int"/>
Further on :
<ElementType name="CivicInfo" content="eltOnly">
...
<element type="iFreeExperience"/
...
So, I though It would work with this :
Civic Info (just an example, here for Vassalage maybe
Code:
<iFreeExperiences>
<iFreeExperience>
<UnitCombatType>UNITCOMBAT_SIEGE</UnitCombatType>
<iExperience>3</iExperience>
</iFreeExperience>
<iFreeExperience>
<UnitCombatType>UNITCOMBAT_GUN</UnitCombatType>
<iExperience>3</iExperience>
</iFreeExperience>
<iFreeExperience>
<UnitCombatType>UNITCOMBAT_MOUNTED</UnitCombatType>
<iExperience>3</iExperience>
</iFreeExperience>
</iFreeExperiences>
And the GameInfoscheme :
Code:
<ElementType name="iFreeExperience" content="eltOnly">
<element type="UnitCombatType"/>
<element type="iExperience"/>
</ElementType>
<ElementType name="iFreeExperiences" content="eltOnly">
<element type="UnitCombatFreeExperience" minOccurs="0" maxOccurs="*"/>
Also, I had change the regarding line in the Civic Element Type
<ElementType name="CivicInfo" content="eltOnly">
...
<element type="iFreeExperience[U]s[/U]"/
...
Well, that code is FAR From working out...
So I was wondering if you guys could help me,
Knowing if I'm heading towards a wall or something ?
I'm just wondering if :
- This should be dealt with those 2 files, but differently
- There is another upper file, a upper schem sorta.
- This command is not-understood, this has to be explained in a Python file (I've checked, didn't see anything)