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

How to add new faction names to missions

The general place to discuss MOD''ing Freelancer!

Post Sun May 02, 2004 1:37 pm

Oh, as an afterthought though - please post how to do the diagonal manouvers as i am SURE that others would like to utilise them. I request it for myself, of course - if i include it, I will give credit - but i cannot decide until i have had a go

So - please write a tutorial on how to make the diagonal strafe, and how to link it to the controls etc. Shouldn't take more than 20mins of time to do either - nice and quick.

Thankyou

Post Sun May 02, 2004 2:29 pm

with regards to moonhead post...

if u are trying to use factions with factions, ie groups why not do the following
edit the initalworld.ini eg. say u wanted 2 lots of liberty navy but with same info etc.. simply copy

[Group/
nickname = li_n_grp <-- make this li_n1_grp
ids_name = 196846
ids_info = 66200
ids_short_name = 196895
rep = 0.91, li_n_grp
rep = 0.91, li_n1_grp <-- add this (make sure u balance rep out with other factions in inital worlds also)
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

in data\missions\empathy.ini again copy

[RepChangeEffects/
group = li_n1_grp <--- change to this
event = object_destruction, -0.030000
event = random_mission_success, 0.085900
event = random_mission_failure, -0.045000
event = random_mission_abortion, -0.067500
empathy_rate = li_lsf_grp, 0.400000
empathy_rate = li_p_grp, 0.350000
empathy_rate = br_n_grp, 0
empathy_rate = br_p_grp, 0
empathy_rate = ku_n_grp, 0
empathy_rate = ku_p_grp, 0
empathy_rate = rh_n_grp, 0
empathy_rate = rh_p_grp, 0
empathy_rate = co_shi_grp, 0.050000
empathy_rate = co_khc_grp, 0
empathy_rate = co_kt_grp, 0.050000
empathy_rate = br_m_grp, 0
empathy_rate = co_me_grp, 0.275000
empathy_rate = co_be_grp, 0.050000
empathy_rate = co_rs_grp, 0.050000
empathy_rate = co_vr_grp, 0.250000
empathy_rate = co_ni_grp, 0.300000
empathy_rate = rh_m_grp, 0
empathy_rate = co_ti_grp, 0.050000
empathy_rate = co_ic_grp, 0.250000
empathy_rate = co_ss_grp, 0.300000
empathy_rate = co_hsp_grp, 0.250000
empathy_rate = co_alg_grp, 0.050000
empathy_rate = co_os_grp, 0.200000
empathy_rate = co_nws_grp, 0.050000
empathy_rate = fc_c_grp, 0
empathy_rate = fc_ou_grp, -0.400000
empathy_rate = fc_rh_grp, 0
empathy_rate = fc_bd_grp, 0
empathy_rate = fc_j_grp, -0.050000
empathy_rate = fc_h_grp, 0
empathy_rate = fc_m_grp, 0
empathy_rate = fc_x_grp, -0.450000
empathy_rate = fc_b_grp, 0
empathy_rate = fc_g_grp, 0
empathy_rate = fc_lh_grp, -0.350000
empathy_rate = fc_u_grp, -0.025000
empathy_rate = fc_gc_grp, 0
empathy_rate = fc_lwb_grp, 0
empathy_rate = fc_fa_grp, 0
empathy_rate = fc_lr_grp, -0.250000
empathy_rate = fc_or_grp, 0
empathy_rate = gd_gm_grp, 0
empathy_rate = fc_uk_grp, 0
empathy_rate = fc_n_grp, 0
empathy_rate = fc_ln_grp, 0
empathy_rate = fc_kn_grp, 0
empathy_rate = fc_rn_grp, 0
empathy_rate = fc_ouk_grp, 0
empathy_rate = fc_q_grp, 0
empathy_rate = fc_f_grp, 0
empathy_rate = gd_im_grp, 0
empathy_rate = gd_z_grp, 0
empathy_rate = gd_bh_grp, 0.2

then in faction_prop again copy this

[FactionProps/
affiliation = li_n1_grp <-- change this
legality = lawful
nickname_plurality = singular
msg_id_prefix = gcs_refer_faction_li_n
jump_preference = jumpgate
npc_ship = li_n_li_elite_d1-3
npc_ship = li_n_li_elite_d4
npc_ship = li_n_li_elite_d5
npc_ship = li_n_li_elite_d6
npc_ship = li_n_li_elite_d7
npc_ship = li_n_li_elite_d8
npc_ship = li_n_li_elite_d9
npc_ship = li_n_li_elite_d10
npc_ship = li_n_li_elite_d11-19
npc_ship = li_n_cruiser_d22
npc_ship = li_n_dreadnought_d25
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
space_costume = li_rockford_head, li_male_elite_body, comm_li_hatcher
space_costume = li_sales_head_hat, li_male_elite_body, comm_ge_generic2
space_costume = ge_male4_head, li_male_elite_body, comm_li_hatcher
space_costume = pl_male2_head, li_male_elite_body, comm_ge_generic2
space_costume = ge_male3_head, li_male_elite_body, comm_li_hatcher
space_costume = li_newscaster_head_gen_hat, li_female_elite_body, comm_ge_generic2_female
space_costume = li_newscaster_head_gen_hat, li_female_elite_body, comm_li_hatcher_female
space_costume = br_newscaster_head_gen_hat, li_female_elite_body, comm_ge_generic2_female
space_costume = br_newscaster_head_gen_hat, li_female_elite_body, comm_li_hatcher_female
space_costume = pl_female2_head, li_female_elite_body, comm_ge_generic2_female
space_costume = pl_female2_head, li_female_elite_body, comm_li_hatcher_female
firstname_male = 226608, 226741
firstname_female = 226808, 226952
lastname = 227008, 227307
rank_desig = 197002, 197003, 197004, 6, 9
formation_desig = 197808, 197820
large_ship_desig = 196976
large_ship_names = 202608, 202647
scan_for_cargo = commodity_alien_artifacts, 1
scan_for_cargo = commodity_cardamine, 2
scan_announce = true
scan_chance = 0.3
formation = fighters, fighter_li_n

once u have done that u will have 2x liberty navy using same info cards and names etc but u can referance group 1 as li_n_grp and group 2 as li_n1_grp

hope this helps

Post Sun May 02, 2004 2:54 pm

Ra5or,

You can of course use the same ids_names and ids_infos for two separate factions, but the game would still regard them as such: two separate factions. And they would both show up in the rep-menu. So in your example, the Liberty Navy would be in it twice.

The point is, to have the duplicate faction not show up in the rep menu (because there's supposed to be only one faction with that name).As far I know, the matter of being or not being showed in the rep menu, is not arranged in an ini-file, so only the factions that already are blocked from the rep-menu (fc_ouk_grp etc,), can be used to do this.

Post Sun May 02, 2004 4:52 pm

Well, I'm not exactly sure about this (haven't tried it yet), but I think it would work if you added this line in the file \data\interface\knowledgemap.ini

add in this line to make nomad's rep show up:

Map = 196891, fc_n_grp, 65

That should make the nomads show up on the list. Or take away whatever ones you want for them NOT to show up. Let me know if this works for you.

Post Sun May 02, 2004 6:23 pm

@Chips, do I sense a sequel brewing for me to write?

Sir S

Edited by - Sir Spectre on 5/2/2004 7:26:21 PM

Post Sun May 02, 2004 11:04 pm

wanabe,

I havn't tried your idea yet, but actually I don't think knowledgemap.ini does arrange whther a faction shows up in the rep menu. I've created about 9 new factions sofar and they all show up in rthe rep menu, and I haven't created an entry for any of them in knowledgemap.ini.

I rather think that knwolegdemap.ini is a way to get information without actually having visited or having met the item. Just like you can buy the location of a jumo hole from an npc. You haven't been there, but on your nav-map it looks like you've been. So if there are factions in knowledgemap.ini then it is probably a way to get knowledge about that faction without actually having met them.

Post Mon May 03, 2004 7:19 am

Reynen makes reference to modifying content.dll to get FL to reference new factions... i've looked for names (text, crc & ids refs) in a hex editor but no joy... anyone got a clue what i'm missing?

+++ out of cheese error - redo from start +++

Post Mon May 03, 2004 8:47 am

@moonhead, you are correct.

I actually went ahead and tried getting the nomads to show on rep last night and found out some interesting things. First off, I looked in the savefile and found that the lines that have something like: visit = 37111, 65 (the ones with 65 behind the number) tell the game which factions you have encountered so far (and thus which factions show up on your rep menu). I was even able to figure out exactly which faction the nomads were, and it showed up in the save file as soon as I encountered them. However, they still do not show up in the rep menu, so it looks as if there are some faction #'s that are hardcoded not to show up. There should be a way around this, but I am having one problem now - I can't figure out how the visit #'s for factions are generated. They aren't hash codes like the other visit #'s, like the systems visisted, wrecks visited, etc. Does anyone know?

In the save files, the factions all have "65" behind the #
visit = 37111, 65
visit = 62056, 65 <--- how are these #'s generated (37111, 62056)?

If that was figured out, then we could easily assign a different # for the nomads and move the information around in the dlls to get them to show up on the rep menu.

Post Mon May 03, 2004 8:51 am

@ moonhead & wannabe : look ->here<- to get the rep screen fix for order etc

+++ out of cheese error - redo from start +++

Post Mon May 03, 2004 8:54 am

Awesome Anton!

So it looks like yes, it was hardcoded, but the coding was in a dll so thats great that it can be changed.

Thanks for your efforts!!

P.S. I would still like to know what the numbers in the save file for visit = are for factions. . .

Post Mon May 03, 2004 11:49 am

Chips,

Your info worked great, I now have working encounters with the new factions. Can't belive how close I was LOL.

As far as the diagnal strafe, I would have no problem doing that, however I made a deal with Grekstar2k:

He is the one who actually came up with the strafing and showed me how to do it. So he is the one you should contact. He got all mad that people were contacting me about it and thew a fit about it on the site. So people should contact Gregstar2k if you want information about how to do it.

Reynen Starfyre
Project Leader: Starfyre Studios
Freelancer: The Next Generation

Return to Freelancer General Editing Forum