Important Message

You are browsing the archived Lancers Reactor forums. You cannot register or login.
The content may be outdated and links may not be functional.


To get the latest in Freelancer news, mods, modding and downloads, go to
The-Starport

XML help

The general place to discuss MOD''ing Freelancer!

Post Sat Dec 03, 2005 10:51 am

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!

Post Sat Dec 03, 2005 11:20 am

your options sub-# should always start at 0,starting at 1 can cause weird selection errors,so it should go 1:0,1:1,2:0,2:1 etc

Post Sat Dec 03, 2005 11:42 am

Sorry you mean this opart? data file="data\constants.ini" method="append" options="2:1,2:2"> changed to like data file="data\constants.ini" method="append" options="2:0,2:2">


-------------------------------------
"You dont see me, you dont hear me, but you know im there."
I will bild the first Galactic Empire!

Post Sat Dec 03, 2005 2:09 pm

Check your email

Post Sat Dec 03, 2005 4:56 pm

Would it be possible for you to check the code in this post?

<A HREF="http://www.lancersreactor.com/t/forum/topic.asp?topic_id=41957&forum_id=18&Topic_Title=FLMM+can%27t+find+destination&forum_title=Freelancer+General+Editing+Forum&cat_title=Freelancer+Editing&M=False"> this </HREF>

Post Sat Dec 03, 2005 5:19 pm

robocop mail me your script file and I'll have a look at it for you.

Rebalance 3.5 Dev. Team
rebalance.blue-ion.net

Post Sat Dec 03, 2005 7:57 pm

Thanks for mail and it worked!

-------------------------------------
"You dont see me, you dont hear me, but you know im there."
I will bild the first Galactic Empire!

Return to Freelancer General Editing Forum