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

Faction problem - can''t find the answer

The general place to discuss MOD''ing Freelancer!

Post Mon Jan 31, 2005 10:31 am

Faction problem - can''t find the answer

I've added a faction into a mod that I'm making (slowly, as I learn to do new stuff). I wasn't expecting it to work first time as this my first ever faction that I've made. Don't know why, but when I launch from a base the game just crashes to desktop. I was fine before the added faction though, so that must be the problem.
I looked through the forums for a tutorial on adding a new faction, so I could retrace my steps and see if there was anything i missed. However, all I found was one small post by Chips which doesn't state much detail about adding new factions.
So - I will post the faction coding I have done here and if anyone can tell me what's wrong, or anything I have missed, It'd be greatly appreciated.
-----
First, faction_prop.ini:
/\/\/\/\/\/\/\/\/\/
[FactionProps
affiliation = ch_ad_grp
legality = lawful
nickname_plurality = plural
msg_id_prefix = gcs_refer_faction_li_n
jump_preference = jumpgate
npc_ship = ge_fighter6
npc_ship = bw_elite2
npc_ship = co_elite2
npc_ship = or_elite_msn1
npc_ship = ge_prison
npc_ship = ge_liner
npc_ship = or_osiris
voice = pilot_f_mil_m01
voice = pilot_f_mil_m02
voice = pilot_f_leg_f01
voice = pilot_f_leg_f01a
mc_costume = mc_li
;space_costume = li_captain_head, li_male_elite_body, comm_ge_generic2 <------This is commented out because there are no bases with this faction on yet
firstname_male = 226608, 226741
firstname_female = 458757, 226952
lastname = 227008, 227307, 458758
rank_desig = 197002, 197003, 197004, 6, 9
formation_desig = 197808, 197820
large_ship_desig = 196976
large_ship_names = 202608, 202647, 458759
scan_for_cargo = commodity_alien_artifacts, 1
scan_for_cargo = commodity_cardamine, 2
scan_announce = true
scan_chance = 0.500000
formation = fighters, fighter_li_n
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
I havn't set any encounters with them yet, so I probably wouldn't know what Is working and whats not, but I thought it should still work without any encounters...Anyway, Initialworld.ini:
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
[GROUP
nickname = ch_ad_grp
ids_name = 458753
ids_info = 458754
ids_short_name = 458755
rep = 0.91, li_n_grp
rep = 0.91, li_lsf_grp
rep = 0.91, li_p_grp
rep = 0.91, br_n_grp
rep = 0.91, br_p_grp
rep = 0.91, ku_n_grp
rep = 0.91, ku_p_grp
rep = 0.91, rh_n_grp
rep = 0.91, rh_p_grp
rep = 0.91, co_alg_grp
rep = 0.91, co_be_grp
rep = 0.91, br_m_grp
rep = 0.91, co_nws_grp
rep = 0.91, co_hsp_grp
rep = 0.91, co_ic_grp
rep = 0.91, co_khc_grp
rep = 0.91, co_kt_grp
rep = 0.91, rh_m_grp
rep = 0.91, co_me_grp
rep = 0.91, co_ni_grp
rep = 0.91, co_os_grp
rep = 0.91, co_rs_grp
rep = 0.91, co_shi_grp
rep = 0.91, co_ss_grp
rep = 0.91, co_ti_grp
rep = 0.91, co_vr_grp
rep = 0.91, fc_bd_grp
rep = 0.91, fc_b_grp
rep = 0.91, fc_c_grp
rep = 0.91, fc_fa_grp
rep = 0.91, fc_g_grp
rep = 0.91, fc_gc_grp
rep = 0.91, fc_h_grp
rep = 0.91, fc_j_grp
rep = 0.91, fc_lh_grp
rep = 0.91, fc_lr_grp
rep = 0.91, fc_lwb_grp
rep = 0.91, fc_m_grp
rep = 0.91, fc_ou_grp
rep = 0.91, fc_rh_grp
rep = 0.91, fc_or_grp
rep = 0.91, fc_u_grp
rep = 0.91, fc_x_grp
rep = 0.91, gd_gm_grp
rep = 0.91, fc_uk_grp
rep = 0.91, fc_n_grp
rep = 0.91, fc_ln_grp
rep = 0.91, fc_kn_grp
rep = 0.91, fc_rn_grp
rep = 0.91, fc_ouk_grp
rep = 0.91, fc_q_grp
rep = 0.91, fc_f_grp
rep = 0.91, gd_im_grp
rep = 0.91, gd_z_grp
rep = 0.91, gd_bh_grp
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
The group are meant to be the 'admin; NPC group, so their friendly to all, I've also added a:
rep = 0.91, ch_ad_grp
onto the bottom of every existing factions rep list.

And as I said, everythings fine until I undock from the starting base, where I get a crash to desktop...Any help please?

L.D

EDIT: Spelling

EDIT 2: I will later remove the contraband scanning bit - I copied the basic entry from the liberty navy one. Do i remove just the scan_for_cargo bit or all the scan_for_cargo, scan_announce and scan_chance?

Edited by - Lethal Dosage on 1/31/2005 10:31:33 AM

Edited by - Lethal Dosage on 1/31/2005 10:37:42 AM

Post Mon Jan 31, 2005 10:47 am



npc_ship = ge_fighter6
npc_ship = bw_elite2
npc_ship = co_elite2
npc_ship = or_elite_msn1
npc_ship = ge_prison
npc_ship = ge_liner
npc_ship = or_osiris



I hope that you actually did some reading, and know what this part means

You should check the loadouts of these 'ships' to their corresponding entries in the npcships.ini file.........although I am sure they don't exist (hence mr desktop).
Although plowing into something without doing any reading can be fun - I would strongly suggest you utilise all the resources that we have here for precisely this reason........like the tutorials forum. The list of tutorials at the top does NOT contain anything like what is actually there. Hit the thread age to 1 Year, and then look through.

Anyways - here is one about custom NPC ships in encounters (directly relevent) here

And here is one about making factions here although I swear I wrote a much better one - I bet its in the newbie questions thread - have a butchers in the thread saying its got it all at the top of the forum - and search the index. Time taken will easily be well spent

Post Mon Jan 31, 2005 12:00 pm

I knew what it all meant lol - otherwise I wouldn't do it, why mod if you dont know what your doing?
Anyway, I wasn't really expecting the osiris, luxury liners and prison ships to work, just shoved them in for a laugh, but do the entries have to be the names of ships, or something else?
because, for instance, this is an entry in another factions entry:
npc_ship = fc_ou_bw_fighter_d1-4
I mean...that isn't a ship. At first I thought it might be a loadout, but a search ensured me that there were no loadouts by that name...
What is it??

Anyway, thanks for the heads up - I forgot to say that it wasn't actually a CTD, the server just crashes in on itself each time, same effect though.

Post Mon Jan 31, 2005 1:01 pm

Yup, all sorted now - your my savior Chips.

As theres no reason to start another topic, going to ask a few questions here - sorry if they've been answered before somewhere.

On this picture (below), is there anyway to change the underlined entries?? I've never seen it done before, but then again, I havn't played many mods...

[IMGhttp://img162.exs.cx/img162/2839/flquestion5th.th.jpg[/IMG

Because, You DON'T start at Manhatten, you DON'T start with 2000 credits and you DON'T start with a startflier...kinda annoying...

L.D

Edited by - Lethal Dosage on 1/31/2005 1:01:49 PM

Edited by - Lethal Dosage on 1/31/2005 1:02:23 PM

Post Mon Jan 31, 2005 1:33 pm

Well, maybe they are from a static text resource, i.e. don't look at mpnewcharacter.fl or newcharacter.ini. Try changing the name of planet manhattaan and the starflier (make backups first) to something like boglabogla, and see if that show up there. If not, there must be a different source, that means searchign through the dlls to find other places containing those 2 names.

Post Mon Jan 31, 2005 1:50 pm

Cheers, and guess what - another question from me...*sigh*...

In one of the questions threads, chips states that you can increase the levels gained, in PTough.ini. Following his writing, I did this - and the levels stop rising after level 40. It's set to goto level 50 for now, but as I said, It doesn't...
I've seen it go higher though, in other mods.

The file is fine, checked it many times. Level 40 is at 450,000,000 credits, yet it still wont go above it, even if you kit yourself with 999,999,999 creds...

Post Mon Jan 31, 2005 2:05 pm

Why do people always choose the hard option?

Okay - here is base/money. I didn't do ship because it was more involved, however,

1) Choose ship (yes - the nickname of the ship as per your shiparch.ini file)
2) Create a loadout for it in the loadouts.ini file - call your loadout something like this:
player_shipname - ie player_patriot or player_titan

The easiest way to do this is search the loadouts.ini file for the shiparch.ini nickname of the ship your after - so for a eagle, you search for ge_fighter6

Here is one - its from the GMG:

[Loadout
nickname = gd_gm_ge_fighter6_loadout01
archetype = ge_fighter6
equip = ge_bwe_engine_01
equip = npc_shield01_mark09, HpShield01
equip = infinite_power
equip = ge_s_scanner_02
equip = ge_s_tractor_01
equip = ge_s_thruster_01, HpThruster01
equip = armor_scale_2
equip = gd_gm_gun01_mark04, HpWeapon01
equip = gd_gm_gun01_mark04, HpWeapon02
equip = gd_gm_gun01_mark03, HpWeapon03
equip = gd_gm_gun01_mark02, HpWeapon04
equip = gd_gm_gun01_mark02, HpWeapon05
equip = missile01_mark03, HpWeapon06
cargo = missile01_mark03_ammo, 20
equip = gd_gm_turret01_mark03, HpTurret01
equip = cruise_disruptor01_mark01, HpTorpedo01
cargo = cruise_disruptor01_mark01_ammo, 5
equip = mine01_mark01, HpMine01
cargo = mine01_mark01_ammo, 20
equip = ge_s_cm_01, HpCM01
cargo = ge_s_cm_01_ammo, 20
equip = LargeWhiteSpecial, HpHeadlight
equip = SlowSmallOrange, HpRunningLight01
equip = SlowSmallOrange, HpRunningLight02
equip = SlowSmallOrange, HpRunningLight03
equip = SlowSmallOrange, HpRunningLight04
equip = SlowSmallOrange, HpRunningLight05
equip = SlowSmallOrange, HpRunningLight06
equip = SlowSmallOrange, HpRunningLight07
equip = SlowSmallOrange, HpRunningLight08
equip = SlowSmallOrange, HpRunningLight09
equip = SlowSmallOrange, HpRunningLight10
equip = contrail01, HpContrail01
equip = contrail01, HpContrail02
equip = contrail01, HpContrail03
equip = contrail01, HpContrail04
equip = DockingLightRedSmall, HpDockLight01
equip = DockingLightRedSmall, HpDockLight02


So copy that to the TOP of the file, and rename it to give this

[Loadout
nickname = player_eagle
archetype = ge_fighter6
equip = ge_bwe_engine_01
equip = npc_shield01_mark09, HpShield01
equip = infinite_power
equip = ge_s_scanner_02
equip = ge_s_tractor_01
equip = ge_s_thruster_01, HpThruster01
equip = armor_scale_2
equip = gd_gm_gun01_mark04, HpWeapon01
equip = gd_gm_gun01_mark04, HpWeapon02
equip = gd_gm_gun01_mark03, HpWeapon03
equip = gd_gm_gun01_mark02, HpWeapon04
equip = gd_gm_gun01_mark02, HpWeapon05
equip = missile01_mark03, HpWeapon06
cargo = missile01_mark03_ammo, 20
equip = gd_gm_turret01_mark03, HpTurret01
equip = cruise_disruptor01_mark01, HpTorpedo01
cargo = cruise_disruptor01_mark01_ammo, 5
equip = mine01_mark01, HpMine01
cargo = mine01_mark01_ammo, 20
equip = ge_s_cm_01, HpCM01
cargo = ge_s_cm_01_ammo, 20
equip = LargeWhiteSpecial, HpHeadlight
equip = SlowSmallOrange, HpRunningLight01
equip = SlowSmallOrange, HpRunningLight02
equip = SlowSmallOrange, HpRunningLight03
equip = SlowSmallOrange, HpRunningLight04
equip = SlowSmallOrange, HpRunningLight05
equip = SlowSmallOrange, HpRunningLight06
equip = SlowSmallOrange, HpRunningLight07
equip = SlowSmallOrange, HpRunningLight08
equip = SlowSmallOrange, HpRunningLight09
equip = SlowSmallOrange, HpRunningLight10
equip = contrail01, HpContrail01
equip = contrail01, HpContrail02
equip = contrail01, HpContrail03
equip = contrail01, HpContrail04
equip = DockingLightRedSmall, HpDockLight01
equip = DockingLightRedSmall, HpDockLight02


Now - because this will be the players START ship - you NEED to change a few things! The main one is this:
POWER UNIT! All NPC's have infinite - which is NOT good.
To find out what to mount, search the goods.ini file for the nickname of your chosen ship (in this case its an eagle - so thats ge_fighter6) - and you will find this:

[Good
nickname = gf6_hull
category = shiphull
ship = ge_fighter6
price = 505000
ids_name = 12015
item_icon = Equipment\models\commodities\nn_icons\cv_heavy.3db


This is just the HULL of the ship (ie the ship itself) - not what we are looking for - however, you HAD to look for this to find what we ARE looking for! Copy the nickname gf6_hull and then search the file for that instead. Yes - it will pull this up again, but the next entry will be this:

[Good
nickname = gf6_package
category = ship
hull = gf6_hull
addon = ge_gf6_engine_01, internal, 1
addon = ge_fighter6_power01, internal, 1
addon = ge_s_scanner_01, internal, 1
addon = ge_s_tractor_01, internal, 1
addon = shield01_mark07_hf, HpShield01, 1
addon = LargeWhiteSpecial, HpHeadlight, 1
addon = SlowSmallOrange, HpRunningLight01, 1
addon = SlowSmallOrange, HpRunningLight02, 1
addon = SlowSmallOrange, HpRunningLight03, 1
addon = SlowSmallOrange, HpRunningLight04, 1
addon = SlowSmallOrange, HpRunningLight05, 1
addon = SlowSmallOrange, HpRunningLight06, 1
addon = SlowSmallOrange, HpRunningLight07, 1
addon = SlowSmallOrange, HpRunningLight08, 1
addon = SlowSmallOrange, HpRunningLight09, 1
addon = SlowSmallOrange, HpRunningLight10, 1
addon = contrail01, HpContrail01, 1
addon = contrail01, HpContrail02, 1
addon = DockingLightRedSmall, HpDockLight01, 1
addon = DockingLightRedSmall, HpDockLight02, 1


Now you can see what the player ship comes with when you buy it - so transfer the stuff like the engines, power supply etc over to the loadouts.ini part you made:

[Loadout
nickname = player_eagle
archetype = ge_fighter6
equip = ge_gf6_engine_01
equip = shield01_mark07_hf, HpShield01
equip = ge_fighter6_power01
equip = ge_s_scanner_02
equip = ge_s_tractor_01
equip = ge_s_thruster_01, HpThruster01
equip = LargeWhiteSpecial, HpHeadlight
equip = SlowSmallOrange, HpRunningLight01
equip = SlowSmallOrange, HpRunningLight02
equip = SlowSmallOrange, HpRunningLight03
equip = SlowSmallOrange, HpRunningLight04
equip = SlowSmallOrange, HpRunningLight05
equip = SlowSmallOrange, HpRunningLight06
equip = SlowSmallOrange, HpRunningLight07
equip = SlowSmallOrange, HpRunningLight08
equip = SlowSmallOrange, HpRunningLight09
equip = SlowSmallOrange, HpRunningLight10
equip = contrail01, HpContrail01
equip = contrail01, HpContrail02
equip = contrail01, HpContrail03
equip = contrail01, HpContrail04
equip = DockingLightRedSmall, HpDockLight01
equip = DockingLightRedSmall, HpDockLight02


As you will note - only THREE items were changed - the shield, the power and the Engine. I removed all weapons, mines, missiles, counter measures, thrusters etc - as the players don't really need those (well - they can have a thruster I guess) Now save the file - you have a 'player loadout'. If you want to give them guns - you can

Now - this part of the newcharacter.ini file:

[Package
nickname = ge_fighter
strid_name = 11051
strid_desc = 11551
ship = ge_fighter
loadout = MP_ge_fighter
money = 2000

The important parts are the ship = and the loadout =

IF you search the loadouts.ini file for the loadout there - you will find it, and it also names the ship as ge_fighter (correlates with above).
Since you have your NEW loadout pointing towards a NEW ship - you have to change THIS to make it change ingame

[Package
nickname = ge_fighter
strid_name = 11051
strid_desc = 11551
ship = ge_fighter6
loadout = player_eagle
money = 2000

Note - SHIP MUST EQUAL THE NICKNAME OF THE SHIPARCH.INI NICKNAME FOR THE SHIP!. THE LOADOUT NAME MUST EQUAL THE LOADOUT YOU MADE FOR THE EXACT SAME SHIP IN THE LOADOUTS.INI FILE!

I put that in bold because you would not believe how many complaints people make because I didn't spell stuff out for them

Save and your good to go

By the way, there are other posts, and also newbie questions, which has answered this time and time again - so, no offence, but once more I see a lack of actually having the commitment to search! If you cannot spend time to find these basic, and readily available items, whilst modding - then I don't hold much hope for you finishing your mod - no offence intended

Post Mon Jan 31, 2005 2:06 pm

In SP those levels won't work. You will need the 1.1 patch on the server, and edit the levels from there......

Post Mon Jan 31, 2005 2:36 pm

Argh, I feel real bad about myself making you write all that out now - just because the stupid edit didn't happen!
Sorry, I missed half of one of your posts and so missed where to find the things i needed. When I realised my mistake, I edited my post saying thanks, I've fixed it all up...and I didnt notice it hadn't actually done it...
If I could do a virtual wimper and send VERY deep apologies, I would!

I'm sure I can work out - or find - the answers to any remaining questions on my own. I used enough of your time to last me ages. Thanks.

Edited by - Lethal Dosage on 1/31/2005 2:36:42 PM

Post Mon Jan 31, 2005 4:17 pm

Don't worry about it - I updated my thread to reflect the addition of the above.
When I post stuff, its not soley for you - its for others that come after you to ask the same stuff. That is why its so important to search before asking though

Post Tue Feb 01, 2005 9:15 am

Easily found out how to edit the new char screen; all in data\characters\newcharacter.ini.

Return to Freelancer General Editing Forum