X4: Foundations
0 of 0

File information

Last updated

Original upload

Created by

The Smiths

Uploaded by

albysmith

Virus scan

Safe to use

Tags for this mod

Any Pirate related issues. read this. - Factions.xml file in libraries is not set correctly. (11 comments)

  1. slater124
    slater124
    • member
    • 0 kudos
    <?xml version="1.0" encoding="utf-8"?>
    <!--Last exported: 29.11.2018 06:11:29

    Default Relation Ranges:
    self: 1.0 to 1.0
    member: 0.1 to 1.0
    friend: 0.01 to 1.0
    neutral:-0.01 to 0.01
    enemy: -1.0 to -0.01
    killmilitary: -1.0 to -0.1
    kill:-1.0 to -0.32
    nemesis:-1.0 to -1.0

    UI value mapping (analogously for negative values):
    1.0 = 30
    0.32= 25
    0.1 = 20
    0.032 = 15
    0.01= 10
    0.0032 = 5
    These values are fixed. Between them, logarithmic interpolation is used. Approximate formulas:
    uivalue = 10 * log10(relation * 1000)
    relation = 10^(uivalue / 10) / 1000
    Between -0.0032 and +0.0032 (UI -5...+5) linear interpolation is used, and 0.00064 equates to one UI value step.

    Note: Relations defined here apply only to gamestart. Relations may change through gameplay and/or plot.
    -->

    <diff>
    <add sel="/factions">
    <faction id="pirate" name="Pirate" description="{20203,10102}" shortname="PRT" primaryrace="argon" behaviourset="default" known="1" tags="claimspace police protective watchdoguser privateloadout publicloadout privateship publicship">
    <color r="128" g="77" b="0" />
    <icon active="faction_criminal" inactive="faction_criminal" />
    <licences>
    <licence type="capitalequipment" name="{20207,2061}" icon="bse_star" minrelation="0.1" precursor="ceremonyally" price="0" />
    <licence type="capitalship" name="{20207,3031}" icon="bse_star" minrelation="0.1" precursor="ceremonyally" price="0" />
    <licence type="ceremonyally" name="{20207,5031}" minrelation="0.1" price="0" />
    <licence type="ceremonyfriend" name="{20207,5021}" minrelation="0.01" price="0" />
    <licence type="generaluseequipment" name="{20207,2241}" minrelation="-0.01" price="0" />
    <licence type="generaluseship" name="{20207,2251}" minrelation="-0.01" price="0" />
    <licence type="militaryequipment" name="{20207,2051}" icon="bse_star" minrelation="0.01" precursor="ceremonyfriend" price="0" />
    <licence type="militaryship" name="{20207,3021}" icon="bse_star" minrelation="0.01" precursor="ceremonyfriend" price="0" />
    <licence type="station_equip_lxl" name="{20207,7191}" minrelation="1" precursor="ceremonyally" price="500000000" hidden="1" />
    <licence type="station_equip_sm" name="{20207,7181}" minrelation="0.5" precursor="ceremonyally" price="100000000" hidden="1" />
    <licence type="station_gen_advanced" name="{20207,7331}" minrelation="0.1" precursor="ceremonyally" price="0" />
    <licence type="station_gen_basic" name="{20207,7311}" minrelation="-0.01" price="0" />
    <licence type="station_gen_intermediate" name="{20207,7321}" minrelation="0.01" precursor="ceremonyfriend" price="0" />
    <licence type="tradesubscription" name="{20207,4011}" minrelation="0.1" precursor="ceremonyally" price="10000000" />
    <licence type="capitalequipment" factions="argon" />
    <licence type="generaluseequipment" factions="argon" />
    <licence type="militaryequipment" factions="argon" />
    <licence type="police" factions="argon" />
    </licences>
    <relations locked="1">
    <relation faction="player" relation="-1" />
    <relation faction="alliance" relation="-1" />
    <relation faction="antigone" relation="-1" />
    <relation faction="criminal" relation="0.0" />
    <relation faction="holyorder" relation="-1" />
    <relation faction="khaak" relation="-1" />
    <relation faction="scaleplate" relation="0.0" />
    <relation faction="smuggler" relation="0.0" />
    <relation faction="teladi" relation="-1" />
    <relation faction="argon" relation="-1" />
    <relation faction="xenon" relation="-1" />
    </relations>
    </faction>
    </add>
    <add sel="/factions/faction[@id='player']">
    <relations locked="1">
    <relation faction="pirate" relation="-1" />
    </relations>
    </add>
    <add sel="/factions/faction[@id='alliance']">
    <relations locked="1">
    <relation faction="pirate" relation="-1" />
    </relations>
    </add>
    <add sel="/factions/faction[@id='antigone']">
    <relations locked="1">
    <relation faction="pirate" relation="-1" />
    </relations>
    </add>
    <add sel="/factions/faction[@id='criminal']">
    <relations locked="1">
    <relation faction="pirate" relation="0.0" />
    </relations>
    </add>
    <add sel="/factions/faction[@id='holyorder']">
    <relations locked="1">
    <relation faction="pirate" relation="-1" />
    </relations>
    </add>
    <add sel="/factions/faction[@id='khaak']">
    <relations locked="-1">
    <relation faction="pirate" relation="-1" />
    </relations>
    </add>
    <add sel="/factions/faction[@id='scaleplate']">
    <relations locked="1">
    <relation faction="pirate" relation="0.0" />
    </relations>
    </add>
    <add sel="/factions/faction[@id='smuggler']">
    <relations locked="1">
    <relation faction="pirate" relation="0.0" />
    </relations>
    </add>
    <add sel="/factions/faction[@id='teladi']">
    <relations locked="1">
    <relation faction="pirate" relation="-1" />
    </relations>
    </add>
    <add sel="/factions/faction[@id='argon']">
    <relations locked="1">
    <relation faction="pirate" relation="-1" />
    </relations>
    </add>
    <add sel="/factions/faction[@id='xenon']">
    <relations locked="-1">
    <relation faction="pirate" relation="-1" />
    </relations>
    </add>

    <add sel="/factions">
    <faction id="meditech" name="Medi-tech" description="{20203,10102}" shortname="MED" primaryrace="argon" behaviourset="default" known="1" tags="claimspace police protective watchdoguser privateloadout publicloadout privateship publicship">
    <color r="255" g="255" b="255" />
    <icon active="faction_smuggler" inactive="faction_smuggler" />
    <licences>
    <licence type="capitalequipment" name="{20207,2061}" icon="bse_star" minrelation="0.1" precursor="ceremonyally" price="0" />
    <licence type="capitalship" name="{20207,3031}" icon="bse_star" minrelation="0.1" precursor="ceremonyally" price="0" />
    <licence type="ceremonyally" name="{20207,5031}" minrelation="0.1" price="0" />
    <licence type="ceremonyfriend" name="{20207,5021}" minrelation="0.01" price="0" />
    <licence type="generaluseequipment" name="{20207,2241}" minrelation="-0.01" price="0" />
    <licence type="generaluseship" name="{20207,2251}" minrelation="-0.01" price="0" />
    <licence type="militaryequipment" name="{20207,2051}" icon="bse_star" minrelation="0.01" precursor="ceremonyfriend" price="0" />
    <licence type="militaryship" name="{20207,3021}" icon="bse_star" minrelation="0.01" precursor="ceremonyfriend" price="0" />
    <licence type="station_equip_lxl" name="{20207,7191}" minrelation="1" precursor="ceremonyally" price="500000000" hidden="1" />
    <licence type="station_equip_sm" name="{20207,7181}" minrelation="0.5" precursor="ceremonyally" price="100000000" hidden="1" />
    <licence type="station_gen_advanced" name="{20207,7331}" minrelation="0.1" precursor="ceremonyally" price="0" />
    <licence type="station_gen_basic" name="{20207,7311}" minrelation="-0.01" price="0" />
    <licence type="station_gen_intermediate" name="{20207,7321}" minrelation="0.01" precursor="ceremonyfriend" price="0" />
    <licence type="tradesubscription" name="{20207,4011}" minrelation="0.1" precursor="ceremonyally" price="10000000" />
    <licence type="capitalequipment" factions="argon" />
    <licence type="generaluseequipment" factions="argon" />
    <licence type="militaryequipment" factions="argon" />
    <licence type="police" factions="argon" />
    </licences>
    <relations locked="0">
    <relation faction="player" relation="-0.1" />
    <relation faction="pirate" relation="-1" />
    <relation faction="alliance" relation="-0.1" />
    <relation faction="antigone" relation="-0.1" />
    <relation faction="criminal" relation="-0.1" />
    <relation faction="holyorder" relation="0.0" />
    <relation faction="khaak" relation="-1" />
    <relation faction="scaleplate" relation="0.0" />
    <relation faction="smuggler" relation="0.0" />
    <relation faction="teladi" relation="0.0" />
    <relation faction="argon" relation="-0.1" />
    <relation faction="xenon" relation="-1" />
    </relations>
    </faction>
    </add>

    <add sel="/factions/faction[@id='alliance']">
    <relations locked="0" >
    <relation faction="meditech" relation="0.0" />
    </relations>
    </add>
    <add sel="/factions/faction[@id='antigone']">
    <relations locked="0" >
    <relation faction="meditech" relation="0.0" />
    </relations>
    </add>
    <add sel="/factions/faction[@id='criminal']">
    <relations locked="0" >
    <relation faction="meditech" relation="-0.1" />
    </relations>
    </add>
    <add sel="/factions/faction[@id='holyorder']">
    <relations locked="0" >
    <relation faction="meditech" relation="0.0" />
    </relations>
    </add>
    <add sel="/factions/faction[@id='khaak']">
    <relations locked="0" >
    <relation faction="meditech" relation="-1" />
    </relations>
    </add>
    <add sel="/factions/faction[@id='scaleplate']">
    <relations locked="0" >
    <relation faction="meditech" relation="0.0" />
    </relations>
    </add>
    <add sel="/factions/faction[@id='smuggler']">
    <relations locked="0" >
    <relation faction="meditech" relation="0.0" />
    </relations>
    </add>
    <add sel="/factions/faction[@id='teladi']">
    <relations locked="0" >
    <relation faction="meditech" relation="0.0" />
    </relations>
    </add>
    <add sel="/factions/faction[@id='argon']">
    <relations locked="0" >
    <relation faction="meditech" relation="-0.05" />
    </relations>
    </add>
    <add sel="/factions/faction[@id='xenon']">
    <relations locked="0" >
    <relation faction="meditech" relation="-1" />
    </relations>
    </add>

    </diff>
    1. slater124
      slater124
      • member
      • 0 kudos
      Before, pirates were all honkey dorey with all factions except Xenon and Khaak, now they are hateful towards everyone. Which is correct. Also, the factions are unlocked, so they can have dynamic relations with each faction to try to either get on their side, (good or bad.)
    2. SeptimusRaven
      SeptimusRaven
      • member
      • 1 kudos
      I did something of the sort with my fix as well, only i set both Medi-tech and Pirates to be hostile to all factions and locked the relationships in order for it to stay that way. Tbh i think of Medi-tech as little more than pests that need to be cleared out and it's mostly due to that magical fleet comprising of a random assortment of vessels (out of witch 10% minimum are freighters) that DO NOT STOP appearing out of thin air unless you capture their HQ sector (blast every structure and build your own. the sector will then cede ownership to you). That being said, i'm wondering why is this something that the mod author did not take into consideration. Magical fleets aside (just build some battleships and take care of them the old fashion way), faction relationships should be clear and simple. Pirates should be wanted criminals in every other sector and that should be the end of it.
    3. SeptimusRaven
      SeptimusRaven
      • member
      • 1 kudos
      *sorry for the double post, looks like the server messed up somewhere*
    4. mewosmith
      mewosmith
      • member
      • 0 kudos
      change it this way if you wish to cheat i guess.
    5. mcdance
      mcdance
      • member
      • 0 kudos
      well, i like it when modders try hard and want to do something, i think we should give the modder (team) the opportunity to solve that.

      The change of faction.xml unfortunately doesn't change the behaviour of the ships at short notice, shortly before the destruction as a station. I guess that's exactly where the problem lies
    6. cidiantoby
      cidiantoby
      • member
      • 0 kudos
      I managed to fix the issue. Turns out you have to add <relation faction="pirate" relation="-1" /> to every faction in your save file also. I have started a new game with the edit above and it still did not work until I edited the save with it also.

      Now other ships will attack pirates and i no longer get my rep decreased.
    7. E8Boogie
      E8Boogie
      • member
      • 0 kudos
      This seemed to work at first but now in an Antigone sector, I'm getting in trouble with the authorities there and they seem fine with the pirate presence. What went wrong?
    8. heavyd842
      heavyd842
      • member
      • 0 kudos
      I haven't gotten too far into playing with this mod as using it in the beta 3.0 and it wasn't working properly even after adding these lines. Few things need to be updated if you get back to working on this at all. Three factions were left off when setting the relations (Hatikvah, Ministry and paranid) and certain galaxies weren't being spoken when moving into it. As for the factions, I got it to work with the other factions and not losing rep and them attacking at least the pirates. They don't attack meditech as I set them to be like the SCA. It at least works properly for now since it seems like a pretty cool mod. In case the author doesn't return, here's what I recommend changing:

      1. For Pirates in the top portion, I removed police from the tags since Xenon and Khaak don't have it set. Under relations, copy and paste five lines for the three missing factions mentioned above and the other two are for both meditech and pirates. Set pirates to 0.15 and all others to -1 including meditech. So everything should be -1 except pirates. As for the other relations below that part where it says add sel= (still under pirates though), I got it to work writing it like this:
      <add sel="//faction[@id='player']/relations">
      <relation faction="pirate" relation="-1" />
      </add>
      Pretty much repeat this for all the factions and don't forget to add lines in for Meditech and the other three factions too.

      2. For Meditech, I left police in the tags line but added after it policefaction="argon". Reason being is Hatikvah has police set by the devs but Xenon and Khaak do not. Since MediTech seem more like Hatikvah/SCA and Pirates seem more like Xenon, figured it was best to do it that way. Same things here for relations. Add five extra lines (three for the missing factions and two for Meditech and pirates). Set MediTech to 0.15 and pirates, Xenon and Khaak to -1. All others I set to -0.0032. This way you have a chance to improve relations with them and so they don't start off as hostile. Then same thing with these guys where need to replace the add sel= with the lines from Pirates. Just be sure to add change Meditech (if copied from above) to Pirates and set them to -1. For the relations, I left the same as what was pasted here for MediTech with the exception of criminal and agron set to -0.0032.

      Hope this helps you all who want to use the mod. Hoping the author comes back and gets some time to work on this.
  2. raim729
    raim729
    • member
    • 0 kudos
    Hello,

    Their changes have a big disadvantage.
    I get infinite ships.
    That spoils, that game is not fun then.
    Player does not need ships as a gift. Pity this Nachtei.
    Otherwise good.
  3. Napalm1987
    Napalm1987
    • member
    • 0 kudos
    Non riesco a capire la mia reputazione con i Pirati non sale anche se uccido xenon nel loro settore come mai? sempre -30