X4: Foundations

X4: Foundations

Xenon Start
xpto 8 月 25 日 下午 2:22
Some bugs and changes
I was getting a few errors, here is how i fixed them:

@defend_cpu_ship.xml
<cue name="Start" namespace="this" checktime="10s" mapeditor="false" module="xenon_test">
to
<cue name="Start" namespace="this" mapeditor="false" module="xenon_test"></cue>
because of event_cue_signalled there is no checktime arg


@characters.xml
<replace sel="/characters/character[@id='marine_yaki_random_elite_dlc_terran']/category/@faction">[yaki, faction.player]</replace>
duplicate entry at line 161 and 166, removed one of them

<replace sel="/characters/character[@id='default_trader']/category/@faction">[argon, antigone, scaleplate, hatikvah, alliance, buccaneers]</replace>
this no longer exists, maybe in a previous version of the game? Just delete line 22

<replace sel="/characters/character[@id='trader_teladi_random']/category/@faction">[teladi, split, freesplit, fallensplit, court]</replace>
was giving an error to, wrong factions, replace with:
<replace sel="/characters/character[@id='trader_teladi_random']/category/@faction">[teladi, ministry, scaleplate, hatikvah, alliance]</replace>


@gamestarts.xml
The miners Xenon - S dont have a pilot normaly and so they keep spamming animation errors, so i swap them for SE
<ship id="player_HQ_sub0_1651951256" count="2" commander="player_HQ_1651950565" macro="ship_xen_m_miner_01_a_macro">
changed to
<ship id="player_HQ_sub0_1651951256" count="2" commander="player_HQ_1651950565" macro="ship_xen_m_miner_solid_01_a_macro">
loadout needs to change to since SE only as 1 weapon slot and 1 shield slot, so
<macros>
<engine macro="engine_xen_m_travel_01_mk1_macro" path="../con_engine_01"/>
<weapon macro="weapon_xen_m_mining_01_mk1_macro" path="../con_primaryweapon_001"/>
<shield macro="shield_xen_m_standard_01_mk1_macro" path="../con_shield_01"/>
<shield macro="shield_xen_m_standard_01_mk1_macro" path="../con_shield_02"/>
<turret macro="turret_xen_m_laser_01_mk1_macro" path="../con_turret_01"/>
</macros>
to
<macros>
<engine macro="engine_xen_m_travel_01_mk1_macro" path="../con_engine_01"/>
<weapon macro="weapon_xen_m_mining_01_mk1_macro" path="../con_weapon_01"/>
<shield macro="shield_xen_m_standard_01_mk1_macro" path="../con_shield_01"/>
<turret macro="turret_xen_m_laser_01_mk1_macro" path="../con_turret_01"/>
</macros>
notice the con_weapon_01 vs con_primaryweapon_001 this took me a while to figure out, SE was spawning without weapon and i was scratching my head for a couple of hours...

I also made a few changes, i added a dock, a storage and a solar panel to the HQ, removed the energy cells from cargo and changed the starting miners count to 5 to compensate for the -1 weapon of the SE vs the 2 of the S.
I also added a few connections to make building a new station or expanding one, a bit less of a pain.
If you want the code let me know.
最后由 xpto 编辑于; 8 月 25 日 下午 2:45