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** - Making custom NPC encounters (from scratch)

Here you find the different tutorials on editing and MODing Freelancer

Post Fri Feb 11, 2005 7:55 pm


Ok i am trying to make the police that patrol manhatten become eagles; it aint working this is what I ghave so far can you please help!!!??????


MAKE BACKUPS!

open npcships.ini and look for:

[NPCShipArch
nickname = li_p_li_fighter_d1-2
loadout = li_p_li_fighter_loadout01
level = d2
ship_archetype = li_fighter
pilot = pilot_police_med
state_graph = FIGHTER
npc_class = lawful, class_fighter, d1, d2

change that to

[NPCShipArch
nickname = li_p_li_fighter_d1-2
loadout = gd_im_ge_fighter6_loadout01
level = d2
ship_archetype = ge_fighter6
pilot = pilot_police_ace
state_graph = FIGHTER
npc_class = lawful, class_fighter, d1, d2

done

hav problems and questions? post


Email: [email protected]
MSN: [email protected]

Post Fri Feb 11, 2005 11:36 pm

Did you remember to add in the npc ship= line in factionprop.ini under the Police's ships?

Post Sat Feb 12, 2005 12:35 am

no, i directly changed one of the npcships.ini entries. so you dont have to.


Email: [email protected]
MSN: [email protected]

Post Sat Feb 12, 2005 3:41 am

FLC - looks good, did you add this to the faction_prop.ini file?
ge_fighter6_d8-17

[FactionProps
affiliation = li_p_grp
legality = lawful
nickname_plurality = singular
msg_id_prefix = gcs_refer_faction_li_p
jump_preference = jumpgate
npc_ship = li_p_li_fighter_d1-2
npc_ship = li_p_li_fighter_d3
npc_ship = li_p_li_fighter_d4-19
npc_ship = ge_fighter6_d8-17
All you have done if you haven't added this is simply create the loadout and ship for them. This is where you tell them what to use....that entry is saying 'look at this ship and decide to use if it fits the bill' kinda thing. The d8-17 here means nothing, it could be npc_ship = jackrabbit - as long as you have an npcship.ini entry called jackrabbit


Then you will have to go to Manhatten or where-ever you want them to appear, and change some lines:
[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 = 10
repop_time = 30
max_battle_size = 6
pop_type = li_p_grp, base_cluster_law
relief_time = 30
faction_weight = li_p_grp, 12
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
faction_weight = li_n_grp, 8
faction_weight = co_fw_grp, 5
density_restriction = 4, unlawfuls
encounter = area_defend, 1, 0.070000
faction = li_p_grp, 1.000000


Change the bold line above to something like this:
encounter = area_defend, 15, 0.070000
faction = li_p_grp, 1.000000


The reason is because this states the difficulty/toughness of the encounters in this zone - so the 15 represents the difficulty as shown in your 'level range' of npc_class = lawful, class_fighter, d8, d9, d10, d11, d12, d13, d14, d15, d16, d17
What you will get is the level = d10 (so they show up with a 10 over their heads), in the encounter. These guys could appear if the 15 in the example was any of those numbers in the npc_class = part, so from 8 to 17 would have these guys appearing.
Note that there is another one covering this level? The d4-19 of the police? this means that these should be 'interspersed' with the eagles, or it maybe a complete eagle spawn, or a complete patriot spawn instead. Variety is always good

Hope that helps you out somewhat, and good call by the guys above too


Edited by - Chips on 2/12/2005 3:43:18 AM

Post Sat Feb 12, 2005 5:43 pm

No but where is the Fraction Prop at?

Post Sun Feb 13, 2005 2:17 am


Okay - so in the missions folder. There are TONS of files here for encounters and more


It does say in the tutorial

Post Sun Feb 13, 2005 5:21 am

sry i forgot to post back i did find it (my b). And now I had them in the server but they were level 8
I went back to change it and now the server crashes and well I'm fixing it

I would like you to check it out chips

its:
Lancer server
(btw: if you stay you would definately become an admin)

Post Sun Feb 13, 2005 5:56 am

BTW it helped alot

Post Sun Mar 27, 2005 8:52 pm

ok when i scan the police it shows them in starfliers....whats wrong?

Post Fri Aug 05, 2005 10:26 am

I have one hopefully simple question.

If in the original game files, there are listings of ships (mostly capitol class if I remember correctly) that are assigned d25, d26, d27, d28 and so one. Is it possible to assign such a difficulty level to a fighter, or will the program simply crash whilst trying to gratify its own ego by making fighters fly and fight so well?

Nemo me impune lacessit.

Post Sun Aug 21, 2005 2:41 am

thanks allot,

hmm, my problem is that they dont show up in game, its probolly FLE being aretard but i dunno, i was lookin to use my new faction to show use uber eagles atm but thn my faction apparently dosent exist..

damnit

Return to Freelancer Editing Tutorial Forum