New faction - no show up
-
Can we have the spawn codes too?… (The zones)
-
here ya go:
[zone] nickname = Zone_Li01_001_Planet_Li01_01 pos = -33020, 0, -27925 rotate = 0, 104, 0 shape = SPHERE size = 7000 comment = Manhattan sort = 1 toughness = 1 density = 12 repop_time = 10 max_battle_size = 8 pop_type = li_p_grp, fc_or2_grp, base_cluster_law relief_time = 10 density_restriction = 4, unlawfuls population_additive = false faction_weight = li_p_grp, 20 faction_weight = fc_or2_grp, 1 faction_weight = gd_bh_grp, 20 faction_weight = co_hsp_grp, 1 faction_weight = co_me_grp, 1 faction_weight = co_ss_grp, 1 faction_weight = co_vr_grp, 1 faction_weight = co_be_grp, 1 faction_weight = co_kt_grp, 1 faction_weight = co_nws_grp, 1 faction_weight = co_ni_grp, 1 faction_weight = co_rs_grp, 1 faction_weight = co_shi_grp, 1 faction_weight = co_os_grp, 20 encounter = area_defend, 1, 0.070000 faction = li_p_grp, 1.000000 faction = fc_or2_grp, 0.800000 encounter = area_bh_defend, 1, 0.030000 faction = gd_bh_grp, 1.000000 encounter = area_armored_prisoner, 1, 0.020000 faction = li_p_grp, 1.000000 encounter = area_trade_freighter, 1, 0.090000 faction = co_hsp_grp, 0.260000 faction = co_me_grp, 0.260000 faction = co_ss_grp, 0.260000 faction = co_vr_grp, 0.210000 encounter = area_trade_transport, 1, 0.120000 faction = co_be_grp, 0.100000 faction = co_hsp_grp, 0.100000 faction = co_kt_grp, 0.100000 faction = co_me_grp, 0.100000 faction = co_nws_grp, 0.100000 faction = co_ni_grp, 0.100000 faction = co_rs_grp, 0.100000 faction = co_shi_grp, 0.100000 faction = co_ss_grp, 0.100000 faction = co_vr_grp, 0.080000 encounter = area_trade_armored, 1, 0.020000 faction = co_os_grp, 1.000000 encounter = area_lifter, 1, 0.030000 faction = co_me_grp, 0.500000 faction = co_ss_grp, 0.500000 encounter = area_repair, 1, 0.030000 faction = co_me_grp, 0.500000 faction = co_ss_grp, 0.500000
ive only added them 2 li01 aka new york so far
-
encounter = area_defend, 1, 0.070000
faction = li_p_grp, 1.000000
faction = fc_or2_grp, 0.800000All the faction lines must add up to 1.0 (100%) for each encounter line. Try changing that.
-
Tried using a vanilla ship and loadout instead of those custom things?
-
Haha! Didn’t notice that one… Probably is it ;D
-
DAMN I FEEL STUPID!!! lol
nope…i added a second area defend```
encounter = area_defend, 19, 0.070000
faction = fc_or2_grp, 1.000000
encounter = area_defend, 1, 0.070000
faction = li_p_grp, 1.000000
faction = fc_or2_grp, 1.000000
faction = li_n_grp, 0.800000 -
I noticed you have:
[Loadout]
nickname = fc_or2_loadout
archetype = xwing
equip = ge_oe_engine_01
equip = order_shield2, HpShield01
equip = infinite_power
equip = ge_s_scanner_02
equip = ge_s_tractor_01
equip = ge_s_thruster_01, HpThruster01
equip = armor_scale_0
equip = order_gun, HpWeapon01
equip = order_gun, HpWeapon02
equip = order_gun, HpWeapon03
equip = order_gun, HpWeapon04
equip = torpedo01_mark01, HpTorpedo01
cargo = torpedo01_mark01_ammo, 30
equip = torpedo01_mark01, HpTorpedo02
cargo = torpedo01_mark01_ammo, 30
equip = ge_s_cm_01, HpCM01
cargo = ge_s_cm_01_ammo, 30
equip = LargeWhiteSpecial, HpHeadlight01
equip = SlowSmallGreen, HpRunningLight01
equip = SlowSmallGreen, HpRunningLight02
equip = contrail01, HpContrail01
equip = contrail01, HpContrail02
equip = contrail01, HpContrail03
equip = contrail01, HpContrail04
equip = DockingLightRedSmall, HpDockLight01
equip = DockingLightRedSmall, HpDockLight02and in npc_ships.ini you define a ship with another loadout.
NPCShipArch]
nickname = fc_or2_xwing_d18-d19
loadout = gd_order_loadout
level = d19
ship_archetype = xwing
pilot = pilot_police_ace
state_graph = FIGHTER
npc_class = lawful, class_fighter, d18, d19So your ship in the encounter lacks a proper loadout and so doesn’t appear. So either change the nickname in loadouts.ini to gd_order_loadout or in npcships.ini to fc_or2_loadout
The other problem is, in the area_defend.ini the procedure calls for:
[EncounterFormation]
ship_by_class = 1, 1, sc_fighters
pilot_job = defend_leader_job
make_class = wanderer
ship_by_class = 4, 4, sc_fighters, -1
pilot_job = defend_job
make_class = wanderer
formation_by_class = fighters
behavior = wander
arrival = all, -tradelane, -object_jump_gate
allow_simultaneous_creation = no
zone_creation_distance = 0
times_to_create = infinite[Creation]
permutation = 0, 3This means, the formation is created of one fighter at the encounter level (the one you define in the line: encounter = area_defend, 1, 0.070000)
and four fighters at a level -1, that means a level below the encounter level. As you have only one fighter level defined, they won’t show up. Try customizing the encounter by making some sort of area_defend_custom.ini and copy the stats deleting the -1.Example:
[EncounterFormation]
ship_by_class = 1, 1, sc_fighters
pilot_job = defend_leader_job
make_class = wanderer
ship_by_class = 3, 3, sc_fighters
pilot_job = defend_job
make_class = wanderer
formation_by_class = fighters
behavior = wander
arrival = all
allow_simultaneous_creation = no
zone_creation_distance = 0
times_to_create = infinite[Creation]
This one will create a four-ship patrol defending this area.
-
still got a prob!
faction_weight = li_p_grp, 20 faction_weight = fc_or2_grp, 20 faction_weight = li_n_grp, 1 faction_weight = gd_bh_grp, 20 faction_weight = co_hsp_grp, 1 faction_weight = co_me_grp, 1 faction_weight = co_ss_grp, 1 faction_weight = co_vr_grp, 1 faction_weight = co_be_grp, 1 faction_weight = co_kt_grp, 1 faction_weight = co_nws_grp, 1 faction_weight = co_ni_grp, 1 faction_weight = co_rs_grp, 1 faction_weight = co_shi_grp, 1 faction_weight = co_os_grp, 20 encounter = area_defend_custom, 19, 0.070000 faction = fc_or2_grp, 1.000000 encounter = area_defend, 1, 0.070000