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

Battleship encounters

The general place to discuss MOD''ing Freelancer!

Post Thu Jan 20, 2005 7:10 pm

Battleship encounters

Hey guys, I've got a question here: I can't seem to get me encounter for Order battleships to work. I have a loadout made for an Order frigate (class cruiser) and an Order BS (class cruiser):

[NPCShipArch
nickname=or_cruiser_d22
loadout=or_frigate
level=d22
ship_archetype=manci_frigate
pilot=cruiser_default
state_graph=CRUISER
npc_class=lawful, CRUISER, d22

[NPCShipArch
nickname=or_dreadnought_d25
loadout=or_OsirisII_LO
level=d25
ship_archetype=or_osiris_sub
pilot=cruiser_default
state_graph=CRUISER
npc_class=lawful, battleship, d25

The loadouts are set up and ready (names match, all that good stuff). I edited The Order's entry in faction_prop like this:

[FactionProps
affiliation = fc_or_grp
legality = unlawful
nickname_plurality = singular
msg_id_prefix = gcs_refer_faction_fc_or
jump_preference = jumphole
npc_ship = or_elite_d15-16
npc_ship = or_elite_d16-17
npc_ship = or_elite_d17-18
npc_ship = or_elite_d19
npc_ship = or_NS_d15-16
npc_ship = or_NS_d17
npc_ship = or_NS_d18-19
npc_ship = or_NS_d19
npc_ship = or_NS2_d15-16
npc_ship = or_NS2_d16-17
npc_ship = or_NS2_d17-18
npc_ship = or_NS2_d18-19
npc_ship = or_NS2_d19
npc_ship = or_Wraith_d15-19
npc_ship = or_Sobek_d19
npc_ship = or_cruiser_d22
npc_ship = or_dreadnought_d25
voice = pilot_f_ill_m01
voice = pilot_f_ill_m02
mc_costume = mc_fc
space_costume = pi_pirate1_head, pi_orillion_body, comm_br_guard
space_costume = pi_pirate4_head, pi_orillion_body, comm_rh_alaric
space_costume = sh_male4_head, pi_orillion_body, comm_br_guard
space_costume = ge_male2_head, pi_orillion_body, comm_rh_alaric
space_costume = ge_male4_head, pi_orillion_body, comm_br_guard
space_costume = ge_male1_head, pi_orillion_body, comm_rh_alaric
firstname_male = 226608, 226741
lastname = 227008, 227307
rank_desig = 197128, 197129, 197130, 10, 15
formation_desig = 197808, 197820
large_ship_desig = 490002
large_ship_names = 490003, 490018
formation = fighters, fighter_basic
formation = cruisers, cruiser_wall
formation = battleships, battleship_wall

All of those fighters are good to go, so they're not a prob. But see here, the frigate and BS are listed .. so they should work, right?

I tried at first just making my zone have the "capitalships_liberty" encounter with The Order as the faction (I took the npc_ship entres for the ORder ships and modified them from Liberty ... so could that work if I use the same encounter?)
However, this didn't work, so I made my own encounter file, but I don;t know what I did wrong - I still do NOT get any Order capital ships when I enter this zone and cruise around for 10 mins. Here's encounter file (called capitalships_order ) :

[EncounterFormation
ship_by_class = 2, 1, sc_battleships
pilot_job = assault_leader_job
make_class = wanderer
ship_by_class = 3, 2, sc_cruisers
pilot_job = assault_job
make_class = wanderer
ship_by_class = 6, 6, sc_fighters
pilot_job = assault_job
make_class = wanderer
formation_by_class = battleships
behavior = wander
arrival = cruise
allow_simultaneous_creation = no
zone_creation_distance = 0
times_to_create = infinite

[EncounterFormation
ship_by_class = 1, 1, sc_battleships
pilot_job = assault_leader_job
ship_by_class = 3, 3, sc_cruisers
pilot_job = defend_job
make_class = wanderer
ship_by_class = 6, 6, sc_fighters
pilot_job = defend_job
make_class = wanderer
formation_by_class = battleships
behavior = wander
arrival = cruise
allow_simultaneous_creation = no
zone_creation_distance = 0
times_to_create = infinite

[EncounterFormation
ship_by_class = 1, 1, sc_battleships
pilot_job = assault_leader_job
make_class = wanderer
ship_by_class = 3, 3, sc_cruisers
pilot_job = assault_job
make_class = wanderer
ship_by_class = 6, 6, sc_fighters
pilot_job = defend_job
make_class = wanderer
formation_by_class = battleships
behavior = wander
arrival = cruise
allow_simultaneous_creation = no
zone_creation_distance = 0
times_to_create = infinite

[Creation
permutation = 0, 3
permutation = 1, 3
permutation = 2, 3


Can anyone see a problem with this set up? I have other gunboats and ships working, but I cannot get this one to work ... :-?
Any help or advice appreciated Thanks a lot

Edited by - Ro9ue on 1/20/2005 7:12:37 PM

Post Fri Jan 21, 2005 6:33 am

Hi Ro9ue!

In your encounter file you have "sc_battleships" and "sc_cruisers", but in your npcships.ini the last line is wrong for this. I think it has to be the following:

npc_class = lawful, class_cruiser, d22

I'm not totally sure (maybe I changed this in my mod), but you can simply look in the shipclasses.ini. This file connects the "sc_battleships" in the encounter file to the "npc_class" in npcships.ini.
So be sure this is correct.
All the other entries seem to be right for me!

I hope this helps!

Black Eagle

Post Fri Jan 21, 2005 6:50 am

Another little thing is that you need to add lower level difficulty settings for when it shows up. It won`t affect anything it just means you see it easier.
So if you have the typical, d1, d2, d3, d4, d5.... d19.
The game only shows up to d19 anyway. Also set your level to D19 and change that on the encounter within the system. If your not too sure there is a battleship encounter tutorial knocking about the place..

Post Fri Jan 21, 2005 4:05 pm

Hmm, yeah alright, I'll rename the class and see what happens.
And that is weird - I know the difficulty only goes up to d19, but the Liberty Dreadnought and Cruiser both have entries exactly like this except for ship archetype and loadout (and nickname, of course). FL seems to read those ok ... :-? Strange.
But I'll change those thigns, too.

Goin' to check it out now Let you know what happens shortly ...

Post Sat Jan 22, 2005 6:24 am

Not sure if it's meant to be in that file, or it's just posted wrong, but isn't there supposed to be a space either side of the '=' in files? In the first file entry above there isn't...

Post Sat Jan 22, 2005 6:26 am

I'm not sure about the level thing. In my mod I also changed it to level = d19, but for other reasons. Normally it should also work with d22, but try it out!

Hope it works!

Lethal: This is not a problem. The space between the "=" is only to make it easier to read, but it works also without the space!

Edited by - Black Eagle on 1/22/2005 6:27:01 AM

Post Sat Jan 22, 2005 8:37 am

If you go through the capship tutorial they do add an additional entry to npcships. For your order caps you can use the liberty encounter. The only difference between the cap ship encounters are the classes. Liberty dosen`t have gunboats or destroyers..
You would need to add the system file
[EncounterParameters
nickname = capitalships_Liberty
filename = missions\encounters\capitalships_Liberty.ini

and add to the zone
encounter = capitalships_Liberty, 19, 0.100000
faction = fc_or_grp, 1.000000
then in npcships.ini
posted 1/20/2005 19:10 PST
--------------------------------------------------------------------------------
Hey guys, I've got a question here: I can't seem to get me encounter for Order battleships to work. I have a loadout made for an Order frigate (class cruiser) and an Order BS (class cruiser):

[NPCShipArch
nickname=or_cruiser_d22
loadout=or_frigate
level=d19
ship_archetype=manci_frigate
pilot=cruiser_default
state_graph=CRUISER
npc_class=lawful, CRUISER, d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11, 12, d13, d14, d15, d16, d17, d18, d19

[NPCShipArch
nickname=or_dreadnought_d25
loadout=or_OsirisII_LO
level=d19
ship_archetype=or_osiris_sub
pilot=cruiser_default
state_graph=CRUISER
npc_class=lawful, battleship, d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11, 12, d13, d14, d15, d16, d17, d18, d19

Also, the order is classed as unlawful in factionprops and lawful in npcships. Might be worth changing. Do you know for sure that the shiparch entries are all ok?

Post Sat Jan 22, 2005 9:44 am

Haha, ok, I have it workin' now!
Alright, it seems that the classes were the culprit - I changed my npcships entries to these below:

[NPCShipArch
nickname=or_cruiser_d19
loadout=or_frigate
level=d19
ship_archetype=manci_frigate
pilot=cruiser_default
state_graph=CRUISER
npc_class=lawful, class_cruiser, d15, d16, d17, d18, d19

[NPCShipArch
nickname=or_dreadnought_d19
loadout=or_OsirisII_LO
level=d19
ship_archetype=or_osiris_sub
pilot=cruiser_default
state_graph=CRUISER
npc_class=lawful, class_battleship, d15, d16, d17, d18, d19

Changed the class names and the difficulty, and I now have some mean Order capitalship encounters
I thought about just using Liberty capship encounter, but I instead copied that encounter file and creadted my own Order capships encouter file (with revised ship numbers, like more cruisers and fighters ... Muy divertido now)

Ah, and yeah, the spaces don't matter - I have so many different entries in all files (system files, encounter files, shiparch, weapon files - you name it) with either spaces or no spaces. For example, I know I have seen some weapon entries in weapon_erquip with spaces between "=" in one line and not in the next. So yeah, it's ok either way

Thanks, guys, for the help. Woohoo, it sure is fun watching Nomads and Order duke it - in capital ships !!

Ro9ue
__________________________________________________________

"Do you see the slightest evidence anywhere out there that man was the climax towards which creation had been straining from the beginning? That creation came to a screeching halt with the birth of man?"
- Ishmael

Return to Freelancer General Editing Forum