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

Tutorial*** Missions

Here you find the different tutorials on editing and MODing Freelancer

Post Wed Dec 07, 2005 2:50 pm

Tutorial*** Missions

Hello, just posting this after I forgot about it for awhile. It helps alot.
All thanks to this small tutorial goes to Buck.
Thanks Buck
It's the second set of numbers you need to change, if you want to double the money simply double this figure. Don't mess with the first set of numbers, they are the difficulty bit. Here's my settings
[Diff2Money
Diff2Money = 0, 1800
Diff2Money = 0.082100, 2200
Diff2Money = 0.112380, 2655
Diff2Money = 0.205130, 3219
Diff2Money = 0.351000, 3919
Diff2Money = 0.480490, 4792
Diff2Money = 0.657740, 5887
Diff2Money = 0.900380, 7264
Diff2Money = 1.232530, 9001
Diff2Money = 1.687200, 11201
Diff2Money = 2.309610, 13994
Diff2Money = 3.161630, 17551
Diff2Money = 4.327960, 22093
Diff2Money = 5.924540, 27904
Diff2Money = 8.110100, 35356
Diff2Money = 11.101920, 44928
Diff2Money = 15.197410, 57246
Diff2Money = 20.803740, 73118
Diff2Money = 28.478239, 93597
Diff2Money = 38.983860, 438576
Diff2Money = 53.365002, 570150
Diff2Money = 73.051361, 770150
Diff2Money = 100.000000, 999000

Creating your own missions involves quite a bit of work which all depends on if you have custom factions, custom ships and custom loadouts. If you just want to make the existing missions harder then the easiest way is to edit the loadout that that ship uses.
For example if you want to make the outcasts in Omicron Alpha tougher you first need to look in the faction_prop.ini file which is located in the Missions folder. Here is part of the section relating to the Outcasts, fc_ou_grp
[FactionProps
affiliation = fc_ou_grp
legality = unlawful
nickname_plurality = plural
msg_id_prefix = gcs_refer_faction_fc_ou
jump_preference = jumphole
npc_ship = fc_ou_bw_fighter_d1-4
npc_ship = fc_ou_bw_fighter_d5
npc_ship = fc_ou_bw_fighter_d6
npc_ship = fc_ou_bw_fighter_d7
npc_ship = fc_ou_bw_fighter_d8
npc_ship = fc_ou_bw_elite_d9
npc_ship = fc_ou_bw_elite_d10
npc_ship = fc_ou_bw_elite_d11
npc_ship = fc_ou_bw_elite_d12
npc_ship = fc_ou_bw_elite_d13
npc_ship = fc_ou_bw_elite_d14
npc_ship = fc_ou_bw_elite2_d15
npc_ship = fc_ou_bw_elite2_d16
npc_ship = fc_ou_bw_elite2_d17 <-------
npc_ship = fc_ou_bw_elite2_d18 <-------
npc_ship = fc_ou_bw_elite2_d19 <-------
The last 2 or 3 relate to the higher level ships which would spawn for the higher level mission, the 100 value in diff2money.ini Now you need to find the corresponding entry in npcSnips.ini also in the Missions folder. copy the text that follows the = sign and search for that entry in npcShips.ini. You should find this entry
[NPCShipArch
nickname = fc_ou_bw_elite2_d19
loadout = fc_ou_bw_elite2_loadout02 <-------
level = d19
ship_archetype = bw_elite2 <------
pilot = pilot_outcast_ace
state_graph = FIGHTER
npc_class = unlawful, class_fighter, d19

In this one the two entries that are marked are the ones that are of interest. The top one is the loadout that this ship uses and the second one is the ship, In this case the Sabre. If you want to change these make sure that the loadout and the ship actually exist. The slightest error in either faction_prop or npcships and your server will crash. A word of advice, only change one section at a time, if you doo too many at once you will struggle to find the problem if it goes wrong, i found this out the hard way.

Post Wed Dec 07, 2005 2:51 pm

SECOND PART*****


Next we need to create a new custom loadout. So open up loadout.ini, located in the Ships folder and find the loadout from the entry above and you should find this
[Loadout
nickname = fc_ou_bw_elite2_loadout02
archetype = bw_elite2
equip = ge_bwe_engine_01
equip = npc_shield01_mark10, HpShield01 <
equip = infinite_power
equip = ge_s_scanner_02
equip = ge_s_tractor_01
equip = ge_s_thruster_01, HpThruster01
equip = armor_scale_4
equip = fc_ou_gun01_mark05, HpWeapon01 <--
equip = fc_ou_gun01_mark05, HpWeapon02 <--
equip = fc_ou_gun01_mark05, HpWeapon03 <--
equip = fc_ou_gun01_mark05, HpWeapon04 <--
equip = fc_ou_gun01_mark05, HpWeapon05 <--
equip = missile01_mark03, HpWeapon06 <--
cargo = missile01_mark03_ammo, 20 <------
equip = fc_ou_turret01_mark02, HpTurret01 <--
equip = cruise_disruptor01_mark02, HpTorpedo01 <--
cargo = cruise_disruptor01_mark02_ammo, 5 <------
equip = mine01_mark04, HpMine01 <--
cargo = mine01_mark04_ammo, 20 <------
equip = ge_s_cm_01, HpCM01 <--
cargo = ge_s_cm_01_ammo, 20 <------
equip = LargeWhiteSpecial, HpHeadlight
equip = SlowSmallWhite, HpRunningLight01
equip = SlowSmallWhite, HpRunningLight02
equip = SlowSmallWhite, HpRunningLight03
equip = SlowSmallWhite, HpRunningLight04
equip = SlowSmallWhite, HpRunningLight05
equip = SlowSmallWhite, HpRunningLight06
equip = SlowSmallWhite, HpRunningLight07
equip = SlowSmallWhite, HpRunningLight08
equip = contrail01, HpContrail01
equip = contrail01, HpContrail02
equip = contrail01, HpContrail03
equip = contrail01, HpContrail04
equip = DockingLightRedSmall, HpDockLight01
equip = DockingLightRedSmall, HpDockLight02

The entries with the short arrows are the weapon and the ones with the long arrows are the ammo that they carry, the smallest one at the top is the shield. Make an exact copy of this entry and paste it in at the bottom of the file, easier to find later when it goes wrong. Change the weps and ammo as you wish but make sure the number of entries and type remain the same. Now rename the loadout to something of relevance like this one from my files
[Loadout
nickname = pauls_sabre_loadout04
archetype = bw_elite2 ;All level 10 weps and shields
equip = ge_bwe_engine_01
equip = shield01_mark10_hf, HpShield01 ;Adv Champion Heavy Fighter
equip = infinite_power
equip = ge_s_scanner_02
equip = ge_s_tractor_01
equip = ge_s_thruster_03, HpThruster01
equip = gd_gm_gun01_mark04, HpWeapon01 ;Skyblast B
equip = gd_gm_gun01_mark04, HpWeapon02
equip = fc_c_gun02_mark03, HpWeapon03 ;Tizona Del Cid
equip = fc_c_gun02_mark03, HpWeapon04
equip = missile01_mark05, HpWeapon05 ;Cannonball Missile
cargo = missile01_mark05_ammo, 50
equip = fc_ou_gun01_mark05, HpWeapon06 ;Wyrm 2
equip = gd_gm_turret01_mark03, HpTurret01 ;Skyblast B Turret
equip = cruise_disruptor01_mark02, HpTorpedo01 ;Hornet CD
cargo = cruise_disruptor01_mark02_ammo, 50
equip = mine02_mark05, HpMine01 ;Ripper Mine
cargo = mine02_mark05_ammo, 50
equip = ge_s_cm_03, HpCM01 ;Adv Counter Measure
cargo = ge_s_cm_03_ammo, 50

Once you have created your loadout you need to go back to the npcships entry and add your loadout, like this
[NPCShipArch
nickname = fc_ou_bw_elite2_d19
loadout = pauls_sabre_loadout04
level = d19
ship_archetype = bw_elite2
pilot = pilot_outcast_ace
state_graph = FIGHTER
npc_class = unlawful, class_fighter,d19

That's pretty much it, now you have tougher missions for more money
To add missions to new systems needs a lot more preparation first.
First you will need encounters, this is compusory but it would be pretty boring if you entered a system and there was nothing going on in there anyway. I am presuming that you have encounters working in your system.
Second there must be a rival faction in the system. If you have the Liberty Police and the Rheinland Police then missions won't work cos they actually like each other. So you will need the Liberty police and the Liberty Rogues. Or the Outcasts and the Bounty Hunters.
Next you will need to make sure that missions are enabled for your faction in the mbases entry for your base, I'm not sure about the new version of FLExplorer but I know that the one I used this entry is disabled by default. So open up mbases.ini in the mission folder and locat your base entry, you should have something like this

[MBase
nickname = An02_02_Base
local_faction = gd_z_grp
diff = 19
msg_id_prefix = gcs_refer_base_An02_02_Base

[MVendor
num_offers = 5, 7 <------------------

[BaseFaction
faction = gd_z_grp
weight = 100
offers_missions = <-------------------------
mission_type = DestroyMission, 38.983860, 100.000000, 100 <----------------

The entries with the arrows relate to your missions. The MVendor entry is how many missions will appear on the mission offers board and how many missions can take place at the same time before the board says come back later (I am not sure which way round this is as I haven't actually checked in game and i may be wrong about the second entry). I have my busier systems set to 8, 12
As you can see the offers_missions section is empty after the = sign add true here or your missions will not work, like this

offers_mission = true

The missions_type entry is the level/difficulty of the missions being offered. As it is above you will get a good variation of missions. These relate to 2 files, the diff2money that we looked at earlier and the npcRankToDiff file. I have messed with the second file and my ships got messed up, I think it is best not to touch this one.
There's only one more thing left and that's vignettes. You need at least 3 vignettes placed in your encounter zone for missions to work. I have up to 20 in some of my systems. They look like this

[Zone
nickname = Zone_CA02_destroy_vignette_10
pos = -46547, 0, -21696
shape = SPHERE
size = 10000
mission_type = unlawful, lawful
sort = 99.500000
vignette_type = open

The position, shape and size entries are pretty self explanatory, mission_type is set to unlawful, lawful which means you can have both faction types taking part. There are other varieties of this entry like lawful, lawful and unlawful, unlawful. Set these relative to the factions you are fighting with. Sort I'm not sure about, just let FLExplorer set this for you. I always use open for the vignette_type as it always works. There are other entries but I haven't messed with those, try them out. (Btw it's easier to do these in FLExplorer than to write them all yourself) Do not overlap them and make sure that they are all within your encounters zone and that both your rivalling factions are present in that zone. I tend to have 2 zones overlapping and put my vignettes in the area where they overlap.
One more pointer for your encounters, make sure that the values you set for spawning your ships in your encounters zones do not mount to greater than 1
That's pretty much it, if you do all of this you should have mission working. If I have missed something I'm sure the other guys on here will correct me and I will adjust this accordingly.
This works 100% for me and has really helped me making custom missions too.
Good luck Modders.
Credits : Buck

Post Sat May 05, 2007 4:02 pm

sorry to bring this back from the dead to the mods who hate that, but could anyone explain a vignette?

Post Wed May 23, 2007 7:21 am

Hello and congratilatiuns to this great tutorial (my missions work now ^^)But i have a problem.I tried to add missions against nomads in omicron minor system on planet toledo.It seems it says in bar whe ni try to take a mission - come back when you're friendlier whit the factions of this base (i am friendly whit order).Here are my files:

Diff2Money:

[Diff2Money
Diff2Money = 0, 2100
Diff2Money = 0.082100, 4370
Diff2Money = 0.112380, 6800
Diff2Money = 0.205130, 9357
Diff2Money = 0.351000, 11757
Diff2Money = 0.480490, 14376
Diff2Money = 0.657740, 17661
Diff2Money = 0.900380, 21792
Diff2Money = 1.232530, 27003
Diff2Money = 1.687200, 33603
Diff2Money = 2.309610, 41982
Diff2Money = 3.161630, 52653
Diff2Money = 4.327960, 66279
Diff2Money = 5.924540, 83712
Diff2Money = 8.110100, 110000
Diff2Money = 11.101920, 190000
Diff2Money = 15.197410, 250000
Diff2Money = 20.803740, 280000
Diff2Money = 28.478239, 320000
Diff2Money = 38.983860, 370000
Diff2Money = 53.365002, 410000
Diff2Money = 73.051361, 450000
Diff2Money = 100.000000, 500000

mbases:

[MBase
nickname = St01_01_Base
local_faction = fc_or_grp
diff = 19

[MVendor
num_offers = 8, 12

[BaseFaction
faction = fc_or_grp
weight = 1
offers_missions = true
mission_type = DestroyMission, 53.365002, 100.000000, 100
npc = st0101_order_001_m
npc = st0101_order_002_m
npc = st0101_order_003_m
npc = st0101_order_004_m

St01 System:

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

[zone
nickname = Zone_St01_01_exclusion
pos = 2154, 0, -1879
shape = SPHERE
size = 8000
property_flags = 65536
property_fog_color = 40.000000, 85.000000, 70.000000
edge_fraction = 0.200000
sort = 0
toughness = 1
density = 12
repop_time = 10
max_battle_size = 8
relief_time = 10
encounter = area_nomads, 19, 1.000000
faction = fc_n_grp, 1.000000

[Zone
nickname = Zone_St01_destroy_vignette_01
pos = -20654, 0, -8583
shape = SPHERE
size = 10000
mission_type = unlawful, unlawful
sort = 99.500000
vignette_type = field

[Zone
nickname = Zone_St01_destroy_vignette_02
pos = 27629, 0, 7779
shape = SPHERE
size = 10000
mission_type = unlawful, unlawful
sort = 99.500000
vignette_type = field

[Zone
nickname = Zone_St01_destroy_vignette_03
pos = -7242, 0, 25214
shape = SPHERE
size = 10000
mission_type = unlawful, unlawful
sort = 99.500000
vignette_type = field


I cant find the problem so please help me.

Ogu

Post Wed May 23, 2007 4:37 pm

encounter = area_nomads, 19, 1.000000
faction = fc_n_grp, 1.000000

Something tells me you need to add the order as encounters as well. So if the nomads are unlawful, the order must be lawful (in their faction_prop entry) in order for them to take missions against each other. But maybe the unlawful, unlawful part takes cae of this...

Post Wed May 23, 2007 9:09 pm

Thanks.I will try it.

Post Wed May 23, 2007 9:36 pm

Ok now encounters lol.I added some order encounters but only Osiris encounters work.Anubises will not show themselves.

My files again:

Faction Prop:

[FactionProps
affiliation = fc_or_grp
legality = unlawful
nickname_plurality = singular
msg_id_prefix = gcs_refer_faction_fc_or
jump_preference = jumphole
voice = pilot_f_ill_m01
voice = pilot_f_ill_m02
npc_ship = Anubis
npc_ship = Order_Battleship
mc_costume = mc_fc
space_costume = pi_pirate1_head, pi_orillion_body, comm_br_guard
space_costume = pi_pirate4_head, pi_orillion_body, comm_rh_alaric
space_costume = sh_male4_head, pi_orillion_body, comm_br_guard
space_costume = ge_male2_head, pi_orillion_body, comm_rh_alaric
space_costume = ge_male4_head, pi_orillion_body, comm_br_guard
space_costume = ge_male1_head, pi_orillion_body, comm_rh_alaric
firstname_male = 226608, 226741
lastname = 227008, 227307
rank_desig = 197128, 197129, 197130, 10, 15
formation_desig = 197808, 197820
formation = fighters, fighter_basic
formation = freighters, freighter_basic
formation = freighters2, freighter2_basic
formation = battleships, battleship_wall

npcships:

[NPCShipArch
nickname = Anubis
loadout = Anubis_Loadout
level = d13
ship_archetype = or_elite
pilot = pilot_military_hard
state_graph = FIGHTER
npc_class = unlawful, class fighter, d13

Loadouts:

[Loadout
nickname = Anubis_Loadout
archetype = or_elite
equip = ge_oe_engine_01
equip = order_shield, HpShield01
equip = infinite_power
equip = ge_s_scanner_02
equip = ge_s_tractor_01
equip = ge_s_thruster_01, HpThruster01
equip = fc_or_gun01_mark02, HpWeapon01
equip = fc_or_gun01_mark02, HpWeapon02
equip = fc_or_gun01_mark02, HpWeapon03
equip = fc_or_gun01_mark02, HpWeapon04
equip = missile01_mark05, HpWeapon05
cargo = missile01_mark05_ammo, 20
equip = missile01_mark05, HpWeapon06
equip = fc_or_turret02_mark01, HpTurret01
equip = mine02_mark03, HpMine01
cargo = mine02_mark03_ammo, 20
equip = ge_s_cm_03, HpCM01
cargo = ge_s_cm_03_ammo, 20
cargo = ge_s_battery_01, 20
cargo = ge_s_repair_01, 20
equip = LargeWhiteSpecial, HpHeadlight
equip = SlowSmallYellow, HpRunningLight01
equip = SlowSmallYellow, HpRunningLight02
equip = SlowSmallYellow, HpRunningLight03
equip = SlowSmallYellow, HpRunningLight04
equip = SlowSmallYellow, HpRunningLight05
equip = SlowSmallYellow, HpRunningLight06
equip = contrail01, HpContrail01
equip = contrail01, HpContrail02
equip = contrail01, HpContrail03
equip = DockingLightRedSmall, HpDockLight01
equip = DockingLightRedSmall, HpDockLight02

Encounters:

capitalships_Escorts file:

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

[Creation
permutation = 0, 3

St01 system:

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

[zone
nickname = Zone_St01_01_exclusion
pos = 2154, 0, -1879
shape = SPHERE
size = 8000
property_flags = 65536
property_fog_color = 40.000000, 85.000000, 70.000000
edge_fraction = 0.200000
sort = 0
toughness = 1
density = 12
repop_time = 10
max_battle_size = 8
relief_time = 10
encounter = capitalships_Order, 19, 1.000000
faction = fc_or_grp, 1.000000
encounter = capitalships_Escorts, 19, 1.000000
faction = fc_or_grp, 1.000000

Please help.Again.

Thanks!

Post Thu May 24, 2007 5:05 pm

First off, wow I haven't seen this post in almost 2 years.

Second, You can't just put Orders and Nomads togather and have missions spill out. For some reason Nomads and Order faction is coded in another way and they don't work like the others. The way to fix this is to make 2 new factions that are a copy of the first, but with different keywords such as "gp_or_grp2".
The second hard part would be now to add to all encounters that you want missions to run with the new factions.
Why did DA do this? Maybe becuase they figured you would enjoy wasting time copying and pasting.

So after doing that you should have missions working with the Order and Nomads and be able to watch them "pew pew" at each other.

Third,
You forgot to change the toughness in the encounter.
[zone
nickname = Zone_St01_01_exclusion
pos = 2154, 0, -1879
shape = SPHERE
size = 8000
property_flags = 65536
property_fog_color = 40.000000, 85.000000, 70.000000
edge_fraction = 0.200000
sort = 0
toughness = 19 <-----------!@#$%^&*()
density = 12
repop_time = 10
max_battle_size = 8
relief_time = 10
encounter = capitalships_Order, 19, 1.000000
faction = fc_or_grp, 1.000000
encounter = capitalships_Escorts, 19, 1.000000
faction = fc_or_grp, 1.000000

Can't have lvl. 19 ships spawn in a lvl. 1 zone.


I have in the past thought about updating this tutorial for nomads vs. order but again time passed and I forgot,so why not now.
That should get things rolling in a good way.
Enjoy.




Edited by - Question Asker2044 on 5/24/2007 6:19:19 PM

Post Thu May 24, 2007 9:06 pm

Thank you!

Return to Freelancer Editing Tutorial Forum