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

Help

The general place to discuss MOD''ing Freelancer!

Post Wed Nov 19, 2003 12:10 am

Help

I want the battleships and dreadnaughts and such to appear more often with the Battleship Encounter mod. What do I modify/How do I modify it so that they will appear more often?

I am the Alpha and the Omega..
The first, and the last...

Post Wed Nov 19, 2003 12:33 am

This is an example of a zone in the New York system know as Li01 at West Point.

[zone
nickname = Zone_Li01_017_Station_Li01_09
pos = -35771, 0, 28416
rotate = 0, -75, 0
shape = SPHERE
size = 8000
comment = West point
sort = 7
toughness = 19
density = 32
repop_time = 10
max_battle_size = 32
pop_type = li_n_grp, single_base_law
relief_time = 20
faction_weight = li_n_grp, 10
faction_weight = li_p_grp, 6
faction_weight = li_p_grp_prisoners, 6
faction_weight = co_alg_grp, 10
faction_weight = co_be_grp, 10
faction_weight = co_hsp_grp, 10
faction_weight = co_nws_grp, 10
factionencounter = area_assault, 1, 0.930000
faction = fc_lr_grp, 1.000000
faction = fc_ou_grp, 1.000000
faction_weight = co_ni_grp, 10
faction_weight = co_os_grp, 4
faction_weight = co_ss_grp, 10
faction_weight = co_vr_grp, 8
faction_weight = gd_bh_grp, 5
faction_weight = fc_lr_grp, 11
faction_weight = fc_ou_grp, 10
density_restriction = 16, unlawfuls
encounter = area_defend, 1, 0.890000
faction = li_n_grp, 0.500000
faction = li_p_grp, 0.500000
encounter = area_bh_defend, 1, 0.500000
faction = gd_bh_grp, 1.000000
encounter = area_assault, 1, 1.000000
faction = fc_lr_grp, 1.000000
faction = fc_ou_grp, 1.000000
encounter = area_assault, 1, 0.930000
faction = fc_lr_grp, 1.000000
faction = fc_ou_grp, 1.000000
encounter = area_armored_prisoner, 1, 0.500000
faction = li_p_grp, 1.000000
encounter = area_trade_freighter, 1, 0.500000
faction = co_hsp_grp, 0.360000
faction = co_ss_grp, 0.360000
faction = co_vr_grp, 0.290000
encounter = area_trade_transport, 1, 0.500000
faction = co_alg_grp, 0.150000
faction = co_be_grp, 0.150000
faction = co_hsp_grp, 0.150000
faction = co_nws_grp, 0.150000
faction = co_ni_grp, 0.150000
faction = co_ss_grp, 0.150000
faction = co_vr_grp, 0.120000
encounter = area_trade_armored, 1, 0.500000
faction = co_os_grp, 1.000000
encounter = capitalships_Liberty, 19, 1.000000
faction = li_n_grp, 1.000000
encounter = capitalships_Escorts, 19, 1.000000
faction = li_n_grp, 1.000000

encounter = capitalships_Liberty, 19, 1.000000
the 1.000000 means that there will be a 100% chance that an encounter will occur.

To increase the number of capitalships just double the line.
example.
encounter = capitalships_Liberty, 19, 1.000000 = 100%
faction = li_n_grp, 0.500000
encounter = capitalships_Liberty, 19, 0.960000 = 96% and so on
faction = li_n_grp, 0.500000

look at the difference carefully in what I have here and what the original file has in it you will see several changes.

Don't forget you need to add EncounterParameters for capitalships.

[EncounterParameters
nickname = capitalships_Liberty
filename = missions\encounters\capitalships_Liberty.ini

[EncounterParameters
nickname = capitalships_Escorts
filename = missions\encounters\capitalships_Escorts.ini

Also don't forget the left facing brackets don't show up in the forms.
Hope this helps you out if not let me know and I'll try to explain it better.


Edited by - bakedpotato on 19-11-2003 01:27:23

Post Wed Nov 19, 2003 1:39 am

Here are the files in the directory:

capitalship_DREADNOUGH.ini
capitalships_Bretonia.ini
capitalships_Kusari.ini
capiralships_Liberty_cruiser.ini
capitalships_Rheinland.ini
capitalship_rh_cruiser.ini
capitalships_Escorts.ini
capitalships_Liberty.ini
capitalships_Nomads.ini


Now, here's what was in the files (I'll use the capitalships_Liberty.ini file as an example of what I see in the files):

[EncounterFormation
ship_by_class = 1, 1, sc_battleships
pilot_job = assault_leader_job
make_class = wanderer
ship_by_class = 4, 4, sc_cruisers
pilot_job = assault_job
make_class = wanderer
formation_by_class = battleships
behavior = wander
arrival = cruise
allow_simultaneous_creation = yes
zone_creation_distance = 0
times_to_create = infinite

[Creation
permutation = 0, 3

Now, what I want to know is what do I mod out of these? And yes, these are the only files I found in the mod folder.

EDIT: Oops. Brain fart.. I think I know what file you meant. The script.XML file, right?


I am the Alpha and the Omega..
The first, and the last...

Edited by - Temjin on 19-11-2003 01:41:55

Post Wed Nov 19, 2003 1:02 pm

encounter = area_bh_defend, 1, 0.500000
faction = gd_bh_grp, 1.000000
encounter = area_assault, 1, 1.000000
faction = fc_lr_grp, 1.000000
faction = fc_ou_grp, 1.000000
encounter = area_assault, 1, 0.930000
faction = fc_lr_grp, 1.000000
faction = fc_ou_grp, 1.000000

let me ammend something here. Under every encounter part (Like this)
encounter = area_assault, 1, 0.930000
The factions in the encounter of that type MUST NOT add up to more than 1 okay. 1 being 100% chance.
So - above it should read:
encounter = area_assault, 1, 0.930000
faction = fc_lr_grp, 0.5000000
faction = fc_ou_grp, 0.5000000

Now the other part, you should also make all the encounters add up to 100% as well (or less). For example:
encounter = area_bh_defend, 1, 0.500000
faction = gd_bh_grp, 1.000000
encounter = area_assault, 1, 1.000000
faction = fc_lr_grp, 1.000000
faction = fc_ou_grp, 1.000000
encounter = area_assault, 1, 0.930000
faction = fc_lr_grp, 1.000000
faction = fc_ou_grp, 1.000000

SHOULD BE:
encounter = area_bh_defend, 1, 0.300000
faction = gd_bh_grp, 1.000000
encounter = area_assault, 1, 0.50000
faction = fc_lr_grp, 0.5000000
faction = fc_ou_grp, 0.5000000
encounter = area_assault, 1, 0.20000
faction = fc_lr_grp, 0.5000000
faction = fc_ou_grp, 0.5000000


Post Wed Nov 19, 2003 1:08 pm

Reasons behind it.

in a ZONE of encounters there is only 100% chance maximum of running into something. Ie - its a DEAD CERT. You cannot have a 200% chance okay. So - if an encounter like group defend is 1 - then its 100% of that zones encounters. If there are two encounter types, then they can take 50% of the chance EACH to make it to 100% again. If you have more - spread it out more. You can make the percentages what you like - but it CANNOT go over 100% chance of encounters.

Now for more info see next!

For each type of encounter - there is 100% chance of it being one faction being that type of encounters - like group defend. If you only have liberty police in group defend encounters, then they take the 100% chance of being the group defend. Now - if you have two factions there, it is split between them - like this:

encounter = group defend
faction = liberty police, 50%
Faction = liberty navy 50%

now - the 50% are the 0.5 okay.

Return to Freelancer General Editing Forum