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

Little help please

Do you want to start editing Freelancer, but have no clue where to begin? This is the place for you to find things and talk about getting started on Freelancer Modding

Post Sun Apr 23, 2006 2:26 pm

Little help please

Hiya,
While i'm ok with sorting out the making of ships and the .cmp/.mat/.sur file stuff,i've never been much cop at putting it into the game.
I've just completed my ship and i've coded it correctly i think,but when i click on ship the ship dealer icon on the hud it crashes.

Any idea's?
(will post code if asked for)

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(" )_(" ) signature to help him gain world domination.

Post Sun Apr 23, 2006 3:14 pm

Post yer code please

Post Sun Apr 23, 2006 7:36 pm

Well, without seeing your code I don't know for sure, but I am almost positive is is this:

In the ship's goods.ini file, do you have a whole bunch of custom weapons attached? If so, get rid of them. FL seems to get touchy when you want more than 5 weapons or turrets (10 total) to be part of the ship's package. When I had this problem I literally wasted hours and hours and hours trying to fix it.

If this doesn't apply to you, ignore what I just said.

THIS IS MY BUNNY (He's got a sword!)

What's your favorite letter?
Mine is the squiggly! (erm, tilde)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/()_()
/(o.0)
+(___)o

Edited by - Xen()morph on 4/23/2006 8:37:08 PM

Post Mon Apr 24, 2006 1:29 am

ok,here's part 1

[Ship
ids_name = 458888
ids_info = 458889
ship_class = 1
nickname = Galactica
LODranges = 0, 999999, 999999, 999999
msg_id_prefix=gcs_refer_shiparch_Liblf
mission_property=can_use_jumps
type=FREIGHTER
mass=250.000000
hold_size=8000
linear_drag=1
fuse=li_fighter_gas01, 0, -1
fuse=li_fighter_smoke01, 0, -1
fuse=intermed_damage_smallship02, 0, 400
fuse=intermed_damage_smallship03, 0, 200
max_bank_angle=12
camera_offset=29.913400, 185.1701
camera_angular_acceleration=0.05
camera_horizontal_turn_angle=14
camera_vertical_turn_up_angle=5
camera_vertical_turn_down_angle=10
camera_turn_look_ahead_slerp_amount=1
nanobot_limit=200
shield_battery_limit=200
hit_pts = 250000
hold_size = 8000
DA_archetype = SHIPS\BSG\BSG.cmp
material_library = SHIPS\BSG\BSG.mat
material_library=fx\envmapbasic.mat
envmap_material=envmapbasic
cockpit = cockpits\corsair\bw_elite2.ini
pilot_mesh=generic_pilot
explosion_arch = explosion_cap_ship1
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
bay_door_anim = Sc_rh_freighter
steering_torque = 55000, 55000, 48000
angular_drag = 61000, 61000, 55000
rotation_inertia = 8400, 8400, 1000
nudge_force = 30000
strafe_force = 25000
bay_door_anim=Sc_open baydoor
bay_doors_open_snd=cargo_doors_open
bay_doors_close_snd=cargo_doors_close
HP_bay_surface=HpBayDoor01
HP_bay_external=HpBayDoor02
num_exhaust_nozzles = 4
HP_tractor_source = HpTractor_Source
shield_link = l_fighter_shield01, HpMount, HpShield01
hp_type = hp_gun_special_10, HpWeapon01, HpWeapon02, HpWeapon03
hp_type = hp_gun_special_9, HpWeapon01, HpWeapon02, HpWeapon03
hp_type = hp_gun_special_8, HpWeapon01, HpWeapon02, HpWeapon03
hp_type = hp_gun_special_7, HpWeapon01, HpWeapon02, HpWeapon03
hp_type = hp_gun_special_6, HpWeapon01, HpWeapon02, HpWeapon03
hp_type = hp_gun_special_5, HpWeapon01, HpWeapon02, HpWeapon03
hp_type = hp_gun_special_4, HpWeapon01, HpWeapon02, HpWeapon03
hp_type = hp_gun_special_3, HpWeapon01, HpWeapon02, HpWeapon03
hp_type = hp_turret_special_10, HpTurret01, HpTurret02, HpTurret03, HpTurret04, HpTurret05, HpTurret06, HpTurret07, HpTurret08, HpTurret09, HpTurret10, HpTurret11, HpTurret12, HpTurret13, HpTurret14, HpTurret15, HpTurret16
hp_type = hp_turret_special_9, HpTurret01, HpTurret02, HpTurret03, HpTurret04, HpTurret05, HpTurret06, HpTurret07, HpTurret08, HpTurret09, HpTurret10, HpTurret11, HpTurret12, HpTurret13, HpTurret14, HpTurret15, HpTurret16
hp_type = hp_turret_special_8, HpTurret01, HpTurret02, HpTurret03, HpTurret04, HpTurret05, HpTurret06, HpTurret07, HpTurret08, HpTurret09, HpTurret10, HpTurret11, HpTurret12, HpTurret13, HpTurret14, HpTurret15, HpTurret16
hp_type = hp_turret_special_7, HpTurret01, HpTurret02, HpTurret03, HpTurret04, HpTurret05, HpTurret06, HpTurret07, HpTurret08, HpTurret09, HpTurret10, HpTurret11, HpTurret12, HpTurret13, HpTurret14, HpTurret15, HpTurret16
hp_type = hp_turret_special_6, HpTurret01, HpTurret02, HpTurret03, HpTurret04, HpTurret05, HpTurret06, HpTurret07, HpTurret08, HpTurret09, HpTurret10, HpTurret11, HpTurret12, HpTurret13, HpTurret14, HpTurret15, HpTurret16
hp_type = hp_turret_special_5, HpTurret01, HpTurret02, HpTurret03, HpTurret04, HpTurret05, HpTurret06, HpTurret07, HpTurret08, HpTurret09, HpTurret10, HpTurret11, HpTurret12, HpTurret13, HpTurret14, HpTurret15, HpTurret16
hp_type = hp_turret_special_4, HpTurret01, HpTurret02, HpTurret03, HpTurret04, HpTurret05, HpTurret06, HpTurret07, HpTurret08, HpTurret09, HpTurret10, HpTurret11, HpTurret12, HpTurret13, HpTurret14, HpTurret15, HpTurret16
hp_type = hp_turret_special_3, HpTurret01, HpTurret02, HpTurret03, HpTurret04, HpTurret05, HpTurret06, HpTurret07, HpTurret08, HpTurret09, HpTurret10, HpTurret11, HpTurret12, HpTurret13, HpTurret14, HpTurret15, HpTurret16
hp_type = hp_turret_special_2, HpTurret01, HpTurret02, HpTurret03, HpTurret04, HpTurret05, HpTurret06, HpTurret07, HpTurret08, HpTurret09, HpTurret10, HpTurret11, HpTurret12, HpTurret13, HpTurret14, HpTurret15, HpTurret16
hp_type = hp_elite_shield_special_10, HpShield01
hp_type = hp_elite_shield_special_9, HpShield01
hp_type = hp_elite_shield_special_8, HpShield01
hp_type = hp_elite_shield_special_7, HpShield01
hp_type = hp_elite_shield_special_6, HpShield01, HpShield02
hp_type = hp_elite_shield_special_5, HpShield01, HpShield02
hp_type = hp_elite_shield_special_4, HpShield01, HpShield02
hp_type = hp_elite_shield_special_3, HpShield01, HpShield02
hp_type = hp_elite_shield_special_2, HpShield01, HpShield02
hp_type = hp_elite_shield_special_1, HpShield01, HpShield02
hp_type = hp_torpedo_special_1, HpTorpedo01, HpTorpedo02, HpTorpedo03, HpTorpedo04
hp_type = hp_torpedo_special_2, HpTorpedo01, HpTorpedo02, HpTorpedo03, HpTorpedo04
hp_type = hp_thruster, HpThruster01, HpThruster02,
hp_type = hp_mine_dropper, HpMine01
hp_type = hp_countermeasure_dropper, HpCM01

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(" )_(" ) signature to help him gain world domination.

Edited by - ds9phoenix on 4/24/2006 2:31:19 AM

Post Mon Apr 24, 2006 1:30 am

[Good
nickname = Galactica_hull
category = shiphull
ship = Galactica
price = 1
ids_name = 458888
item_icon = DATA\SHIPS\BRETONIA\BR_FIGHTER\br_fighter_dmg_engine.3db

[Good
nickname = galactica_package
category = ship
hull = galactica_hull
addon = ge_oe_engine_01, internal, 1
addon = ge_s_scanner_01, internal, 1
addon = ge_s_tractor_01, internal, 1
addon = infinite_power, internal, 1
addon = LargeWhiteSpecial, HpHeadlight, 1
addon = nomad_gun01_mark01, HpWeapon01
addon = nomad_gun01_mark01, HpWeapon02
addon = nomad_gun01_mark01, HpWeapon03
addon = li_battleship_turret01, HpTurret01
addon = li_battleship_turret01, HpTurret02
addon = li_battleship_turret01, HpTurret03
addon = li_battleship_turret01, HpTuuret04
addon = li_battleship_turret01, HpTurret05
addon = li_battleship_turret01, HpTurret06
addon = li_battleship_turret01, HpTurret07
addon = li_battleship_turret01, HpTurret08
addon = li_battleship_turret01, HpTurret09
addon = li_battleship_turret01, HpTurret10
addon = li_battleship_turret01, HpTurret11
addon = li_battleship_turret01, HpTurret12
addon = li_battleship_turret01, HpTurret13
addon = li_battleship_turret01, HpTurret14
addon = li_battleship_turret01, HpTurret15
addon = li_battleship_turret01, HpTurret16
addon = cruise_disruptor01_mark01, HpTorpedo1
addon = cruise_disruptor01_mark02, HpTorpedo2
addon = torpedo01_mark02, HpTorpedo 3
addon = torpedo01_mark02, HpTorpedo 4
addon = contrail01, HpContrail01, 1
addon = contrail01, HpContrail02, 1
addon = contrail01, HpContrail03, 1
addon = contrail01, HpContrail04, 1
addon = DockingLightRedLarge, HpDockLight01, 1
addon = DockingLightRedLarge, HpDockLight02, 1

and market ship =
marketgood = galactica_package, 0, -1, 1, 1, 0, 1, 1
(on manhatten)
Just note that the .3db file isn't right coz i've not done it yet

Edited by - ds9phoenix on 4/24/2006 2:30:51 AM

Post Mon Apr 24, 2006 3:02 am

[Ship
ids_name = 458888
ids_info = 458889
ship_class = 1 <- *** this and
nickname = Galactica
LODranges = 0, 999999, 999999, 999999 <- change to 0, 4000 (don't really need any more than that for custom ships anyway)
msg_id_prefix=gcs_refer_shiparch_Liblf
mission_property=can_use_jumps
type=FREIGHTER <- *** this need to match-
mass=250.000000
hold_size=8000

I bolded the 2 lines I think might cause some problems, as ship class and type need to match. I'm pretty sure freighters are ship_class 3, but I'm not looking at any INIs right now (at work) but I'm sure someone else will either confirm or correct me on that.

as for LOD ranges, for custom ships, you only need 2 (unless you decided to try for multiple LODs in your model) and since FL doesn't draw things farther than about 5k anyway (IIRC), there's no need to set it to those high numbers you have there.


Chris Bates

Post Mon Apr 24, 2006 3:27 am

I'll bold the lines that I think cause the crash and urge you to try this first...


ddon = cruise_disruptor01_mark01, HpTorpedo1
addon = cruise_disruptor01_mark02, HpTorpedo2
addon = torpedo01_mark02, HpTorpedo 3
addon = torpedo01_mark02, HpTorpedo 4


Can you spot an error or two... or FOUR in this case.

Post Mon Apr 24, 2006 4:03 am

right,i've got riden of the torpedo entries and have also made the changes neccesary,and i still get a CTD everytime i click on ship dealer..any more ideas?

Post Mon Apr 24, 2006 6:04 am

Wait a sec...

Light Fighters: ship_class = 0
Heavy Fighters: ship_class = 1
Very Heavy Fighters: ship_class = 1 -->yes, them too
Freighters: ship_class = 2

That's because HF and VHF are essentially the same kind of ship. They use the same type of shields for example. They have just different stats.

Or it could be this, in your shiparch.ini:
[Ship
ids_name =
ids_info =
ship_class =
nickname =
LODranges =
msg_id_prefix =
mission_property = can_use_jumps --> shouldn't it be "can_use_berths" instead?

By 1001

Edited by - 1001 on 4/24/2006 7:19:03 AM

Post Mon Apr 24, 2006 6:07 am

I'd peel off everything in your goods.ini entry apart from:
Engine
Scanner
Powerplant


That's it, no lights, no weapons, no nothing. Then try it.
If you still crash, then it may be model related instead. You can substitute in another ship model instead of yours (put in another ships cmp for example) and check that. I would remove all weapons mount references etc though, just have it very basic. If that works, then put your cmp/mat back in WITHOUT all the other entries and see what works.

Also run FLScan before doing any of that and see what it says - download front page. It can't pick up model issues, but it will pick up other stuff etc.

Post Mon Apr 24, 2006 6:56 am

right,it's now working
Thanks for the help guys,i think it was the weapons that did it as i've replaced everything else and it's now working,that or the code i messed up

Post Mon Apr 24, 2006 7:22 am

try running FLScan on it then...

Return to Freelancer Modding for Beginners Forum