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

All levels in a zone

The general place to discuss MOD''ing Freelancer!

Post Sat Sep 02, 2006 10:58 am

All levels in a zone

I've decided to give npc of each level possibility to appear in a zone... can't explain,
that's what I've done(one of the bering(IW01) zones):

Before:

[zone
nickname = Zone_Iw01_Tradelane_1
pos = 12728, 0, 18781
rotate = 0, -25, 0
shape = BOX
size = 600, 1100, 38020
property_flags = 131072
comment = . Tradelane to hamburg gate
lane_id = 1
tradelane_down = 10
sort = 5
toughness = 11
density = 6
repop_time = 15
max_battle_size = 4
pop_type = major_tradelane
relief_time = 15
faction_weight = co_alg_grp, 4
faction_weight = co_ni_grp, 5
faction_weight = co_os_grp, 2
faction_weight = co_rs_grp, 6
faction_weight = co_ss_grp, 7
faction_weight = gd_z_grp, 3
encounter = tradelane_trade_transport, 5, 0.03
faction = co_alg_grp, 0.180000
faction = co_ni_grp, 0.230000
faction = co_rs_grp, 0.270000
faction = co_ss_grp, 0.320000
encounter = area_trade_freighter_pirate, 5, 0.14
faction = gd_z_grp, 1.000000

After:

[zone
nickname = Zone_Iw01_Tradelane_1
pos = 12728, 0, 18781
rotate = 0, -25, 0
shape = BOX
size = 600, 1100, 38020
property_flags = 131072
comment = . Tradelane to hamburg gate
lane_id = 1
tradelane_down = 10
sort = 5
toughness = 11
density = 6
repop_time = 15
max_battle_size = 4
pop_type = major_tradelane
relief_time = 15
faction_weight = co_alg_grp, 4
faction_weight = co_ni_grp, 5
faction_weight = co_os_grp, 2
faction_weight = co_rs_grp, 6
faction_weight = co_ss_grp, 7
faction_weight = gd_z_grp, 3
encounter = tradelane_trade_transport, 1, 0.0116 <-----0.03/19
faction = co_alg_grp, 0.180000
faction = co_ni_grp, 0.230000
faction = co_rs_grp, 0.270000
faction = co_ss_grp, 0.320000
encounter = tradelane_trade_transport, 2, 0.0116
faction = co_alg_grp, 0.180000
faction = co_ni_grp, 0.230000
faction = co_rs_grp, 0.270000
faction = co_ss_grp, 0.320000
encounter = tradelane_trade_transport, 3, 0.0116
faction = co_alg_grp, 0.180000
faction = co_ni_grp, 0.230000
faction = co_rs_grp, 0.270000
faction = co_ss_grp, 0.320000
encounter = tradelane_trade_transport, 4, 0.0116
faction = co_alg_grp, 0.180000
faction = co_ni_grp, 0.230000
faction = co_rs_grp, 0.270000
faction = co_ss_grp, 0.320000
encounter = tradelane_trade_transport, 5, 0.0116
faction = co_alg_grp, 0.180000
faction = co_ni_grp, 0.230000
faction = co_rs_grp, 0.270000
faction = co_ss_grp, 0.320000
encounter = tradelane_trade_transport, 6, 0.0116
faction = co_alg_grp, 0.180000
faction = co_ni_grp, 0.230000
faction = co_rs_grp, 0.270000
faction = co_ss_grp, 0.320000
encounter = tradelane_trade_transport, 7, 0.0116
faction = co_alg_grp, 0.180000
faction = co_ni_grp, 0.230000
faction = co_rs_grp, 0.270000
faction = co_ss_grp, 0.320000
encounter = tradelane_trade_transport, 8, 0.0116
faction = co_alg_grp, 0.180000
faction = co_ni_grp, 0.230000
faction = co_rs_grp, 0.270000
faction = co_ss_grp, 0.320000
encounter = tradelane_trade_transport, 9, 0.0116
faction = co_alg_grp, 0.180000
faction = co_ni_grp, 0.230000
faction = co_rs_grp, 0.270000
faction = co_ss_grp, 0.320000
encounter = tradelane_trade_transport, 10, 0.0116
faction = co_alg_grp, 0.180000
faction = co_ni_grp, 0.230000
faction = co_rs_grp, 0.270000
faction = co_ss_grp, 0.320000
encounter = tradelane_trade_transport, 11, 0.0116
faction = co_alg_grp, 0.180000
faction = co_ni_grp, 0.230000
faction = co_rs_grp, 0.270000
faction = co_ss_grp, 0.320000
encounter = tradelane_trade_transport, 12, 0.0116
faction = co_alg_grp, 0.180000
faction = co_ni_grp, 0.230000
faction = co_rs_grp, 0.270000
faction = co_ss_grp, 0.320000
encounter = tradelane_trade_transport, 13, 0.0116
faction = co_alg_grp, 0.180000
faction = co_ni_grp, 0.230000
faction = co_rs_grp, 0.270000
faction = co_ss_grp, 0.320000
encounter = tradelane_trade_transport, 14, 0.0116
faction = co_alg_grp, 0.180000
faction = co_ni_grp, 0.230000
faction = co_rs_grp, 0.270000
faction = co_ss_grp, 0.320000
encounter = tradelane_trade_transport, 15, 0.0116
faction = co_alg_grp, 0.180000
faction = co_ni_grp, 0.230000
faction = co_rs_grp, 0.270000
faction = co_ss_grp, 0.320000
encounter = tradelane_trade_transport, 16, 0.0116
faction = co_alg_grp, 0.180000
faction = co_ni_grp, 0.230000
faction = co_rs_grp, 0.270000
faction = co_ss_grp, 0.320000
encounter = tradelane_trade_transport, 17, 0.0116
faction = co_alg_grp, 0.180000
faction = co_ni_grp, 0.230000
faction = co_rs_grp, 0.270000
faction = co_ss_grp, 0.320000
encounter = tradelane_trade_transport, 18, 0.0116
faction = co_alg_grp, 0.180000
faction = co_ni_grp, 0.230000
faction = co_rs_grp, 0.270000
faction = co_ss_grp, 0.320000
encounter = tradelane_trade_transport, 19, 0.0116
faction = co_alg_grp, 0.180000
faction = co_ni_grp, 0.230000
faction = co_rs_grp, 0.270000
faction = co_ss_grp, 0.320000
encounter = area_trade_freighter_pirate, 1, 0.0074 <-----0.14/19
faction = gd_z_grp, 1.000000
encounter = area_trade_freighter_pirate, 2, 0.0074
faction = gd_z_grp, 1.000000
encounter = area_trade_freighter_pirate, 3, 0.0074
faction = gd_z_grp, 1.000000
encounter = area_trade_freighter_pirate, 4, 0.0074
faction = gd_z_grp, 1.000000
encounter = area_trade_freighter_pirate, 5, 0.0074
faction = gd_z_grp, 1.000000
encounter = area_trade_freighter_pirate, 6, 0.0074
faction = gd_z_grp, 1.000000
encounter = area_trade_freighter_pirate, 7, 0.0074
faction = gd_z_grp, 1.000000
encounter = area_trade_freighter_pirate, 8, 0.0074
faction = gd_z_grp, 1.000000
encounter = area_trade_freighter_pirate, 9, 0.0074
faction = gd_z_grp, 1.000000
encounter = area_trade_freighter_pirate, 10, 0.0074
faction = gd_z_grp, 1.000000
encounter = area_trade_freighter_pirate, 11, 0.0074
faction = gd_z_grp, 1.000000
encounter = area_trade_freighter_pirate, 12, 0.0074
faction = gd_z_grp, 1.000000
encounter = area_trade_freighter_pirate, 13, 0.0074
faction = gd_z_grp, 1.000000
encounter = area_trade_freighter_pirate, 14, 0.0074
faction = gd_z_grp, 1.000000
encounter = area_trade_freighter_pirate, 15, 0.0074
faction = gd_z_grp, 1.000000
encounter = area_trade_freighter_pirate, 16, 0.0074
faction = gd_z_grp, 1.000000
encounter = area_trade_freighter_pirate, 17, 0.0074
faction = gd_z_grp, 1.000000
encounter = area_trade_freighter_pirate, 18, 0.0074
faction = gd_z_grp, 1.000000
encounter = area_trade_freighter_pirate, 19, 0.0074
faction = gd_z_grp, 1.000000

It works ok(looks really not bad, level 1-19 ships in house systems,more realistic space)

but rewriting all the zones is hard-hard work,is there any other easier way to get the same results without adding endless lines of encounters?
tried something like that:
encounter = area_trade_freighter_pirate, 1-19, 0.0074
faction = gd_z_grp, 1.000000

encounter = area_trade_freighter_pirate, 1,2,3,4,5,6,...19, 0.0074
faction = gd_z_grp, 1.000000

nothing works,get level of only first number after encounter name(level 1 in above variants)
ANY help is apriciated,thanks.

P/S

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


Edited by - Vital on 9/2/2006 11:59:41 AM

Post Sat Sep 02, 2006 11:33 am

A zone has one difficulty, not 2+. Sorry.

Post Sat Sep 02, 2006 1:38 pm

You can do it that way and have different level spawns within a zone ok. But, a much easier way is to go through npcships and change the level at which the different ships spawn.
Meaning:
npc_class = lawful, class_armored, d1, d2, d3, d4, d5, d6
to
npc_class = lawful, class_armored, d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11, d12, d13, d14, d15, d16, d17, d18, d19
This way you can leave the zones as they are.

Post Sat Sep 02, 2006 2:27 pm

Thanks for replies.
Mace_166,it can work with armored tr-ports,but:

[NPCShipArch}
nickname = gd_z_ge_fighter2_d1
loadout = gd_z_ge_fighter2_loadout01
level = d1
ship_archetype = ge_fighter2
pilot = pilot_pirate_ace
state_graph = FIGHTER
npc_class = lawful, class_fighter, d1

adding d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11, d12...d19will make them have the same loudout...?...or did I get you rong?
By the way,Mace_166,THANKS for helping me to make first steps in modding FL(I remember)

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

Post Sat Sep 02, 2006 3:25 pm

Thats ok, i've had loads of help over the years, so its no trouble at all.
If you added the d1-d19's for each npcships entry it would mean that all of the possible ships for each faction will appear in any zone. But, they will still be hawks with hawk loadouts and eagles with eagle loadouts.
It'll work pretty well. Might be a bit unbalanced at the lower difficulty levels, you don't really want max level sabres killing new players in new york.
But, its up to you.

Post Sat Sep 02, 2006 4:02 pm

can't believe,but I'll try to....
may I account for further help(of course I'll try to do my best to avoid it)?...
buy the way,will there chance of spawn be equal?I mean chance of level 1 will be the same as level 19 or 12 or 5 ?


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

Edited by - Vital on 9/2/2006 5:05:30 PM

Post Sat Sep 02, 2006 5:48 pm

Yeah, i don't mind helping if i can. The level that spawns will be random and so its just pot luck. Maybe it would work better to keep the existing entries the same as the original ones and to add extra overlapping loadouts. It would give you more control.
Meaning you could have:
Starflier D1-3
Startracker D4-7
Hawk D8-11
Falcon D12-15
Eagle D16-19
Duplicate Hawk D1-7
Duplicate Hawk2 D12-15
Duplicate Falcon1 D8-11
Duplicate Falcon2 D16-19
Duplicate Eagle D12-15

or you could just modify the entry for hawk to be D1-15, Falcon to be D8-19, Eagle D12-19
That way you keep people starting off a bit happier.


Edited by - Mace_166 on 9/2/2006 6:53:55 PM

Post Sun Sep 03, 2006 1:01 pm

Oh my God!!!!!Unbelievable!!!!!!!!! It works!!!!!!!!!!!!!!!!!!
TLR is a place where genius minds are !!!!!!
(and sometimes fools like me...)Sorry for not believing you first....

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

Edited by - Vital on 9/3/2006 2:03:01 PM

Return to Freelancer General Editing Forum