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 Thu Apr 17, 2003 10:23 am

ok say i put this code in for manhattan

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

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

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

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

when i put it in only the liberty ships will appear

i set the density to 20

also when i put this code in anywhere else... nothing ever happens one thing that was confusing me is that when you search for the string

Zone_Li01_001_Planet_Li01_01

you get two results, the first seemed to be somethin to do with the atmosphere (is had atmos_burn after it or summin) and the second looked like the right one.. i put the code in in both places to be sure tho ... could that be affectin it ?

blaaarggg

Post Thu Apr 17, 2003 10:40 am

Hmm. You can TRY "persuading" ships to spawn in Zone_Li01_001_Planet_Li01_01_atmosphere_burn, but I doubt you'd have much luck. Never, EVER create an encounter in a zone that won't support it (as zones are not merely used for traffic, but also for asteroid fields, sun coronas, etc).

Also, you're attempting to call a fleet of 15 combatants (5 Liberty, 6 Kusari, 4 escorts) into a zone that normally limits to a density of 12, so 20 isn't going to cut it.

Post Thu Apr 17, 2003 10:51 am

it's no use! the game crashs when I try to load

ok under
[zone
nickname = zone_rh01_pop_berlin

I put

encounter = capitalships_Rheinland, 19, 1.000000
faction = rh_n_grp, 1.000000
encounter = capitalships_Escorts, 19, 1.000000
faction = rh_n_grp, 1.000000


encounter = capitalships_Nomads, 19, 0.5000000
faction = fc_n_grp, 1.000000
encounter = capitalships_Escorts, 19, 1.000000
faction = fc_n_grp, 1.000000


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


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


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


Dude, where's my Super Star Destroyer?

Post Thu Apr 17, 2003 11:12 am

^^ Copied code and reproduced crash, will look into this ASAP. Temporary workaround: duplicate that zone (nickname = zone_rh01_pop_berlin), give it a different nickname and coordinates (eg. x+1, y+1, z+1), remove all default traffic, then add either Nomad or Rheinland capships to it.

Post Thu Apr 17, 2003 11:32 am

what density should i be putting... would 70 do it? my kusari fleet still didnt appear but i deleted the amosphere burn thing and the ships still come so thats good

blaaarggg

Post Thu Apr 17, 2003 12:01 pm

I'd recommend a minimum of 27, but YMMV.

I've discovered that FL reads the contents of an .ini sequentially, which might explain why your Kusari patrol doesn't enter the scene... because capitalships_Liberty is above capitalships_Kusari and has a 100% chance of spawning on the spot, FL will "fill up" the zone with as many Liberty formations as it can fit within the density tolerance, totally ignoring the Kusari encounter. Solution: lower said chance for both Liberty and Kusari fleet to 0.750000 or thereabouts.

Edited by - Nephilim on 17-04-2003 13:02:16

Post Thu Apr 17, 2003 12:13 pm

man I'm really frustrated here!

under
[zone
nickname = Zone_Li01_001_Planet_Li01_01

below existing data I put:

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

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


encounter = capitalships_Nomads, 19, 0.75000000
faction = fc_n_grp, 1.000000
encounter = capitalships_Escorts, 19, 0.75000000
faction = fc_n_grp, 1.000000

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

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

and set the density to 32

and the game just crashs when I launch into Manhattan space

Dude, where's my Super Star Destroyer?

Post Thu Apr 17, 2003 12:25 pm

I know, I believe I said I'd look into it. This frustrates me a lot more than it does you, trust me. As a precautionary measure, DON'T mix Nomads with any of the four main houses in the same zone:

Bretonia + Kusari = ok
Bretonia + Liberty = ok
Bretonia + Rheinland = ok

Kusari + Liberty = ok
Kusari + Rheinland = ok

Rheinland + Kusari = ok
Rheinland + Liberty = ok

Nomads + any other house = big no-no, use the workaround I proposed

Post Thu Apr 17, 2003 12:38 pm

everything works well now.... i can let the fleets spawn allaround, but when i change "lawfull" to "unlawfull" the game crashes, when a fleet is about to appear...

AND: how can i force a fleet , to stay longer in the zone ??

Post Thu Apr 17, 2003 12:49 pm

something very strange is going on

when I first entered the New York system and Planet Manhattan everything's fine, there are Nomad ships there, I dock with Manhattan

then when I launch from Manhattan it crashs, so I got rid of Nomads and just use Liberty and Rheinland changing Rheinland to unlawful... still crashs

so bugger it, I got rid of Liberty, still crashes...

then got rid of Rheinland and just put Liberty like you showed in the example... still crash, maybe it only works if you arrive from the outside???

Dude, where's my Super Star Destroyer?

Post Thu Apr 17, 2003 12:55 pm

Hey Nephilim, I'm taking your entire procedure here and putting it into a Mod file. Now, don't get your hopes up. I don't know how to make any kind of fancy dancy mod program but I do know how to make an EXE file (dos based) that will modify the INI files for you, while making backups of the origionals. It won't look like much but it will take all the work out of adding/removing this specific mod and allow you to give it to your friends as it's only 5 files and under 1 Meg in size.

I'm almoast done it as I wright this, just have to add some encounter locations. Basically I'm trying to create a war between the Rheinland and Liberty factions. The Liberty factions will be backed up by the Kusari in Colorado. I'm going to turn New York, Colorado, Texas, and Hamburg into war zones.

I have to wright the actual system modifications, "Li01.ini" and such, and do some extensive testing on my Win98 and WinXP boxes but I hope to have it done by later today. I havn't slept yet, having been working on this since I woke up (around 3PM) yesterday and as I look at the clock I keep saying to myself "Go to Bed", but you know how it is when you get on a roll. Hopefully I don't make a major screwup in my sleepyness, but sofar everything is editing properly (in my Freelancer test folder which only contains the directory structure and the files to be modified). It should work for both Server and Client ends, as far as I know, and since it's so small it will be easy to distribute for those who want it but are too -lazy- to code...

You know who you are!

At any rate, speaking of code, I could use some locations to put the battleship encounters in. I want to have one very close to a tradelane so there is a very good chance that your travel will be "disrupted" by the fight. Only problem is I'm not sure how to have the tradelane constantly disrupted. Perhaps I could have a battle around Deshima Station as well, there's already a battleship there afterall.

This is your baby, I'm using your code, any suguestions on locations to make a cool war happen? I need code, as I'm having troubles thinking straight right now and couldn't find my way off Manhatten. *LOL*

~Jay~

Fortune favors the strong mind.

Post Thu Apr 17, 2003 1:24 pm

!!!HELP!!!

everything works well, but now i saw, that i forgot the closing brackets

so ive added them to all of my edited files, but now the game crashes, every time i try to log in!!!!!

what is wrong now HELP!!!!

Post Thu Apr 17, 2003 2:05 pm

Man... I'm seriously starting to wonder if I've bitten off far more than I can chew


everything works well now.... i can let the fleets spawn allaround, but when i change "lawfull" to "unlawfull" the game crashes, when a fleet is about to appear...

AND: how can i force a fleet , to stay longer in the zone ??


It's "unlawful" - one "l", check your spelling.

Not sure what you mean about forcing fleets to stay; they're there until they're destroyed or until you depart the zone, at which point FL unspawns every ship in that zone to save processing power.



when I first entered the New York system and Planet Manhattan everything's fine, there are Nomad ships there, I dock with Manhattan

then when I launch from Manhattan it crashs, so I got rid of Nomads and just use Liberty and Rheinland changing Rheinland to unlawful... still crashs

so bugger it, I got rid of Liberty, still crashes...

then got rid of Rheinland and just put Liberty like you showed in the example... still crash, maybe it only works if you arrive from the outside???


Paste the code for your zone, I'm pretty sure I can at least solve THIS problem... otherwise, you'll have to workaround too.

Jackel: go grab some sleep before you die of mental exhaustion I've got my eye on several hundred (conservative estimate) locations that would be perfect for a staging area, but editing them all by hand is going to take, well, FOREVER (very conservative estimate), and I wouldn't want to be an accessory to murder

Deshima Station, btw, is Ku02_03_Base in Shi***u (ku02.ini). Take a peek in this thread, it contains nicknames of every base & planet.

Thanks for the assist, I can certainly use all the help I can get!

Edited by - Nephilim on 18-04-2003 00:58:41

Post Thu Apr 17, 2003 2:13 pm

[zone
nickname = Zone_Li01_001_Planet_Li01_01
pos = -33020, 0, -27925
rotate = 0, 104, 0
shape = SPHERE
size = 7000
comment = Manhattan
sort = 1
toughness = 1
density = 32
repop_time = 10
max_battle_size = 8
pop_type = li_p_grp, base_cluster_law
relief_time = 10
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 = 10, 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, 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








all parameters are closed, and the density is set to 32

Dude, where's my Super Star Destroyer?

Post Thu Apr 17, 2003 2:26 pm

Oracle: increase max_battle_size to ~30, adjust the size of your zone to ~10000, and put a blank space between the last line in your zone and the first [encounterparameters

Just to prove it can be done and I'm not talking about a fluke:



accomplished by these parameters:

encounter = capitalships_Kusari, 19, 0.500000
faction = ku_n_grp, 1.000000
encounter = capitalships_Liberty, 19, 0.500000
faction = li_n_grp, 1.000000

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

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

Edited by - Nephilim on 17-04-2003 15:32:08

Return to Freelancer Editing Tutorial Forum