modding help

More anomolies mod

So there is this mod called More anomalies which I love but i want to tweak it a little to add a couple things

 

so when you hit a shipgraveyard you can get a chance to get a boost to your fleet's armor or shields ,what i want to add is point defense and all the attack values so with some help on the steam forum i got started but ...dont think i did things correctly as im getting an error when i go to start a game and it wont load after that

 

 

so this is what I have done

 

<Anomaly>
<InternalName>BoltOnPointDefense</InternalName>
<DisplayName>BoltOnPointDefense_Name</DisplayName>
<Description>BoltOnPD_Dec</Description>
<ArtDefine>GraveyardAnomalyArt</ArtDefine>
<Weight>5</Weight>
<EncounterChance>0.75</EncounterChance>
<EncounterTriggers>
<OnEvent>OnCollideAtAnomaly</OnEvent>
<Target>
<TargetType>Fleet</TargetType>
</Target>
<Lifetime>Instant</Lifetime>
<PerformAction>
<Action>BattleEncounter</Action>
<StringParam>PirateEncounter</StringParam>
</PerformAction>
</EncounterTriggers>
<Triggers>
<OnEvent>OnArriveAtAnomaly</OnEvent>
<Target>
<TargetType>AllShipsInFleet</TargetType>
</Target>
<Lifetime>Target</Lifetime>
<Modifier>
<EffectType>PointDefense</EffectType>
<Target>
<TargetType>Ship</TargetType>
</Target>
<BonusType>Flat</BonusType>
<Value>10</Value>
</Modifier>
</Triggers>
</Anomaly>

<Anomaly>
<InternalName>BoltOnMissle's</InternalName>
<DisplayName>BoltOnMissle's_Name</DisplayName>
<Description>BoltOnMissle's_Dec</Description>
<ArtDefine>GraveyardAnomalyArt</ArtDefine>
<Weight>5</Weight>
<EncounterChance>0.75</EncounterChance>
<EncounterTriggers>
<OnEvent>OnCollideAtAnomaly</OnEvent>
<Target>
<TargetType>Fleet</TargetType>
</Target>
<Lifetime>Instant</Lifetime>
<PerformAction>
<Action>BattleEncounter</Action>
<StringParam>PirateEncounter</StringParam>
</PerformAction>
</EncounterTriggers>
<Triggers>
<OnEvent>OnArriveAtAnomaly</OnEvent>
<Target>
<TargetType>AllShipsInFleet</TargetType>
</Target>
<Lifetime>Target</Lifetime>
<Modifier>
<EffectType>MissileAttack</EffectType>
<Target>
<TargetType>Ship</TargetType>
</Target>
<BonusType>Flat</BonusType>
<Value>12</Value>
</Modifier>
</Triggers>
</Anomaly> 

<Anomaly>
<InternalName>BoltOnBeam's</InternalName>
<DisplayName>BoltOnBeam's_Name</DisplayName>
<Description>BoltOnBeam's_Dec</Description>
<ArtDefine>GraveyardAnomalyArt</ArtDefine>
<Weight>5</Weight>
<EncounterChance>0.75</EncounterChance>
<EncounterTriggers>
<OnEvent>OnCollideAtAnomaly</OnEvent>
<Target>
<TargetType>Fleet</TargetType>
</Target>
<Lifetime>Instant</Lifetime>
<PerformAction>
<Action>BattleEncounter</Action>
<StringParam>PirateEncounter</StringParam>
</PerformAction>
</EncounterTriggers>
<Triggers>
<OnEvent>OnArriveAtAnomaly</OnEvent>
<Target>
<TargetType>AllShipsInFleet</TargetType>
</Target>
<Lifetime>Target</Lifetime>
<Modifier>
<EffectType>BeamAttack</EffectType>
<Target>
<TargetType>Ship</TargetType>
</Target>
<BonusType>Flat</BonusType>
<Value>12</Value>
</Modifier>
</Triggers>
</Anomaly> 

<Anomaly>
<InternalName>BoltOnKinetic's</InternalName>
<DisplayName>BoltOnKinetic's_Name</DisplayName>
<Description>BoltOnKinetic's_Dec</Description>
<ArtDefine>GraveyardAnomalyArt</ArtDefine>
<Weight>5</Weight>
<EncounterChance>0.75</EncounterChance>
<EncounterTriggers>
<OnEvent>OnCollideAtAnomaly</OnEvent>
<Target>
<TargetType>Fleet</TargetType>
</Target>
<Lifetime>Instant</Lifetime>
<PerformAction>
<Action>BattleEncounter</Action>
<StringParam>PirateEncounter</StringParam>
</PerformAction>
</EncounterTriggers>
<Triggers>
<OnEvent>OnArriveAtAnomaly</OnEvent>
<Target>
<TargetType>AllShipsInFleet</TargetType>
</Target>
<Lifetime>Target</Lifetime>
<Modifier>
<EffectType>KineticAttack</EffectType>
<Target>
<TargetType>Ship</TargetType>
</Target>
<BonusType>Flat</BonusType>
<Value>12</Value>
</Modifier>
</Triggers>
</Anomaly>


so that was in the xml of the mod i am adding too and then i figured i needed to put something in the descript section so i did this 


<StringTable>
<Label>BoltOnPointDefense_Name</Label>
<String>To Duty They are Called</String>
</StringTable>

<StringTable>
<Label>BoltOnPD_Dec</Label>
<String>While examining the wreck of a cargo vessel your crew discovers it was hauling a load of modular autonomous PD bays, no doubt bound for some distant shipyard. The drone fighters within are intact and after running some diagnostics are fully functional. The chief engineer decides the modules can easily be attached to the outer hull and soon has the refit completed )</String>
</StringTable>

<StringTable>
<Label>BoltOnMissle's_Name</Label>
<String>To Duty They are Called</String>
</StringTable>

<StringTable>
<Label>BoltOnMissle's_Dec</Label>
<String>While examining the wreck of a cargo vessel your crew discovers it was hauling a load of modular autonomous Missle bays, no doubt bound for some distant shipyard. The drone fighters within are intact and after running some diagnostics are fully functional. The chief engineer decides the modules can easily be attached to the outer hull and soon has the refit completed </String>
</StringTable>

<StringTable>
<Label>BoltOnBeam's_Name</Label>
<String>To Duty They are Called</String>
</StringTable>

<StringTable>
<Label>BoltOnBeam's_Dec</Label>
<String>While examining the wreck of a cargo vessel your crew discovers it was hauling a load of modular autonomous Beam bays, no doubt bound for some distant shipyard. The drone fighters within are intact and after running some diagnostics are fully functional. The chief engineer decides the modules can easily be attached to the outer hull and soon has the refit completed</String>
</StringTable>

<StringTable>
<Label>BoltOnKinetic's_Name</Label>
<String>To Duty They are Called</String>
</StringTable>

<StringTable>
<Label>BoltOnKinetic's_Dec</Label>
<String>While examining the wreck of a cargo vessel your crew discovers it was hauling a load of modular autonomous fighter bays, no doubt bound for some distant shipyard. The drone fighters within are intact and after running some diagnostics are fully functional. The chief engineer decides the modules can easily be attached to the outer hull and soon has the refit completed </String>
</StringTable>


and i get this error


C:\Users\\Documents\My Games\GalCiv3\Mods\MoreAnomalies\Game\MA_AnomalyDefs.xml(450,22): error: 
element name expected

whats that mean?

so since im new to all this i have zero clue what i did wrong or if I managed to do anything right even any help would be lovely ...,



Ps i tried reaching out to the mod author but never heard back

5,101 views 4 replies
Reply #1 Top

First make a new XML name it My_AnomoliesText.xml in this you should have:-

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<StringTableList
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../Schema/Lib/StringTable.xsd">
    <!-- Created by ModBuddy on 20-May-16 12:32:26 PM -->

    <StringTable>
        <Label>BoltOnPointDefense_Name</Label>
        <String>To Duty They are Called</String>
    </StringTable>

    <StringTable>
        <Label>BoltOnPD_Dec</Label>
        <String>While examining the wreck of a cargo vessel your crew discovers it was hauling a load of modular autonomous PD bays, no doubt bound for some distant shipyard. The drone fighters within are intact and after running some diagnostics are fully functional. The chief engineer decides the modules can easily be attached to the outer hull and soon has the refit completed )</String>
    </StringTable>

    <StringTable>
        <Label>BoltOnMissle's_Name</Label>
        <String>To Duty They are Called</String>
    </StringTable>

    <StringTable>
        <Label>BoltOnMissle's_Dec</Label>
        <String>While examining the wreck of a cargo vessel your crew discovers it was hauling a load of modular autonomous Missle bays, no doubt bound for some distant shipyard. The drone fighters within are intact and after running some diagnostics are fully functional. The chief engineer decides the modules can easily be attached to the outer hull and soon has the refit completed </String>
    </StringTable>

    <StringTable>
        <Label>BoltOnBeam's_Name</Label>
        <String>To Duty They are Called</String>
    </StringTable>

    <StringTable>
        <Label>BoltOnBeam's_Dec</Label>
        <String>While examining the wreck of a cargo vessel your crew discovers it was hauling a load of modular autonomous Beam bays, no doubt bound for some distant shipyard. The drone fighters within are intact and after running some diagnostics are fully functional. The chief engineer decides the modules can easily be attached to the outer hull and soon has the refit completed</String>
    </StringTable>

    <StringTable>
        <Label>BoltOnKinetic's_Name</Label>
        <String>To Duty They are Called</String>
    </StringTable>

    <StringTable>
        <Label>BoltOnKinetic's_Dec</Label>
        <String>While examining the wreck of a cargo vessel your crew discovers it was hauling a load of modular autonomous fighter bays, no doubt bound for some distant shipyard. The drone fighters within are intact and after running some diagnostics are fully functional. The chief engineer decides the modules can easily be attached to the outer hull and soon has the refit completed </String>
    </StringTable>

</StringTableList>

 

Next make another new XML, name it My_AnomolyDefs.xml, in this you should have:-

 

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<AnomalyList
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/AnomalyDefs.xsd">
<!-- Created with the Gal Civ 3 Editor -->
<!-- AnomalyDefs.xml -->
 
  <AnomalyGroup>
    <InternalName>MyAnomolies</InternalName>
    <DisplayName>Anomoly</DisplayName>
    <Weight>10</Weight>

        <Anomaly>
            <InternalName>BoltOnPointDefense</InternalName>
            <DisplayName>BoltOnPointDefense_Name</DisplayName>
            <Description>BoltOnPD_Dec</Description>
            <ArtDefine>GraveyardAnomalyArt</ArtDefine>
            <Weight>5</Weight>
            <EncounterChance>0.75</EncounterChance>
            <EncounterTriggers>
                <OnEvent>OnCollideAtAnomaly</OnEvent>
                <Target>
                    <TargetType>Fleet</TargetType>
                </Target>
                <Lifetime>Instant</Lifetime>
                <PerformAction>
                    <Action>BattleEncounter</Action>
                    <StringParam>PirateEncounter</StringParam>
                </PerformAction>
            </EncounterTriggers>
            <Triggers>
                <OnEvent>OnArriveAtAnomaly</OnEvent>
                <Target>
                    <TargetType>AllShipsInFleet</TargetType>
                </Target>
                <Lifetime>Target</Lifetime>
                <Modifier>
                    <EffectType>PointDefense</EffectType>
                    <Target>
                        <TargetType>Ship</TargetType>
                    </Target>
                    <BonusType>Flat</BonusType>
                    <Value>10</Value>
                </Modifier>
            </Triggers>
        </Anomaly>

        <Anomaly>
            <InternalName>BoltOnMissles</InternalName>
            <DisplayName>BoltOnMissles_Name</DisplayName>
            <Description>BoltOnMissles_Dec</Description>
            <ArtDefine>GraveyardAnomalyArt</ArtDefine>
            <Weight>5</Weight>
            <EncounterChance>0.75</EncounterChance>
            <EncounterTriggers>
                <OnEvent>OnCollideAtAnomaly</OnEvent>
                <Target>
                    <TargetType>Fleet</TargetType>
                </Target>
                <Lifetime>Instant</Lifetime>
                <PerformAction>
                    <Action>BattleEncounter</Action>
                    <StringParam>PirateEncounter</StringParam>
                </PerformAction>
            </EncounterTriggers>
            <Triggers>
                <OnEvent>OnArriveAtAnomaly</OnEvent>
                <Target>
                    <TargetType>AllShipsInFleet</TargetType>
                </Target>
                <Lifetime>Target</Lifetime>
                <Modifier>
                    <EffectType>MissileAttack</EffectType>
                    <Target>
                        <TargetType>Ship</TargetType>
                    </Target>
                    <BonusType>Flat</BonusType>
                    <Value>12</Value>
                </Modifier>
            </Triggers>
        </Anomaly>

        <Anomaly>
            <InternalName>BoltOnBeams</InternalName>
            <DisplayName>BoltOnBeams_Name</DisplayName>
            <Description>BoltOnBeams_Dec</Description>
            <ArtDefine>GraveyardAnomalyArt</ArtDefine>
            <Weight>5</Weight>
            <EncounterChance>0.75</EncounterChance>
            <EncounterTriggers>
                <OnEvent>OnCollideAtAnomaly</OnEvent>
                <Target>
                    <TargetType>Fleet</TargetType>
                </Target>
                <Lifetime>Instant</Lifetime>
                <PerformAction>
                    <Action>BattleEncounter</Action>
                    <StringParam>PirateEncounter</StringParam>
                </PerformAction>
            </EncounterTriggers>
            <Triggers>
                <OnEvent>OnArriveAtAnomaly</OnEvent>
                <Target>
                    <TargetType>AllShipsInFleet</TargetType>
                </Target>
                <Lifetime>Target</Lifetime>
                <Modifier>
                    <EffectType>BeamAttack</EffectType>
                    <Target>
                        <TargetType>Ship</TargetType>
                    </Target>
                    <BonusType>Flat</BonusType>
                    <Value>12</Value>
                </Modifier>
            </Triggers>
        </Anomaly>

        <Anomaly>
            <InternalName>BoltOnKinetics</InternalName>
            <DisplayName>BoltOnKinetics_Name</DisplayName>
            <Description>BoltOnKinetics_Dec</Description>
            <ArtDefine>GraveyardAnomalyArt</ArtDefine>
            <Weight>5</Weight>
            <EncounterChance>0.75</EncounterChance>
            <EncounterTriggers>
                <OnEvent>OnCollideAtAnomaly</OnEvent>
                <Target>
                    <TargetType>Fleet</TargetType>
                </Target>
                <Lifetime>Instant</Lifetime>
                <PerformAction>
                    <Action>BattleEncounter</Action>
                    <StringParam>PirateEncounter</StringParam>
                </PerformAction>
            </EncounterTriggers>
            <Triggers>
                <OnEvent>OnArriveAtAnomaly</OnEvent>
                <Target>
                    <TargetType>AllShipsInFleet</TargetType>
                </Target>
                <Lifetime>Target</Lifetime>
                <Modifier>
                    <EffectType>KineticAttack</EffectType>
                    <Target>
                        <TargetType>Ship</TargetType>
                    </Target>
                    <BonusType>Flat</BonusType>
                    <Value>12</Value>
                </Modifier>
            </Triggers>
        </Anomaly>
 
  </AnomalyGroup>
 
</AnomalyList>


Place these two new XML files in:- ...Documents/My Games/GalCiv3/Mods/Example Mod/Game

Do not use special characters in the naming of things like you did with the ' in BoltOnBeam's

Reply #2 Top

ok...umm how do i make an xml file ....sorry im such a noob and thanks super much for the help,the corrections and the quick reply :)

Reply #3 Top

Make a text document, change the file extension to .xml instead of .txt

 

EDIT:

See here for guide to turning show extension's on for windows:

http://www.mediacollege.com/microsoft/windows/extension-change.html