Stellaris

Stellaris

Espionage Operation: Influence Ethics
93 Comments
joseph_anthony_king  [author] 25 Mar @ 8:51pm 
Thank you to everyone for your support over the last four years but I will no longer be able to maintain this project going forward. Please feel free to clone the repository at: https://github.com/Joseph-Anthony-King/influence_ethics.git
joseph_anthony_king  [author] 13 Nov, 2024 @ 10:00am 
Updated to version 3.14 after reviewing the patch notes, no conflicts noted. Please make any reports of any issues here and I will try to follow up on them. Thank you.

https://stellaris.paradoxwikis.com/Patch_3.14
joseph_anthony_king  [author] 17 Sep, 2024 @ 6:06pm 
Please feel free to copy the code and implement it in your mod if you want to take responsibility for maintaining base files without renumeration.
joseph_anthony_king  [author] 17 Sep, 2024 @ 6:03pm 
Just an update for everyone, I found a mod, Expanded Espionage and Diplomacy, that adds espionage operations to the ai, https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2574175110 . It does this by modding the 00_base_policies.txt file and the 00_base_strategies.txt file both located in ai_espionage folder as indicated by Ever Universe. I'm not going to be implementing that in this mod. I currently have the Forward Earth mods noted above that implement extensive mods to base files the common folder. To be frank, every time there is a major update it is big freaking pain in the arse. Those files change so often that each update already takes about a day for the few mods I currently have... so I'm not doing that anymore. The code can be found here: https://github.com/Joseph-Anthony-King/influence_ethics Good luck.
joseph_anthony_king  [author] 16 Sep, 2024 @ 1:59pm 
Thanks @Ever Universe! I'll make the appropriate updates.
Ever Universe 16 Sep, 2024 @ 4:51am 
@joseph_anthony_king; AI needs to attribute a spynetwork strategy first to a spynetwork, and within that spynetwork strategy there are specific operations defined that can be used by AI. In turn, each of those operations has an AI random weight associated with them through espionage policies. All of those are within the ai_espionage folder. espionage_operation_types only creates the operations, but it doesn't enable AI to actually use them because AI needs to know what to do with them first, which is scripted within ai_espionage. That wiki page is only for operation modding. From what I can see, the wiki doesn't have a page for AI espionage modding. You don't need a wiki page anyway. It's pretty easy to figure it out by looking at how vanilla scripts do it. I myself have scripted dozens of operations to work for AI, and ai_espionage is a crucial folder for such.
joseph_anthony_king  [author] 15 Sep, 2024 @ 5:27pm 
@Ever Universe, I'm not seeing that as a requirement in the Stellaris wiki. What documentation is there regarding that?

https://stellaris.paradoxwikis.com/Espionage_modding
Ever Universe 15 Sep, 2024 @ 6:11am 
@Batniel; From what I see in the files, AI can't use this operation because it's not scripted in ai_espionage.
joseph_anthony_king  [author] 13 Sep, 2024 @ 4:53pm 
Updated to version 3.13, and FYI... I checked it out and the AI should be able to use this.
joseph_anthony_king  [author] 19 Jun, 2024 @ 12:03pm 
Hi Batinel, I don't believe so
Batniel 19 Jun, 2024 @ 3:00am 
Thank you for the update! Does the AI use it?
joseph_anthony_king  [author] 18 Jun, 2024 @ 1:09pm 
Hello everyone! Sorry I was away for awhile but I've built a new custom PC and have updated this mod to version 3.12.*! If any one is interested you can check out my custom build at:

https://pcpartpicker.com/b/tjrrxr

:steamhappy:
joseph_anthony_king  [author] 20 May, 2024 @ 3:08pm 
Just an FYI, I'm currently selling the gaming laptop this mod was coded on to finance a new custom deaktop machine and should be able to update this by mid to late June. For anyone interested it's an ASUS G703GS-WS71 and is a great machine. The RBG effects are not working but I used a Logitech keyboard and used this pretty much as a desktop. The current top bid is $260 with a buy it now price of $390. If you're interested here is a link to the Ebay listing, the auction closes on Tuesday at 9pm PST:

https://www.ebay.com/itm/315366606997?mkcid=16&mkevt=1&mkrid=711-127632-2357-0&ssspo=TfaBbqCxTc-&sssrc=4429486&ssuid=TfaBbqCxTc-&var=&widget_ver=artemis&media=COPY
joseph_anthony_king  [author] 10 Apr, 2024 @ 9:32am 
Hello everyone, sorry to say this is no longer being maintained. My gaming laptop is getting older so I want to sell it to finance a new desktop before it gets too old. I'm not sure when that will happen so this is no longer being maintained.

Please feel free to copy this and make your version. Sorry everyone.
joseph_anthony_king  [author] 10 Apr, 2024 @ 9:28am 
Sorry SanJJ... not happening. I'm saving up to make a new desktop and no longer have a computer.
SanJJ 22 Mar, 2024 @ 10:09am 
Waiting for an update!
joseph_anthony_king  [author] 8 Jan, 2024 @ 1:00pm 
Just a quick note on mechanics, just like in real life there is the possibility for unintended consequences. Your empires ethics are FAVORED but not determinative, your action can have unintended consequences... like the US sponsored Shah autocoup ended up leading to the Islamic Republic. This is by design... sorry. :steammocking:
joseph_anthony_king  [author] 8 Jan, 2024 @ 12:58pm 
Updated to version 3.10... sorry for the delay!
Kaiju Cuddlebug 31 Dec, 2023 @ 8:12am 
Favorited and diligently waiting for 3.10 update
Palestina Libre 10 Dec, 2023 @ 10:06am 
Mod used to work, for some reason now it doesn't. Everything appears to function as normal except the ethics attraction either seems exceptionally weak or nonexistent.
FailSafe 27 Nov, 2023 @ 9:14am 
So, tried this in a recent playthrough, ran it 3+ times in a row for 3 separate authoritarian empires vs my egal/xenophile - not only did their ethics not shift to even one of mine, one of them became more militaristic, and another more xenophobic...

So I'm thinking either its not working or the attraction needs to be stronger?

Also worth a mention, it's still using energy credits, not influence, which is the only reason I could even afford to spam it like that :D
FailSafe 20 Nov, 2023 @ 5:07am 
Just a quick mention, I know someone mentioned do the AI use it, and you thought they should as you haven't forbidden it, but I'm not sure if that is how it works as each operation has a weight attached to it so the AI can decide which to use, so in theory if you didn't add weights, the AI will not use it :)
arieviloj 11 Oct, 2023 @ 6:16pm 
OMG another mod that i need in my current save, Save game comp?
joseph_anthony_king  [author] 11 Oct, 2023 @ 5:09pm 
Updated to version 3.9! :steamhappy:
joseph_anthony_king  [author] 10 May, 2023 @ 4:53pm 
Updated to version 3.8! :steamhappy:
WaspX 12 Apr, 2023 @ 3:45am 
@Auren was just about to use this mod but I play with Ethics and Civics Bug Branch. Have you uploaded your bug branch compatible version yet?
joseph_anthony_king  [author] 16 Mar, 2023 @ 9:54am 
Updated to version 3.7.*! :steamhappy:
joseph_anthony_king  [author] 16 Mar, 2023 @ 9:54am 
Hi @Auren! No, I don't mind at all. Please feel free to use this mod in your own mods. I consider my mods as open source. :steamhappy:
Auren 4 Mar, 2023 @ 6:58pm 
So yeah, I ended up spending several hours making a version of this mod that would work with the Civics and Ethics: Bug Branch Mod and *probably* also work with the Civics and Ethics Classic Rework Mod. Do you mind if I publish that version as long as I give you credit? If not, no big deal, but figured some others might like a version that includes the additional Ethics that are included in those mods.
Auren 4 Mar, 2023 @ 10:17am 
Hey there. I'm curious if this mod works with other mods like the Bugged Ethics Mod, which within its base adds more Ethics within the traditional Ethics choices. If not, do you mind if I make my own version of this mod that can also work with the expanded Ethics from the Bugged Ethics Mod?
Erazil 10 Feb, 2023 @ 7:29pm 
you are welcome :)
joseph_anthony_king  [author] 10 Feb, 2023 @ 8:53am 
...and thus saving the best for last... I LIKE IT @ERAZIL! Thank you for the feedback, I've gone ahead and made the change... thanks! :steamhappy:
Erazil 7 Feb, 2023 @ 12:33pm 
Thanks, that's exactly what I'm looking for :)
( I don't understand why paradox didn't do it.... )

just a small remark about the display order, apparently it is sorted alphabetically by file name AND of course by order in the files.

to add the spy operation of this mod is at the end of the list and keep the logic of display by level of infiltration it is enough to rename the file "influence_ethics_operations.txt" in "z_influence_ethics_operations.txt" for example, or a name beginning with a letter that after the O of "operation.txt".

https://prnt.sc/pCumEJdd6rAr
a small screenshot to see the result (interface in French but it does not change anything to the result I think ;) )
joseph_anthony_king  [author] 12 Dec, 2022 @ 10:48am 
Updated to version 3.6.*! :steamhappy:
joseph_anthony_king  [author] 3 Oct, 2022 @ 2:43pm 
Thanks Blueberry1Vomi1t!
UnseelieSide 3 Oct, 2022 @ 8:21am 
this is one of those mods which you really have to ask why the devs didn't put it in the base game.
joseph_anthony_king  [author] 21 Sep, 2022 @ 11:50am 
Updated to version 3.5.*! :steamhappy:
joseph_anthony_king  [author] 17 Sep, 2022 @ 12:05pm 
Hi @CTH2004, Patchezs mod may do that. :steamhappy:
CTH2004 23 Aug, 2022 @ 10:18am 
I wish that, if you have 2 ethics, it doesn't apply the negitive one to your other ethics. So, if I have fanatic xenopile and equaltirian, equaltarian only get's the bonus, not the negative.
joseph_anthony_king  [author] 19 Aug, 2022 @ 12:37pm 
Yeah, definitley Patchezs... great work! :steamhappy:
Patchezs 18 Aug, 2022 @ 12:48pm 
I was toying around with the mod files and I developed a solution that would let the player choose which ethics you want to steer a target empire towards - even if you don't have those ethics (or are a gestalt empire).

Basically I split the operation into four different operations, for each ethics axis (one for authority, militarism, spirituality, and xenophobia). Then in the second stage of the operation, you choose which side of that axis you want to promote (e.g. xenophilia or xenophobia, etc.)

Would you be okay with me releasing my own branch of this mod (with full credit to you as the original author) that makes that possible?
joseph_anthony_king  [author] 16 Aug, 2022 @ 4:24pm 
This operation now only applies to non-gestalt empires... both in terms of originator and target.
joseph_anthony_king  [author] 16 Aug, 2022 @ 3:49pm 
Hi patchezs, unfortunately no... there is no way to choose an ethic. It's been a while since I wrote this but I just took a look at the code and I could only create a weight towards particular ethics. The actual event is like a random die roll and I do not have the ability to change that. Unintended consequences are a risk with any intelligence operation... in the real work look at Iran after the US intervention in the 50's. I'm thinking about removing the operation for Gestalt empires but as for all others... use with caution... just like the real world.
Patchezs 12 Aug, 2022 @ 9:15pm 
Would it be possible to choose what ethics the target empire is steered towards?

I'm playing as a Rogue Servitor, but I want to steer neighbouring empires towards an egalitarian/pacifist path. Since my empire is just "Gestalt" I don't seem to have the ability to influence them towards any particular ethic - unless I'm missing it?
joseph_anthony_king  [author] 5 Aug, 2022 @ 11:30am 
Hi @Yaddah and @Reckless, this was based on the pre-existing intelligence operations. The code can be reviewed here:

https://github.com/Joseph-Anthony-King/influence_ethics

The potential targets are listed here:

https://github.com/Joseph-Anthony-King/influence_ethics/blob/main/common/espionage_operation_types/influence_ethics_operations.txt

potential = {
has_nemesis = yes
target = {
not = {
has_country_flag = influence_target
}
}
}

If i'm reading this correctly they would be valid targets of this operation. Is that what you're seeing and do you think this should be changed?
Reckless 17 Jul, 2022 @ 4:39pm 
ye, nice question, what about gestalt?
Yaddah 16 Jul, 2022 @ 2:53am 
Hey. What happens with Gestalts?
joseph_anthony_king  [author] 12 May, 2022 @ 9:50am 
Updated to version 3.4!
joseph_anthony_king  [author] 25 Apr, 2022 @ 9:17am 
Hi @rips, sorry but I'm not getting notified about comments on these mods. I did not add AI logic to the mod but such logic isn't included in the default operations. As such, I do not see why the AI would not be able to use the new operation.