Does this mod clash with other mods that modify troop classes, I installed multiple troop mods and tried to modify them myself to create a version that uses ATC to add new troop classes, I was wondering how your mod can be modified after making ATC config so it doesn't change to replace vanilla soldiers
I use XSLT (Extensible Stylesheet Language Transformations) to change individual xml tags or values when the files are loaded, so it should have minimal effect on other mods. If you load it last, it will replace the values of the base game and the mods by the values of this mod. I do change whole equipment loadouts of sturgian troops though, so changes of other mods to equipment of sturgia would be overwritten. Just look in the file spnccharacters.xslt to see how it works.
For example, the code below changes all equipements of the sturgian soldier, everything else is unaffected by this code. It searches for an xml tag that matches the pattern given in the match value of the template tag and changes it to the content inside of it. The advantage to replacing the whole xml file is, that it still works if the original game or a mod changes other values in the same file, as long as the tag it searches for exists. Even if the tag does not exist it still will not break the game or a savegame, because it will just not find the tag and do nothing. <xsl:template match="NPCCharacter[@id='sturgian_soldier']/Equipments"> <Equipments> <EquipmentRoster> <equipment slot="Item0" id="Item.sturgia_axe_3_t3" /> <equipment slot="Item1" id="Item.northern_round_shield" /> <equipment slot="Item2" id="Item.northern_spear_2_t3" /> <equipment slot="Head" id="Item.nasal_helmet_with_mail" /> <equipment slot="Cape" id="Item.scarf" /> <equipment slot="Body" id="Item.leather_and_iron_plate_armor" /> <equipment slot="Gloves" id="Item.highland_gloves" /> <equipment slot="Leg" id="Item.wrapped_leather_boots" /> </EquipmentRoster> <EquipmentRoster> <equipment slot="Item0" id="Item.bastard_sword_t2" /> <equipment slot="Item1" id="Item.northern_round_shield" /> <equipment slot="Item2" id="Item.northern_spear_2_t3" /> <equipment slot="Head" id="Item.nasal_helmet_with_leather" /> <equipment slot="Cape" id="Item.stitched_leather_shoulders" /> <equipment slot="Body" id="Item.northern_leather_tabard" /> <equipment slot="Gloves" id="Item.rough_tied_bracers" /> <equipment slot="Leg" id="Item.wrapped_leather_boots" /> </EquipmentRoster> <EquipmentSet id="sturgia_troop_civilian_template_t2" civilian="true" /> </Equipments> </xsl:template>
That should be all the code for the spearman. I increased its Polearm skill, changed the helmets, added decent shoulder armor and better arm and leg armor. I also changed the one handed weapons, as I had the impression from testing that the northern backsword is really aweful because of its short range. The spearman was the first troop type I changed and was the focus, as I realised that it died more often than the soldier or heavy spearman/axeman. You would have to check yourself if the spear is braceable. At the time I made those changes I either did not know about the bracing option or it was not even implemented. <xsl:template match="NPCCharacter[@id='sturgian_spearman']/skills/skill[@id='Polearm']/@value"> <xsl:attribute name="value">120</xsl:attribute> </xsl:template> <xsl:template match="NPCCharacter[@id='sturgian_spearman']/Equipments"> <Equipments> <EquipmentRoster> <equipment slot="Item0" id="Item.sturgia_sword_3_t3" /> <equipment slot="Item1" id="Item.viking_round_shield" /> <equipment slot="Item2" id="Item.northern_spear_2_t3" /> <equipment slot="Head" id="Item.goggled_helmet_over_mail" /> <equipment slot="Cape" id="Item.mail_shoulders" /> <equipment slot="Body" id="Item.sturgian_chainmale_shortsleeve" /> <equipment slot="Gloves" id="Item.northern_plated_gloves" /> <equipment slot="Leg" id="Item.northern_plated_boots" /> </EquipmentRoster> <EquipmentRoster> <equipment slot="Item0" id="Item.sturgia_sword_3_t3" /> <equipment slot="Item1" id="Item.viking_round_shield" /> <equipment slot="Item2" id="Item.northern_spear_2_t3" /> <equipment slot="Head" id="Item.goggled_helmet_over_leather" /> <equipment slot="Cape" id="Item.a_brass_lamellar_shoulder_white_b" /> <equipment slot="Body" id="Item.sturgian_chainmale_shortsleeve" /> <equipment slot="Gloves" id="Item.northern_plated_gloves" /> <equipment slot="Leg" id="Item.northern_plated_boots" /> </EquipmentRoster> <EquipmentSet id="sturgia_troop_civilian_template_t3" civilian="true" /> </Equipments> </xsl:template>
It appears that the spear you've assigned them is the Broad Leaf-Shaped Spear, which is a really bizarre spear. It's very short and is able to be swung, much like the Menavlion. I think this should be changed, as Sturgia has no pikemen which is a significant issue when they're supposed to be the infantry focused faction.
Substituting a decent pike like the Thamaskene pike (thamaskene_pike_t4), or the Fine Steel Hewing Spear (northern_spear_4_t5e) should make them function much better. Luckily, the implementation for pike bracing AI is automatic as long as the troop has a spear that is braceable, so all you'd have to do is swap the weapon.
Technically the Sturgian Warrazor (sturgia_polearm_1_t5) can also be braced, but it might be a bit too overpowered.
I'd love to start my Sturgian playthough soon and was interested in your changes, I hope you might be able to make some adjustments soon.
I agree with you in the point that the spearman/heavy spearman should have a decent bracable spear. What spear actually is bracable is confusing to me. I can not find any pattern that would explain it.
However, I feel like some constraints have to be in place. - The spear should also be onehanded to use with a shield as well. - It has to be either marked as sturgian culture or neutral (and fit the northern theme) - It should be somewhat balanced
What I plan to do now is the following: - Sturgian Soldier keeps the Broad Leaf Shaped Spear - Sturgian Spearman gets the Triangular Headed Spear (neutral) - Sturgian Heavy Spearman gets the Fine Steel Hewing Spear (sturgian) - Varyag veteran loses its spear (has already a throwing weapon) - Horse Raider will get a sturgian lance (so he has a couchable spear)
BTW, I did not give the spearman that spear, he also has the Broad Leaf Shaped Spear in the original game, I just did not change it
Spear bracing is primarily limited to spears that have a length greater than 230, or have the bracing keyword attached to it. Your proposed changes are great, I suppose giving the Soldiers a pike might be a bit overpowered.
My bad about saying you assigned them the spear, I probably should have expected Taleworlds to make that mistake. I'll be the first to try out your changes once it's out!
I tried to use your mod and i cant seem to find out why it doesnt work so i disabled every other mod i had and started a new game with just your mod on and nothing. I am using version 1.7 Any idea on what i could try?
yes i am using the new one 1.3.0 and the game does not crash it comes out it plays but when i go to recruit from sturgia there is no troops that look like the ones you have nor is there any other troop tree that shows your the troops and yes i did load it after all the default. I verified the files when i wasnt able to get it to work it changed nothing the troop tree doesnt come out. I also looked at the encyclopedia and the troops dont come out there either. Am i missing something?
The mod only changes the troops from Sturgia. In the latest version I changed some small things, e.g. replaced the shoulder armor from the Sturgian Soldier by a scarf again, or removed the shoulder armor of the Line Breakers. The pictures are not up to date for every version. The Sturgian Spearman, however, should look exactly like the image I posted and the Vanilla one definitely looks different. Please compare that one first, maybe even post a screenshot of it. It could be that the mod works but you don't notice it.
your troops look awesome bro. I edited my native troops file because I don't wanna break my save :o I keep the troops names and just changed their armor's to your works. Now they start beating other especially in siege. Thx for your work!
Hey, How can I modify the skills of the troops? In the current file when I open the file when I can modify troops equipment I cannot find skills lines, what should I do in order to change it.
In the newest version of the mod I use xslt to modify the original xml files instead of exchanging items, see the following lines in the spnpccharacters.xslt. This method enables switching the mod on and off in existing save games and makes it more compatible with other mods. <xsl:template match="NPCCharacter[@id='sturgian_spearman']/skills/skill[@id='Polearm']/@value"> <xsl:attribute name="value">120</xsl:attribute> </xsl:template> You have to know a bit of the xslt language, but for just changing some skills you can pretty much copy the lines above and change the values.
There is a short tutorial from Talewords about this method at xslt_usage_tutorial.
does this mod remove the warlord helmet with cheek guards? Usually theres a female sturgian lords who bear the helmet on vanilla? im hoping to marry whomever has this helmet although im not sure ill find it because it seems like alll the lords have the same helmet?.. is this beacause of the mod?
No, I don't think so. This mod does not touch lords equipment, only that of troops. The only equipment that is changed are the armor and weight values of a particular shoulder armor.
I notice the mod isnt working how do i get it to work? the troops are still vanilla i started a fresh playthrough a few times trying to see if i had it in the wrong load order but its the same evrytime troops upgrade vanilla as well
edit: ive found another mod "realistic female troops was the culprit for this mod, problem solved
Thanks for doing this. I'm going to start a new Sturgian campaign, and it always irked me to have to recruit outside my culture to get a decent army. This may be what I need to pull it together in the North.
39 comments
For example, the code below changes all equipements of the sturgian soldier, everything else is unaffected by this code. It searches for an xml tag that matches the pattern given in the match value of the template tag and changes it to the content inside of it. The advantage to replacing the whole xml file is, that it still works if the original game or a mod changes other values in the same file, as long as the tag it searches for exists. Even if the tag does not exist it still will not break the game or a savegame, because it will just not find the tag and do nothing.
<xsl:template match="NPCCharacter[@id='sturgian_soldier']/Equipments">
<Equipments>
<EquipmentRoster>
<equipment slot="Item0" id="Item.sturgia_axe_3_t3" />
<equipment slot="Item1" id="Item.northern_round_shield" />
<equipment slot="Item2" id="Item.northern_spear_2_t3" />
<equipment slot="Head" id="Item.nasal_helmet_with_mail" />
<equipment slot="Cape" id="Item.scarf" />
<equipment slot="Body" id="Item.leather_and_iron_plate_armor" />
<equipment slot="Gloves" id="Item.highland_gloves" />
<equipment slot="Leg" id="Item.wrapped_leather_boots" />
</EquipmentRoster>
<EquipmentRoster>
<equipment slot="Item0" id="Item.bastard_sword_t2" />
<equipment slot="Item1" id="Item.northern_round_shield" />
<equipment slot="Item2" id="Item.northern_spear_2_t3" />
<equipment slot="Head" id="Item.nasal_helmet_with_leather" />
<equipment slot="Cape" id="Item.stitched_leather_shoulders" />
<equipment slot="Body" id="Item.northern_leather_tabard" />
<equipment slot="Gloves" id="Item.rough_tied_bracers" />
<equipment slot="Leg" id="Item.wrapped_leather_boots" />
</EquipmentRoster>
<EquipmentSet id="sturgia_troop_civilian_template_t2" civilian="true" />
</Equipments>
</xsl:template>
The spearman and heavy spearman have braceable spears now. If that is what you mean, then yes.
<xsl:template match="NPCCharacter[@id='sturgian_spearman']/skills/skill[@id='Polearm']/@value">
<xsl:attribute name="value">120</xsl:attribute>
</xsl:template>
<xsl:template match="NPCCharacter[@id='sturgian_spearman']/Equipments">
<Equipments>
<EquipmentRoster>
<equipment slot="Item0" id="Item.sturgia_sword_3_t3" />
<equipment slot="Item1" id="Item.viking_round_shield" />
<equipment slot="Item2" id="Item.northern_spear_2_t3" />
<equipment slot="Head" id="Item.goggled_helmet_over_mail" />
<equipment slot="Cape" id="Item.mail_shoulders" />
<equipment slot="Body" id="Item.sturgian_chainmale_shortsleeve" />
<equipment slot="Gloves" id="Item.northern_plated_gloves" />
<equipment slot="Leg" id="Item.northern_plated_boots" />
</EquipmentRoster>
<EquipmentRoster>
<equipment slot="Item0" id="Item.sturgia_sword_3_t3" />
<equipment slot="Item1" id="Item.viking_round_shield" />
<equipment slot="Item2" id="Item.northern_spear_2_t3" />
<equipment slot="Head" id="Item.goggled_helmet_over_leather" />
<equipment slot="Cape" id="Item.a_brass_lamellar_shoulder_white_b" />
<equipment slot="Body" id="Item.sturgian_chainmale_shortsleeve" />
<equipment slot="Gloves" id="Item.northern_plated_gloves" />
<equipment slot="Leg" id="Item.northern_plated_boots" />
</EquipmentRoster>
<EquipmentSet id="sturgia_troop_civilian_template_t3" civilian="true" />
</Equipments>
</xsl:template>
Substituting a decent pike like the Thamaskene pike (thamaskene_pike_t4), or the Fine Steel Hewing Spear (northern_spear_4_t5e) should make them function much better. Luckily, the implementation for pike bracing AI is automatic as long as the troop has a spear that is braceable, so all you'd have to do is swap the weapon.
Technically the Sturgian Warrazor (sturgia_polearm_1_t5) can also be braced, but it might be a bit too overpowered.
I'd love to start my Sturgian playthough soon and was interested in your changes, I hope you might be able to make some adjustments soon.
However, I feel like some constraints have to be in place.
- The spear should also be onehanded to use with a shield as well.
- It has to be either marked as sturgian culture or neutral (and fit the northern theme)
- It should be somewhat balanced
What I plan to do now is the following:
- Sturgian Soldier keeps the Broad Leaf Shaped Spear
- Sturgian Spearman gets the Triangular Headed Spear (neutral)
- Sturgian Heavy Spearman gets the Fine Steel Hewing Spear (sturgian)
- Varyag veteran loses its spear (has already a throwing weapon)
- Horse Raider will get a sturgian lance (so he has a couchable spear)
BTW, I did not give the spearman that spear, he also has the Broad Leaf Shaped Spear in the original game, I just did not change it
My bad about saying you assigned them the spear, I probably should have expected Taleworlds to make that mistake. I'll be the first to try out your changes once it's out!
Please, drop an endorsement if you like the mod.
Any idea on what i could try?
What does happen exactly. Does the game crash?
Make sure the mod is loaded after all the default modules.
Also verify the game files in steam to make sure no other files are corupted or changed.
I edited my native troops file because I don't wanna break my save :o
I keep the troops names and just changed their armor's to your works.
Now they start beating other especially in siege.
Thx for your work!
How can I modify the skills of the troops? In the current file when I open the file when I can modify troops equipment I cannot find skills lines, what should I do in order to change it.
<xsl:template match="NPCCharacter[@id='sturgian_spearman']/skills/skill[@id='Polearm']/@value">
You have to know a bit of the xslt language, but for just changing some skills you can pretty much copy the lines above and change the values.<xsl:attribute name="value">120</xsl:attribute>
</xsl:template>
There is a short tutorial from Talewords about this method at xslt_usage_tutorial.
edit: ive found another mod "realistic female troops was the culprit for this mod, problem solved