Jump to content

Custom Mod Won't Work


mentaltyranny

Recommended Posts

I cannot get my changes to gameconfig.xml to actually change the game under the new modular system. I used notepad++ to save the following text:

<?xml version="1.0"?><GameConfig> <soldierStats comment="Soldier's stats are generated with values in the specified range."> <actionPoints min="55" max="65" /><resilence    min="55" max="75" /><strength     min="45" max="65" /><accuracy     min="55" max="75" /><reflexes     min="45" max="65" /><bravery      min="35" max="65" /> </soldierStats>	 <startingSoldiersStatBonus value="5" comment="Bonus applied to starting soldiers' stats" /></GameConfig>

I am using version 1.5 stable and the mod reports as activated under Modding Tools tab of the Xenonauts loader. I have successfully installed mods through steam workshop without issue. I have disabled all other mods as well and still have soldiers with hp in the 40s on a new game. What am I missing?

Link to comment
Share on other sites

I did create a modinfo.xml that looks like this:

<ModInfo><Name>Better Soldiers</Name><Version>0.1b</Version><Author>MentalTyranny</Author><Description>See title...  </Description></ModInfo>

With this file I was able to activate properly. But apparently I missing something else because my soldiers are not using these higher stats on a new game.

Edited by mentaltyranny
Forgot a sentence
Link to comment
Share on other sites

Cannot seem to figure out how to use the console command -modinfo to make the game create the mod log file. I tried through the steam launch options but no avail. I also tried launching modinfo.bat directly to load the game and I still no log file in the xenonauts directory like the linked documentation suggests. So I am either not doing it right or something is wrong, I am not sure. Any help would be appreciated.

Link to comment
Share on other sites

I found it! Thanks! Here is my log file:

Thu Dec 04 15:43:48 2014: Xenonauts, version .Thu Dec 04 15:43:48 2014: Pixel Shader Version: ffff0300Thu Dec 04 15:43:58 2014: MOD INFO: Initializing mod list (highest priority last).Thu Dec 04 15:43:58 2014: MOD INFO: Adding xce settings directory: mods/xcesettings/Thu Dec 04 15:43:58 2014: MOD INFO: Adding xce balance directory: mods/xcebalance/Thu Dec 04 15:43:58 2014: MOD INFO: Adding mod directory: mods/better soldiers/Thu Dec 04 15:43:58 2014: MOD INFO: Merged strings from mod mods/xcebalance/ .Thu Dec 04 15:43:58 2014: MOD INFO: Merging XML for gameconfig.xml from mod mods/xcesettings/ .Thu Dec 04 15:43:58 2014: MOD INFO: Merging element GameConfig .Thu Dec 04 15:43:58 2014: MOD INFO: Updating element mouseWheelChangesCameraLevel .Thu Dec 04 15:43:58 2014: MOD INFO: Updating element mouseWheelFireMode .Thu Dec 04 15:43:58 2014: MOD INFO: Updating element showPossibleRadarRanges .Thu Dec 04 15:43:58 2014: MOD INFO: Updating element KeyMapping .Thu Dec 04 15:43:58 2014: MOD INFO: Updating element KeyMapping .Thu Dec 04 15:43:58 2014: MOD INFO: Updating element KeyMapping .Thu Dec 04 15:43:58 2014: MOD INFO: Updating element KeyMapping .Thu Dec 04 15:43:58 2014: MOD INFO: Updating element KeyMapping .Thu Dec 04 15:43:58 2014: MOD INFO: Updating element KeyMapping .Thu Dec 04 15:43:58 2014: MOD INFO: Updating element KeyMapping .Thu Dec 04 15:43:58 2014: MOD INFO: Updating element KeyMapping .Thu Dec 04 15:43:58 2014: MOD INFO: Updating element KeyMapping .Thu Dec 04 15:43:58 2014: MOD INFO: Updating element KeyMapping .Thu Dec 04 15:43:58 2014: MOD INFO: Updating element KeyMapping .Thu Dec 04 15:43:58 2014: MOD INFO: Updating element KeyMapping .Thu Dec 04 15:43:58 2014: MOD INFO: Updating element KeyMapping .Thu Dec 04 15:43:58 2014: MOD INFO: Updating element KeyMapping .Thu Dec 04 15:43:58 2014: MOD INFO: Updating element KeyMapping .Thu Dec 04 15:43:58 2014: MOD INFO: Updating element KeyMapping .Thu Dec 04 15:43:58 2014: MOD INFO: Updating element airplaneNotifications .Thu Dec 04 15:43:58 2014: MOD INFO: Merge ok.Thu Dec 04 15:43:58 2014: MOD INFO: Merging XML for gameconfig.xml from mod mods/xcebalance/ .Thu Dec 04 15:43:58 2014: MOD INFO: Merging element GameConfig .Thu Dec 04 15:43:58 2014: MOD INFO: Updating element airCombatAIThinkChance .Thu Dec 04 15:43:58 2014: MOD INFO: Updating element autoresolveHeavyMissileEscortBonus .Thu Dec 04 15:43:58 2014: MOD INFO: Updating element autoresolveNormalMissileEvadePenalty .Thu Dec 04 15:43:58 2014: MOD INFO: Updating element ufoEscortInboundFactor .Thu Dec 04 15:43:58 2014: MOD INFO: Merge ok.Thu Dec 04 15:43:58 2014: MOD INFO: Merging XML for gameconfig.xml from mod mods/better soldiers/ .Thu Dec 04 15:43:58 2014: MOD INFO: Merging element GameConfig .Thu Dec 04 15:43:58 2014: MOD ERROR: Element without MODMERGE has both children and attributes: soldierStatsThu Dec 04 15:43:58 2014: MOD ERROR: Merging XML for gameconfig.xml from mod mods/better soldiers/ failed.Thu Dec 04 15:43:58 2014: MOD INFO: Merging XML for loadouts.xml from mod mods/xcesettings/ .Thu Dec 04 15:43:58 2014: MOD INFO: Replacing element Loadouts .Thu Dec 04 15:43:58 2014: MOD INFO: Merge ok.Thu Dec 04 15:44:19 2014:  ##### : Missing string for label ''

I see where it talks about my mod, however I am not sure from the documentation what MODMERGE code I should use. I notice your (Kabill's) gameconfig.xml file in Fire in the Hole! uses none and in your armours_gc.xml file Armored Assault you use MODMERGEATTRIBUTE="name" MODMERGE="update", which I just tried adding and it still didn't work. Honestly, the documentation is a little over my head and I am not sure what to use. Any help would be appreciated.

Link to comment
Share on other sites

This finally worked:

<?xml version="1.0"?><GameConfig><!-- SOLDIER GENERATION VARIABLES --> <soldierStats MODMERGE="replace"> <actionPoints min="55" max="65" /><resilence    min="55" max="75" /><strength     min="45" max="65" /><accuracy     min="55" max="75" /><reflexes     min="45" max="65" /><bravery      min="35" max="65" /> </soldierStats>	</GameConfig>

Thanks for your help everyone!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...