Faction relationships

The place to discuss scripting and game modifications for X Rebirth.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

Deleted User

Faction relationships

Post by Deleted User »

How does the game handle faction relationships? would it also be able to handle sub-factions complex relationships?
Fenris159
Posts: 22
Joined: Tue, 19. Nov 13, 08:02

Post by Fenris159 »

Well currently the game has some factions appear as you meet them by name revealed, others remain unknown with no hope of discovering the faction since its either bugged or a feature missing. I know some factions are friends so you gain duel faction credit when doing missions. Your best bet would be to read the encyclopedia in game on factions and also look at the info "my character" section it will show your alignment towards factions listed.
User avatar
enenra
Posts: 7150
Joined: Fri, 8. Apr 05, 19:09
x4

Post by enenra »

The file you are looking for is the factions.xml in the libraries-folder. How exactly it works is anyone's guess at the moment since there doesn't seem to be anyone that has looked into it in more detail yet.
Deleted User

Post by Deleted User »

no, I mean how the game handles them... the next question would have been: can we add our own?
User avatar
Sandalpocalypse
Posts: 4447
Joined: Tue, 2. Dec 03, 22:28
x4

Post by Sandalpocalypse »

sure, why not? the factions file is a file like any other. use an <add> operation as defined in the tutorial. define relations as per the other factions in that file.
Irrational factors are clearly at work.
Deleted User

Post by Deleted User »

so, I've been looking through that file (I feel very stupid now, as it was in plain sight).

apparently, there is no sub-faction system.
BUT, there is a good-ish relationship system which should allow for some complex inter-relationship combat.
it is not mandatory to have relationships for ALL factions, I'd say there are some who are neutral to each other.

Only exception is Xenon, who have 0,5

there are no description nor pics/textures linked however. only reference numbers such as

Code: Select all

description="{20203,602}"
those values are also related to the UI, but I have no idea how.

EDIT: there is also a variable related to being by the police but I don't understand how it works.
User avatar
enenra
Posts: 7150
Joined: Fri, 8. Apr 05, 19:09
x4

Post by enenra »

Dark_Ansem wrote:so, I've been looking through that file (I feel very stupid now, as it was in plain sight).

apparently, there is no sub-faction system.
BUT, there is a good-ish relationship system which should allow for some complex inter-relationship combat.
it is not mandatory to have relationships for ALL factions, I'd say there are some who are neutral to each other.

Only exception is Xenon, who have 0,5

there are no description nor pics/textures linked however. only reference numbers such as

Code: Select all

description="{20203,602}"
those values are also related to the UI, but I have no idea how.

EDIT: there is also a variable related to being by the police but I don't understand how it works.
Those are text references to page id and text id. You'll find the entries in the 0001-044.xml in the t-folder. The one in your example would be:

Code: Select all

<page id="20203" title="Factions" descr="Faction names and descriptions" voice="yes">
 <t id="601">Albion Energy Subsidiary</t>
 <t id="602">When the PMC moved to corner the energy market to secure its needs, the AES was set up to deal with energy trade to the other corporations.</t>
</page>
Are you referring to the tags="police protective"? That might reference the behavior of these factions. Not sure.

Also, the faction system refers to a "primaryrace" which could be seen as a "faction" of a higher level. Referenced in the races.xml .
Deleted User

Post by Deleted User »

ah, the game stores all text in XML files. interesting, thanks!

I can't find this "primary" race in any document.
only a "primaryrace" object which could simply mean which species makes up the bulk of that race...
Deleted User

Post by Deleted User »

ah, the game stores all text in XML files. interesting, thanks!

I can't find this "primary" race in any document.
only a "primaryrace" object which could simply mean which species makes up the bulk of that race...

plus, there are a couple of referenced "Friend" "Neutral" "Enemy" factions, which I wonder what they could mean. perhaps for separate ships or lost ships around?
User avatar
Sandalpocalypse
Posts: 4447
Joined: Tue, 2. Dec 03, 22:28
x4

Post by Sandalpocalypse »

Are you referring to the tags="police protective"? That might reference the behavior of these factions. Not sure.
It defines a 'law and order' faction which may respond to attacks on assets other than its own.
Irrational factors are clearly at work.
Deleted User

Post by Deleted User »

how does that work?
User avatar
enenra
Posts: 7150
Joined: Fri, 8. Apr 05, 19:09
x4

Post by enenra »

Dark_Ansem wrote:ah, the game stores all text in XML files. interesting, thanks!

I can't find this "primary" race in any document.
only a "primaryrace" object which could simply mean which species makes up the bulk of that race...
Also, the faction system refers to a "primaryrace" which could be seen as a "faction" of a higher level. Referenced in the races.xml .
;)

Sandalpocalypse wrote:
Are you referring to the tags="police protective"? That might reference the behavior of these factions. Not sure.
It defines a 'law and order' faction which may respond to attacks on assets other than its own.
Which file are those defined in?
MutantDwarf
Posts: 716
Joined: Tue, 20. Jun 06, 02:29
x4

Post by MutantDwarf »

Dark_Ansem wrote:ah, the game stores all text in XML files. interesting, thanks!

I can't find this "primary" race in any document.
only a "primaryrace" object which could simply mean which species makes up the bulk of that race...

plus, there are a couple of referenced "Friend" "Neutral" "Enemy" factions, which I wonder what they could mean. perhaps for separate ships or lost ships around?
The "Friend", "Neutral", and "Enemy" factions are default ones that are always Friendly, Neutral, or Not-Friendly-At-All to the player. They're typically used to spawn ships in missions that are definitely one of those relations with the player, and so that messing with them doesn't impact relations with any of the other factions.
Deleted User

Post by Deleted User »

i see, thank you!

Return to “X Rebirth - Scripts and Modding”