Skip to content

Commit

Permalink
Version 1.30
Browse files Browse the repository at this point in the history
- Further tweaked station NPC generation. Now Faction-Representatives aren't Pilots anymore.
- Incorporated "Bifidus06" Various NPCs. All credit goes to him.
- Further testings with docking behaviour (auto docking request). Docking cancelation is now 30s for S & M ships and 60s for L & XL ships. Still WIP but doesn't influence gameplay.
- Further Sound adjustments to eliminate the partially deafening engine sounds. It gets better but there is still much room for improvement.
- Readme.md adjustments.
  • Loading branch information
koticR committed Dec 25, 2018
1 parent 037a201 commit c91b375
Show file tree
Hide file tree
Showing 7 changed files with 227 additions and 18 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ A "ready to go mod version" will be available in the Release section. And on the
17. You don't have to scan a station to 50%+ to get vital information. This was made because the current trading situation is rather unstable and seeing early if the economy is stalled is better. (infounlocklist.xml)
Remove 'infounlocklist.xml' if you consider it as cheating. I tried to keep it balanced you still need to scan stations to get all informations, just trading informations unlock earlier now.
18. Increased radar range for all ship types. (defaults.xml)
19. Altered Station NPC appearance, this means i removed two headshapes who looked kinda off. Only female for now since male characters look good enough for my taste.
20. Incorporated [Bifidus06 - Various NPCs Mod](https://www.nexusmods.com/x4foundations/mods/27) and adjusted it a bit for 1.5. All credit goes to him!

***
## Useful Mods by other People.
Expand All @@ -49,8 +51,7 @@ Remove 'infounlocklist.xml' if you consider it as cheating. I tried to keep it b
7. [Sector Satellites](https://www.nexusmods.com/x4foundations/mods/4) by iforgotmysocks **_Note: Although you can use the one above with the one here, it wouldn't make sense since both are different approaches for the same function._**
8. [Learning All The Things](https://www.nexusmods.com/x4foundations/mods/8) by iforgotmysocks
9. [Tradestation Economy Fix](https://www.nexusmods.com/x4foundations/mods/167) by icedesign2000
10. [Higher Trade Station Demand](https://www.nexusmods.com/x4foundations/mods/176) by iforgotmysocks **_Note: Use either this mod or the one above but not both togther since they do practically the same._**

10. [Shipyard Shortage Workaround](https://www.nexusmods.com/x4foundations/mods/181) by MegaJohnny **_Note: Works well with the Mod above.

***
## Install Instructions
Expand Down
24 changes: 12 additions & 12 deletions content.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<content id="x4qol" name="X4 Quality of Life Changes" description="Various small QoL changes" author="FlynTie" version="121" date="2018-25-12" save="0" enabled="1">
<text language="44" name="X4 Quality of Life Changes" description="Various small QoL changes" author="FlynTie" version="121" date="2018-25-12" />
<text language="49" name="X4 Quality of Life Changes" description="Various small QoL changes" author="FlynTie" version="121" date="2018-25-12" />
<text language="7" name="X4 Quality of Life Changes" description="Various small QoL changes" author="FlynTie" version="121" date="2018-25-12" />
<text language="33" name="X4 Quality of Life Changes" description="Various small QoL changes" author="FlynTie" version="121" date="2018-25-12" />
<text language="34" name="X4 Quality of Life Changes" description="Various small QoL changes" author="FlynTie" version="121" date="2018-25-12" />
<text language="39" name="X4 Quality of Life Changes" description="Various small QoL changes" author="FlynTie" version="121" date="2018-25-12" />
<text language="55" name="X4 Quality of Life Changes" description="Various small QoL changes" author="FlynTie" version="121" date="2018-25-12" />
<text language="81" name="X4 Quality of Life Changes" description="Various small QoL changes" author="FlynTie" version="121" date="2018-25-12" />
<text language="82" name="X4 Quality of Life Changes" description="Various small QoL changes" author="FlynTie" version="121" date="2018-25-12" />
<text language="86" name="X4 Quality of Life Changes" description="Various small QoL changes" author="FlynTie" version="121" date="2018-25-12" />
<text language="88" name="X4 Quality of Life Changes" description="Various small QoL changes" author="FlynTie" version="121" date="2018-25-12" />
<content id="x4qol" name="X4 Quality of Life Changes" description="Various small QoL changes" author="FlynTie" version="130" date="2018-25-12" save="0" enabled="1">
<text language="44" name="X4 Quality of Life Changes" description="Various small QoL changes" author="FlynTie" version="130" date="2018-25-12" />
<text language="49" name="X4 Quality of Life Changes" description="Various small QoL changes" author="FlynTie" version="130" date="2018-25-12" />
<text language="7" name="X4 Quality of Life Changes" description="Various small QoL changes" author="FlynTie" version="130" date="2018-25-12" />
<text language="33" name="X4 Quality of Life Changes" description="Various small QoL changes" author="FlynTie" version="130" date="2018-25-12" />
<text language="34" name="X4 Quality of Life Changes" description="Various small QoL changes" author="FlynTie" version="130" date="2018-25-12" />
<text language="39" name="X4 Quality of Life Changes" description="Various small QoL changes" author="FlynTie" version="130" date="2018-25-12" />
<text language="55" name="X4 Quality of Life Changes" description="Various small QoL changes" author="FlynTie" version="130" date="2018-25-12" />
<text language="81" name="X4 Quality of Life Changes" description="Various small QoL changes" author="FlynTie" version="130" date="2018-25-12" />
<text language="82" name="X4 Quality of Life Changes" description="Various small QoL changes" author="FlynTie" version="130" date="2018-25-12" />
<text language="86" name="X4 Quality of Life Changes" description="Various small QoL changes" author="FlynTie" version="130" date="2018-25-12" />
<text language="88" name="X4 Quality of Life Changes" description="Various small QoL changes" author="FlynTie" version="130" date="2018-25-12" />
</content>
16 changes: 16 additions & 0 deletions libraries/charactergroups.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<diff>

<replace sel="//character[@name='argon.factionrepresentative.female']">
<character name="argon.factionrepresentative.female">
<select character="argon.civilian.female"/>
</character>
</replace>

<replace sel="//character[@name='argon.factionrepresentative.male']">
<character name="argon.factionrepresentative.male">
<select character="argon.civilian.male"/>
</character>
</replace>

</diff>
112 changes: 112 additions & 0 deletions libraries/characters.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
<?xml version="1.0" encoding="utf-8"?>

<diff xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >

<add sel="/characters">
<!-- Pilot characters -->
<character id="pilot_argon_random_rookie" group="argon.pilot">
<category tags="[pilot, rookie]" faction="[argon, antigone, scaleplate, hatikvah, alliance, faction.player]" race="argon"/>
<skills>
<skill type="piloting" min="3" max="8"/>
<skill type="morale" max="3"/>

<skill type="engineering" max="1"/>
<skill type="management" exact="0"/>
<skill type="boarding" exact="0"/>
</skills>
<owner list="[argon, antigone]"/>
</character>

<character id="pilot_teladi_random_rookie" group="teladi.pilot">
<category tags="[pilot, rookie]" faction="[teladi, ministry, scaleplate, hatikvah, alliance, faction.player]" race="teladi"/>
<skills>
<skill type="piloting" min="3" max="8"/>
<skill type="morale" max="3"/>

<skill type="engineering" max="1"/>
<skill type="management" exact="0"/>
<skill type="boarding" exact="0"/>
</skills>
<owner list="[teladi]"/>
</character>

<character id="pilot_paranid_random_rookie" group="paranid.pilot">
<category tags="[pilot, rookie]" faction="[paranid, holyorder, scaleplate, hatikvah, alliance, faction.player]" race="paranid"/>
<skills>
<skill type="piloting" min="3" max="8"/>
<skill type="morale" max="3"/>

<skill type="engineering" max="1"/>
<skill type="management" exact="0"/>
<skill type="boarding" exact="0"/>
</skills>
<owner list="[paranid]"/>
</character>

<character id="pilot_split_random_rookie" group="split.pilot">
<category tags="[pilot, rookie]" faction="[scaleplate, alliance, faction.player]" race="split"/>
<skills>
<skill type="piloting" min="3" max="8"/>
<skill type="morale" max="3"/>

<skill type="engineering" max="1"/>
<skill type="management" exact="0"/>
<skill type="boarding" exact="0"/>
</skills>
<owner list="[scaleplate, alliance]"/>
</character>

<!-- Manager characters -->
<character id="manager_argon_random_rookie" group="argon.manager">
<category tags="[manager, officer, rookie]" faction="[argon, antigone, scaleplate, hatikvah, alliance, faction.player]" race="argon"/>
<skills>
<skill type="management" min="4" max="10"/>
<skill type="morale" min="4" max="10"/>

<skill type="engineering" max="1"/>
<skill type="piloting" exact="0"/>
<skill type="boarding" exact="0"/>
</skills>
<owner list="[argon, antigone]"/>
</character>

<character id="manager_teladi_random_rookie" group="teladi.manager">
<category tags="[manager, officer, rookie]" faction="[teladi, ministry, scaleplate, hatikvah, alliance, faction.player]" race="teladi"/>
<skills>
<skill type="management" min="4" max="10"/>
<skill type="morale" min="4" max="10"/>

<skill type="engineering" max="1"/>
<skill type="piloting" exact="0"/>
<skill type="boarding" exact="0"/>
</skills>
<owner list="[teladi]"/>
</character>

<character id="manager_paranid_random_rookie" group="paranid.manager">
<category tags="[manager, officer, rookie]" faction="[paranid, holyorder, scaleplate, hatikvah, alliance, faction.player]" race="paranid"/>
<skills>
<skill type="management" min="4" max="10"/>
<skill type="morale" min="4" max="10"/>

<skill type="engineering" max="1"/>
<skill type="piloting" exact="0"/>
<skill type="boarding" exact="0"/>
</skills>
<owner list="[paranid]"/>
</character>

<character id="manager_split_random_rookie" group="split.manager">
<category tags="[manager, officer, rookie]" faction="[scaleplate, alliance, faction.player]" race="split"/>
<skills>
<skill type="management" min="4" max="10"/>
<skill type="morale" min="4" max="10"/>

<skill type="engineering" max="1"/>
<skill type="piloting" exact="0"/>
<skill type="boarding" exact="0"/>
</skills>
<owner list="[scaleplate, alliance]"/>
</character>
</add>
</diff>
32 changes: 28 additions & 4 deletions libraries/parameters.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,32 @@
</replace>

<!-- Better Docking Behaviour WIP -->
<replace sel="/parameters/docking/dock[@tags='dock_xs spacesuit']/@timeout">300</replace>
<replace sel="/parameters/docking/dock[@tags='dock_s']/@timeout">300</replace>
<replace sel="/parameters/docking/dock[@tags='dock_m']/@timeout">300</replace>
<replace sel="/parameters/docking/dock[@tags='dock_l dock_xl']/@timeout">300</replace>
<!-- <replace sel="/parameters/docking/dock[@tags='dock_xs spacesuit']/@timeout">300</replace> -->
<replace sel="/parameters/docking/dock[@tags='dock_s']/@timeout">30</replace>
<replace sel="/parameters/docking/dock[@tags='dock_m']/@timeout">30</replace>
<replace sel="/parameters/docking/dock[@tags='dock_l dock_xl']/@timeout">60</replace>

<!-- <replace sel="/parameters/docking/dock[@tags='dock_xs spacesuit']/@maxdistance">300</replace> -->
<replace sel="/parameters/docking/dock[@tags='dock_s']/@maxdistance">500</replace>
<replace sel="/parameters/docking/dock[@tags='dock_m']/@maxdistance">500</replace>
<!-- <replace sel="/parameters/docking/dock[@tags='dock_l dock_xl']/@maxdistance">300</replace> -->

<!-- Sound adjustments -->
<replace sel="/parameters/sound/enginedetail/entry[@size='dock_xs']/@amount">1</replace>
<replace sel="/parameters/sound/enginedetail/entry[@size='dock_s']/@amount">2</replace>
<replace sel="/parameters/sound/enginedetail/entry[@size='dock_m']/@amount">3</replace>
<replace sel="/parameters/sound/enginedetail/entry[@size='dock_l']/@amount">4</replace>
<replace sel="/parameters/sound/enginedetail/entry[@size='dock_xl']/@amount">5</replace>

<replace sel="/parameters/sound/enginedetail/entry[@size='dock_xs']/@range">4000</replace>
<replace sel="/parameters/sound/enginedetail/entry[@size='dock_s']/@range">7500</replace>
<replace sel="/parameters/sound/enginedetail/entry[@size='dock_m']/@range">10000</replace>
<replace sel="/parameters/sound/enginedetail/entry[@size='dock_l']/@range">15000</replace>
<replace sel="/parameters/sound/enginedetail/entry[@size='dock_xl']/@range">20000</replace>

<!-- Mouse adjustments -->
<!-- <replace sel="/parameters/input/controllermouse/acceleration/@threshold">1</replace> -->

<!-- Fewer Background Comm -->
<replace sel="/parameters/voice/backgroundcomm/@range">50000</replace>
</diff>
27 changes: 27 additions & 0 deletions libraries/roles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<diff>
<add sel="/roles">
<role id="pilot" name="{20208,30101}" femalename="{20208,30102}" pluralname="{20208,30101}" description="{20208,20204}" tag="pilot" hired="true" type="crowd">
<skills>
<skill ref="piloting" relevance="90" />
<skill ref="morale" relevance="10" />
</skills>
<tiers>
<tier name="{20208,50401}" level="0"/>
<tier name="{20208,50501}" level="25"/>
<tier name="{20208,50601}" level="80"/>
</tiers>
</role>
<role id="manager" name="{20208,30301}" femalename="{20208,30301}" pluralname="{20208,30302}" description="{20208,20204}" tag="manager" hired="true" type="crowd">
<skills>
<skill ref="management" relevance="90" />
<skill ref="morale" relevance="10" />
</skills>
<tiers>
<tier name="{20208,50401}" level="0"/>
<tier name="{20208,50501}" level="25"/>
<tier name="{20208,50601}" level="80"/>
</tiers>
</role>
</add>
</diff>
29 changes: 29 additions & 0 deletions md/NPC_Instantiation.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<diff xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<replace sel="//do_all[@exact='$patch_npcs.count']/do_if">
<do_if value="$patch_npcs.{$k}.role == entityrole.service or $patch_npcs.{$k}.role == entityrole.marine or $patch_npcs.{$k}.role == entityrole.pilot or $patch_npcs.{$k}.role == entityrole.manager">
<debug_text text="'Patching NPC ' + $patch_npcs.{$k} + ' ' + $patch_npcs.{$k}.knownname + ' who should be flagged as temporary'" filter="savegame"/>
<set_entity_traits entity="$patch_npcs.{$k}" temporary="true"/>
</do_if>
</replace>

<!-- Weights for regular stations -->
<replace sel="//do_if[@value='this.$SelectedRace']/do_any">
<do_any>
<set_value name="this.$Role" exact="entityrole.service" weight="40"/>
<set_value name="this.$Role" exact="entityrole.marine" weight="10"/>
<set_value name="this.$Role" exact="entityrole.pilot" weight="20"/>
<set_value name="this.$Role" exact="entityrole.manager" weight="10"/>
</do_any>
</replace>
<!-- Weights for defence stations -->
<replace sel="//do_elseif[@value='this.$Object.isdefencestation']/do_all/do_any">
<do_any>
<set_value name="this.$Role" exact="entityrole.service" weight="30"/>
<set_value name="this.$Role" exact="entityrole.marine" weight="40"/>
<set_value name="this.$Role" exact="entityrole.pilot" weight="20"/>
<set_value name="this.$Role" exact="entityrole.manager" weight="5"/>
</do_any>
</replace>
</diff>

0 comments on commit c91b375

Please sign in to comment.