How Do I screw up this simple modification?

Growing tired of reloading the game until I saw 3rd book in the tech tree;

I took the Techs_Amarian.xml and copied it from C:\Program Files (x86)\Stardock Games\FallenEnchantress\data\English\Only-SP to C:\Users\Sean\Documents\My Games\FallenEnchantress\Mods\Data\English\Only-SP and then modded it to set all the random techs (magic books, king of the wild and 3rd book) to 100%appearance/rarity.

For some reason it didn't change the chance of appearance but I know it is getting read. I know this because now half the techs in the magic line are now duplicated unto themselves. (For example: Shard tech has 2 of each temples on it.)

I have even gone so far as to mod the file in the install directory but that made no difference at all.

Yes, the options has Use Mods enabled.

I know that this is how I've modded the game before, as I have set Large maps to 12x9 (I get the cool message saying that larger then 12x8 is liable to act strangely), and altered the number of stamps placed.

So....

 

Where did I go wrong modding that XML?

7,053 views 7 replies
Reply #1 Top

For techs, you need to mod right in the installation directory as of beta 0.915. Remember to start the game with the following shortcut:

"C:\Program Files (x86)\Stardock Games\FallenEnchantress\FallenEnchantress.exe" -localdataonly

also keep backups of the original file because you'll need to restore it before patching the game.

Reply #2 Top

I solved the problem by creating my own race e.g. copying the xml-files and changing the race etc. I am not at my gaming computer right now, but I now have a "true" magic-using race Draginol compared to the upstarts Pariden. :)

 

If you wish I will try to see what I changed and post it here, if you wish.

 ps. I edited so that I always had the book of air and book of fire and the Third book. There is a parameter determining the chance to appear.

Reply #3 Top

thank you. funny how the game will pick up some modded xmls in the my documents and not others, and then on others read them twice. sigh.

Reply #4 Top

It is generally easier to make all mods in the game folder. That way you don't need to bother learning which goes where. Just keep a backup!

Reply #5 Top

I have made a file with the name 'Techs_Draginol.xml', which contains the following and is located in the 'My Games'-folder:

Code: xml
  1. -<Techs> -<DataChecksum NoParse="1"> <Ignore>DisplayName,Description,Image,Color,HotColor,Icon</Ignore> <Translate>DisplayName,Description</Translate> </DataChecksum> -<TechDef InternalName="Book_Flames"> <DisplayName>Book of Flames</DisplayName> <Description>This volume contains the greatest of all spells concerned with the powers of fire and flame. These were first set down thousands of years ago by Ereog's daughter Merlayne, who sought in vain to emulate her father's power by bending the Elemental Lord Torax to her will. </Description> <Image>S_AnnointedByFire_Painting.png</Image> <Color>255,186,31</Color> <HotColor>255,242,57</HotColor> <Cost>88</Cost> <Rarity>100</Rarity> <Category>Magic</Category> <Infinite>0</Infinite> <AppearanceChance>100</AppearanceChance> -<GameModifier> <ModType>Player</ModType> <Attribute>UnlockSpell</Attribute> <StrVal>FlameWave</StrVal> <Icon>T_Flamewave_Icon.png</Icon> <Provides>Unlocks spell: Flame Wave</Provides> </GameModifier> -<GameModifier> <ModType>Player</ModType> <Attribute>UnlockSpell</Attribute> <StrVal>ProtectionFromFire</StrVal> <Icon>T_ProtectionFromFire_Icon.png</Icon> <Provides>Unlocks spell: Protection from Fire</Provides> </GameModifier> -<Prereq> <Type>Tech</Type> <Attribute>Shard_Harvesting</Attribute> </Prereq> -<AIData AIPersonality="AI_General"> <AIPriority>50</AIPriority> <AITradeToGetValue>75</AITradeToGetValue> <AITradeOutValue>90</AITradeOutValue> <AIAtWarMultiplier>1</AIAtWarMultiplier> <AIEarlyBuildUpMultiplier>1</AIEarlyBuildUpMultiplier> </AIData> </TechDef> -<TechDef InternalName="Book_Winds"> <DisplayName>Book of Winds</DisplayName> <Description>This volume contains the greatest of all spells concerned with the powers of wind, and air. These were first set down thousands of years ago by Ereog's daughter Merlayne, who sought in vain to emulate her father's power by bending the Elemental Lord Torax to her will. </Description> <Image>Brilliance_Painting.png</Image> <Color>255,186,31</Color> <HotColor>255,242,57</HotColor> <Cost>88</Cost> <Rarity>100</Rarity> <Category>Magic</Category> <Infinite>0</Infinite> <AppearanceChance>100</AppearanceChance> -<GameModifier> <ModType>Player</ModType> <Attribute>UnlockSpell</Attribute> <StrVal>EyesOfTheEagle</StrVal> <Icon>S_EyesoftheEagle_Icon.png</Icon> <Provides>Unlocks spell: Eyes of the Eagle</Provides> </GameModifier> -<GameModifier> <ModType>Player</ModType> <Attribute>UnlockSpell</Attribute> <StrVal>ObscuringFog</StrVal> <Icon>T_ObscuringFog_Icon.png</Icon> <Provides>Unlocks spell: Obscuring Fog</Provides> </GameModifier> -<GameModifier> <ModType>Player</ModType> <Attribute>UnlockSpell</Attribute> <StrVal>Escape</StrVal> <Icon>T_Escape_Icon.png</Icon> <Provides>Unlocks spell: Escape</Provides> </GameModifier> -<Prereq> <Type>Tech</Type> <Attribute>Shard_Harvesting</Attribute> </Prereq> -<AIData AIPersonality="AI_General"> <AIPriority>50</AIPriority> <AITradeToGetValue>75</AITradeToGetValue> <AITradeOutValue>90</AITradeOutValue> <AIAtWarMultiplier>1</AIAtWarMultiplier> <AIEarlyBuildUpMultiplier>1</AIEarlyBuildUpMultiplier> </AIData> </TechDef> -<TechDef InternalName="Third_Book_The_Magi"> <DisplayName>Third Book of the Magi</DisplayName> <Description>Researching the knowledge contained in this volume - said to comprise Argynn's legacy to the West - will grant the channelers of your kingdom powerful new spells to add to their arcane arsenal.</Description> <Image>Tech_Third_Book.png</Image> <Color>76,79,196</Color> <HotColor>182,182,244</HotColor> <Cost>1649</Cost> <Rarity>100</Rarity> <Category>Magic</Category> <Infinite>0</Infinite> <AppearanceChance>100</AppearanceChance> -<GameModifier> <ModType>Player</ModType> <Attribute>UnlockSpell</Attribute> <StrVal>FallingStar</StrVal> <Icon>S_FallingStar_Icon.png</Icon> <Provides>Unlocks spell: Falling Star</Provides> </GameModifier> -<GameModifier> <ModType>Player</ModType> <Attribute>UnlockSpell</Attribute> <StrVal>PullOfTheEarth</StrVal> <Icon>T_PulloftheEarth_Icon.png</Icon> <Provides>Unlocks spell: Pull of the Earth</Provides> </GameModifier> -<GameModifier> <ModType>Player</ModType> <Attribute>UnlockSpell</Attribute> <StrVal>GlyphOfLife</StrVal> <Icon>S_GlyphofLife_Icon.png</Icon> <Provides>Unlocks spell: Glyph of Life</Provides> </GameModifier> -<GameModifier> <ModType>Player</ModType> <Attribute>UnlockSpell</Attribute> <StrVal>BirthOfSummer</StrVal> <Icon>S_BirthOfSummer_Icon.png</Icon> <Provides>Unlocks spell: Birth of Summer</Provides> </GameModifier> -<GameModifier> <ModType>Player</ModType> <Attribute>UnlockSpell</Attribute> <StrVal>BloomOfTwilight</StrVal> <Icon>S_BirthOfSummer_Icon.png</Icon> <Provides>Unlocks spell: Bloom of Twilight</Provides> </GameModifier> -<Prereq> <Type>Tech</Type> <Attribute>Book_Of_Mastery</Attribute> </Prereq> -<AIData AIPersonality="AI_General"> <AIPriority>50</AIPriority> <AITradeToGetValue>75</AITradeToGetValue> <AITradeOutValue>90</AITradeOutValue> <AIAtWarMultiplier>1</AIAtWarMultiplier> <AIEarlyBuildUpMultiplier>1</AIEarlyBuildUpMultiplier> </AIData> </TechDef> </Techs>

Reply #6 Top

I have eseentially just taken the techs I wanted and made it in a new race-file (race=Draginol), where I have edited the techs I wanted e.g. Book of fire and Book of air and Third book.

 

 I have also made a file 'RaceConfigs_Draginol.xml' to assign the units to my own race.

Code: xml
  1. -<RaceConfigs> -<DataChecksum NoParse="1"> <Ignore>DisplayName, ShortName, Capital, Description, UnitSkinColor, UnitHairColor, UnitClothColor, BuildingPrimaryColor, BuildingSecondaryColor, BuildingRoofColor, BuildingStyle, UnitStyle, WorkerName</Ignore> <Translate>DisplayName, ShortName, Capital, Description, WorkerName</Translate> </DataChecksum> -<RaceConfig InternalName="CustomFaction_Draginol"> <DisplayName>Kingdom of Draginol</DisplayName> <AIPersonality>AI_General</AIPersonality> <ShortName>Draginol</ShortName> <Description>Draginol are descendent of the Followers of Draginol. They are dedicated to the pursuit of knowledge and magic. After the Cataclysmn they have sworn to dedicate their lives to use their knowledge to bring order to a world in chaos and to make bring together all of mankind under their wise leader Queen Raha</Description> <FactionAllegiance>Kingdom</FactionAllegiance> <IsCustom>true</IsCustom> <RaceInternalName>Race_Type_Draginols</RaceInternalName> <RaceDisplayName>Draginols</RaceDisplayName> <MaleUnitType>Generic_Sovereign_Amarian_Male</MaleUnitType> <FemaleUnitType>Generic_Sovereign_Amarian_Female</FemaleUnitType> <GenericUnitType_Male>Generic_Amarian_Male</GenericUnitType_Male> <GenericUnitType_Female>Generic_Amarian_Female</GenericUnitType_Female> <TraderUnitType>TraderTest</TraderUnitType> <ShopkeeperUnitType>Shopkeeper_Draginol</ShopkeeperUnitType> <StartingUnitType>Unit_Peasant_Draginol</StartingUnitType> <StartingUnitType>Unit_Pioneer_Draginol</StartingUnitType> <StartingUnitType>Unit_Archer_Draginol</StartingUnitType> <StartingUnitType>Unit_Archer_Draginol_AI</StartingUnitType> <StartingUnitType>Unit_Horseman_Draginol</StartingUnitType> <StartingUnitType>Unit_Defender_Draginol</StartingUnitType> <StartingUnitType>Unit_Defender_Draginol_AI</StartingUnitType> <StartingUnitType>Unit_Defender_Draginol_AI2</StartingUnitType> <StartingUnitType>Unit_SpearMaiden_Draginol</StartingUnitType> <StartingUnitType>Unit_Spearman_Draginol</StartingUnitType> <StartingUnitType>Unit_Catapult</StartingUnitType> <StartingUnitType>Unit_Scout_Draginol</StartingUnitType> <StartingUnitType>Unit_Light_Draginol</StartingUnitType> <StartingUnitType>Unit_Light_Draginol_AI</StartingUnitType> <StartingUnitType>Unit_Medium_Draginol</StartingUnitType> <StartingUnitType>Unit_Medium_Draginol_AI</StartingUnitType> <StartingUnitType>Unit_Medium_Draginol_AI2</StartingUnitType> <StartingUnitType>Unit_Medium_Draginol_AI3</StartingUnitType> <StartingUnitType>Unit_Heavy_Draginol</StartingUnitType> <StartingUnitType>Unit_Mage_Draginol</StartingUnitType> <StartingUnitType>Unit_Magic_Light_Draginol_AI</StartingUnitType> <StartingUnitType>Unit_Magic_Light_Draginol_AI2</StartingUnitType> <StartingUnitType>Unit_Magic_Medium_Draginol</StartingUnitType> <StartingUnitType>Unit_Magic_Medium_Draginol_AI</StartingUnitType> <StartingUnitType>Unit_Magic_Heavy_Draginol</StartingUnitType> <UnitScale>1.0000</UnitScale> <RaceClassification>Men</RaceClassification> <Alignment>Neutral</Alignment> <UnitSkinColor>180,125,110,255</UnitSkinColor> <UnitHairColor>200,195,195,255</UnitHairColor> <FactionColor>227,41,41,255</FactionColor> <UnitMetalColor>128,128,128,255</UnitMetalColor> <EnvironmentTerrainType>2</EnvironmentTerrainType> <PreferredLogoType>GenericCrest28</PreferredLogoType> <NonBuildableEnvironmentType>DeadEnvironment</NonBuildableEnvironmentType> <TechTree>TechTree_Draginol</TechTree> <FactionType>Major</FactionType> <RemCustomizationPts>0</RemCustomizationPts> <SelAbilityBonusOption>VulnerableEmpire</SelAbilityBonusOption> <SelAbilityBonusOption>AdeptsTech</SelAbilityBonusOption> <SelAbilityBonusOption>Enchanters</SelAbilityBonusOption> <SelAbilityBonusOption>ScholarsTech</SelAbilityBonusOption> <A_Additive_FoodPerGrain>20.0000</A_Additive_FoodPerGrain> <A_Additive_ProductionEffectPerUnrest>1.0000</A_Additive_ProductionEffectPerUnrest> <A_Additive_ProductionPerMaterials>5.0000</A_Additive_ProductionPerMaterials> <A_Additive_ProductionPerPopulation>0.1000</A_Additive_ProductionPerPopulation> <A_Additive_ResearchEffectPerUnrest>1.0000</A_Additive_ResearchEffectPerUnrest> <A_Additive_ResearchPerPopulation>0.1000</A_Additive_ResearchPerPopulation> <A_GoodieRating>1.0000</A_GoodieRating> <A_GrainYield>1.0000</A_GrainYield> <A_ManaRegeneration>1.0000</A_ManaRegeneration> <A_MaterialsYield>1.0000</A_MaterialsYield> <A_MaxArmySize>4.0000</A_MaxArmySize> <A_NPCSpawnRating>2.0000</A_NPCSpawnRating> <A_QuestingRating>1.0000</A_QuestingRating> <A_Traits>4.0000</A_Traits> <A_UnitUpgrades>100.0000</A_UnitUpgrades> </RaceConfig> </RaceConfigs>

Reply #7 Top

I think the easiest way is to create your own race, copy the techs you want to edit into the Techs_Race and put them somewhere ex. in the My Games folder.

 

I also wanted to have book techs all the time as Pariden is a magic powerfull race and it is just silly they cant do the book spells.

ps. sry for all these post.