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

Prison encounter

Here you find the different tutorials on editing and MODing Freelancer

Post Fri Apr 20, 2007 3:46 am

Prison encounter

Hi Guys
you know the prison ship in the first mission in FL
yeah i would like to code an encounter with this ship
but i have some problems/bugs
here the ini files;

formations.ini
[Formation
nickname = Prison_Liner_wall
pos = 0, 0, 0
pos = 300, 0, 400
pos = -300, 0, 400
pos = 300, 0, 0
pos = -300, 0, 0
pos = 300, 0, -400
pos = -300, 0, -400
pl_pos = 0, 0, 500

Npc_ships.ini

[NPCShipArch
nickname = Prison_liner
loadout = wa_prison_loadout
level = d19
ship_archetype = ge_prison
pilot = battleship_default
state_graph = CRUISER
npc_class = lawful, class_PRISON, d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11, d12, d13, d14, d15, d16, d17, d18, d19

fraction_prop.ini

[FactionProps
affiliation = ku_n_grp
legality = lawful
nickname_plurality = plural
msg_id_prefix = gcs_refer_faction_ku_n
jump_preference = jumpgate
npc_ship = ku_n_ku_elite_d1-8
npc_ship = ku_n_ku_elite_d9
npc_ship = ku_n_ku_elite_d10
npc_ship = ku_n_ku_elite_d11-19
npc_ship = ku_n_ku_gunboat_d1-9
npc_ship = ku_n_ku_gunboat_d10-19
npc_ship = ku_n_destroyer_d22
npc_ship = ku_n_battleship_d25
voice = pilot_f_mil_m01
voice = pilot_f_mil_m02
voice = pilot_f_leg_f01
voice = pilot_f_leg_f01a
mc_costume = mc_ku
space_costume = ku_bartender_head_hat, ku_male_elite_body, comm_ku_kym
space_costume = ku_captain_head, ku_male_elite_body, comm_pl_player
space_costume = ku_bartender_head_hat, ku_male_elite_body, comm_ku_kym
space_costume = ku_captain_head, ku_male_elite_body, comm_pl_player
space_costume = ku_bartender_head_hat, ku_male_elite_body, comm_ku_kym
space_costume = ku_captain_head, ku_male_elite_body, comm_pl_player
space_costume = ku_newscaster_head_gen, ku_female_elite_body, comm_ku_kym_female
space_costume = ku_newscaster_head_gen, ku_female_elite_body, comm_pl_player_female
space_costume = ku_newscaster_head_gen, ku_female_elite_body, comm_ku_kym_female
space_costume = ku_newscaster_head_gen, ku_female_elite_body, comm_pl_player_female
space_costume = ku_newscaster_head_gen, ku_female_elite_body, comm_ku_kym_female
space_costume = ku_newscaster_head_gen, ku_female_elite_body, comm_pl_player_female
firstname_male = 228708, 228807
firstname_female = 228808, 228890
lastname = 228908, 229207
rank_desig = 197017, 197018, 197019, 9, 11
formation_desig = 197829, 197836
large_ship_desig = 196980
large_ship_names = 202808, 202847
scan_for_cargo = commodity_alien_artifacts, 1
scan_for_cargo = commodity_cardamine, 2
scan_announce = true
scan_chance = 0.300000
formation = fighters, fighter_ku_n
formation = gunboats, gunboat_ku_n
npc_ship = Kusari_Gunboat
npc_ship = Kusari_Destroyer
npc_ship = Kusari_Battleship
npc_ship = Prison_Liner
formation = gunboats, gunboat_wall
formation = destroyers, destroyer_wall
formation = battleships, battleship_wall
formation = Prison_liner, Prison_liner_wall

[FactionProps
affiliation = rh_n_grp
legality = lawful
nickname_plurality = singular
msg_id_prefix = gcs_refer_faction_rh_n
jump_preference = jumpgate
npc_ship = rh_n_rh_elite_d1-11
npc_ship = rh_n_rh_elite_d12-19
npc_ship = rh_n_rh_gunboat_d1-19
npc_ship = rh_n_cruiser_d22
npc_ship = rh_n_battleship_d25
voice = pilot_f_mil_m01
voice = pilot_f_mil_m02
voice = pilot_f_leg_f01
voice = pilot_f_leg_f01a
mc_costume = mc_rh
space_costume = rh_bartender_head, rh_male_elite_body, comm_rh_reichman
space_costume = rh_captain_head, rh_male_elite_body, comm_rh_wilham
space_costume = rh_sales_head, rh_male_elite_body, comm_rh_reichman
space_costume = rh_wilham_head, rh_male_elite_body, comm_rh_wilham
space_costume = ge_male6_head, rh_male_elite_body, comm_rh_reichman
space_costume = sc_scientist1_head_hat, rh_male_elite_body, comm_rh_wilham
space_costume = li_newscaster_head_gen_hat, rh_female_elite_body, comm_rh_reichman_female
space_costume = li_newscaster_head_gen_hat, rh_female_elite_body, comm_rh_wilham_female
space_costume = br_newscaster_head_gen_hat, rh_female_elite_body, comm_rh_reichman_female
space_costume = br_newscaster_head_gen_hat, rh_female_elite_body, comm_rh_wilham_female
space_costume = rh_newscaster_head_gen_hat, rh_female_elite_body, comm_rh_reichman_female
space_costume = rh_newscaster_head_gen_hat, rh_female_elite_body, comm_rh_wilham_female
firstname_male = 228008, 228207
firstname_female = 228208, 228407
lastname = 228408, 228663
rank_desig = 197023, 197024, 197025, 12, 13
formation_desig = 197808, 197820
large_ship_desig = 196982
large_ship_names = 202908, 202947
scan_for_cargo = commodity_alien_artifacts, 1
scan_for_cargo = commodity_cardamine, 2
scan_announce = true
scan_chance = 0.300000
formation = fighters, fighter_rh_n
formation = gunboats, gunboat_rh_n
npc_ship = Rheinland_Gunboat
npc_ship = Rheinland_Cruiser
npc_ship = Rheinland_Battleship
npc_ship = Prison_Liner
formation = gunboats, gunboat_wall
formation = cruisers, cruiser_wall
formation = battleships, battleship_wall
formation = Prison_liner, Prison_liner_wall

Ship_classes.ini

[ShipClass
nickname = sc_prison
member = class_prison

the Encounter
Prison_liner.ini

[EncounterFormation
ship_by_class = 1, 1, sc_prison
pilot_job = assault_leader_job
make_class = wanderer
ship_by_class = 6, 6, sc_gunboats
pilot_job = assault_job
make_class = wanderer
formation_by_class = Prison_Liner
behavior = wander
arrival = cruise
allow_simultaneous_creation = yes
zone_creation_distance = 0
times_to_create = infinite

[Creation
permutation = 0, 3


loadouts_special.ini

[Loadout
nickname = wa_prison_loadout
archetype = ge_prison
equip = ge_psn_engine_01
equip = infinite_power
equip = ge_s_tractor_01
equip = ge_s_scanner_02
equip = armor_scale_9
equip = SlowLargeWhite, HpRunningLight01
equip = SlowLargeWhite, HpRunningLight02
equip = SlowLargeWhite, HpRunningLight07
equip = SlowLargeWhite, HpRunningLight15
equip = SlowLargeWhite, HpRunningLight09

my test area Manhattan
der Parameter
[EncounterParameters
nickname = prison_liner
filename = missions\encounters\Prison_liner.ini



Edited by - [HAWalker on 4/20/2007 4:49:56 AM

Post Fri Apr 20, 2007 3:51 am

the zone
[zone
nickname = Zone_Li01_001_Planet_Li01_01
pos = -33020, 0, -27925
rotate = 0, 104, 0
shape = SPHERE
size = 7000
comment = Manhattan
sort = 1
toughness = 1
density = 12
repop_time = 10
max_battle_size = 8
pop_type = li_p_grp, base_cluster_law
relief_time = 10
faction_weight = li_p_grp, 12
faction_weight = li_p_grp_prisoners, 4
faction_weight = co_be_grp, 10
faction_weight = co_hsp_grp, 10
faction_weight = co_kt_grp, 10
faction_weight = co_me_grp, 10
faction_weight = co_nws_grp, 10
faction_weight = co_ni_grp, 10
faction_weight = co_os_grp, 4
faction_weight = co_rs_grp, 10
faction_weight = co_shi_grp, 10
faction_weight = co_ss_grp, 10
faction_weight = co_vr_grp, 8
faction_weight = gd_bh_grp, 3
density_restriction = 4, unlawfuls
encounter = area_defend, 1, 0.070000
faction = li_p_grp, 1.000000
encounter = area_bh_defend, 1, 0.030000
faction = gd_bh_grp, 1.000000
encounter = area_armored_prisoner, 1, 0.020000
faction = li_p_grp, 1.000000
encounter = area_trade_freighter, 1, 0.090000
faction = co_hsp_grp, 0.260000
faction = co_me_grp, 0.260000
faction = co_ss_grp, 0.260000
faction = co_vr_grp, 0.210000
encounter = area_trade_transport, 1, 0.120000
faction = co_be_grp, 0.100000
faction = co_hsp_grp, 0.100000
faction = co_kt_grp, 0.100000
faction = co_me_grp, 0.100000
faction = co_nws_grp, 0.100000
faction = co_ni_grp, 0.100000
faction = co_rs_grp, 0.100000
faction = co_shi_grp, 0.100000
faction = co_ss_grp, 0.100000
faction = co_vr_grp, 0.080000
encounter = area_trade_armored, 1, 0.020000
faction = co_os_grp, 1.000000
encounter = area_lifter, 1, 0.030000
faction = co_me_grp, 0.500000
faction = co_ss_grp, 0.500000
encounter = area_repair, 1, 0.030000
faction = co_me_grp, 0.500000
faction = co_ss_grp, 0.500000
encounter = prison_liner, 19, 0.120000
fraktion = li_n_grp, 0.260000
fraktion = ku_n_grp, 0.260000
fraktion = rh_n_grp, 0.260000

i have done this with br_n_grp, ku_n_grp, and rh_n_grp

but the encounter does not appear/spawn
i dont post the loadouts for the gunboats but they are correct

maybe some1 can help

Post Sat Apr 21, 2007 8:08 am

[zone
nickname = Zone_Li01_001_Planet_Li01_01
pos = -33020, 0, -27925
rotate = 0, 104, 0
shape = SPHERE
size = 7000
comment = Manhattan
sort = 1
toughness = 19
density = 6
repop_time = 10
max_battle_size = 8
pop_type = li_p_grp, base_cluster_law
relief_time = 10


do this

Post Sat Apr 21, 2007 10:57 pm

hmm i tried this but
no Prison_ENcounter respawn-.-
Nobody knows the Answer??

Post Sun Apr 22, 2007 7:17 am

hi, try this:

[NPCShipArch
npc_class = lawful, class_prison, d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11, d12, d13, d14, d15, d16, d17, d18, d19

[ShipClass
nickname = sc_prisons
member = class_prison

[EncounterFormation
ship_by_class = 1, 1, sc_prisons
formation_by_class = prisons

[FactionProps
formation = prisons, Prison_Liner_wall

should work

Edited by - RimShot on 4/22/2007 8:21:16 AM

Post Mon Apr 23, 2007 6:12 am

Hmm thx but it doesnt work

i only get an error in FLServer

E:\FL\Scratch\Source\Common\CEqObj.cpp(454) : *** WARNING: alloc_equip: Archetype[0x8000bec6 not supported/equippable!
E:\FL\Scratch\Source\Common\CEqObj.cpp(454) : *** WARNING: alloc_equip: Archetype[0x8000bec6 not supported/equippable!

Edited by - [HAWalker on 4/23/2007 7:11:59 AM

Post Mon Apr 23, 2007 8:27 am

Looks like your trying to equip something onto a nonexistant hardpoint... is your loadout for it the same as the one in the mission? If not, try switching them and see what happens...

Post Mon Apr 23, 2007 9:05 am

I try to play on the server without the encounter
but the error is there too

i my opinion this is a normal error of FL server
but i have problems with the encounter

Post Mon Apr 23, 2007 1:48 pm


encounter = prison_liner, 19, 0.120000
fraktion = li_n_grp, 0.260000
fraktion = ku_n_grp, 0.260000
fraktion = rh_n_grp, 0.260000


that should be faction not fraktion.

Post Tue Apr 24, 2007 3:56 am

You have got Eagle Eyes^^ but this is an older version of the zone in LI

here the newest
[zone
nickname = Zone_Li01_001_Planet_Li01_01
pos = -33020, 0, -27925
rotate = 0, 104, 0
shape = SPHERE
size = 7000
comment = Manhattan
sort = 1
toughness = 19
density = 12
repop_time = 10
max_battle_size = 8
pop_type = li_p_grp, base_cluster_law
relief_time = 10
faction_weight = ku_n_grp, 12
faction_weight = li_p_grp_prisoners, 4
faction_weight = co_be_grp, 10
faction_weight = co_hsp_grp, 10
faction_weight = co_kt_grp, 10
faction_weight = co_me_grp, 10
faction_weight = co_nws_grp, 10
faction_weight = co_ni_grp, 10
faction_weight = co_os_grp, 4
faction_weight = co_rs_grp, 10
faction_weight = co_shi_grp, 10
faction_weight = co_ss_grp, 10
faction_weight = co_vr_grp, 8
faction_weight = gd_bh_grp, 3
density_restriction = 4, unlawfuls
encuonter = Prison_Liner, 19, 0.900000
faction = kn_n_grp, 1.00000

Post Tue Apr 24, 2007 6:32 am

You have the faction_weight total too high (over 100 total). It should not be more than 100 total.

You have...
<ul>faction_weight = ku_n_grp, 12
faction_weight = li_p_grp_prisoners, 4
faction_weight = co_be_grp, 10
faction_weight = co_hsp_grp, 10
faction_weight = co_kt_grp, 10
faction_weight = co_me_grp, 10
faction_weight = co_nws_grp, 10
faction_weight = co_ni_grp, 10
faction_weight = co_os_grp, 4
faction_weight = co_rs_grp, 10
faction_weight = co_shi_grp, 10
faction_weight = co_ss_grp, 10
faction_weight = co_vr_grp, 8
faction_weight = gd_bh_grp, 3</ul>

Edit it to more like this...
<ul>faction_weight = ku_n_grp, 6
faction_weight = li_p_grp_prisoners, 6
faction_weight = co_be_grp, 6
faction_weight = co_hsp_grp, 6
faction_weight = co_kt_grp, 6
faction_weight = co_me_grp, 6
faction_weight = co_nws_grp, 6
faction_weight = co_ni_grp, 6
faction_weight = co_os_grp, 6
faction_weight = co_rs_grp, 6
faction_weight = co_shi_grp, 6
faction_weight = co_ss_grp, 6
faction_weight = co_vr_grp, 6
faction_weight = gd_bh_grp, 6</ul>

Post Tue Apr 24, 2007 6:49 am

Eh! BP faction_weight can be higher than 100, that zone is over 100 in vanilla, the individual weights can't be over 20, and it's the percentages that can't be over 100 or 1.000000.

@ [HAWalker,
formation = gunboats, gunboat_wall
formation = cruisers, cruiser_wall
formation = battleships, battleship_wall
formation = Prison_liner, Prison_liner_wall

Do you have that ship class or not, as that line reads as formation = ship_class, formation.

**shuffles off with a new headache**

Post Tue Apr 24, 2007 8:20 am

Then it's an error in vanilla.
Do you think I just pull these things out of my imagination?
Don't you think I can find out this information from the right people?

Hands Bejaymac a bottle of aspirin's for his constant headaches...

Post Wed Apr 25, 2007 6:41 am

AHHH is doesnt work-.-

ok here my newest files

In data/missions/encounters

Prison_liner.ini
[EncounterFormation
ship_by_class = 1, 1, sc_prisons
pilot_job = assault_leader_job
make_class = wanderer
ship_by_class = 6, 6, sc_gunboats
pilot_job = assault_job
make_class = wanderer
formation_by_class = prisons
behavior = wander
arrival = cruise
allow_simultaneous_creation = yes
zone_creation_distance = 0
times_to_create = infinite

[Creation
permutation = 0, 3



in Data/missions fraction_prop.ini

[FactionProps
affiliation = ku_n_grp
legality = lawful
nickname_plurality = plural
msg_id_prefix = gcs_refer_faction_ku_n
jump_preference = jumpgate
npc_ship = ku_n_ku_elite_d1-8
npc_ship = ku_n_ku_elite_d9
npc_ship = ku_n_ku_elite_d10
npc_ship = ku_n_ku_elite_d11-19
npc_ship = ku_n_ku_gunboat_d1-9
npc_ship = ku_n_ku_gunboat_d10-19
npc_ship = ku_n_destroyer_d22
npc_ship = ku_n_battleship_d25
voice = pilot_f_mil_m01
voice = pilot_f_mil_m02
voice = pilot_f_leg_f01
voice = pilot_f_leg_f01a
mc_costume = mc_ku
space_costume = ku_bartender_head_hat, ku_male_elite_body, comm_ku_kym
space_costume = ku_captain_head, ku_male_elite_body, comm_pl_player
space_costume = ku_bartender_head_hat, ku_male_elite_body, comm_ku_kym
space_costume = ku_captain_head, ku_male_elite_body, comm_pl_player
space_costume = ku_bartender_head_hat, ku_male_elite_body, comm_ku_kym
space_costume = ku_captain_head, ku_male_elite_body, comm_pl_player
space_costume = ku_newscaster_head_gen, ku_female_elite_body, comm_ku_kym_female
space_costume = ku_newscaster_head_gen, ku_female_elite_body, comm_pl_player_female
space_costume = ku_newscaster_head_gen, ku_female_elite_body, comm_ku_kym_female
space_costume = ku_newscaster_head_gen, ku_female_elite_body, comm_pl_player_female
space_costume = ku_newscaster_head_gen, ku_female_elite_body, comm_ku_kym_female
space_costume = ku_newscaster_head_gen, ku_female_elite_body, comm_pl_player_female
firstname_male = 228708, 228807
firstname_female = 228808, 228890
lastname = 228908, 229207
rank_desig = 197017, 197018, 197019, 9, 11
formation_desig = 197829, 197836
large_ship_desig = 196980
large_ship_names = 202808, 202847
scan_for_cargo = commodity_alien_artifacts, 1
scan_for_cargo = commodity_cardamine, 2
scan_announce = true
scan_chance = 0.300000
formation = fighters, fighter_ku_n
formation = gunboats, gunboat_ku_n
npc_ship = Kusari_Gunboat
npc_ship = Kusari_Destroyer
npc_ship = Kusari_Battleship
npc_ship = Prison_liner
formation = gunboats, gunboat_wall
formation = destroyers, destroyer_wall
formation = battleships, battleship_wall
formation = Prison_liner, Prison_Liner_wall


in formations.ini

[Formation
nickname = Prison_Liner_wall
pos = 0, 0, 0
pos = 300, 0, 400
pos = -300, 0, 400
pos = 300, 0, 0
pos = -300, 0, 0
pos = 300, 0, -400
pos = -300, 0, -400
pl_pos = 0, 0, 500


in Npc_ships.ini

[NPCShipArch
nickname = Prison_liner
loadout = MSN01b_Prison_Ship
level = d19
ship_archetype = ge_prison
pilot = battleship_default
state_graph = TRANSPORT
npc_class = lawful, class_prison, d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11, d12, d13, d14, d15, d16, d17, d18, d19

[NPCShipArch
nickname = Kusari_Gunboat
loadout = Kusari_Gunboat_Loadout
level = d19
ship_archetype = ku_gunboat
pilot = gunboat_default
state_graph = GUNBOAT
npc_class = lawful, class_gunboat, d19


in loadouts_special.ini

[Loadout
nickname = Kusari_Gunboat_Loadout
archetype = ku_gunboat
equip = ge_s_scanner_02
equip = infinite_power
equip = ge_s_tractor_01
equip = sfx_rumble_gunvessel
equip = ge_kg_engine_01
equip = ku_gunboat_forward_gun01, HpTurret_K5_01
equip = ku_gunboat_turret01, HpTurret_K4_01
equip = ku_gunboat_turret01, HpTurret_K4_02
equip = ku_gunboat_turret01, HpTurret_K4_03
equip = armor_scale_9
equip = SlowMediumGreen, HpRunningLight01
equip = SlowMediumGreen, HpRunningLight02
equip = SlowMediumGreen, HpRunningLight03
equip = SlowMediumGreen, HpRunningLight04
equip = SlowMediumGreen, HpRunningLight05
equip = LargeWhiteSpecial, HpHeadLight01
[for KU gunboat

in loadouts_utility.ini

[Loadout
nickname = MSN01b_Prison_Ship
archetype = ge_prison
equip = ge_psn_engine_01
equip = infinite_power
equip = ge_s_tractor_01
equip = ge_s_scanner_02
equip = li_prison_turret01, HpTurret_Prison_02
equip = li_prison_turret01, HpTurret_Prison_03
equip = li_prison_turret01, HpTurret_Prison_04
equip = li_prison_turret01, HpTurret_Prison_07
equip = li_prison_turret01, HpTurret_Prison_08
[for prison_ship

and in shiparch.ini

[Ship
ids_name = 237047
ids_info = 66594
nickname = ge_prison
LODranges = 0, 500, 750, 1000, 1500, 2250, 2500, 15000
msg_id_prefix = gcs_refer_shiparch_pliner
mission_property = can_use_large_moors
type = TRANSPORT
DA_archetype = Ships\utility\prison_liner\prison_liner.cmp
material_library = ships\utility\utility_liner.mat
material_library = fx\envmapbasic.mat
envmap_material = envmapbasic
linear_drag = 1.000000
mass = 5000.000000
hold_size = 1000000
hit_pts = 69300
explosion_arch = explosion_rh_battleship
surface_hit_effects = 0, small_hull_hit_light01, small_hull_hit_light02, small_hull_hit_light03
surface_hit_effects = 150, small_hull_hit_medium01, small_hull_hit_medium02, small_hull_hit_medium03
surface_hit_effects = 300, small_hull_hit_heavy01, small_hull_hit_heavy02, small_hull_hit_heavy03
steering_torque = 20000000.000000, 20000000.000000, 20000000.000000
angular_drag = 132000000.000000, 132000000.000000, 132000000.000000
rotation_inertia = 40000000.000000, 40000000.000000, 40000000.000000
nudge_force = 1.000000
bay_door_anim = Sc_prison_liner
bay_doors_open_snd = hanger_doors_opening
bay_doors_close_snd = hanger_doors_closing
HP_bay_surface = HpBayDoor01
HP_bay_external = HpBayDoor02
HP_tractor_source = HpTractor_Source
num_exhaust_nozzles = 1
fuse = prison_burning_fuse, 0.000000, -1
fuse = prison_m01b_damage_fuse, 0.000000, -1
fuse = fuse_ge_prison_death, 0.000000, 1

and at last in shipclasses.ini
[ShipClass
nickname = sc_prisons
member = class_prison

Post Wed Apr 25, 2007 8:16 am

faction weight does not matter at all anyways as regards the spawning encounters, does it ?!?

The encounter spawn chance is only determined by the float numbers representing the specific encounter IMO.

oh and what holy source do you have backedpotato? Do you know some FL Developers that you just ask or what?

Return to Freelancer Editing Tutorial Forum