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

anyone have a quick & easy tutorial of how to add new fa

The general place to discuss MOD''ing Freelancer!

Post Fri Sep 09, 2005 2:08 pm

anyone have a quick & easy tutorial of how to add new fa

i got the utility from Paddy
but does anyone know how to add new factions

Post Fri Sep 09, 2005 4:53 pm

Look in the tutorials section, there's a few there i believe. If not do a search on this forum, it's been discussed, ALOT

Buck Rogers
Server Admin
Colours Elite UK
www.colourselite.co.uk

Post Sat Sep 10, 2005 2:13 pm

i've done that but i feel like i'm turning in circles here can anyone help me by showing a working example

this what i got now
initialworld.ini
[Group
nickname = ne_n_grp
ids_name = New Europe Navy
ids_info = 66220
ids_short_name = NE Navy
rep = 0, li_n_grp
rep = 0, li_lsf_grp
rep = 0, li_p_grp
rep = 0, br_n_grp
rep = 0, br_p_grp
rep = 0, ku_n_grp
rep = 0, ku_p_grp
rep = 0, rh_n_grp
rep = 0, rh_p_grp
rep = 0, co_alg_grp
rep = 0, co_be_grp
rep = 0, br_m_grp
rep = 0, co_nws_grp
rep = 0, co_hsp_grp
rep = 0, co_ic_grp
rep = 0, co_khc_grp
rep = 0, co_kt_grp
rep = 0, rh_m_grp
rep = 0, co_me_grp
rep = 0, co_ni_grp
rep = 0, co_os_grp
rep = 0, co_rs_grp
rep = 0, co_shi_grp
rep = 0, co_ss_grp
rep = 0, co_ti_grp
rep = 0, co_vr_grp
rep = 0, fc_bd_grp
rep = 0, fc_b_grp
rep = 0, fc_c_grp
rep = 0, fc_fa_grp
rep = 0, fc_g_grp
rep = 0, fc_gc_grp
rep = 0, fc_h_grp
rep = 0, fc_j_grp
rep = 0, fc_lh_grp
rep = 0, fc_lr_grp
rep = 0, fc_lwb_grp
rep = 0, fc_m_grp
rep = 0, fc_ou_grp
rep = 0, fc_rh_grp
rep = 0, fc_or_grp
rep = 0, fc_u_grp
rep = 0, fc_x_grp
rep = 0, gd_gm_grp
rep = 0, fc_uk_grp
rep = -0.99, fc_n_grp
rep = 0, fc_ln_grp
rep = 0, fc_ku_grp
rep = 0, fc_rh_grp
rep = 0, fc_ouk_grp
rep = 0, fc_q_grp
rep = 0, fc_f_grp
rep = 0, gd_im_grp
rep = 0, gd_z_grp
rep = 0, gd_bh_grp

emphaty.ini
[RepChangeEffects
group = ne_n_grp
event = object_destruction, -0.030000
event = random_mission_success, 0.085900
event = random_mission_failure, -0.045000
event = random_missin_abortion, -0.067500
emphaty_rate = li_lsf_grp, 0
emphaty_rate = li_n_grp, 0
emphaty_rate = li_p_grp, 0
emphaty_rate = br_n_grp, 0
emphaty_rate = br_p_grp, 0
emphaty_rate = ku_n_grp, 0
emphaty_rate = ku_p_grp, 0
emphaty_rate = rh_n_grp, 0
emphaty_rate = rh_p_grp, 0
emphaty_rate = co_shi_grp, 0
emphaty_rate = co_khc_grp, 0
emphaty_rate = co_kt_grp, 0
emphaty_rate = br_m_grp, 0
emphaty_rate = co_me_grp, 0
emphaty_rate = co_be_grp, 0
emphaty_rate = co_rs_grp, 0
emphaty_rate = co_vr_grp, 0
emphaty_rate = co_ni_grp, 0
emphaty_rate = rh_m_grp, 0
emphaty_rate = co_ti_grp, 0
emphaty_rate = co_ic_grp, 0
emphaty_rate = co_ss_grp, 0
emphaty_rate = co_hsp_grp, 0
emphaty_rate = co_alg_grp, 0
emphaty_rate = co_os_grp, 0
emphaty_rate = co_nws_grp, 0
emphaty_rate = fc_c_grp, 0
emphaty_rate = fc_ou_grp, 0
emphaty_rate = fc_rh_grp, 0
emphaty_rate = fc_bd_grp, 0
emphaty_rate = fc_j_grp, 0
emphaty_rate = fc_h_grp, 0
emphaty_rate = fc_m_grp, 0
emphaty_rate = fc_x_grp, 0
emphaty_rate = fc_b_grp, 0
emphaty_rate = fc_g_grp, 0
emphaty_rate = fc_lh_grp, 0
emphaty_rate = fc_u_grp, 0
emphaty_rate = fc_gc_grp, 0
emphaty_rate = fc_lwb_grp, 0
emphaty_rate = fc_fa_grp, 0
emphaty_rate = fc_lr_grp, 0
emphaty_rate = fc_or_grp, 0
emphaty_rate = gd_gm_grp, 0
emphaty_rate = fc_uk_grp, 0
emphaty_rate = fc_n_grp, 0
emphaty_rate = fc_ln_grp, 0
emphaty_rate = fc_kn_grp, 0
emphaty_rate = fc_rn_grp, 0
emphaty_rate = fc_ouk_grp, 0
emphaty_rate = fc_g_grp, 0
emphaty_rate = fc_f_grp, 0
emphaty_rate = gd_im_grp, 0
emphaty_rate = gd_z_grp, 0
emphaty_rate = gd_bh_grp, 0

i still have to do the ships but that part i don't really understand very well
allso will it be possibale to get this new gfaction in freelancer explorer
or do i have to work the ini of the system as well

Remember i once started to devellop a mod for freelancer called Archangels of Europe
I'm picking up the thread where i left 1.5 years ago, but now i'm going to do like a hobby so i can't promise it will ever be released

if there people who want to give me models there more then welcome 2
if i get custom models could someone help me to incoperate these

Edited by - Resender on 9/10/2005 3:23:01 PM

Post Sat Sep 10, 2005 2:52 pm

For faction_prop, just pick the most similar faction from the game and copy all of it. Rename the top to be your faction and get rid of the gcs_ bit (if you want to). If you use li_n then it will be called "navy" in the game.
Next, open newplayer.fl in the exe folder, you will need the save editor to open it, add you faction to the file.
Then, mpnewcharacter.fl also in the exe folder, this one opens with notepad, its worth adding even if the mod is SP based just for the fun of it..
Ok, so if alls going well, you faction is in the game. FLE will find the new faction ok, just make sure you copy the newest dll's to the mod's exe folder to get the right names.
Time to playtest, before we start changing the ships and their loadouts.
If you are using a version of OpenSP, you will need to add your faction to the mission/m13.ini file. It shouldn't crash if you don't but they will be either neutral or the same as they are in newplayer.fl.
Let me know if you get to this stage and one of us will continue..

Post Sat Sep 10, 2005 4:30 pm

Now i understand what must be done but i just can't find what i'm doing wrong
1)i made the ini added new faction
although i think this is not correct
[Group
nickname = ne_n_grp
ids_name = New Europe Navy
ids_info = 66220
ids_short_name = NE Navy
2)i copied the liberty navy part & repllaced the li_n_grp with ne_n_grp
& removed gcs
3)i used a save game editor (simple save game editor on site to edit)to edit the newplayer & notepad for the mpnewplayer
added
house = 0, ne_n_grp

now FLE did not show a new faction so i think i have something wrong in the order or place of the files

do i keep the ini & newplayer files within the original folder or can i copy them before editing the saves

allso where do i get this openSP

Edited by - Resender on 9/10/2005 5:32:00 PM

Post Sat Sep 10, 2005 5:05 pm

Okay. There are a few things wrong with what you are doing:

1) You are replacing li_n_grp with ne_n_grp-unless you mean the nickname it is WRONG!

Instead/Also you need to ADD ne_n_grp to all of the other factions' entries, and your new one.

EX:

[Group
nickname = br_p_grp
bla bla bla...
rep = 0, gd_im_grp
rep = 0, gd_z_grp
rep = 0, gd_bh_grp
rep = 0, ne_n_grp

You have to do that to ALL of the entries.

2) You need to ADD this line to all of the entries EXCEPT your new one in empathy.ini:
emphaty_rate = ne_n_grp, 0

EX: Do this to all of the [RepChangeEffects entries

[RepChangeEffects
group = br_p_grp
bla bla bla...
emphaty_rate = gd_im_grp, 0
emphaty_rate = gd_z_grp, 0
emphaty_rate = gd_bh_grp, 0
empathy_rate = ne_n_grp, 0

BUT NOT: To your new entry

This is a NONO!!!!
vvvvvvvvvvvvvv
[RepChangeEffects
group =ne_n_grp
bla bla bla...
emphaty_rate = gd_im_grp, 0
emphaty_rate = gd_z_grp, 0
emphaty_rate = gd_bh_grp, 0
empathy_rate = ne_n_grp, 0
^^^^^^^^^^^^^
The above is BAD
Do This Instead:

[RepChangeEffects
group =ne_n_grp
bla bla bla...
emphaty_rate = gd_im_grp, 0
emphaty_rate = gd_z_grp, 0
emphaty_rate = gd_bh_grp, 0

I probably missed alotta stuff, but start with this stuff here. Anyone can join in and help this guy... I cant write tutorials very well.


@mace- do you see anything i missed fixing? If you do, please post it to help this guy.

Edited by - Tabu34 on 9/10/2005 6:33:52 PM

Post Sat Sep 10, 2005 5:14 pm

just to clarify, your ids_name is a number isn't it? You haven't just typed in the name of the faction? If not, (good grief ), you need to add the faction to names_resources.dll and add it with a number just after the ones already used for other factions. The numbers location in the dll will matter later when we start adding random missions.

Post Sun Sep 11, 2005 12:59 am

ok i've done everything you guys said and i now understand why the name didn't show up
thus i have to add the faction to the nameresources .dll
now this file howw do i edit it best because in notepad its like trying to find a needle in a haystack without using a magnet

Post Sun Sep 11, 2005 2:21 am

Oh, yeah i thought so, there's a program for download. Its called FLEd-ids, and it lets you add entries to dll's. Dll's are just like filing cabinets, there are locations where you can store things.
FLEd-ids download


FLEd-ids download

You just find the game path, then pop in similar ids_names until you find a spare one. You can use the XML script to generate the names for most things, but this isn't one of them. It needs to be in names_resources at the right location. The one similar to those already used by the other factions.

You might want to look at this too, it was created by Chips, its a tutorial on IDS_numbering.
IDS TUTORIAL download.
Let me know how you get on, there isn't much else to do for factions after these steps. Just a few things to get the random missions working.

Post Sun Sep 11, 2005 4:05 am

OR! You could download an EMPTY dll...but that might get a wee bit complex...

Look around the site for the empty dll Download. Once u download it, look for the Ids Tutorial. I dont remember whether it comes with the empty dll or what. But it is very helpful.

Edited by - Tabu34 on 9/11/2005 5:23:43 AM

Post Sun Sep 11, 2005 4:14 am

i managed to add my faction only to find out that the id was used by an other faction so i replaced the dll of the mod with the original

but now before i continue can you ad more the 1 faction
& how do you create new id numbers for these factions

i need 5 faction
New Europe Navy // NE Navy
New Europe Police // NEP
New Europe Space Authority // NESA
Industrial Steel & Mineral Reforming // IS&MR
a criminal faction i haven't decide on a name yet

I did something wrong i left my test mod open and tried to open the dll with as consequence that fled-ids doesnt find the dll files anymore i'm going to reinstall every thing

Edited by - Resender on 9/11/2005 5:29:39 AM

Edited by - Resender on 9/11/2005 5:51:52 AM

Post Sun Sep 11, 2005 4:59 am

If you are going to add factions, its always easiest to add a bunch of them at the same time. So far, in my mod, I have added around 30 factions extra. There may be a limit, but, there's plenty of room for the ones that you plan.
So, make up a proper name for each of the factions. Something like;
Ns_nen_grp = New Europe Navy
Ns_nep_grp = New Europe Police
Ns_nesa_grp = New Europe Space Authority
Ns_ismr_grp = Industrial Steel & Mineral Reforming
Ns_unlaw_grp = a criminal faction i haven't decide on a name yet

If you follow what Tabu34 has said about adding initial_world and empathy and add the faction_prop by copying from existing factions. Get everything in there except the ids_name, info, and short_name.
The short_name can be in a custom dll if you want to, or anywhere else in the names_resources.dll (as far as I know).

So, in initial_world, you would create extra groups for the new factions. If you use the above group names you would add;
rep = 0, Ns_nen_grp
rep = 0, Ns_nep_grp
rep = 0, Ns_nesa_grp
rep = 0, Ns_ismr_grp
rep = 0, Ns_unlaw_grp
..to the bottom of every faction (inlcuding their own) so everybody know how to react to everybody else, otherwise its crash to desktop time.

In empathy, add new groups for your new factions and add;
empathy_rate = Ns_nen_grp, 0
empathy_rate = Ns_nep_grp, 0
empathy_rate = Ns_nesa_grp, 0
empathy_rate = Ns_ismr_grp, 0
empathy_rate = Ns_unlaw_grp, 0
.. to all of the existing factions in the game. When it comes to the new factions, you only wany 4 each (not the one for the faction itself).

Then in faction_prop, don't try too much at first, just copy all of li_n_grp and paste to the bottom, rename to your navy faction. Continue picking any faction that is similar to your factions, we'll change them all later anyway, its just to see if we can get the factions visable.

If we wewre toadd the new ships and loadouts first, then its harder to problem solve (cos there's more possibilities).

Without knowing your factions i would say, try using;
li_n_grp (Lib. Navy)= New Europe Navy
li_p_grp (Lib Police)= New Europe Police
co_kt_grp (Kishiro)= New Europe Space Authority
gd_im_grp (IMG)= Industrial Steel & Mineral Reforming
fc_c_grp (corsairs)= a criminal faction i haven't decide on a name yet

Have a go at adding the groups to the initial_world, empathy, faction_prop and newplayer.fl

Post Sun Sep 11, 2005 6:30 am

If you follow what Tabu34 has said about adding initial_world and empathy and add the faction_prop by copying from existing factions. Get everything in there except the ids_name, info, and short_name.
The short_name can be in a custom dll if you want to, or anywhere else in the names_resources.dll (as far as I know).

Does that mean that when i copy the other factions i leave out the lines with ids_name, info, and short_name numbers in

allso i got the empty dll but i don't fully understand thhe tutorial
thus in initialworld.ini like this

[Group
nickname = Ns_nen_grp
rep = 0.91, li_n_grp
rep = 0.91, li_lsf_grp
rep = 0.91, li_p_grp
rep = 0.65, br_n_grp
rep = 0.65, br_p_grp
rep = 0.65, ku_n_grp
rep = 0, ku_p_grp
rep = 0.65, rh_n_grp
rep = 0, rh_p_grp
rep = 0.65, co_alg_grp
rep = 0.65, co_be_grp
rep = 0.65, br_m_grp
rep = 0.65, co_nws_grp
rep = 0.91, co_hsp_grp
rep = 0.91, co_ic_grp
rep = 0, co_khc_grp
rep = 0.65, co_kt_grp
rep = 0, rh_m_grp
rep = 0.91, co_me_grp
rep = 0.91, co_ni_grp
rep = 0.91, co_os_grp
rep = 0.65, co_rs_grp
rep = 0.65, co_shi_grp
rep = 0.91, co_ss_grp
rep = 0.65, co_ti_grp
rep = 0.91, co_vr_grp
rep = 0, fc_bd_grp
rep = 0, fc_b_grp
rep = -0.65, fc_c_grp
rep = 0, fc_fa_grp
rep = 0, fc_g_grp
rep = 0, fc_gc_grp
rep = 0, fc_h_grp
rep = 0, fc_j_grp
rep = -0.65, fc_lh_grp
rep = -0.65, fc_lr_grp
rep = 0, fc_lwb_grp
rep = 0, fc_m_grp
rep = -0.65, fc_ou_grp
rep = 0, fc_rh_grp
rep = 0, fc_or_grp
rep = -0.65, fc_u_grp
rep = -0.65, fc_x_grp
rep = 0, gd_gm_grp
rep = 0, fc_uk_grp
rep = -0.65, fc_n_grp
rep = 0.91, fc_ln_grp
rep = 0.65, fc_kn_grp
rep = 0.65, fc_rn_grp
rep = 0, fc_ouk_grp
rep = 0, fc_q_grp
rep = 0, fc_f_grp
rep = 0, gd_im_grp
rep = 0, gd_z_grp
rep = 0, gd_bh_grp
rep = 0, Ns_nep_grp
rep = 0, Ns_nesa_grp
rep = 0, Ns_ismr_grp
rep = 0, Ns_unlaw_grp

i like to thank you all for the help you've already given me and the help in the future

Edited by - Resender on 9/11/2005 7:41:16 AM

Edited by - Resender on 9/11/2005 7:56:28 AM

Post Sun Sep 11, 2005 8:02 am

Hay does anyone know how I can add nomads and de order to the rep list? Hers the Nomads but I dont know what makes it not show up.

[Group
nickname = fc_n_grp
ids_name = 196891
ids_info = 66205
ids_short_name = 196939
rep = -0.65, li_n_grp
rep = -0.65, li_lsf_grp
rep = -0.65, li_p_grp
rep = -0.65, br_n_grp
rep = -0.65, br_p_grp
rep = -0.65, ku_n_grp
rep = -0.65, ku_p_grp
rep = -0.65, rh_n_grp
rep = -0.65, rh_p_grp
rep = -0.65, co_alg_grp
rep = -0.65, co_be_grp
rep = -0.65, br_m_grp
rep = -0.65, co_nws_grp
rep = -0.65, co_hsp_grp
rep = -0.65, co_ic_grp
rep = -0.65, co_khc_grp
rep = -0.65, co_kt_grp
rep = -0.65, rh_m_grp
rep = -0.65, co_me_grp
rep = -0.65, co_ni_grp
rep = -0.65, co_os_grp
rep = -0.65, co_rs_grp
rep = -0.65, co_shi_grp
rep = -0.65, co_ss_grp
rep = -0.65, co_ti_grp
rep = -0.65, co_vr_grp
rep = -0.65, fc_bd_grp
rep = -0.65, fc_b_grp
rep = -0.65, fc_c_grp
rep = -0.65, fc_fa_grp
rep = -0.65, fc_g_grp
rep = -0.65, fc_gc_grp
rep = -0.65, fc_h_grp
rep = -0.65, fc_j_grp
rep = -0.65, fc_lh_grp
rep = -0.65, fc_lr_grp
rep = -0.65, fc_lwb_grp
rep = -0.65, fc_m_grp
rep = -0.65, fc_ou_grp
rep = -0.65, fc_rh_grp
rep = -0.65, fc_or_grp
rep = -0.65, fc_u_grp
rep = -0.65, fc_x_grp
rep = -0.65, gd_gm_grp
rep = -0.65, 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.65, fc_ouk_grp
rep = -0.65, fc_q_grp
rep = -0.65, fc_f_grp
rep = -0.65, gd_im_grp
rep = -0.65, gd_z_grp
rep = -0.65, gd_bh_grp

Post Sun Sep 11, 2005 12:31 pm

Okay i added the new factions & they work
now adding new bases
before it was easy just add base & it appears in game

but now i add base the faction of the base appearts but no the base name
ok i found out how it works
it works like this
sytem.ini contains links to the ini of bases
pex
BR01 => Br01.ini

[Object
nickname = Br01_08 <<<= nick of the base
ids_name = 196665 <<<= the ID number of the name in the DLL
pos = -45169, 0, -49370
archetype = space_port_dmg <<<=type of station
ids_info = 65725 <<<=the infopad
base = Br01_08_Base <<<= i got no freaking idea why these 2 lines do but i think it
dock_with = Br01_08_Base ///has something to do with linking to the docks
reputation = fc_j_grp <<<=the faction
behavior = NOTHING
visit = 0
voice = atc_leg_m01<<<voice & face of greeting person
space_costume = sh_male4_head, pl_male3_journeyman_body
loadout = space_port_dmg_pi_02<<<=loadout

if windows is based on the same principales no wonder that it can be so unstable

so next stop i'm doing is the systems then ships allso need to make the info for the factions, i used the same for all
in these 2 days ive done more then in 3 months last time i thank you all again

i called the crimanals Trixters Trix short
named after the 3 bad wicthes in Winx Club

Edited by - Resender on 9/11/2005 1:35:59 PM

Return to Freelancer General Editing Forum