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

small Prob with FLMM

The general place to discuss MOD''ing Freelancer!

Post Sat Nov 12, 2005 6:19 am

small Prob with FLMM

Hello folks,

I'm quite new to modding FL, so I decided to take a look at a few mods I use myself and then get modding myself.
I tried to get FLMM to change some lines inside pilots_populations.ini to get the AI to use Shieldbatteries and Nanos, but FLMM won't replace the sections, a part of the Code follows below:

[<--19 other options-->

<option name="AI Repairs Ship" savesafe="true">
<item id="0" name="No">
</item>
<item id="1" name="Okay">
</item>
</option>

[<--some more options-->



<data file="data\missions\pilots_population.ini" method="sectionreplace" options="20:1">
<section>
[Pilot
nickname = pilot_military_easy
gun_id = gun_military_easy_style_a
missile_id = missile_fighter_easy_style_a
evade_dodge_id = evade_dodge_fighter_horiz_easy
evade_break_id = evade_break_fighter_style_a
buzz_head_toward_id = buzz_head_toward_fighter_horiz
buzz_pass_by_id = buzz_pass_by_fighter_style_a
trail_id = trail_fighter_style_a
strafe_id = strafe_fighter_style_a
engine_kill_id = engine_kill_fighter_style_a
mine_id = mine_light_fighter_a
countermeasure_id = countermeasure_handicap_3
damage_reaction_id = damage_reaction_fighter_style_a
missile_reaction_id = missile_reaction_fighter_style_a
formation_id = formation_stay
</section>
<dest>
repair_id = repair_fighter_never
</dest>
<source>
repair_id = repair_fighter_both
</source>

<section>
[Pilot
nickname = pilot_police_easy
gun_id = gun_fighter_easy_style_a
missile_id = missile_fighter_easy_style_a
evade_dodge_id = evade_dodge_fighter_horiz2_easy
evade_break_id = evade_break_fighter_style_a
buzz_head_toward_id = buzz_head_toward_fighter_horiz2
buzz_pass_by_id = buzz_pass_by_fighter_style_a
trail_id = trail_fighter_style_a
strafe_id = strafe_fighter_style_a
engine_kill_id = engine_kill_fighter_style_a
mine_id = mine_light_fighter_a
countermeasure_id = countermeasure_handicap_3
damage_reaction_id = damage_reaction_fighter_style_a
missile_reaction_id = missile_reaction_fighter_style_a
formation_id = formation_stay
</section>
<dest>
repair_id = repair_fighter_never
</dest>
<source>
repair_id = repair_fighter_both
</source>


[<--some more following-->
</data>


Well, FLMM doesn't report any errors whilst startup or activation, so I guessed it'd work, but if I open the .ini with BiniQDU I see that the line wasn't replaced.
What did I do wrong?

Post Sat Nov 12, 2005 12:29 pm

Get and install the SDK 1.3 or 1.5 from either the downloads or EOA's site.

Using FLMM's xml scripts on FL's vanilla encoded ini files doesn't work, the SDK is a set of decoded ini files that allow us to mod FL a lot easier.

Post Sat Nov 12, 2005 5:56 pm

Changing your script to the following should help too:

<data file="data\missions\pilots_population.ini" method="sectionreplace" options="20:1">
<section>
[Pilot
nickname = pilot_military_easy
</section>
<dest>
repair_id = repair_fighter_never
</dest>
<source>
repair_id = repair_fighter_both
</source>
</data>

<data file="data\missions\pilots_population.ini" method="sectionreplace" options="20:1">
<section>
[Pilot
nickname = pilot_police_easy
</section>
<dest>
repair_id = repair_fighter_never
</dest>
<source>
repair_id = repair_fighter_both
</source>
</data>

<data file="data\missions\pilots_population.ini" method="sectionreplace" options="20:1">
[<--some more following-->
</data>


And, in FLMM v1.4 (there's a beta available in the FLMM forum) you're be able to use the sectionmodify method to simplify your script even further:

<data file="data\missions\pilots_population.ini" method="sectionmodify" options="20:1">
<section>
[Pilot
nickname = pilot_military_easy
</section>
<source>
repair_id = repair_fighter_both
</source>
</data>

------------------------------------
Freelancer Mod Manager: newbies' dreams come true
Belief in Jesus: the only way to Heaven

Post Mon Nov 14, 2005 2:52 pm

It's weird. I just wrote another Mod from scratch which had all the things i wanted for the first and well, now the section i posted works fine(although i just copied, pasted and cut the unnecessary lines from it), but some other things just work sometimes now, weirdly its always just the last option that doens't work properly. Whatever, most things work for now and more are to follow. Thanks for the help, IGx89.

Edited by - nightKin84 on 11/14/2005 2:57:33 PM

Return to Freelancer General Editing Forum