Custom Encounters Multiplayer
-
I can’t get this encounter to work. I am trying to put one ship in a certain area of the map.
The problem I am facing is it is a custom ship. I don’t know how to add the encounter to the FLExporer list. Does anyone know the code for adding encounters and the location to place it in?
-
what do you mean by encounter? if you want a certain faction to fly a certain ship you have to put that in faction props ini like so
[FactionProps]
affiliation = fc_f_grp
legality = unlawful
nickname_plurality = plural
msg_id_prefix = ignore
jump_preference = any
npc_ship = fc_ou_bw_fighter_d1-4
npc_ship = fc_ou_bw_fighter_d5
npc_ship = fc_ou_bw_fighter_d6
npc_ship = fc_ou_bw_fighter_d7
npc_ship = fc_ou_bw_fighter_d8
npc_ship = fc_ou_bw_elite_d9
npc_ship = fc_ou_bw_elite_d10
npc_ship = fc_ou_bw_elite_d11
npc_ship = fc_ou_bw_elite_d12
npc_ship = fc_ou_bw_elite_d13
npc_ship = fc_ou_bw_elite_d14
npc_ship = fc_ou_bw_elite2_d15
npc_ship = fc_ou_bw_elite2_d16
npc_ship = fc_ou_bw_elite2_d17
npc_ship = fc_ou_bw_elite2_d18
npc_ship = fc_ou_bw_elite2_d19
voice = pilot_f_ill_m01
voice = pilot_f_ill_m02
mc_costume = mc_fc
space_costume = pi_pirate1_head, pl_male1_journeyman_body, comm_br_darcy
firstname_male = 226608, 226741
lastname = 227008, 227307
rank_desig = 197140, 197140, 197140, 10, 15
formation_desig = 197808, 197820
formation = fighters, fighter_piratehere i have the fugitive flying out cast ships
npc_ship = fc_ou_bw_fighter_d1-4 this number 1-4 represents the toughness of the battle[Zone] battle zone
nickname = Zone_Li01_Battleship_Osiris_nocloak_01
pos = 54721, 0, 34871
rotate = 0, 0, 0
shape = SPHERE
size = 6437
comment = Battleship_Osiris_nocloak
sort = 99
toughness = 4
density = 14
repop_time = 25
max_battle_size = 14
relief_time = 35
population_additive = True
faction_weight = li_n_grp, 10
faction_weight = fc_or_grp, 10
faction_weight = fc_f_grp, 10
faction_weight = fc_ouk_grp, 10
faction_weight = fc_q_grp, 10
encounter = area_defend, 4, 0.250000
faction = li_n_grp, 1.000000
faction = fc_or_grp, 1.000000
faction = fc_ouk_grp, 1.000000
faction = fc_q_grp, 1.000000
encounter = area_trade_trader, 4, 0.250000
faction = li_n_grp, 1.000000
faction = fc_or_grp, 1.000000
faction = fc_ouk_grp, 1.000000
faction = fc_q_grp, 1.000000
encounter = area_scout, 4, 0.250000
faction = li_n_grp, 1.000000
faction = fc_or_grp, 1.000000
faction = fc_ouk_grp, 1.000000
faction = fc_q_grp, 1.000000
faction = fc_f_grp, 1.000000
now this is an enounter zone from my mod
if this is any help to you then let me know[Object]
nickname = Li01_15
pos = 54186, 0, 36478
ids_info = 65713
behavior = NOTHING
pilot = pilot_solar_easy
dock_with = Li01_15_Base
base = Li01_15_Base
reputation = fc_or_grp
rotate = 0, 0, 0
archetype = o_osiris
ids_name = 237043
loadout = Battleship_Osiris_nocloak
difficulty_level = 1
space_costume = pl_male4_head, pi_orillion_body
voice = atc_leg_m01
and this is the object order osiris baseso to sum this up you have make sure that the faction you want to fly this custom ship is flying it faction props ini
then set up your zone around your object.also let us know what type of encounter and if it is declared in the system file you are working on. because freelancer explorer is the not such a great tool when setting up ecounters. you have to do alot of other things before you can make a certain faction fly certain ships.
-
here is something from one of my earlier mods it is the order mod . the faction is the order
[FactionProps]
affiliation = fc_or_grp
legality = unlawful
nickname_plurality = singular
msg_id_prefix = gcs_refer_faction_fc_or
jump_preference = jumphole
npc_ship = order_li_elite_d1-10
npc_ship = order_li_elite2_d11-13
npc_ship = order_ANUBIS_d14-16
npc_ship = order_ANUBIS_d17-19a
npc_ship = order_ANUBIS_d17-19b
npc_ship = order_ANUBIS_d17-19c
npc_ship = order_ANUBIS_d17-19d
npc_ship = order_ANUBIS_d17-19e
npc_ship = order_ANUBIS_d17-19f
npc_ship = order_ANUBIS_d17-19g
npc_ship = order_ANUBIS_d17-19h
npc_ship = order_ANUBIS_d17-19i
npc_ship = order_ANUBIS_d17-19j
npc_ship = ADPtah-GS02 these three ships are custom
adptah,adsekhmet,sutekh
you also have to make sure the ship are in the loadouts ini also
npc_ship = ADSekhmet
npc_ship = ADSutekh
npc_ship = osiris
npc_ship = Liberty_Cruiser
npc_ship = Liberty_Battleship
voice = pilot_f_mil_m01
voice = pilot_f_mil_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
formation = fighters, fighter_basic
formation = freighters, freighter_basic
formation = freighters2, freighter2_basic
formation = cruisers, cruiser_wall
formation = battleships, cruiser_wall[Loadout]
nickname = ADPtah-GS02_loadout
archetype = ADPtah-GS02
equip = ad_ptah_engine_01, internal
equip = ad_ptah_shield_fr, HpShield01
equip = ad_ptah_shield_fr, HpShield02
equip = ad_ptah_shield_fr, HpShield03
equip = ad_ptah_shield_fr, HpShield04
equip = infinite_power
equip = ge_s_scanner_02
equip = ge_s_tractor_01
equip = ge_s_thruster_04, HpThruster01
equip = ad_ptah_turret02, HpTurret01
equip = ad_ptah_turret02, HpTurret02
equip = ad_ptah_turret02, HpTurret03
equip = ad_ptah_turret02, HpTurret04
equip = ad_ptah_gun02, HpWeapon01
equip = ad_ptah_gun02, HpWeapon02
equip = ad_ptah_gun02, HpWeapon03
equip = ad_ptah_gun02, HpWeapon04
equip = ad_ptah_gun02, HpWeapon05
equip = ad_ptah_gun02, HpWeapon06
equip = mine02_mark05, HpMine01
cargo = mine02_mark05_ammo, 20
equip = ge_s_cm_03, HpCM01
cargo = ge_s_cm_03_ammo, 20
equip = SlowMediumBlue, HpRunningLight01, 1
equip = SlowMediumBlue, HpRunningLight02, 1
equip = SlowMediumBlue, HpRunningLight03, 1
equip = SlowMediumBlue, HpRunningLight04, 1
equip = contrail01, HpContrail02, 1
equip = contrail01, HpContrail03, 1
equip = DockingLightRed, HpDockLight01, 1
equip = DockingLightRed, HpDockLight02, 1
cargo = ge_s_repair_01, 20
cargo = ge_s_battery_01, 20
cargo = commodity_sidearms, 250[Loadout]
nickname = ADSekhmet_loadout
archetype = ADSekhmet
equip = ad_sekhmet_engine_01, internal
equip = order_shield, HpShield01
equip = order_shield, HpShield02
equip = infinite_power
equip = ad_s_scanner_04
equip = ad_s_tractor_02
equip = order_thruster, HpThruster01
equip = order_thruster, HpThruster02
equip = fc_or_turret02_mark02, HpTurret01
equip = fc_or_turret02_mark02, HpTurret02
equip = fc_or_gun02_mark03, HpWeapon01
equip = fc_or_gun02_mark03, HpWeapon02
equip = fc_or_gun02_mark03, HpWeapon03
equip = fc_or_gun02_mark03, HpWeapon04
equip = ad_sekhmet_torpedo, HpTorpedo01
equip = ad_sekhmet_torpedo, HpTorpedo02
equip = ad_sekhmet_mine, HpMine01
equip = ad_sekhmet_mine, HpMine02
equip = ge_s_cm_03, HpCM01
cargo = ge_s_cm_03_ammo, 20
equip = SlowSmallWhite, HpRunningLight01, 1
equip = SlowSmallWhite, HpRunningLight02, 1
equip = contrail01, HpContrail01, 1
equip = contrail01, HpContrail02, 1
equip = DockingLightRedSmall, HpDockLight01, 1
equip = DockingLightRedSmall, HpDockLight02, 1
cargo = ge_s_repair_01, 20
cargo = ge_s_battery_01, 20
cargo = commodity_sidearms,100[Loadout]
nickname = ADSutekh_loadout
archtype = ADSutekh
equip = ad_sutekh_engine_01, internal
equip = ad_sutekh_shield_hf, HpShield01
equip = ad_sutekh_shield_hf, HpShield02
equip = ad_sutekh_shield_hf, HpShield03
equip = ad_sutekh_shield_hf, HpShield04
equip = infinite_power
equip = ad_s_scanner_03, internal
equip = ge_s_tractor_01, internal
equip = ad_sutekh_thruster, HpThruster01
equip = ad_sutekh_thruster, HpThruster02
equip = ad_sutekh_gun01, HpWeapon01
equip = ad_sutekh_gun01, HpWeapon02
equip = ad_sutekh_gun01, HpWeapon03
equip = ad_sutekh_gun01, HpWeapon04
equip = ad_sutekh_torpedo01, HpTorpedo01
equip = ge_s_cm_03, HpCM01
cargo = ge_s_cm_03_ammo, 20
equip = LargeWhiteSpecial, HpHeadlight01
equip = SlowSmallGreen, HpRunningLight01
equip = SlowSmallGreen, HpRunningLight02
equip = contrail01, HpContrail01
equip = contrail01, HpContrail02
equip = contrail01, HpContrail03
equip = contrail01, HpContrail04
equip = DockingLightRedSmall, HpDockLight01
cargo = ge_s_repair_01, 10
cargo = ge_s_battery_01, 10
cargo = commodity_sidearms,20here are the three custom ships in the loadouts ini the ship archtype is where i got the names.
-
the best way to learn modding freelancer is to look at the sdk how it is done and learn to under stand how everything is laid out . dont be afraid to ask questions that’s the only way to learn how to do it. there are a lot of nice cool people here who will answer any question.
-
Going utterly from memory - shiparch.ini contains the ship (custom ship entry) defining it’s…erm, stuff (hardpoints, effects, cockpit, whatever).
The loadouts.ini will define a loadout for said ship (if flown by NPC’s) whilst goods.ini will define the loadout of it when you buy said ship (with a package and hull declaration).for a faction to fly a specific ship, you’ll need the ship’s nickname of Shiparch.ini and to know it’s hardpoints. Create a loadout for the npc’s who will fly this ship in the loadouts.ini - using the ships nickname, and the equipment/weapons nicknames on the suitable hardpoints (check your CMP for hardpoint names).
Look in loadouts.ini at all other entries for an example. You can create several loadouts (each individually nicknamed like my_loadout_easy, my_loadout_medium, my_loadout_hard) with increasing levels of guns/shields mounted to make them “harder”.faction_prop.ini is where the faction is listed with the “ships it can use” as well as other bits and bobs. You’ve seen an entry up there. The “ships it can use” is actually referencing the npcships.ini (missions folder?) - which is where it defines the ship/loadouts to appear in encounters etc. Look in there for examples - but you’ll create an entry with a nickname, stating the ship archetype (shiparch.ini) nickname and the loadout nickname for it. There are lines for the difficulty, the pilot type (pilots_population.ini or something?) and other entries blah blah blah.
There are tutorials around on how to do all this, but you can explore and understand too Open up faction_prop.ini, and find one of the ships entries. Copy the nickname, open up npcships.ini and search for the nickname. You can then find teh ship archetype and loadout. Open the two inis and search for those nicknames…
You could also note the pilot and search for it’s entries and much more besides.No offence to Sabatino, but what you posted is very short on anything useful. If thinking hat isn’t on, and knowledge is weak, he’d create a loadout, make up a name and stick it into faction_prop and then crash…without knowing why.
furthermore:
npc_ship = fc_ou_bw_fighter_d1-4 this number 1-4 represents the toughness of the battle
The d1-4 means sweet fa in this instance. False information. You can nickname the npcships.ini entry “myfirstnpc” and as long as that line says npc_ship = myfirstnpc, it will work. The difficulty is set in npcships.ini - NOT in the bloomin nickname. The toughness is set in the zone.