XML help
Ok well im making another small mod that will have options for speeds and ammo and thats where I have the problem. My speed works fine the XML adds the speed I selected to constants.ini in FL but ammo dosent add for some reason or somtimes it makes 2 copies of it. Hers the eml can you fix and post it back on here? Thanks if anyone does that.
<script>
<header name="PitchBlackSpeedMod 1.0">
<scriptversion>
1.3
</scriptversion>
<author>
Hudra
</author>
<description>
Pitch Black Speed Mod 1.0
Includes:
options for 500, 1000, and 1200 speeds.
options for 1000, 5000, and 10000
</description>
<options default="1:1">
<option name="How fast do you want to go when using cruise engines?" savesafe="true">
<item id="4" name="Normal">
</item>
<item id="1" name="500kps">
</item>
<item name="1000kps">
</item>
<item name="1200kps">
</item>
</option>
<option name="What shall the ammo limmit be?" savesafe="true">
<item id="3" name="1,000">
</item>
<item id="1" name="5,000">
</item>
<item name="10,000">
</item>
</option>
</options>
</header>
<data file="data\constants.ini" method="sectionappend">
<section>
[EngineEquipConsts
</section>
<source>
CRUISING_SPEED = 500
</source>
</data>
<data file="data\constants.ini" method="sectionappend">
<section>
[PhySysConsts
</section>
<source>
ANOM_LIMITS_MAX_VELOCITY = 500
</source>
</data>
<data file="data\constants.ini" method="sectionappend" options="1:2">
<section>
[EngineEquipConsts
</section>
<source>
CRUISING_SPEED = 1000
</source>
</data>
<data file="data\constants.ini" method="sectionappend" options="1:2">
<section>
[PhySysConsts
</section>
<source>
ANOM_LIMITS_MAX_VELOCITY = 1000
</source>
</data>
<data file="data\constants.ini" method="sectionappend" options="1:3">
<section>
[EngineEquipConsts
</section>
<source>
CRUISING_SPEED = 1200
</source>
</data>
<data file="data\constants.ini" method="sectionappend" options="1:3">
<section>
[PhySysConsts
</section>
<source>
ANOM_LIMITS_MAX_VELOCITY = 1200
</source>
</data>
<data file="data\constants.ini" method="append" options="2:1,2:2">
<section>
[Constants
</section>
<source>
MAX_PLAYER_AMMO = 1000
</source>
</data>
<data file="data\constants.ini" method="append" options="2:1">
<section>
[Constants
</section>
<source>
MAX_PLAYER_AMMO = 5000
</source>
</data>
<data file="data\constants.ini" method="append" options="2:1,2:2">
<section>
[Constants
</section>
<source>
MAX_PLAYER_AMMO = 10000
</source>
</data>
</script>
-------------------------------------
"You dont see me, you dont hear me, but you know im there."
I will bild the first Galactic Empire!
<script>
<header name="PitchBlackSpeedMod 1.0">
<scriptversion>
1.3
</scriptversion>
<author>
Hudra
</author>
<description>
Pitch Black Speed Mod 1.0
Includes:
options for 500, 1000, and 1200 speeds.
options for 1000, 5000, and 10000
</description>
<options default="1:1">
<option name="How fast do you want to go when using cruise engines?" savesafe="true">
<item id="4" name="Normal">
</item>
<item id="1" name="500kps">
</item>
<item name="1000kps">
</item>
<item name="1200kps">
</item>
</option>
<option name="What shall the ammo limmit be?" savesafe="true">
<item id="3" name="1,000">
</item>
<item id="1" name="5,000">
</item>
<item name="10,000">
</item>
</option>
</options>
</header>
<data file="data\constants.ini" method="sectionappend">
<section>
[EngineEquipConsts
</section>
<source>
CRUISING_SPEED = 500
</source>
</data>
<data file="data\constants.ini" method="sectionappend">
<section>
[PhySysConsts
</section>
<source>
ANOM_LIMITS_MAX_VELOCITY = 500
</source>
</data>
<data file="data\constants.ini" method="sectionappend" options="1:2">
<section>
[EngineEquipConsts
</section>
<source>
CRUISING_SPEED = 1000
</source>
</data>
<data file="data\constants.ini" method="sectionappend" options="1:2">
<section>
[PhySysConsts
</section>
<source>
ANOM_LIMITS_MAX_VELOCITY = 1000
</source>
</data>
<data file="data\constants.ini" method="sectionappend" options="1:3">
<section>
[EngineEquipConsts
</section>
<source>
CRUISING_SPEED = 1200
</source>
</data>
<data file="data\constants.ini" method="sectionappend" options="1:3">
<section>
[PhySysConsts
</section>
<source>
ANOM_LIMITS_MAX_VELOCITY = 1200
</source>
</data>
<data file="data\constants.ini" method="append" options="2:1,2:2">
<section>
[Constants
</section>
<source>
MAX_PLAYER_AMMO = 1000
</source>
</data>
<data file="data\constants.ini" method="append" options="2:1">
<section>
[Constants
</section>
<source>
MAX_PLAYER_AMMO = 5000
</source>
</data>
<data file="data\constants.ini" method="append" options="2:1,2:2">
<section>
[Constants
</section>
<source>
MAX_PLAYER_AMMO = 10000
</source>
</data>
</script>
-------------------------------------
"You dont see me, you dont hear me, but you know im there."
I will bild the first Galactic Empire!