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

My Last Hope

The general place to discuss MOD''ing Freelancer!

Post Mon Aug 20, 2007 11:17 am

My Last Hope

I've been working on my mod for more than 4 months now, and I think I did everything right because I can see my ship at the ship dealer. However, when I get to the last screen in the purchase process, the game crashes.

I followed a thread talking about crashes and the reason for that crash, it led me to shiparch.ini and goods.ini / so I trible-checked ALL ini files of my mod, and I also used a program called "FLScan" (no errors) and loaded my mod in FLMM, but that didn't solve the problem. Here's my mod:

CMP:
Hp/Revolute/HpWeapon01 (and 02, 03)
Hp/Revolute/HpTurret01 (and 02, 03, 04)
Hp/Revolute/HpTorpedo01
Hp/Fixed/HpEngine01 (and 02)
Hp/Fixed/HpEngineGlow
Hp/Fixed/HpEngineGlow
Hp/Fixed/HpCM01
Hp/Fixed/HpMine01
Hp/Fixed/HpThruster01 (and 02)
Hp/Fixed/HpTractor_Source
Hp/Fixed/HpShield01
Hp/Fixed/HpMount
Hp/Fixed/HpConTrail01 (and 02)
Hp/Fixed/HpRunningLight01 (and 02)
Hp/Fixed/HpDockLight01 (and 02)
Hp/Fixed/HpScanner01
Hp/Fixed/HpPilot

MAT file is perfect.

Shiparch.ini:
[Ship
ids_name = 197687
ids_info = 66700
ids_info1 = 66615
ids_info2 = 66701
ids_info3 = 66702
ship_class = 1
nickname = Incubus XIII
msg_id_prefix = gcs_refer_shiparch_Libhf
mission_property = can_use_berths
LODranges = 0, 75, 150, 1300
type = FIGHTER
DA_archetype = ships\liberty\Incubus XIII\Incubus XIII.cmp
material_library = ships\liberty\Incubus XIII\Incubus XIII.mat
material_library = fx\envmapbasic.mat
envmap_material = envmapbasic
cockpit = cockpits\liberty\l_elite.ini
pilot_mesh = generic_pilot
nanobot_limit = 14
shield_battery_limit = 14
mass = 150.000000
hold_size = 30
linear_drag = 1.000000
fuse = intermed_damage_smallship01, 0.000000, 400
fuse = intermed_damage_smallship02, 0.000000, 200
fuse = intermed_damage_smallship03, 0.000000, 133
max_bank_angle = 30
camera_offset = 8, 34
camera_angular_acceleration = 0.050000
camera_horizontal_turn_angle = 17
camera_vertical_turn_up_angle = 5
camera_vertical_turn_down_angle = 25
camera_turn_look_ahead_slerp_amount = 1.000000
hit_pts = 1600
explosion_arch = explosion_li_elite
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 = 50000.000000, 50000.000000, 230000.000000
angular_drag = 40000.000000, 40000.000000, 141000.000000
rotation_inertia = 8400.000000, 8400.000000, 8400.000000
nudge_force = 30000.000000
strafe_force = 20000
strafe_power_usage = 2
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
HP_tractor_source = HpTractor_Source
num_exhaust_nozzles = 2
shield_link = l_freighter_shield01, HpMount, HpShield01
hp_type = hp_gun_special_3, HpWeapon01, HpWeapon02, HpWeapon03
hp_type = hp_gun_special_2, HpWeapon01, HpWeapon02, HpWeapon03
hp_type = hp_gun_special_1, HpWeapon01, HpWeapon02, HpWeapon03
hp_type = hp_freighter_shield_special_3, HpShield01
hp_type = hp_freighter_shield_special_2, HpShield01
hp_type = hp_freighter_shield_special_1, HpShield01
hp_type = hp_thruster, HpThruster01, HpThruster02
hp_type = hp_mine_dropper, HpMine01
hp_type = hp_countermeasure_dropper, HpCM01
hp_type = hp_turret_special_4, HpTurret01, HpTurret02, HpTurret03, HpTurret04
hp_type = hp_turret_special_3, HpTurret01, HpTurret02, HpTurret03, HpTurret04
hp_type = hp_turret_special_2, HpTurret01, HpTurret02, HpTurret03, HpTurret04
hp_type = hp_turret_special_1, HpTurret01, HpTurret02, HpTurret03, HpTurret04
hp_type = hp_torpedo_special_1, HpTorpedo01
hp_type = hp_torpedo_special_2, HpTorpedo01

goods.ini:
[Good
nickname = Incubus XIII_hull
category = shiphull
ship = Incubus XIII
price = 1000
ids_name = 12003
item_icon = Equipment\models\commodities\nn_icons\li_elite.3db

[Good
nickname = Incubus XIII_package
category = ship
hull = Incubus XIII_hull
addon = Incubus XIII_engine_01, internal, 1
addon = Incubus XIII_power01, internal, 1
addon = ge_s_scanner_01, internal, 1
addon = ge_s_tractor_01, internal, 1
addon = shield01_mark02_hf, HpShield01, 1
addon = SlowSmallBlue, HpRunningLight01, 1
addon = SlowSmallBlue, HpRunningLight02, 1
addon = contrail01, HpContrail01, 1
addon = contrail01, HpContrail02, 1
addon = DockingLightRedSmall, HpDockLight01, 1
addon = DockingLightRedSmall, HpDockLight02, 1

engine_equip.ini:
[Engine
nickname = Incubus XIII_engine_01
ids_name = 263688
ids_info = 264688
volume = 0.000000
mass = 10
max_force = 48000
linear_drag = 599
power_usage = 0
reverse_fraction = 0.200000
flame_effect = gf_li_smallengine02_fire
trail_effect = gf_li_smallengine02_trail
cruise_disrupt_effect = gf_li_cruisedisruption
trail_effect_player = gf_li_smallengine02_playtrail
cruise_charge_time = 5
cruise_power_usage = 20
character_start_sound = engine_li_fighter_start
character_loop_sound = engine_li_fighter_loop
character_pitch_range = -50, 25
rumble_sound = rumble_h_fighter
rumble_atten_range = -5, 0
rumble_pitch_range = -25, 25
engine_kill_sound = engine_li_fighter_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 = 60
outside_sound_cone = 180

misc_equip.ini:
[Power
nickname = Incubus XII_power01
ids_name = 263721
ids_info = 264721
volume = 0.000000
mass = 10
DA_archetype = equipment\models\hardware\li_fusion_reactor.3db
material_library = equipment\models\hardware.mat
capacity = 1500
charge_rate = 157
thrust_capacity = 1000
thrust_charge_rate = 100
lootable = false

market_ships.ini: works
~~~

Can you help me detect the error?

Post Mon Aug 20, 2007 11:24 am

standard can't see the wood for the trees problem

your powerplants nickname is "Incubus XII_power01" while the package is looking for "Incubus XIII_power01", You've missed/added an "I" in the name.

**shuffles off with a new headache**

Post Mon Aug 20, 2007 11:32 am

The problem is one of those annoying misspellings that everyone does occasionally. Your power generator is named "Incubus XII_power" while your goods file references "Incubus XIII_power".

RUUUUUUN! GOOOOOOO! GET TO DAH CHOPPAH!!!

Post Mon Aug 20, 2007 12:30 pm

Thanks!

OOOOOOOOOOHHHH STUPID typo made me revise the ini files 10 times >.<

anyway, how did you guys notice? lol
how can I make my engines' flame thingi pink? (y'know, like Rougues)

Here's the ship:

I have a verrrrrrrrrry bad taste with texturing, and the cockpit is empty, and the glass needs frame lol

I'm happy tho, my first 3D design

Edited by - Gora on 8/20/2007 2:00:24 PM

Post Mon Aug 20, 2007 12:55 pm

Umm...

Is it working now apart from the engine glow colour?

If it is, then I am truly surprised, because I thought I spotted "Incubus xxx_xx" names everywhere.

I thought the game doesn't like spaces in names, and everything should be joined with underscores, like "Incubus_xxx_xx"??

Please enlighten me fellas?

Edited by - StarTrader on 8/20/2007 1:56:06 PM

Post Mon Aug 20, 2007 1:23 pm

yep, it's working.

Can you tell me about the glow?

Post Mon Aug 20, 2007 4:09 pm

For the engine color, replace:

flame_effect = gf_li_smallengine02_fire
trail_effect = gf_li_smallengine02_trail
cruise_disrupt_effect = gf_li_cruisedisruption
trail_effect_player = gf_li_smallengine02_playtrail

with:

flame_effect = gf_co_smallengine02_fire
trail_effect = gf_co_smallengine02_trail
trail_effect_player = gf_co_smallengine02_playtrail

Those are the effects the pirate ships use.

RUUUUUUN! GOOOOOOO! GET TO DAH CHOPPAH!!!

Post Tue Aug 21, 2007 3:55 am

hi pals.

OK but - I'm not convinced, I don't have time to experiment to see why it is working for you now when it definitely should not be.

But I will throw this little bit of advice to you anyway, it will save you hours of pain later on if not immediately...

Those spaces in the equipment names are most definitely Verboten!!

Especially as several different components (folder names, model name, ship as well as engine power and so on!!) all have the same starting name "Incubus". Some subroutines will misread it and take the first part of the name only, until the first blank space.

So it would be better if you do remove the spaces by replacing them with underscores, e.g. "Incubus_III_power_01" etc. - this will combine the name into one part, and doing this will avoid incorrect parsing which will most definitely happen at some stage in your programming / modding adventures.

It has happened to me, and I speak from the other side of those many many wasted hours...

So it's better to get in the habit of joining all parts of each name with underscores as you go.

Another tip about FL - in some places, e.g. the naming of secret wrecks in the system ini files, it doesn't like seeing "_01" on the end of a name, and wants to see "_1" instead. Or it won't drop the loot!

And in others, such as hardpoints for engines, it doesn't want to see "HpEngine10" to "HpEngine20" etc but wants "HpEngine010" to "HpEngine020" etc.

It's a matter of bearing these annoyances in mind and trying alternatives when you get the problems.

But I thought to throw this at you now anyway, so you don't fall into bad habits when things appear to work.

Just trying to help for the future.

Roleplay: - the art of self-deceipt!

Edited by - StarTrader on 8/21/2007 5:01:50 AM

Post Tue Aug 21, 2007 4:21 am

the ship is working, with spaces in the name. It's working just fine

I'm looking for a golden texture tho xD

Thank yo guys.

Return to Freelancer General Editing Forum