New Modder> Is there somthing wrong with my code on troop editing. Followed the examples on the web

Users who are viewing this thread

Took 3 days to do this please, why does it crash on campaign map start up and on custom battles? I followed the examples and samples on the web

Revamp Folder>
ModuleData Folder and SubModule.xml>
STroops.xml>


SubModule.xml File:

Code:
Code:
 <Module>
     <Name value="Revamp"/>
     <Id value="Revamp"/>
     <Version value="v1.0.0"/>
     <SingleplayerModule value="true"/>
     <MultiplayerModule value="false"/>
     <DependedModules>
         <DependedModule Id="Native"/>
         <DependedModule Id="SandBoxCore"/>
         <DependedModule Id="Sandbox"/>
         <DependedModule Id="CustomBattle"/>
         <DependedModule Id="StoryMode" />
     </DependedModules>
     <SubModules>
 
     </SubModules>
     <Xmls>
      
        <XmlNode>
            <XmlName path = "ETroops" id = "NPCCharacters"/>
            <IncludedGameTypes>
                <GameType value="Campaign"/>
                <GameType value="CampaignStoryMode"/>
                <GameType value="CustomGame"/>
            </IncludedGameTypes>
        </XmlNode>
            
        
            
     </Xmls>
 </Module>


STroops.xml File: Example


Code:
Code:
<?xml version="1.0" encoding="utf-8"?>
<NPCCharacters>
  <NPCCharacter id="sturgian_recruit"
                default_group="Infantry"
                level="6"
                civilianTemplate="NPCCharacter.sturgia_troop_civilian_template_t1"
                name="{=BBJKgKj2}Sturgian Recruit"
                occupation="Soldier"
                is_basic_troop="true"
                culture="Culture.sturgia">
    <face>
      <face_key_template value="NPCCharacter.villager_sturgia" />
    </face>
    <skills>
      <skill id="Athletics"
             value="40" />
      <skill id="Riding"
             value="5" />
      <skill id="OneHanded"
             value="40" />
      <skill id="TwoHanded"
             value="19" />
      <skill id="Polearm"
             value="40" />
      <skill id="Bow"
             value="5" />
      <skill id="Crossbow"
             value="5" />
      <skill id="Throwing"
             value="5" />
    </skills>   
    <equipmentSet>
      <equipment slot="Item0"
                 id="Item.sturgia_axe_2_t2" />
      <equipment slot="Item1"
                 id="Item.northern_round_sparring_shield" />
      <equipment slot="Body"
                 id="Item.tundra_tunic" />
      <equipment slot="Leg"
                 id="Item.highland_leg_wrappings" />
    </equipmentSet>
    <equipmentSet>
      <equipment slot="Item0"
                 id="Item.peasant_hammer_1_t1" />
      <equipment slot="Item1"
                 id="Item.northern_round_sparring_shield" />
      <equipment slot="Body"
                 id="Item.nordic_sloven" />
      <equipment slot="Leg"
                 id="Item.highland_leg_wrappings" />
      <equipment slot="Gloves"
                 id="Item.ragged_armwraps" />
      <equipment slot="Cape"
                 id="Item.scarf" />
    </equipmentSet>
    <equipmentSet>
      <equipment slot="Item0"
                 id="Item.sturgia_axe_2_t2" />
      <equipment slot="Item1"
                 id="Item.northern_round_sparring_shield" />
      <equipment slot="Body"
                 id="Item.northern_leather_vest" />
      <equipment slot="Leg"
                 id="Item.highland_leg_wrappings" />
    </equipmentSet>
    <equipmentSet>
      <equipment slot="Item0"
                 id="Item.peasant_sickle_1_t1" />
      <equipment slot="Item1"
                 id="Item.northern_round_shield" />
      <equipment slot="Body"
                 id="Item.tundra_tunic" />
      <equipment slot="Leg"
                 id="Item.highland_leg_wrappings" />
    </equipmentSet>   
    <upgrade_targets>
      <upgrade_target id="NPCCharacter.sturgian_warrior" />
      <upgrade_target id="NPCCharacter.sturgian_woodsman" />
    </upgrade_targets>
  </NPCCharacter>
  <NPCCharacter id="sturgian_warrior"
                default_group="Infantry"
                level="11"
                civilianTemplate="NPCCharacter.sturgia_troop_civilian_template_t1"
                name="{=96pj2wxH}Sturgian Figher"
                occupation="Soldier"
                culture="Culture.sturgia">
    <face>
      <face_key_template value="NPCCharacter.villager_sturgia" />
    </face>
    <skills>
      <skill id="Athletics"
             value="50" />
      <skill id="Riding"
             value="15" />
      <skill id="OneHanded"
             value="50" />
      <skill id="TwoHanded"
             value="29" />
      <skill id="Polearm"
             value="50" />
      <skill id="Bow"
             value="15" />
      <skill id="Crossbow"
             value="10" />
      <skill id="Throwing"
             value="10" />
    </skills>
    <equipmentSet>
    <equipment slot="Item0"
                 id="Item.sturgia_sword_1_t2" />
      <equipment slot="Item1"
                 id="Item.viking_round_shield" />
      <equipment slot="Body"
                 id="Item.leather_and_iron_plate_armor" />
      <equipment slot="Leg"
                 id="Item.turndown_leather_boots" />
      <equipment slot="Head"
                 id="Item.nasal_helmet_with_mail" />
      <equipment slot="Gloves"
                 id="Item.padded_vambrace" />
    </equipmentSet>
    <equipmentSet>
      <equipment slot="Item0"
                 id="Item.sturgia_axe_2_t2" />
      <equipment slot="Item1"
                 id="Item.viking_round_shield" />
      <equipment slot="Body"
                 id="Item.northern_padded_gambeson" />
      <equipment slot="Leg"
                 id="Item.turndown_leather_boots" />
      <equipment slot="Head"
                 id="Item.nasal_helmet_with_leather" />
      <equipment slot="Gloves"
                 id="Item.padded_vambrace" />
    </equipmentSet>
    <equipmentSet>
      <equipment slot="Item0"
                 id="Item.sturgia_axe_2_t2" />
      <equipment slot="Item1"
                 id="Item.northern_round_shield" />
      <equipment slot="Body"
                 id="Item.leather_and_iron_plate_armor" />
      <equipment slot="Leg"
                 id="Item.turndown_leather_boots" />
      <equipment slot="Head"
                 id="Item.roughhide_cap" />
      <equipment slot="Gloves"
                 id="Item.padded_vambrace" />
      <equipment slot="Cape"
                 id="Item.scarf" />
    </equipmentSet>
</NPCCharacters>


https://drive.google.com/drive/folders/1tJsP65fJpqGshJ0LYoAS_anIWT3eCo_p?usp=sharing
 
Back
Top Bottom