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

Added transport, NPCs forget how to dock

The general place to discuss MOD''ing Freelancer!

Post Sun Nov 11, 2007 9:36 pm

Added transport, NPCs forget how to dock

I added the small transport to our mod and am noticing now that the NPC transports are just stacking up at the entrances to tradelanes even though the lanes are operational. I'm guessing that it has something to do with the engine modifications but I'm not sure.

Can anyone spot anything in here that might be the problem?

<data file="data\equipment\engine_equip.ini" method="sectionreplace">
<section>
[Engine
nickname = ge_t_engine_01
</section>
<dest>
volume = 400.000000
mass = 10
max_force = 240000
linear_drag = 3000
reverse_fraction = 0.100000
flame_effect = gf_br_transport_engine01_fire
trail_effect = gf_br_transport_engine01_trail
cruise_charge_time = 5
cruise_power_usage = 20
rumble_sound = rumble_transport
rumble_atten_range = -5, 0
rumble_pitch_range = -25, 25
cruise_start_sound = engine_ci_cruise_start
cruise_loop_sound = engine_ci_cruise_loop
cruise_stop_sound = engine_ci_cruise_stop
cruise_disrupt_sound = cruise_disrupt
cruise_backfire_sound = cruise_backfire
indestructible = false
outside_cone_attenuation = -3
inside_sound_cone = 90
outside_sound_cone = 270
</dest>
<source>
volume = 0.000000
mass = 10
max_force = 240000
linear_drag = 3000
power_usage = 0
reverse_fraction = 0.100000
flame_effect = gf_br_transport_engine01_fire
trail_effect = gf_br_transport_engine01_trail
trail_effect_player = gf_br_transport_engine01_trail
cruise_disrupt_effect = gf_li_cruisedisruption
cruise_charge_time = 5
cruise_power_usage = 20
character_start_sound = engine_li_freighter_start
character_loop_sound = engine_li_freighter_loop
character_pitch_range = -50, 25
rumble_sound = rumble_transport
rumble_atten_range = -5, 0
rumble_pitch_range = -25, 25
engine_kill_sound = engine_rh_freighter_kill
cruise_start_sound = engine_li_cruise_start
cruise_loop_sound = engine_li_cruise_loop
cruise_stop_sound = engine_li_cruise_stop
cruise_disrupt_sound = cruise_disrupt
cruise_backfire_sound = cruise_backfire
indestructible = false
outside_cone_attenuation = -3
inside_sound_cone = 225
outside_sound_cone = 600
</source>
</data>

Post Sun Nov 11, 2007 10:09 pm

Actually, here is the complete edit.

This section of the mod is causing the previously mentioned NPC stacking at tradelanes as well as server crashes. Without this section the mod works fine. FLSpew doesn't show anything.

<data file="data\ships\shiparch.ini" method="sectionreplace">
<section>
[Ship
ids_name = 237057
</section>
<dest>
ids_info = 66611
nickname = ge_transport
msg_id_prefix = gcs_refer_shiparch_htransport
mission_property = can_use_med_moors
LODranges = 0, 300, 900, 4500
type = TRANSPORT
DA_archetype = ships\utility\transport_small\transport_small.cmp
material_library = ships\utility\utility_transport.mat
material_library = fx\envmapbasic.mat
envmap_material = envmapbasic
fuse = transport_death_fuse, 0.000000, 1
fuse = intermed_damage_transport01, 0.000000, 750
fuse = intermed_damage_transport02, 0.000000, 375
linear_drag = 1.000000
mass = 500.000000
hold_size = 1000000
explosion_arch = explosion_instant
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
hp_type = hp_turret, HpTurret_U1_01, HpTurret_U1_02, HpTurret_U1_03, HpTurret_U1_04, HpTurret_U3_01
hp_type = hp_cargo_pod, HpCargo01, HpCargo02
steering_torque = 700000.000000, 700000.000000, 300000.000000
angular_drag = 2500000.000000, 2500000.000000, 2500000.000000
rotation_inertia = 1200000.000000, 1200000.000000, 1200000.000000
nudge_force = 150000.000000
HP_bay_surface = HpRunningLight08
HP_bay_external = HpMount
HP_tractor_source = HpTractor_Source
num_exhaust_nozzles = 1
hit_pts = 3000

[CollisionGroup
obj = trans_frnt_lod1
mass = 80.000000
separable = true
parent_impulse = 60
child_impulse = 400
group_dmg_hp = DpFrnt
group_dmg_obj = transport_dmg_frnt_cap
debris_type = cap_ship_piece
fuse = transport_death_fuse, 0.000000, 1
hit_pts = 3000
root_health_proxy = true

[CollisionGroup
obj = trans_rear_lod1
separable = true
parent_impulse = 60
child_impulse = 200
group_dmg_hp = DpMain
group_dmg_obj = transport_dmg_main_cap
debris_type = cap_ship_piece
fuse = transport_death_fuse, 0.000000, 1
hit_pts = 3000
root_health_proxy = true

[CollisionGroup
obj = trans_cntrl_twr_lod1
separable = true
child_impulse = 1.000000
parent_impulse = 60.000000
debris_type = debris_vanish
dmg_hp = DpCntrl_twr
dmg_obj = transport_dmg_twr_cap
fuse = transport_death_fuse, 0.000000, 1
hit_pts = 3000
root_health_proxy = true

[CollisionGroup
obj = trans_eng_lod1
separable = true
child_impulse = 1.000000
parent_impulse = 60.000000
debris_type = debris_vanish
dmg_hp = DpEng
dmg_obj = transport_dmg_eng_cap
fuse = transport_death_fuse, 0.000000, 1
hit_pts = 3000
root_health_proxy = true

[CollisionGroup
obj = trans_port_eng_lod1
separable = true
child_impulse = 1.000000
parent_impulse = 60.000000
debris_type = debris_vanish
dmg_hp = DpPort_eng
dmg_obj = transport_dmg_port_eng_cap
fuse = transport_port_eng_fuse, 0.000000, 1
hit_pts = 700
root_health_proxy = true

[CollisionGroup
obj = trans_star_eng_lod1
separable = true
child_impulse = 1.000000
parent_impulse = 60.000000
debris_type = debris_vanish
dmg_hp = DpStar_eng
dmg_obj = transport_dmg_star_eng_cap
fuse = transport_star_eng_fuse, 0.000000, 1
hit_pts = 700
root_health_proxy = true

[CollisionGroup
obj = trans_tail_fin_lod1
mass = 20.000000
separable = true
child_impulse = 2000.000000
parent_impulse = 12000.000000
debris_type = debris_vanish
dmg_hp = DpTail
dmg_obj = transport_dmg_fin_cap
fuse = transport_death_fuse, 0.000000, 1
hit_pts = 350
root_health_proxy = true
</dest>
<source>
ids_info = 66611
nickname = ge_transport
LODranges = 0, 300, 900, 4500
msg_id_prefix = gcs_refer_shiparch_htransport
mission_property = can_use_large_moors
ship_class = 2
type = FREIGHTER
DA_archetype = ships\utility\transport_small\transport_small.cmp
material_library = ships\utility\utility_transport.mat
material_library = fx\envmapbasic.mat
envmap_material = envmapbasic
fuse = transport_death_fuse, 0.000000, 1
fuse = intermed_damage_transport01, 0.000000, 750
fuse = intermed_damage_transport02, 0.000000, 375
linear_drag = 1.000000
mass = 500.000000
hold_size = 1000
explosion_arch = explosion_instant
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
hp_type = hp_gun, HpTurret_U1_01, HpTurret_U1_02, HpTurret_U1_03, HpTurret_U1_04, HpTurret_U3_01
hp_type = hp_cargo_pod, HpCargo01, HpCargo02
steering_torque = 610000000, 610000000, 610000000
angular_drag = 1000000000, 1000000000, 1000000000
rotation_inertia = 100000000, 100000000, 100000000
nudge_force = 150000.000000
strafe_force = 50000
strafe_power_usage = 2
HP_bay_surface = HpRunningLight08
HP_bay_external = HpMount
HP_tractor_source = HpTractor_Source
num_exhaust_nozzles = 3
hit_pts = 3000
cockpit = cockpits\FLU\ge_miner.ini
pilot_mesh = generic_pilot
nanobot_limit = 500
max_bank_angle = 30
camera_offset = 100, 320
camera_angular_acceleration = 0.010000
camera_horizontal_turn_angle = 20
camera_vertical_turn_up_angle = 5
camera_vertical_turn_down_angle = 30
camera_turn_look_ahead_slerp_amount = 1.000000

[CollisionGroup
obj = trans_frnt_lod1
mass = 80.000000
separable = true
parent_impulse = 60
child_impulse = 400
group_dmg_hp = DpFrnt
group_dmg_obj = transport_dmg_frnt_cap
debris_type = cap_ship_piece
fuse = transport_death_fuse, 0.000000, 1
hit_pts = 80000
root_health_proxy = true

[CollisionGroup
obj = trans_rear_lod1
separable = true
parent_impulse = 60
child_impulse = 200
group_dmg_hp = DpMain
group_dmg_obj = transport_dmg_main_cap
debris_type = cap_ship_piece
fuse = transport_death_fuse, 0.000000, 1
hit_pts = 80000
root_health_proxy = true

[CollisionGroup
obj = trans_cntrl_twr_lod1
separable = true
child_impulse = 1.000000
parent_impulse = 60.000000
debris_type = debris_vanish
dmg_hp = DpCntrl_twr
dmg_obj = transport_dmg_twr_cap
fuse = transport_death_fuse, 0.000000, 1
hit_pts = 80000
root_health_proxy = true

[CollisionGroup
obj = trans_eng_lod1
separable = true
child_impulse = 1.000000
parent_impulse = 60.000000
debris_type = debris_vanish
dmg_hp = DpEng
dmg_obj = transport_dmg_eng_cap
fuse = transport_death_fuse, 0.000000, 1
hit_pts = 80000
root_health_proxy = true

[CollisionGroup
obj = trans_port_eng_lod1
separable = true
child_impulse = 1.000000
parent_impulse = 60.000000
debris_type = debris_vanish
dmg_hp = DpPort_eng
dmg_obj = transport_dmg_port_eng_cap
fuse = transport_port_eng_fuse, 0.000000, 1
hit_pts = 80000
root_health_proxy = true

[CollisionGroup
obj = trans_star_eng_lod1
separable = true
child_impulse = 1.000000
parent_impulse = 60.000000
debris_type = debris_vanish
dmg_hp = DpStar_eng
dmg_obj = transport_dmg_star_eng_cap
fuse = transport_star_eng_fuse, 0.000000, 1
hit_pts = 80000
root_health_proxy = true

[CollisionGroup
obj = trans_tail_fin_lod1
mass = 20.000000
separable = true
child_impulse = 2000.000000
parent_impulse = 12000.000000
debris_type = debris_vanish
dmg_hp = DpTail
dmg_obj = transport_dmg_fin_cap
fuse = transport_death_fuse, 0.000000, 1
hit_pts = 80000
root_health_proxy = true
</source>
</data>

<data file="DATA\EQUIPMENT\goods.ini" method="append">
<source>
[Good
nickname = ge_transport_hull
category = shiphull
ship = ge_transport
price = 10000000
ids_name = 458761
item_icon = Equipment\models\commodities\nn_icons\capshipicons\utility\miningship.3db

[Good
nickname = ge_transport_package
category = ship
hull = ge_transport_hull
addon = ge_t_engine_01, internal, 1
addon = infinite_power, internal, 1
addon = ge_s_scanner_02, internal, 1
addon = ge_s_tractor_01, internal, 1
addon = armor_scale_21, internal, 1
addon = sfx_rumble_ut_large, internal, 1
addon = co_transport_turret01_mark01, HpTurret_U1_01, 1
addon = co_transport_turret01_mark01, HpTurret_U1_02, 1
addon = co_transport_turret01_mark01, HpTurret_U1_03, 1
addon = co_transport_turret01_mark01, HpTurret_U1_04, 1
addon = co_transport_turret02_mark01, HpTurret_U3_01, 1
addon = cargopod_drab, HpCargo01, 1
addon = cargopod_drab, HpCargo02, 1
addon = SlowMediumWhite, HpRunningLight04, 1
addon = SlowMediumWhite, HpRunningLight05, 1
addon = SlowMediumWhite, HpRunningLight06, 1
addon = SlowMediumWhite, HpRunningLight07, 1
addon = SlowMediumWhite, HpRunningLight09, 1
addon = SlowMediumWhite, HpRunningLight10, 1
addon = SlowMediumWhite, HpRunningLight11, 1
addon = SlowMediumWhite, HpRunningLight12, 1
addon = SlowMediumWhite, HpRunningLight13, 1
addon = DockingLightRed, HpDockLight01, 1
addon = DockingLightRed, HpDockLight02, 1
addon = DockingLightRed, HpDockLight03, 1
addon = LargeWhiteSpecial, HpHeadlight01, 1
addon = LargeWhiteSpecial, HpHeadlight02, 1
</source>
</data>

<data file="data\equipment\engine_equip.ini" method="sectionreplace">
<section>
[Engine
nickname = ge_t_engine_01
</section>
<dest>
volume = 400.000000
mass = 10
max_force = 240000
linear_drag = 3000
reverse_fraction = 0.100000
flame_effect = gf_br_transport_engine01_fire
trail_effect = gf_br_transport_engine01_trail
cruise_charge_time = 5
cruise_power_usage = 20
rumble_sound = rumble_transport
rumble_atten_range = -5, 0
rumble_pitch_range = -25, 25
cruise_start_sound = engine_ci_cruise_start
cruise_loop_sound = engine_ci_cruise_loop
cruise_stop_sound = engine_ci_cruise_stop
cruise_disrupt_sound = cruise_disrupt
cruise_backfire_sound = cruise_backfire
indestructible = false
outside_cone_attenuation = -3
inside_sound_cone = 90
outside_sound_cone = 270
</dest>
<source>
volume = 0.000000
mass = 10
max_force = 240000
linear_drag = 3000
power_usage = 0
reverse_fraction = 0.200000
flame_effect = gf_br_transport_engine01_fire
trail_effect = gf_br_transport_engine01_trail
trail_effect_player = gf_br_transport_engine01_trail
cruise_disrupt_effect = gf_li_cruisedisruption
cruise_charge_time = 5
cruise_power_usage = 20
character_start_sound = engine_li_freighter_start
character_loop_sound = engine_li_freighter_loop
character_pitch_range = -50, 25
rumble_sound = rumble_transport
rumble_atten_range = -5, 0
rumble_pitch_range = -25, 25
engine_kill_sound = engine_rh_freighter_kill
cruise_start_sound = engine_li_cruise_start
cruise_loop_sound = engine_li_cruise_loop
cruise_stop_sound = engine_li_cruise_stop
cruise_disrupt_sound = cruise_disrupt
cruise_backfire_sound = cruise_backfire
indestructible = false
outside_cone_attenuation = -3
inside_sound_cone = 225
outside_sound_cone = 600
</source>
</data>

<data file="data\equipment\weapon_equip.ini" method="sectionreplace">
<section>
[Munition
nickname = co_transport_turret01_mark01_ammo
</section>
<dest>
hull_damage = 81.500000
</dest>
<source>
hull_damage = 244.057600
</source>
</data>

<data file="data\equipment\weapon_equip.ini" method="sectionreplace">
<section>
[Gun
nickname = co_transport_turret01_mark01
</section>
<dest>
hit_pts = 4800
explosion_resistance = 1.000000
debris_type = debris_turret_small
parent_impulse = 20
child_impulse = 80
volume = 50.000000
mass = 10
damage_per_fire = 0
power_usage = 0
refire_delay = 0.500000
muzzle_velocity = 1000
toughness = 1.600000
</dest>
<source>
hit_pts = 65000
explosion_resistance = 1.000000
debris_type = debris_turret_small
parent_impulse = 20
child_impulse = 80
volume = 0.000000
mass = 10
damage_per_fire = 0
power_usage = 0
refire_delay = 0.120048
muzzle_velocity = 1000
toughness = 1.600000
hp_gun_type = hp_gun
</source>
</data>

<data file="data\equipment\weapon_equip.ini" method="sectionreplace">
<section>
[Munition
nickname = co_transport_turret02_mark01_ammo
</section>
<dest>
hull_damage = 40.799999
</dest>
<source>
hull_damage = 122.028800
</source>
</data>

<data file="data\equipment\weapon_equip.ini" method="sectionreplace">
<section>
[Gun
nickname = co_transport_turret02_mark01
</section>
<dest>
hit_pts = 4800
explosion_resistance = 1.000000
debris_type = debris_turret_small
parent_impulse = 20
child_impulse = 80
volume = 50.000000
mass = 10
damage_per_fire = 0
power_usage = 0
refire_delay = 0.500000
muzzle_velocity = 1222.199951
toughness = 0.800000
</dest>
<source>
hit_pts = 65000
explosion_resistance = 1.000000
debris_type = debris_turret_small
parent_impulse = 20
child_impulse = 80
volume = 0.000000
mass = 10
damage_per_fire = 0
power_usage = 0
refire_delay = 0.120048
muzzle_velocity = 1222.199951
toughness = 0.800000
hp_gun_type = hp_gun
</source>
</data>

<data file="data\equipment\select_equip.ini" method="sectionappend">
<section>
[CargoPod
nickname = cargopod_blue
</section>
<source>
hp_type = hp_cargo_pod
</source>
</data>

<data file="data\equipment\select_equip.ini" method="sectionappend">
<section>
[CargoPod
nickname = cargopod_green
</section>
<source>
hp_type = hp_cargo_pod
</source>
</data>

<data file="data\equipment\select_equip.ini" method="sectionappend">
<section>
[CargoPod
nickname = cargopod_yellow
</section>
<source>
hp_type = hp_cargo_pod
</source>
</data>

<data file="data\equipment\select_equip.ini" method="sectionappend">
<section>
[CargoPod
nickname = cargopod_red
</section>
<source>
hp_type = hp_cargo_pod
</source>
</data>

<data file="data\equipment\select_equip.ini" method="sectionappend">
<section>
[CargoPod
nickname = cargopod_grey
</section>
<source>
hp_type = hp_cargo_pod
</source>
</data>

<data file="data\equipment\select_equip.ini" method="sectionappend">
<section>
[CargoPod
nickname = cargopod_white
</section>
<source>
hp_type = hp_cargo_pod
</source>
</data>

<data file="data\equipment\select_equip.ini" method="sectionappend">
<section>
[CargoPod
nickname = cargopod_drab
</section>
<source>
hp_type = hp_cargo_pod
</source>
</data>

<data file="data\equipment\market_ships.ini" method="append">
<source>
[BaseGood
base = Li01_07_base
marketgood = ge_transport_package, 24, -1, 1, 1, 0, 1, 1
</source>
</data>


I'd appreciate your input, I can't see the problem.

R

Post Sun Nov 11, 2007 11:33 pm

Is the transport ganna be buy able? Because sometimes when they are for some reason the IA doesn't act right.

Post Mon Nov 12, 2007 6:08 am

Well, I don't know about that. We've added all capships, the blood dragon, the csv, both anubis, juni's defender, and the mining vessel all without problems. I know that the Discovery mod and the Hamburg City server have added them and made them buyable. I'm still thinking it's something else.

Post Mon Nov 12, 2007 10:10 am

Did you try editing the mass? instead of 500 make it like 350 or something. Cuz I know in my mod I was messing around and made the eagle have 500 mass, and it was hard to do anything.

Post Mon Nov 12, 2007 1:50 pm

You say you're crashing with that transport?
Take a closer look at your code,
I think you're missing an "ids_name = 237057" in one of your sections.
You've already got it in one spot, but where you're have it a second time,
that line seems to be missing.

Post Mon Nov 12, 2007 2:13 pm

I may be wrong about this but if I remember right NPC's landing on a planet have something to do with the planet itself, something about which faction inhabits the planet.
Hopefully someone with the correct knowledge can tell you about that.

Post Mon Nov 12, 2007 2:23 pm

The coding is correct as far as the ids_name is concerned. It's just the way the script works.

I'm working on the supposition that my changes to the steering settings may have been too extreme for the NPCs to handle. The NPCs can't maneuver any more and are stacking up at the tradelanes and docking points. Once the population gets too heavy the server crashes.

I'm lowering the steering settings to see if that has anything to do with it.

Post Mon Nov 12, 2007 6:24 pm

well, i thought it might be the steering settings so I used hamburgs settings and then the default settings. server still crashes but still, only when the transport mod is activated.

I reckon I'm gonna have to activate each edit one at a time just to see which one is causing the problem.

Post Mon Nov 12, 2007 7:51 pm

Never mind...You'll see what I'm talking about sooner or later.
Scripting .... BAH HUMBUG!

Edited by - Rankor on 11/12/2007 7:54:43 PM

Return to Freelancer General Editing Forum