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 * - how to make a capital ship in short

Here you find the different tutorials on editing and MODing Freelancer

Post Fri Jul 18, 2003 1:39 pm

* Tutorial * - how to make a capital ship in short

As I see, there are many people here trying to put capital ships to their mods. There are already some tutorials about creating a warship (Dreadnought, Liberty Cruiser and Osiris, I think) With Sephiroth's universal docking device it becomes much more easier. I think we don't need to post large tutorials with straight source code, just some points.

So, to create a capital ship you need:

1. Freelancer
2. BINI decoder

http://www.lancersreactor.com/t/editing ... asp?id=204

3. Sephirot's solararch.ini

http://www.lancersreactor.com/t/forum/t ... ng&M=False



The process of modding takes only a few steps:

1. Decode data/ships/shiparch.ini

2. Open it in Wordpad or similar editor. I hope you can find out that rh_battleship means Rheinland Battleship etc. Drag and copy (CTRL+C) whole section along with subsections (that means Ship, Collision Groups and Simples) and paste them i.e. at the end of the file. Copy and paste, DO NOT change the original.

3. In new section, first thing we should change is nickname. I recommend only minimal change, just ergonomically (like li_cruiser to li_cruiserx).

4. Under nickname, add "shipclass" statement. From original parts you can find out that "shipclass = 0" refers unit to be a light fighter, 1 is heavy fighter, 2 is freighter and 3 very heavy fighter.

5. Now it is 7th statement, "mission_property". Here rewrite original point "can_use_large_moors" to "can_use_berths". That will cause normal docking, just press ESC, when ship seems to be large to land... Mooring hasn't regular animation, thanks to Sephiroth we don't have to make it difficult with it.

6. On next line, change type of ship, i.e. to FREIGHTER. I don't know why, just it crashes when you leave CAPITAL.

7. Time to create hardpoints. Those are places, where are put weapons, shields, thrusters and other external stuff. Weapon turrets are enough for battleship. Decode data/ships/loadouts_special.ini and search for original loadout of your ship's model. Sometimes there are more. See Referring to it, write statements like

hp_type = hp_turret_special_7, HpTurret_K1_01

at the end of the "Ship" section. In loadouts_special you see all HpTurret types, so just copy them. Don't make more.

8. Let's set visual properties. Add a cockpit best is to create a new ini at data/cockpits directory and copy properties of existing i.e. freighter to it. Then you can set own turret camera properties. In shiparch, add statement like

cockpit = cockpits\kusari\ku_gunboat.ini

where ku_gunboat.ini is your new cockpit ini file, to the end of your ship section, under hp_types.

9. Needed is also a camera. Well, safest way is to copy one from existing flyable ship. My li_cruiserx has under cockpit statement these:

camera_offset = 30, 250
camera_angular_acceleration = 0.050000
camera_horizontal_turn_angle = 23
camera_vertical_turn_up_angle = 5
camera_vertical_turn_down_angle = 30

We have to change only camera_offset, altough it has only ergonomical or esthetical value. 30 is number of height and 250 lenght over ship's central point. When you change 250 to i.e. 1000, ship will be rather far, when you set external view. Turret view is changable in your cockpit ini file.

10. Shiparch is done. Maybe you can change also mass (erase one 0 for better speed) and hold size (cargo space, 100000 is rather too much). Close and save the file. Now decode and open data/equipment/goods.ini.

11. Open it with Wordpad and search for i.e. rfr_hull. Copy the section and change nickname and ship statements. Ship has to be nickname of your shiparch, i.e. rh_battleshipx. From shiparch.ini you can also change ids_name (info statement). I prefer also changing price: first lower it for testing, than change it for balance...

12. Go to the end of goods.ini file, where you now have to create ship package. You should copy it from loadouts_special.ini, but remember, change nickname to something new and unique (i.e.kd_package), words "archetype = ..." to "hull", where change also value to be same as you made in point 11 (if you made rh_battleshipx as rb_hull, then get this here). Change words "equip" to "addon", copy from some sections a statement with tractor beam (addon = ge_s_tractor_01, internal, 1). And add ", internal, 1" to all non-weapon points. To be sure, weapons aren't needed, but I like originals. Add here also a statement "category = ship", if you didn't it.

13. Now save and close the goods.ini and decode data/equipment/market_ships.ini.

14. Open the file and find some space station, I don't recommend putting the spacecraft on planets. For testing you can put in closest station solding ships, like Freeport 9 if you are a Maltese/Cretian (Ew04_01), or Battleships: i.e. Missouri (Li01_03), Myoko (Ku02_02), Westfalen (Rh02_02) and Suffolk (Br01_03). Search for the string of your chosen base and add a statement on the end of its section:

marketgood = ld_package, 35, -1, 1, 1, 0, 1, 1

where xx_package represents name of package you set in goods.ini and first number level, on which you can buy it. If you want to place it to some logical places, like shipyards (Oder is Rh01_02, Norfolk Li01_07, Southampton Br01_02, Yokohama Ku01_03), then you have to copy some existing part. Also you have to edit decks in universe/systems, but that's buggy. For testing is this enough.

15. Save and close the file.

16. Start Freelancer and fly with your puny fighter to base, where you set your new juggernaught.

17. Buy it and ride it patiently. If it will be VERY slow for you, go to shiparch.ini and lower the "mass" statement.


That's all. I've already used this procedure for Rheinland Cruiser, R.Battleship, Kusari Destroyer, K.Gunboat, Liberty Dreadnought and L.Cruiser. I think even Bretonians will work. I hope it will help you...


Für Rheinland!




Edited by - Caid on 19-07-2003 12:25:49

Edited by - Caid on 22-07-2003 18:21:26

Post Fri Jul 18, 2003 1:52 pm

...and if you want to change weapons properties, then refer to data/equipment/weapon_equip.ini, where are all defined.


Für Rheinland!

Post Sun Nov 04, 2007 2:13 am

hello i have a problem when i buy liberty dreadnought on planet and i wanna to launch it says : Can't launch without engine

But i have writed this to goods

[Good
nickname = ldr_package
category = ship
hull = ldr_hull
addon = infinite_power, internal, 1
addon = ge_s_scanner_02, internal, 1
addon = sfx_rumble_battleship, internal, 1
addon = ge_lbd_engine_01internal, 1
addon = shield01_mark02_hf, HpShield01, 1
addon = li_battleship_turret01, HpTurret_L1_01, 1
addon = li_battleship_turret01, HpTurret_L2_01, 1
addon = li_battleship_turret03, HpTurret_L3_01, 1
addon = li_battleship_turret04, HpTurret_L4_01, 1
addon = li_battleship_turret04, HpTurret_L4_02, 1
addon = li_battleship_flak_turret01, HpTurret_L4_03, 1
addon = li_battleship_flak_turret01, HpTurret_L4_04, 1
addon = li_battleship_turret04, HpTurret_L4_05, 1
addon = li_battleship_turret04, HpTurret_L4_06, 1
addon = li_battleship_turret04, HpTurret_L4_07, 1
addon = SlowLargeBlue, HpRunningLight15, 1
addon = SlowLargeBlue, HpRunningLight17, 1
addon = SlowLargeBlue, HpRunningLight33, 1
addon = SlowLargeBlue, HpRunningLight09, 1
addon = SlowLargeBlue, HpRunningLight11, 1
addon = SlowLargeBlue, HpRunningLight34, 1


is anythig wrong pls help

Edited by - stanlley on 11/4/2007 2:15:13 AM

Post Sun Nov 04, 2007 7:43 am

problem solved !!

for anyone you must create a new engine just copy the orig and change nickname in engine_equip.ini

Post Sun Nov 04, 2007 9:00 am

Nope, your problem was nothing more than a simple typing mistake, there's no such engine called "ge_lbd_engine_01internal", all you needed to do was add a comma(,) so it read "ge_lbd_engine_01, internal".

You'll find that the majority of errors are nothing more than typo's, and finding the mistake is all that's required to fix it.

**shuffles off with a new headache**

Post Wed Nov 07, 2007 7:25 am

hi i have another problem when i install shield intro my cruiser and take off the planet
shield dissapears why ?

[Ship
ids_name = 237031
ids_info = 66565
nickname = li_cruiserX
shipclass = 0
LODranges = 0, 200, 400, 600, 1000, 6000
msg_id_prefix = gcs_refer_shiparch_Libc
mission_property = can_use_berths
type = FREIGHTER
DA_archetype = ships\liberty\li_cruiser\li_cruiserX.cmp
material_library = ships\liberty\li_capships.mat
material_library = fx\envmapbasic.mat
envmap_material = envmapbasic
linear_drag = 1.000000
mass = 5000.000000
hold_size = 1000000
hit_pts = 43300
explosion_arch = explosion_instant
fuse = li_cruiser_body_fuse, 0.000000, 1
fuse = li_cruiser_burning_fuse01, 0.000000, 10825
fuse = li_cruiser_burning_fuse02, 0.000000, 5413
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 = 300000.000000
HP_bay_surface = HpBayDoor01
HP_bay_external = HpBayDoor02
HP_tractor_source = HpTractor_Source
num_exhaust_nozzles = 4
shield_link = l_elite_shield01, HpMount, HpShield01
hp_type = hp_gun_special_1, HpWeapon01
hp_type = hp_turret_special_10, HpTurret_L5_01
hp_type = hp_turret_special_10, HpTurret_L5_02
hp_type = hp_turret_special_10, HpTurret_L5_03
hp_type = hp_turret_special_10, HpTurret_L5_04
hp_type = hp_turret_special_10, HpTurret_L5_05
hp_type = hp_turret_special_10, HpTurret_L5_06
hp_type = hp_turret_special_10, HpTurret_L5_07
hp_type = hp_elite_shield_special_10, HpShield01
hp_type = hp_elite_shield_special_9, HpShield01
hp_type = hp_elite_shield_special_8, HpShield01
camera_offset = 30, 250
camera_angular_acceleration = 0.050000
camera_horizontal_turn_angle = 23
camera_vertical_turn_up_angle = 5
camera_vertical_turn_down_angle = 30
cockpit = cockpits\liberty\li_elite.ini

any ideas ??

Post Sat Nov 10, 2007 1:53 am

Hmmm, a few things.

[Ship
ids_name = 237031
ids_info = 66565
nickname = li_cruiserX
shipclass = 0 <---------------------------------------Should be set to 2 if its a freighter
LODranges = 0, 200, 400, 600, 1000, 6000
msg_id_prefix = gcs_refer_shiparch_Libc
mission_property = can_use_berths
type = FREIGHTER
DA_archetype = ships\liberty\li_cruiser\li_cruiserX.cmp
material_library = ships\liberty\li_capships.mat
material_library = fx\envmapbasic.mat
envmap_material = envmapbasic
linear_drag = 1.000000
mass = 5000.000000
hold_size = 1000000
hit_pts = 43300
explosion_arch = explosion_instant
fuse = li_cruiser_body_fuse, 0.000000, 1
fuse = li_cruiser_burning_fuse01, 0.000000, 10825
fuse = li_cruiser_burning_fuse02, 0.000000, 5413
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 = 300000.000000
HP_bay_surface = HpBayDoor01
HP_bay_external = HpBayDoor02
HP_tractor_source = HpTractor_Source
num_exhaust_nozzles = 4
shield_link = l_elite_shield01, HpMount, HpShield01 <------------- This is a hf shield, change it to a freighter type
hp_type = hp_gun_special_1, HpWeapon01
hp_type = hp_turret_special_10, HpTurret_L5_01
hp_type = hp_turret_special_10, HpTurret_L5_02
hp_type = hp_turret_special_10, HpTurret_L5_03
hp_type = hp_turret_special_10, HpTurret_L5_04
hp_type = hp_turret_special_10, HpTurret_L5_05
hp_type = hp_turret_special_10, HpTurret_L5_06
hp_type = hp_turret_special_10, HpTurret_L5_07
hp_type = hp_elite_shield_special_10, HpShield01
hp_type = hp_elite_shield_special_9, HpShield01
hp_type = hp_elite_shield_special_8, HpShield01
camera_offset = 30, 250
camera_angular_acceleration = 0.050000
camera_horizontal_turn_angle = 23
camera_vertical_turn_up_angle = 5
camera_vertical_turn_down_angle = 30
cockpit = cockpits\liberty\li_elite.ini

So to recap. You have you're ship classed as a freighter but defined as a light fighter, with a shield link for a heavy fighter. As you can see a few issues. Look at the shiparch entry for the Rhino and configure you're ship correctly as a freighter, then it should work fine

Member of the HAVEN ADMINS community
http://talonstrike.co.uk/HavenAdmin/index.php

Gizmo Studios - Home to the Galactica mod series
http://gizmostudios.proboards38.com/index.cgi

Post Sat Nov 10, 2007 7:43 am

The "shipclass =" might cause some confusion if you gave your ship to NPCs to use, the "shield_link =" doesn't matter as it's nothing more than a reference to 3DB & a SUR bubble. The "hp_type = hp_elite_shield_special_10, HpShield01" also doesn't matter just as long as it's an HF shield you've given your ship. Check the CMP and make sure there's a hardpoint called "HpShield01" in it, after all if you don't have a hardpoint you can't attach anything to it.

**shuffles off with a new headache**

Return to Freelancer Editing Tutorial Forum