How to change dynamic relation system?

The place to discuss scripting and game modifications for X³: Farnham's Legacy

Moderators: Moderators for English X Forum, Scripting / Modding Moderators, Moderators for the X3:FL Forums

ZX9000
Posts: 113
Joined: Wed, 19. Sep 07, 22:15
x3

How to change dynamic relation system?

Post by ZX9000 » Sun, 9. May 21, 00:48

Having read in other threads that the way dynamic reputation works now is as intended, I guess this could be the right place to ask for a mod removing the feature?

User avatar
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)
Posts: 24950
Joined: Sun, 2. Apr 06, 16:38
x4

Re: How to change dynamic relation system?

Post by X2-Illuminatus » Sun, 9. May 21, 10:42

I split this from the unbalanced script request topic. I think it's more fitting to have an own topic.

You can make adjustments to dynamic relations by modifying addon2\types\globals.txt. See the respective section of the survival guide.
Nun verfügbar! X3: Farnham's Legacy - Ein neues Kapitel für einen alten Favoriten

Die komplette X-Roman-Reihe jetzt als Kindle E-Books! (Farnhams Legende, Nopileos, X3: Yoshiko, X3: Hüter der Tore, X3: Wächter der Erde)

Neuauflage der fünf X-Romane als Taschenbuch

The official X-novels Farnham's Legend, Nopileos, X3: Yoshiko as Kindle e-books!

Godalmighty83
Posts: 465
Joined: Wed, 22. Feb 06, 20:34
x3

Re: How to change dynamic relation system?

Post by Godalmighty83 » Sun, 9. May 21, 14:53

Would changing:

SG_DYNRACE_ENEMY and SG_DYNRACE_ENEMY_MAIN to 0

Be sufficient to stop the 'You gave someone of a race I didn't like a taxi ride, prepare to die!' reaction?
Xtended Mod Player.
Boron Hammerhead Pilot.

Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22201
Joined: Sun, 14. Nov 04, 23:26
x4

Re: How to change dynamic relation system?

Post by Cycrow » Sun, 9. May 21, 17:27

that will stop you losing rank with any enemies

you will still gain rank with friends, and you should still be locked out the higher ranks of enemys

zamiel
Posts: 41
Joined: Fri, 29. May 09, 10:17
x4

Re: How to change dynamic relation system?

Post by zamiel » Mon, 10. May 21, 09:09

Would I get a modified tag from changing this?

RegisterMe
Posts: 8903
Joined: Sun, 14. Oct 07, 17:47
x4

Re: How to change dynamic relation system?

Post by RegisterMe » Mon, 10. May 21, 10:59

Is there a way to "just change it back to the way it worked in TC / AP"?
I can't breathe.

- George Floyd, 25th May 2020

Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22201
Joined: Sun, 14. Nov 04, 23:26
x4

Re: How to change dynamic relation system?

Post by Cycrow » Mon, 10. May 21, 11:46

zamiel wrote:
Mon, 10. May 21, 09:09
Would I get a modified tag from changing this?
yes, editing globals will mark your game as modified
RegisterMe wrote:
Mon, 10. May 21, 10:59
Is there a way to "just change it back to the way it worked in TC / AP"?
Set all 5 DYNRACE values to 0
and set the Max noto to anything higher that 1000000

Code: Select all

SG_DYNRACE_FRIEND_ALLY;0;
SG_DYNRACE_FRIEND_HERO;0;
SG_DYNRACE_FRIEND_KNIGHT;0;
SG_DYNRACE_ENEMY;0;
SG_DYNRACE_ENEMY_MAIN;0;
SG_DYNRACE_MAXENEMYNOTO;1000000;

RegisterMe
Posts: 8903
Joined: Sun, 14. Oct 07, 17:47
x4

Re: How to change dynamic relation system?

Post by RegisterMe » Mon, 10. May 21, 12:28

Cycrow wrote:
Mon, 10. May 21, 11:46
Thank you :).
I can't breathe.

- George Floyd, 25th May 2020

RegisterMe
Posts: 8903
Joined: Sun, 14. Oct 07, 17:47
x4

Re: How to change dynamic relation system?

Post by RegisterMe » Mon, 10. May 21, 12:35

Sorry for the questions (never done anything like this before!). I don't have an addon2\types dir. Is it as simple as adding the types directory and then creating a globals.txt file with solely those changes?
I can't breathe.

- George Floyd, 25th May 2020

Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22201
Joined: Sun, 14. Nov 04, 23:26
x4

Re: How to change dynamic relation system?

Post by Cycrow » Mon, 10. May 21, 12:38

you will need to extract the current globals file and use that.
you can use the X3 Editor 2 to find and extract the file from the game data catalogs

once you have edited it, you can simply place it in addon2/types to be loaded

RegisterMe
Posts: 8903
Joined: Sun, 14. Oct 07, 17:47
x4

Re: How to change dynamic relation system?

Post by RegisterMe » Mon, 10. May 21, 13:27

I downloaded the X3 Editor 2, but I can't search within it. I manually looked through the .cat files and found more than one globals file, and when I "opened" them I had no idea what to do next eg which was the right one, what was in it, or how to extract it.

I don't have enough understanding to do this so I think I'll have to wait until somebody else packages it up somehow or produces an ELI5 for it.
I can't breathe.

- George Floyd, 25th May 2020

RegisterMe
Posts: 8903
Joined: Sun, 14. Oct 07, 17:47
x4

Re: How to change dynamic relation system?

Post by RegisterMe » Mon, 10. May 21, 17:41

Cycrow wrote:
Mon, 10. May 21, 12:38
you will need to extract the current globals file and use that.
you can use the X3 Editor 2 to find and extract the file from the game data catalogs

once you have edited it, you can simply place it in addon2/types to be loaded
OK a friend extracted the globals.txt file for me. I put it in steam\steamapps\common\X3 Terran Conflict\addon2\types and made the expected edits.

Something worked, because my game now has the modified tag. However the race rep changes did not work as expected. I just did my first combat mission for the Paranid and got a rep drop with the Argons and the Boron.

The file has the following lines:-

SG_DYNRACE_FRIEND_ALLY;0;
SG_DYNRACE_FRIEND_HERO;0;
SG_DYNRACE_FRIEND_KNIGHT;0;
SG_DYNRACE_ENEMY;0;
SG_DYNRACE_ENEMY_MAIN;0;
SG_DYNRACE_MAXENEMYNOTO;1000000;
I can't breathe.

- George Floyd, 25th May 2020

Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22201
Joined: Sun, 14. Nov 04, 23:26
x4

Re: How to change dynamic relation system?

Post by Cycrow » Mon, 10. May 21, 18:03

did you edit the existing entries, or just add those to the end ?

They should already exist in the file, so you just edit them to those values, and it should work.
if your game is modified, it means it must have loaded the file in

RegisterMe
Posts: 8903
Joined: Sun, 14. Oct 07, 17:47
x4

Re: How to change dynamic relation system?

Post by RegisterMe » Mon, 10. May 21, 18:08

Edited the existing entries. The only other two lines in the file with "DYNRACE" in them are:-

SG_DYNRACE_FRIEND_ALLOWCORP;1;
SG_DYNRACE_MIN_CAP;-10000;
I can't breathe.

- George Floyd, 25th May 2020

ZX9000
Posts: 113
Joined: Wed, 19. Sep 07, 22:15
x3

Re: How to change dynamic relation system?

Post by ZX9000 » Mon, 10. May 21, 18:45

Thanks for the pointers, will have to look at if this is something I'm able to get to work :)

Or just go for a full :pirat: run with no friends, no safe zones.

Godalmighty83
Posts: 465
Joined: Wed, 22. Feb 06, 20:34
x3

Re: How to change dynamic relation system?

Post by Godalmighty83 » Mon, 10. May 21, 19:55

X2-Illuminatus wrote:
Sun, 9. May 21, 10:42
I split this from the unbalanced script request topic. I think it's more fitting to have an own topic.

You can make adjustments to dynamic relations by modifying addon2\types\globals.txt. See the respective section of the survival guide.


Not seeing types in the Addon2 page via X3 editor 2.

Just:

loadscr
mods
mov
scripts
soundtrack
t
01-05.dat
lang
res
x3 files


I found a types/Globals in 04.dat?
Xtended Mod Player.
Boron Hammerhead Pilot.

User avatar
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)
Posts: 24950
Joined: Sun, 2. Apr 06, 16:38
x4

Re: How to change dynamic relation system?

Post by X2-Illuminatus » Mon, 10. May 21, 20:28

Most game files are stored in the catalog files. Within the 04.cat/dat all files are located under "addon2". Under "types" you find the Globals files you want. After extracting it to your game folder - the file should be located in x3 terran conflict\addon2\types then - it's a simple text file that can be edited with any text or xml editor.
extract Globals.png
You do not have the required permissions to view the files attached to this post.
Nun verfügbar! X3: Farnham's Legacy - Ein neues Kapitel für einen alten Favoriten

Die komplette X-Roman-Reihe jetzt als Kindle E-Books! (Farnhams Legende, Nopileos, X3: Yoshiko, X3: Hüter der Tore, X3: Wächter der Erde)

Neuauflage der fünf X-Romane als Taschenbuch

The official X-novels Farnham's Legend, Nopileos, X3: Yoshiko as Kindle e-books!

Godalmighty83
Posts: 465
Joined: Wed, 22. Feb 06, 20:34
x3

Re: How to change dynamic relation system?

Post by Godalmighty83 » Mon, 10. May 21, 21:14

Got it thanks, edited within x3 editor itself.

Game is coming up as modified so taking that as a sign it worked.

Will I have to redo those changes after any future patches etc?
Xtended Mod Player.
Boron Hammerhead Pilot.

User avatar
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)
Posts: 24950
Joined: Sun, 2. Apr 06, 16:38
x4

Re: How to change dynamic relation system?

Post by X2-Illuminatus » Mon, 10. May 21, 21:16

If you keep your file extracted, then it has the highest priority, and will always overwrite what's in the catalog files. If it's within a catalog file, then the globals file in the highest numbered catalog file will take effect.
Nun verfügbar! X3: Farnham's Legacy - Ein neues Kapitel für einen alten Favoriten

Die komplette X-Roman-Reihe jetzt als Kindle E-Books! (Farnhams Legende, Nopileos, X3: Yoshiko, X3: Hüter der Tore, X3: Wächter der Erde)

Neuauflage der fünf X-Romane als Taschenbuch

The official X-novels Farnham's Legend, Nopileos, X3: Yoshiko as Kindle e-books!

RegisterMe
Posts: 8903
Joined: Sun, 14. Oct 07, 17:47
x4

Re: How to change dynamic relation system?

Post by RegisterMe » Mon, 10. May 21, 21:52

At least at my end, something isn't right:

1. I removed the modified globals.txt and uninstalled the game.
2. I reinstalled and launched a new game. No modified tag.
3. I put the globals.txt back and launched the game. Modified tag.
4. I started a new Paranid Excellency game.
5. The only thing I then did was dock with the PHQ and buy some engine and rudder extensions for the Hyperion, then moved to Duke's Citadel and dock with the Paranid Equiment Dock, where I bought some software.

Which resulted in a rep drop for Argons and Borons.
I can't breathe.

- George Floyd, 25th May 2020

Post Reply

Return to “X³: Farnham's Legacy - Scripts and Modding”