Accessing Custom/Modded Troops and Heroes in CustomBattle mode

Users who are viewing this thread

I am by no means a modder, but I have been learning as much as I can for a couple of days straight to add troops that are available in mods (which load perfectly fine into the campaign) to the CustomBattle mode of the game. I have found absolutely zero information on CustomBattles specifically other than the "just use Enhanced Battle Test" mod. I am on version 1.1.5 which the enhanced battle test mod does not work on due to it being outdated.

Does anyone have any information on how this could be done? What XMLs may need editing or how to see what files the CustomBattle mode draws from?
Campaigns allow access to all of the armor and weapons fine through inventory, but CustomBattle is a lot less easy to figure out, especially when you're guessing what changed in the format of a certain XML between versions.

Right now I am simply trying to get the armor, troops, and heroes from the Battle for Helm's Deep mod (latest version 1.0.0) into CustomBattles.

Any help would be greatly appreciated.
 
You need to have this line in the SubModule.xml.
XML:
        <XmlNode>
            <IncludedGameTypes>
                <GameType value="CustomGame"/>
            </IncludedGameTypes>
        </XmlNode>
Hey, thanks for the reply. Which submodule? The mod itself or the Submodule of custombattles? I tried this edit a while ago but to no avail. I decided to try again based on what you mentioned so I edited the BFHD mod submodule so that its content could be accessed by custombattle. However, nothing changed in custom battle to add new units.

Also, if this does work, does the format matter? Some of the gametypes have (value = "CustomGame"/>) while others look like yours without the extra spaces around the =.
 
Upvote 0
XML:
<Module>
    <Name value="BFHD"/>
    <Id value="BFHD"/>
    <Version value="v1.1.5"/>
    <SingleplayerModule value="true"/>
    <MultiplayerModule value="false"/>
    <Official value="false"/>
    <DependedModules>
        <DependedModule Id="Native"/>
        <DependedModule Id="SandBoxCore"/>
        <DependedModule Id="Sandbox"/>
        <DependedModule Id="CustomBattle"/>
        <DependedModule Id="StoryMode"/>
    </DependedModules>
    <SubModules>
        <SubModule>
          <Name value="EnhancedBattleTestSubModule"/>         
          <DLLName value="EnhancedBattleTest.dll"/>
          <SubModuleClassType value="EnhancedBattleTest.EnhancedBattleTestSubModule"/>       
          <Tags>
            <Tag key="DedicatedServerType" value="none" />
            <Tag key="IsNoRenderModeElement" value="false" />
          </Tags>
        </SubModule>
    </SubModules>
    <Xmls>
        <XmlNode>               
            <XmlName id="Monsters" path="monsters"/>
        </XmlNode>
        <XmlNode>               
            <XmlName id="WeaponDescriptions" path="weapon_descriptions"/>
        </XmlNode>
        <XmlNode>
            <XmlName id="Items" path="items"/>
            <IncludedGameTypes>
                <GameType value="Campaign"/>
                <GameType value="CampaignStoryMode"/>
                <GameType value="CustomGame"/>
                <GameType value="EditorGame"/>
            </IncludedGameTypes>
        </XmlNode>
        <XmlNode>
            <XmlName id="partyTemplates" path="partyTemplates"/>
            <IncludedGameTypes>
                <GameType value="Campaign"/>
                <GameType value="CampaignStoryMode"/>
                <GameType value="CustomGame"/>
                <GameType value="EditorGame"/>
            </IncludedGameTypes>
        </XmlNode>
        <XmlNode>
            <XmlName id="Factions" path="spclans"/>
            <IncludedGameTypes>
                <GameType value="Campaign"/>
                <GameType value="CampaignStoryMode"/>
                <GameType value="CustomGame"/>
                <GameType value="EditorGame"/>
            </IncludedGameTypes>
        </XmlNode>
        <XmlNode>
            <XmlName id="WorkshopTypes" path="spworkshops"/>
            <IncludedGameTypes>
                <GameType value="Campaign"/>
                <GameType value="CampaignStoryMode"/>
                <GameType value="CustomGame"/>
                <GameType value="EditorGame"/>
            </IncludedGameTypes>
        </XmlNode>
        <XmlNode>               
            <XmlName id="CraftingPieces" path="crafting_pieces"/>
            <IncludedGameTypes>
                <GameType value = "Campaign"/>
                <GameType value = "CampaignStoryMode"/>
                <GameType value = "CustomGame"/>
                <GameType value = "EditorGame"/>
            </IncludedGameTypes>
        </XmlNode>               
        <XmlNode>
            <XmlName id="CraftingTemplates" path="crafting_templates"/>
            <IncludedGameTypes>
                <GameType value="Campaign"/>
                <GameType value="CampaignStoryMode"/>
                <GameType value="CustomGame"/>
                <GameType value="EditorGame"/>
            </IncludedGameTypes>
        </XmlNode>             
        <XmlNode>
            <XmlName id="Items" path="rohan_items"/>
            <IncludedGameTypes>
                <GameType value="Campaign"/>
                <GameType value="CampaignStoryMode"/>
                <GameType value="CustomGame"/>
                <GameType value="EditorGame"/>
            </IncludedGameTypes>
        </XmlNode>
        <XmlNode>
            <XmlName id="Items" path="elf_items"/>
            <IncludedGameTypes>
                <GameType value="Campaign"/>
                <GameType value="CampaignStoryMode"/>
                <GameType value="CustomGame"/>
                <GameType value="EditorGame"/>
            </IncludedGameTypes>
        </XmlNode>
        <XmlNode>
            <XmlName id="Items" path="isen_items"/>
            <IncludedGameTypes>
                <GameType value="Campaign"/>
                <GameType value="CampaignStoryMode"/>
                <GameType value="CustomGame"/>
                <GameType value="EditorGame"/>
            </IncludedGameTypes>
        </XmlNode>
        <XmlNode>
            <XmlName id="NPCCharacters" path="spnpccharacters"/>
            <IncludedGameTypes>
                <GameType value="Campaign"/>
                <GameType value="CampaignStoryMode"/>
                <GameType value="CustomGame"/>
                <GameType value="EditorGame"/>
            </IncludedGameTypes>
        </XmlNode>
        <XmlNode>
            <XmlName id="BodyProperties" path="bodyproperties"/>
            <IncludedGameTypes>
                <GameType value = "Campaign"/>
                <GameType value = "CampaignStoryMode"/>
                <GameType value = "CustomGame"/>
                <GameType value = "EditorGame"/>
            </IncludedGameTypes>
        </XmlNode>
        <XmlNode>               
            <XmlName id="EquipmentRosters" path="equipment_sets"/>
            <IncludedGameTypes>
                <GameType value = "Campaign"/>
                <GameType value = "CampaignStoryMode"/>
                <GameType value = "CustomGame"/>
                <GameType value = "EditorGame"/>
            </IncludedGameTypes>
        </XmlNode>
        <XmlNode>               
            <XmlName id="SkillSets" path="skill_sets"/>
            <IncludedGameTypes>
                <GameType value = "Campaign"/>
                <GameType value = "CampaignStoryMode"/>
                <GameType value = "CustomGame"/>
                <GameType value = "EditorGame"/>
            </IncludedGameTypes>
        </XmlNode>
        <XmlNode>
            <XmlName id="SPCultures" path="spcultures"/>
            <IncludedGameTypes>
                <GameType value="Campaign"/>
                <GameType value="CampaignStoryMode"/>
                <GameType value="CustomGame"/>
                <GameType value="EditorGame"/>
            </IncludedGameTypes>
        </XmlNode>
        <XmlNode>               
            <XmlName id="NPCCharacters" path="spnpccharactertemplates"/>
            <IncludedGameTypes>
                <GameType value = "Campaign"/>
                <GameType value = "CampaignStoryMode"/>
                <GameType value = "CustomGame"/>
                <GameType value = "EditorGame"/>
            </IncludedGameTypes>
        </XmlNode>
        <XmlNode>               
            <XmlName id="Heroes" path="heroes"/>
            <IncludedGameTypes>
                <GameType value = "Campaign"/>
                <GameType value = "CampaignStoryMode"/>
                <GameType value = "CustomGame"/>
                <GameType value = "EditorGame"/>
            </IncludedGameTypes>
        </XmlNode>
        <XmlNode>               
            <XmlName id="NPCCharacters" path="lords"/>
            <IncludedGameTypes>
                <GameType value = "Campaign"/>
                <GameType value = "CampaignStoryMode"/>
                <GameType value = "CustomGame"/>
                <GameType value = "EditorGame"/>
            </IncludedGameTypes>
        </XmlNode>
        <XmlNode>
      <XmlName id="GameText" path="module_strings"/>
    </XmlNode>
    </Xmls>
</Module>
 
Upvote 0
XML:
<Module>
    <Name value="BFHD"/>
    <Id value="BFHD"/>
    <Version value="v1.1.5"/>
    <SingleplayerModule value="true"/>
    <MultiplayerModule value="false"/>
    <Official value="false"/>
    <DependedModules>
        <DependedModule Id="Native"/>
        <DependedModule Id="SandBoxCore"/>
        <DependedModule Id="Sandbox"/>
        <DependedModule Id="CustomBattle"/>
        <DependedModule Id="StoryMode"/>
    </DependedModules>
    <SubModules>
        <SubModule>
          <Name value="EnhancedBattleTestSubModule"/>        
          <DLLName value="EnhancedBattleTest.dll"/>
          <SubModuleClassType value="EnhancedBattleTest.EnhancedBattleTestSubModule"/>      
          <Tags>
            <Tag key="DedicatedServerType" value="none" />
            <Tag key="IsNoRenderModeElement" value="false" />
          </Tags>
        </SubModule>
    </SubModules>
    <Xmls>
        <XmlNode>              
            <XmlName id="Monsters" path="monsters"/>
        </XmlNode>
        <XmlNode>              
            <XmlName id="WeaponDescriptions" path="weapon_descriptions"/>
        </XmlNode>
        <XmlNode>
            <XmlName id="Items" path="items"/>
            <IncludedGameTypes>
                <GameType value="Campaign"/>
                <GameType value="CampaignStoryMode"/>
                <GameType value="CustomGame"/>
                <GameType value="EditorGame"/>
            </IncludedGameTypes>
        </XmlNode>
        <XmlNode>
            <XmlName id="partyTemplates" path="partyTemplates"/>
            <IncludedGameTypes>
                <GameType value="Campaign"/>
                <GameType value="CampaignStoryMode"/>
                <GameType value="CustomGame"/>
                <GameType value="EditorGame"/>
            </IncludedGameTypes>
        </XmlNode>
        <XmlNode>
            <XmlName id="Factions" path="spclans"/>
            <IncludedGameTypes>
                <GameType value="Campaign"/>
                <GameType value="CampaignStoryMode"/>
                <GameType value="CustomGame"/>
                <GameType value="EditorGame"/>
            </IncludedGameTypes>
        </XmlNode>
        <XmlNode>
            <XmlName id="WorkshopTypes" path="spworkshops"/>
            <IncludedGameTypes>
                <GameType value="Campaign"/>
                <GameType value="CampaignStoryMode"/>
                <GameType value="CustomGame"/>
                <GameType value="EditorGame"/>
            </IncludedGameTypes>
        </XmlNode>
        <XmlNode>              
            <XmlName id="CraftingPieces" path="crafting_pieces"/>
            <IncludedGameTypes>
                <GameType value = "Campaign"/>
                <GameType value = "CampaignStoryMode"/>
                <GameType value = "CustomGame"/>
                <GameType value = "EditorGame"/>
            </IncludedGameTypes>
        </XmlNode>              
        <XmlNode>
            <XmlName id="CraftingTemplates" path="crafting_templates"/>
            <IncludedGameTypes>
                <GameType value="Campaign"/>
                <GameType value="CampaignStoryMode"/>
                <GameType value="CustomGame"/>
                <GameType value="EditorGame"/>
            </IncludedGameTypes>
        </XmlNode>            
        <XmlNode>
            <XmlName id="Items" path="rohan_items"/>
            <IncludedGameTypes>
                <GameType value="Campaign"/>
                <GameType value="CampaignStoryMode"/>
                <GameType value="CustomGame"/>
                <GameType value="EditorGame"/>
            </IncludedGameTypes>
        </XmlNode>
        <XmlNode>
            <XmlName id="Items" path="elf_items"/>
            <IncludedGameTypes>
                <GameType value="Campaign"/>
                <GameType value="CampaignStoryMode"/>
                <GameType value="CustomGame"/>
                <GameType value="EditorGame"/>
            </IncludedGameTypes>
        </XmlNode>
        <XmlNode>
            <XmlName id="Items" path="isen_items"/>
            <IncludedGameTypes>
                <GameType value="Campaign"/>
                <GameType value="CampaignStoryMode"/>
                <GameType value="CustomGame"/>
                <GameType value="EditorGame"/>
            </IncludedGameTypes>
        </XmlNode>
        <XmlNode>
            <XmlName id="NPCCharacters" path="spnpccharacters"/>
            <IncludedGameTypes>
                <GameType value="Campaign"/>
                <GameType value="CampaignStoryMode"/>
                <GameType value="CustomGame"/>
                <GameType value="EditorGame"/>
            </IncludedGameTypes>
        </XmlNode>
        <XmlNode>
            <XmlName id="BodyProperties" path="bodyproperties"/>
            <IncludedGameTypes>
                <GameType value = "Campaign"/>
                <GameType value = "CampaignStoryMode"/>
                <GameType value = "CustomGame"/>
                <GameType value = "EditorGame"/>
            </IncludedGameTypes>
        </XmlNode>
        <XmlNode>              
            <XmlName id="EquipmentRosters" path="equipment_sets"/>
            <IncludedGameTypes>
                <GameType value = "Campaign"/>
                <GameType value = "CampaignStoryMode"/>
                <GameType value = "CustomGame"/>
                <GameType value = "EditorGame"/>
            </IncludedGameTypes>
        </XmlNode>
        <XmlNode>              
            <XmlName id="SkillSets" path="skill_sets"/>
            <IncludedGameTypes>
                <GameType value = "Campaign"/>
                <GameType value = "CampaignStoryMode"/>
                <GameType value = "CustomGame"/>
                <GameType value = "EditorGame"/>
            </IncludedGameTypes>
        </XmlNode>
        <XmlNode>
            <XmlName id="SPCultures" path="spcultures"/>
            <IncludedGameTypes>
                <GameType value="Campaign"/>
                <GameType value="CampaignStoryMode"/>
                <GameType value="CustomGame"/>
                <GameType value="EditorGame"/>
            </IncludedGameTypes>
        </XmlNode>
        <XmlNode>              
            <XmlName id="NPCCharacters" path="spnpccharactertemplates"/>
            <IncludedGameTypes>
                <GameType value = "Campaign"/>
                <GameType value = "CampaignStoryMode"/>
                <GameType value = "CustomGame"/>
                <GameType value = "EditorGame"/>
            </IncludedGameTypes>
        </XmlNode>
        <XmlNode>              
            <XmlName id="Heroes" path="heroes"/>
            <IncludedGameTypes>
                <GameType value = "Campaign"/>
                <GameType value = "CampaignStoryMode"/>
                <GameType value = "CustomGame"/>
                <GameType value = "EditorGame"/>
            </IncludedGameTypes>
        </XmlNode>
        <XmlNode>              
            <XmlName id="NPCCharacters" path="lords"/>
            <IncludedGameTypes>
                <GameType value = "Campaign"/>
                <GameType value = "CampaignStoryMode"/>
                <GameType value = "CustomGame"/>
                <GameType value = "EditorGame"/>
            </IncludedGameTypes>
        </XmlNode>
        <XmlNode>
      <XmlName id="GameText" path="module_strings"/>
    </XmlNode>
    </Xmls>
</Module>
Some parts had both customgame and editorgame in the gametypes already, and others didn't so I added them.
 
Upvote 0
Back
Top Bottom