How to invoke the Add/Remove Factions UI?

The place to discuss scripting and game modifications for X4: Foundations.

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

user1679
Posts: 1088
Joined: Fri, 20. Jul 18, 23:20

How to invoke the Add/Remove Factions UI?

Post by user1679 »

When you create a blacklist, there's a button that says "Add/Remove Factions" and when you press it, a scrollable dialog appears with the
factions listed for you to check/uncheck the ones you want.

The text for "Add/Remove Factions" is {1001, 9156} and I used Notepad++ "find in files" to search all base game files for this and nothing was found.
I also looked for a script file that creates the blacklist but couldn't find anything.

I would like to use this instead of hard coding factions so users can use additional faction mods if they want. Any idea where I can find the code
for this list so I can see how it's implemented?

Thanks!
Last edited by user1679 on Mon, 22. Aug 22, 02:52, edited 2 times in total.
User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13485
Joined: Sun, 15. Feb 04, 20:12
x4

Re: How to invoke the Add/Remove Factions UI

Post by euclid »

It's in ui/addons/ego_detailmontor/menu_playerinfo.lua lines 4693, 4811, 5065.

Cheers Euclid
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786
user1679
Posts: 1088
Joined: Fri, 20. Jul 18, 23:20

Re: How to invoke the Add/Remove Factions UI

Post by user1679 »

euclid wrote: Sat, 20. Aug 22, 11:21 It's in ui/addons/ego_detailmontor/menu_playerinfo.lua lines 4693, 4811, 5065.

Cheers Euclid
Ah, thanks. When I extracted the base game files I didn't extract the UI folder.

Return to “X4: Foundations - Scripts and Modding”