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** - Capital Ship Encounters

Here you find the different tutorials on editing and MODing Freelancer

Post Sat Apr 19, 2003 10:14 pm

just had my first go at it, i tried to put the liberty ship examples at pitsburgh, alas it didnt work because as i approached pitsburgh via trade lane the game crashed, im not entirly sure what im doing as im a large n00b at this sort of thing, just thought id try my hand at something new. Any help would be appreciated, this is what was put;


[zone
nickname = Zone_Li01_005_Planet_Li01_02
pos = 54080, 0, -74878
rotate = 0, 50, 0
shape = ELLIPSOID
size = 6000, 6000, 10000
property_flags = 131072
comment = Pittsburg
sort = 17
toughness = 1
density = 9
repop_time = 10
max_battle_size = 30
pop_type = co_me_grp, single_base_law
relief_time = 20
faction_weight = li_p_grp, 9
faction_weight = co_me_grp, 5
faction_weight = co_os_grp, 4
faction_weight = co_rs_grp, 10
faction_weight = co_ss_grp, 10
faction_weight = fc_j_grp, 5
faction_weight = fc_lr_grp, 3
faction_weight = gd_bh_grp, 3
density_restriction = 40
encounter = area_defend, 1, 0.090000
faction = li_p_grp, 0.680000
faction = co_me_grp, 0.320000
encounter = area_bh_defend, 1, 0.050000
faction = gd_bh_grp, 1.000000
encounter = area_assault, 1, 0.020000
faction = fc_lr_grp, 1.000000
encounter = area_trade_freighter, 1, 0.060000
faction = co_me_grp, 0.330000
faction = co_ss_grp, 0.670000
encounter = area_trade_transport, 1, 0.050000
faction = co_me_grp, 0.200000
faction = co_rs_grp, 0.400000
faction = co_ss_grp, 0.400000
encounter = area_trade_armored, 1, 0.040000
faction = co_os_grp, 1.000000
encounter = area_trade_trader, 1, 0.090000
faction = fc_j_grp, 1.000000
encounter = area_trade_smuggler, 1, 0.040000
faction = fc_j_grp, 1.000000
encounter = area_lifter, 1, 0.040000
faction = co_me_grp, 1.000000
encounter = area_repair, 1, 0.040000
faction = co_me_grp, 1.000000
Music = music_li_space

encounter = capitalships_Liberty, 19, 1.000000
faction = li_n_grp, 1.000000
encounter = capitalships_Escorts, 19, 1.000000
faction = li_n_grp, 1.000000

[EncounterParameters
nickname = capitalships_Liberty
filename = missions\encounters\capitalships_Liberty.ini
[EncounterParameters
nickname = capitalships_Escorts
filename = missions\encounters\capitalships_Escorts.ini

Post Sun Apr 20, 2003 1:50 am

Can you please please zip up the working edited files and e-mail me @ [email protected] - My server just doesn't seem to like it and crashes at startup, and all the files to be edited aren't like whats supposed to be added to them for the mod, it's random stuff, and in "9) Browse to \DATA\UNIVERSE\SYSTEMS\LI01, open li01.ini" - "nickname = Zone_Li01_001_Planet_Li01_01" does not exist Am I supposed to use notepad/wordpad to open these file btw?

Edited by - FiRe on 20-04-2003 02:51:42

Post Sun Apr 20, 2003 4:19 am

Nephilim, I've done that actually, I've turned the lib rep for Rheinland to -0.65 and vice versa, yet the ships just sails straight pass each other without so so much as looking in each other's direction, so I ended up blasting all of them out of the sky






ps, is it just me or are those ships utterly weak? I just sat there blasting away taking all their hits without so much as a scratch. Kusari is abit tough though, they can kick my arse pretty badly, I think it's their weapon configuration countering my shields. cheers

Dude, where's my Super Star Destroyer?

Post Sun Apr 20, 2003 9:17 am

Nephilim,

How's it going? I have the mod done, well almoast done. It adds the comments to all of the files which I've tripple checked now. The only issue I'm having is that my test encounter (using the "Zone" code you posted) dosn't seem to bring any ships.

I've gone over the code in li01.ini over and over again and still no ships. The game has no crashes, I can enter the Manhatten sector as well as dock and launch from any station/planet without crash. The only issue is, no ships. I even tried to make a new Zone in the li01.ini file that was Manhatten +100 (x) and Manhatten -100 (Y) but it still didn't show. These are the specifications I'm using for the Manhatten edit and the new zone I created;

~~Manhatten~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

[zone
nickname = Zone_Li01_001_Planet_Li01_01
pos = -33020, 0, -27925
rotate = 0, 104, 0
shape = SPHERE
size = 10000
comment = Manhattan
sort = 1
toughness = 1
density = 48
repop_time = 50
max_battle_size = 44
pop_type = li_p_grp, base_cluster_law
relief_time = 50
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 = 30, 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 = capitalships_Liberty, 19, 0.500000
faction = li_n_grp, 1.000000
encounter = capitalships_Liberty, 19, 0.500000
faction = li_n_grp, 1.000000
encounter = capitalships_Rheinland, 19, 0.500000
faction = rh_n_grp, 1.000000
encounter = capitalships_Rheinland, 19, 0.500000
faction = rh_n_grp, 1.000000
encounter = capitalships_Escorts, 19, 0.900000
faction = li_n_grp, 1.000000
encounter = capitalships_Escorts, 19, 0.900000
faction = rh_n_grp, 1.000000

[EncounterParameters
nickname = capitalships_Liberty
filename = missions\encounters\capitalships_Liberty.ini

[EncounterParameters
nickname = capitalships_Rheinland
filename = missions\encounters\capitalships_Rheinland.ini

[EncounterParameters
nickname = capitalships_Escorts
filename = missions\encounters\capitalships_Escorts.ini



~~New Zone~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

[zone
nickname = Zone_Li01_001_Planet_Li01_01_Battleships
pos = -33120, 0, -27825
shape = SPHERE
size = 10000
sort = 1
toughness = 1
density = 48
repop_time = 50
max_battle_size = 44
relief_time = 50
encounter = capitalships_Liberty, 19, 0.500000
faction = li_n_grp, 1.000000
encounter = capitalships_Liberty, 19, 0.500000
faction = li_n_grp, 1.000000
encounter = capitalships_Rheinland, 19, 0.500000
faction = rh_n_grp, 1.000000
encounter = capitalships_Rheinland, 19, 0.500000
faction = rh_n_grp, 1.000000
encounter = capitalships_Escorts, 19, 0.900000
faction = li_n_grp, 1.000000
encounter = capitalships_Escorts, 19, 0.900000
faction = rh_n_grp, 1.000000

[EncounterParameters
nickname = capitalships_Liberty
filename = missions\encounters\capitalships_Liberty.ini

[EncounterParameters
nickname = capitalships_Rheinland
filename = missions\encounters\capitalships_Rheinland.ini

[EncounterParameters
nickname = capitalships_Escorts
filename = missions\encounters\capitalships_Escorts.ini

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Note, I do have all of the brackets closed but as you know they don't show closed here. As well, I've tried the same code in other systems and no ships appear, no crashes either. Any ideas? I really wanna get this thing out to the public.

Also, are these battleships supposed to appear immediately? I usually appear, do a flight around Manhatten (to check for ships hiding on the other side) and then shut down to check over the code again.

As well, I've added a specialty ship (designed by myself) to the game. I don't think that should have any effect on this mod as none of the files edited to add a ship have anything to do with the battleship mod. Did you have troubles with this mod when using non-default ships?

Also, I noticed at the top of the li01.ini file there is a section labeled "Archetype" that appears to have a pile of ship information in it. Do you need to put anything in there for the battleships? Just wondering.

~Jay~

I've just had the most disturbing encounter with a mad woman on the Holodeck. - Holographic Doc

Edited by - Jackel on 20-04-2003 10:29:03

Post Sun Apr 20, 2003 11:36 am

fixed it, seems biniqdu decided to play the fool and not add the formations, works like a charm now, thanks for the killer tutorial m8.

Post Sun Apr 20, 2003 11:53 am

Snake: re-do from scratch, I can't ascertain what the problem is (code's fine, parameters check out, so...)

Leon: normally I don't kick a man when he's down, but had you READ the FIRST PAGE of this thread, you would have noticed that I made it abundantly clear that you should:

ENSURE THAT "HIDE FILE EXTENSIONS FOR KNOWN FILETYPES" IS NOT MARKED!

Steam: goes for you too.

Fire: "BASIC FAMILIARITY WITH BINI IS ASSUMED!" Use the search function in General Editing first, THEN ask questions. I'm not going to do your dirty work (besides, where would be the fun in that?).

Oracle: I'm baffled; on my testing rig, Liberty and Rheinland could drink each other's blood. Did you set legality back to default?

Battleships aren't weak, per se. They're just out of their league. During the SP campaign, the strongest ship you could fly was an Anubis with level 6 equipment, and capships were tailored to counter an average Order fighter loadout. Now, without that restriction in place, the scales are heavily tipped in your favor. Would've been better if the campaign were stretched out more, so that by the time you'd get to missions 11-13, you could at least be in possession of a Hammerhead. That way, militaries would still be capable of puting up a fight in FL's late stages.

Edited by - Nephilim on 20-04-2003 12:55:14

Post Sun Apr 20, 2003 12:08 pm

Jackel: aside from the occasional glitch, "everything is proceeding as I have forseen".

Anyway, your zone's missing a pop_type (ie. pop_type = background
). My bad, forgot to include it in my example.


As well, I've added a specialty ship (designed by myself) to the game. I don't think that should have any effect on this mod as none of the files edited to add a ship have anything to do with the battleship mod. Did you have troubles with this mod when using non-default ships?


None at all.


Also, I noticed at the top of the li01.ini file there is a section labeled "Archetype" that appears to have a pile of ship information in it. Do you need to put anything in there for the battleships? Just wondering.


No. Those archetypes tie into the SP missions and aren't needed for anything else.

Post Sun Apr 20, 2003 12:39 pm

hullo again... i redid the code from scratch... keeping the code in the li01.ini (cos that was supposed to be right... right ) well anyway now the game crashes

blaaarggg

Post Sun Apr 20, 2003 12:46 pm

Nephilim couple of questions, 1./ Does that number 1.0000 etc after that determine the probability that they show up, or the probability they return after being destroyed, because as soon as they leave at 1.0000 they come straight back, wondering if lowering this will make it less likely of a return.
2./ i altered the inter faction relations in that ini file yet nothing happened, i set it to -0.95 for lib navy and rhineland navy to hate each other on both of the files yet they dont engage each other, any clues as to why?

Post Sun Apr 20, 2003 1:09 pm

Tried adding that "pop_type = background" comment and I'm still getting no ships showing up. Not even the escorts. Starting to wonder if there might be coding elsewhere that wasn't in your tutorial and that I've missed.

~Jay~

I've just had the most disturbing encounter with a mad woman on the Holodeck. - Holographic Doc

Post Sun Apr 20, 2003 1:15 pm

Dammit. Snake , I want you to post the innards of each and every file EXACTLY as you've edited them.

Steam:


Does that number 1.0000 etc after that determine the probability that they show up, or the probability they return after being destroyed


The former. FL "scans" each zone several times per minute for traffic density. If the amount of ships has dropped below a certain threshold, the zone's immediately repopulated. To offset this, increase repop_time and decrease encounter probability.


i altered the inter faction relations in that ini file yet nothing happened, i set it to -0.95 for lib navy and rhineland navy to hate each other on both of the files yet they dont engage each other, any clues as to why?


No. I'm pulling out all my hairs here...

Post Sun Apr 20, 2003 1:28 pm

ok i found the problem... he he now i have a lovely assortment of battleships wandering about manhattan space

right another thing... i cant seem to get the kusari and lib to attack each other... i set the kusari ships to unlawful with no luck

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

[NPCShipArch
nickname = Kusari_Destroyer
loadout = Kusari_Destroyer_Loadout
level = d19
ship_archetype = ku_destroyer
pilot = destroyer_default
state_graph = CRUISER
npc_class = unlawful, class_destroyer, d19

[NPCShipArch
nickname = Kusari_Battleship
loadout = Kusari_Battleship_Loadout
level = d19
ship_archetype = ku_battleship
pilot = battleship_default
state_graph = CRUISER
npc_class = unlawful, class_battleship, d19

should that do it? i also set the faction to unlawful but no luck

blaaarggg

Post Sun Apr 20, 2003 1:32 pm

Jackel: the center of your battleship arena is too close to Manhattan's zone, try spacing them at least ~2000 meters apart.

Snake: read previous page.

Post Sun Apr 20, 2003 2:20 pm

Fixed that problem now, however, i have been messing around with the wander setting, but when ever i change the behaviour setting to patrol_path it crashes, is there a sister setting that needs to be the same?

Edited by - Steam on 20-04-2003 18:30:25

Post Sun Apr 20, 2003 3:10 pm

Well, I took the location of Manhatten and devided it by two. Which should give me the location half way between manhatten and the sun, yes? At any rate, I have nothing but empty space. That's the only thing I've changed, besides that small pop addition you had me do. Still can't figure it out, sure you didn't do anything else?

~Jay~

I've just had the most disturbing encounter with a mad woman on the Holodeck. - Holographic Doc

Return to Freelancer Editing Tutorial Forum