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

My Mod won''t Work ?????????

The general place to discuss MOD''ing Freelancer!

Post Tue Sep 07, 2004 3:53 am

My Mod won''t Work ?????????

Hi this is my first mod with scripting and i'm haveing trouble. The mod is so that you can change the starting MP ship and or SP ship mainly SP but i found the wrong file

here's my current source code....

<script>
<header name="Test Start Player Ship">
<scriptversion>
1.21
</scriptversion>
<author>
NightHound [MC Freeport 7
</author>
<description>
This will change the start ship
</description>
<options default="1:1">
<option name="Which Ship?" savesafe="true">
<item id="1" name="Anubis">
</item>
<item id="2" name="Banshee">
</item>
<item id="3" name="Barracuda">
</item>
<item id="4" name="Bloodhound">
</item>
<item id="5" name="Cavalier">
</item>
<item id="6" name="Centurion">
</item>
</option>
</options>
</header>

<data file="DATA\CHARACTERS\newcharacter.ini" method="sectionreplace" options="1:1">
<section>
[Package
nickname = ge_fighter
</section>
<dest>
ship = ge_fighter
</dest>
<source>
ship = or_elite
</source>
</data>

<data file="DATA\CHARACTERS\newcharacter.ini" method="sectionreplace" option="1:2">
<section>
[Package
nickname = ge_fighter
</section>
<dest>
ship = ge_fighter
</dest>
<source>
ship = rh_fighter
</source>
</data>

<data file="DATA\CHARACTERS\newcharacter.ini" method="sectionreplace" option="1:3">
<section>
[Package
nickname = ge_fighter
</section>
<dest>
ship = ge_fighter
</dest>
<source>
ship = bh_elite
</source>
</data>

<data file="DATA\CHARACTERS\newcharacter.ini" method="sectionreplace" option="1:4">
<section>
[Package
nickname = ge_fighter
</section>
<dest>
ship = ge_fighter
</dest>
<source>
ship = pi_fighter
</source>
</data>

<data file="DATA\CHARACTERS\newcharacter.ini" method="sectionreplace" option="1:5">
<section>
[Package
nickname = ge_fighter
</section>
<dest>
ship = ge_fighter
</dest>
<source>
ship = br_fighter
</source>
</data>

<data file="DATA\CHARACTERS\newcharacter.ini" method="sectionreplace" option="1:6">
<section>
[Package
nickname = ge_fighter
</section>
<dest>
ship = ge_fighter
</dest>
<source>
ship = co_elite
</source>
</data>
</script>

If any one could help that would be great....

Post Tue Sep 07, 2004 4:48 am

An excellent debugging tool from xml scripts is..............................Microsoft Internet Explorer. Open the file with that

It will highlight problems for you.

Onto other issues - what do you mean you have found the wrong file?

Edited by - Chips on 9/7/2004 5:49:48 AM

Post Tue Sep 07, 2004 5:01 am

The wrong file is mentioned because i wan'ted to edit the starting ship.....

The problem i have is the FLMM says the i can't find ge_fighter in new character under package and i was wandering why??????

And also is there any thing wrong with the way i have layed out the code and or set it up.....



edit: Internet Explorer opens it fine with no trouble....

Edited by - NightHound on 9/7/2004 6:05:21 AM

Post Tue Sep 07, 2004 5:30 am

for a start remove the id entry from
<item id="2" name="Banshee">
<item id="3" name="Barracuda">
<item id="4" name="Bloodhound">
<item id="5" name="Cavalier">
<item id="6" name="Centurion">

and replace with

<item name="Banshee"> etc.
you have declared the format is 1:1 so the script will assume after the anubis which starts at 1 that the next is 1:2,1:3 etc. cos you have them all in order

Post Tue Sep 07, 2004 5:39 am

Done but it still doesen't work ?????

Here's the error

Error: FLMM has determined that 'Test Start Player Ship' won't properly activate.
Error: Unable to find dest 'ship = ge_fighter' in 'C:\Program Files\Microsoft Games\Freelancer\DATA\CHARACTERS\newcharacter.ini'

Thanks for helping by the way

Post Tue Sep 07, 2004 6:15 am

a tiny mistake but critical

you have
<data file="DATA\CHARACTERS\newcharacter.ini" method="sectionreplace" option="1:2">

you need to have options="1:2" not option="1:2"

repeat for all the others and it will work

Post Tue Sep 07, 2004 1:18 pm

Thanks so it now works....

edit: spelling errors...

Edited by - NightHound on 9/7/2004 2:19:10 PM

Return to Freelancer General Editing Forum