Stellaris

Stellaris

Dux' Crisis Custodian
49 Comments
Duxatious  [author] 21 Jul @ 1:40am 
Now it's a matter of setting the timeframe for the opinion-decay. The timeframe can be set any time before the relation-flags are set, which is currently done on the monthly tick after the country discovers you're a crisis. I'm thinking of giving the player a few options for how long it takes to decay at game-start. Options may include 10% every month (debugging), every year (easy), five years (medium), 10 years (long game), or 25 years (turns out forgiveness flows slowly when you're destroying the galaxy).
Duxatious  [author] 21 Jul @ 1:40am 
Good news, the framework for triggered_opinion decay is now built, using relation-flags to allow decay to occur between specific countries. Two crisis empires will have separate opinion decay, which should hold up in multiplayer.

The decay currently comes in increments of 10% with a placeholder time of 10 years. Your triggered crisis opinion will disappear 100 years after the witnessing-country learns of your status as a crisis. In order to know you are a crisis (and for the opinion to decay) a country must have communications with you, and either you are a level 5 crisis or they have level 2 intel on your government.
J Rockit 11 Jul @ 3:56pm 
Thanks for the time and effort :steamthumbsup: looking forward to future version(s).
Duxatious  [author] 11 Jul @ 11:03am 
There should no longer be triggered opinion penalty duplication. I'm currently building a system to decrease a triggered opinion penalty in a way that mimics decay and disables the triggered opinion penalty when it reaches 0 or inverts.
Duxatious  [author] 8 Jul @ 12:50pm 
Okay the solution to replacing a triggered opinion modifier is to replaced the entire file containing the original. This makes the mod more likely to cause conflicts with mods that modify the same file, but it does mean there can only be one of each triggered opinion modifier.
Duxatious  [author] 8 Jul @ 12:39pm 
@J Rockit, Okay it seems that the vanilla version isn't being overwritten by the version added by this mod, causing it to duplicate — likely something to do with the way triggered opinion modifiers work. The version handled by this mod still accepts the Crisis Opinion Reduction from this mod. As for how to stop the duplication, I'm currently browsing bug reports and wiki pages to understand how this might be happening when both triggered opinion modifiers share the same id. This same bug isn't happening for regular opinion modifiers such as fallen_wannabe.

The reason it fails to decay is due to it being a triggered opinion modifier and they don't decay (there are no examples of this in-game or in the code). I'm looking into adding decay to the triggered opinion modifier through a yearly event incrementing a variable which would gradually reduce the triggered opinion modifier down to zero, then removing it.
J Rockit 7 Jul @ 1:05pm 
For me, decay is not happening at all and indeed I am receiving a SECOND opinion malus which is the exact same as current crisis level i.e (Cosmogenesis -200, -200).
Duxatious  [author] 6 Jul @ 1:15am 
@SMN665 Yes, but beware leaving a Fallen Cosmogenesis Empire behind as the Custodian as they can be quite difficult to unseat if you choose to continue playing after winning.
SMN665 6 Jul @ 1:13am 
So I can finally: Galactic Cosmogenisis Custodian? :0
Duxatious  [author] 5 Jul @ 11:08pm 
@Aniki I believe it should be, though it would depend on the stage of the game you're in. It won't reverse Glacom Declaring you a Crisis if it has already happened, but it will allow a sitting Custodian or Emperor to become the Crisis. I would recommend backing up your savegame just in case, especially if you're playing with any other mods.
Aniki 5 Jul @ 6:01pm 
Hi, is this save game compatible and does it also work with the emperor path or just custodian?
霜糖大油条 25 May @ 6:58am 
Exactly the mod I need thank you!
Duxatious  [author] 22 May @ 9:47am 
Behemoth Fury was disabled for Wilderness empires because it creates a special zone on the capital that relied on pops. The recent update supposedly fixes this issue so I intend to check if any code changes are necessary.
CL Black 22 May @ 9:19am 
Ayy I heard that the reason why they removed crisis perks from wilderness was - because them eating "pops" from wilderness broke the game - has that been fixed or is this just a myth? :o
HavocSpecialist38 15 May @ 11:50pm 
Thank you so much.
Duxatious  [author] 14 May @ 2:09pm 
@HavocSpecialist38 Crisis opinion-penalties have been modified. You can pick how bad the opinion penalties are, as well as cause them to decay if you have Defender of the Galaxy, or are the Custodian/Emperor. There are also options for decay if there's an active crisis.
HavocSpecialist38 14 May @ 12:32am 
Thank you for offering but I don't want to bother you over this. I'll figure something out.
Duxatious  [author] 13 May @ 4:30pm 
I did not modify the three opinion penalties from going behemoth fury. One is a flat -1000 for trying to destroy the galaxy, another is -500 per Behemoth Rampage that destroys a colony of theirs, the third is Enraged Behemoth with -50 per time a rampaging behemoth enters an owned system.

I could lessen the diplo penalties for Behemoth Fury, Cosmogenesis, and Nemesis, but how low should the penalties be? It should be low enough that some empires still want to fight you, but not low enough that empires respond to "They're trying to destroy the galaxy!" with "Just another Tuesday."

It is also possible introduce a system where the player can set diplo penalties for going crisis, with options for fractions of original opinion-values, though this wouldn't fix values already applied. If you just want a quick fix I can write you a console command to remove the opinion values.
HavocSpecialist38 13 May @ 4:07pm 
Okay, I got the Crisis Custodian, then took the final stage of the Behemoth Fury. While I don't get kicked from the Galactic Community or declared a crisis, the whole galaxy still goes full aggro and hate me.
Duxatious  [author] 11 May @ 5:24am 
Updated, should no longer be declared crisis or targeted by a galactic war.
Norym 11 May @ 5:19am 
can you make it for behemoth fury too? please thanks
Norym 10 May @ 6:06pm 
nice! thanks a lot
Duxatious  [author] 9 May @ 3:30am 
You are no longer forced to leave your federation. This change was made to line 199 of 00_crisis_levels.txt.
Norym 9 May @ 3:27am 
what about if you have a federation?
Duxatious  [author] 27 Feb @ 7:02am 
@Mochi Glad to hear it worked, thanks for posting!
Coconut Mochi 26 Feb @ 9:17pm 
works for me even after installing mid-game, the resolution is kinda hidden away in its own drop-down menu at the very bottom of the resolution list so it can be easy to miss
Duxatious  [author] 5 Feb @ 2:58pm 
This mod should work fine in a modded multiplayer game, its coding changes are rather primitive. As far as I can tell it should function fine if added midway through a game. Would you be able to describe what doesn't seem to work? Are you experiencing issues with the Crisis Custodian Resolution, Defender of the Galaxy, Galactic Nemesis, Cosmogenesis?
There may be conflicts with other mods that alter the Ascension Perks, but the resolution to become custodian while you have a Crisis perk was already reworked to avoid compatibility issues.
andreiml2006 5 Feb @ 1:16pm 
Also, does it work to be added over a game I already started? Asking because it doesn't seem to.
andreiml2006 5 Feb @ 12:52pm 
Does it work on a multiplayer game? I am the host of it and I am only playing it with a friend.
Duxatious  [author] 4 Feb @ 3:29pm 
No, this mod doesn't affect purging, but you can check out my other mod Dux' Purging Enigmatically - a mod that raises the intel level required for other empires to know you're purging. This applies to the Synaptic Lathe.
SYAWALTDL 4 Feb @ 3:05pm 
Also does this mod has changed genocidal affect when you use Synaptic Lathe
Duxatious  [author] 4 Feb @ 7:16am 
Then again, Nemesis empires that reach level 5 cannot be part of Galcom, so removing it in the middle of a game may see you booted from Galcom.
Duxatious  [author] 4 Feb @ 7:13am 
This mod should work fine if added in the middle of a game.
As far as I am aware it can also be removed in the middle of a game as long as no empire has proposed the Crisis Becomes Custodian Resolution.
SYAWALTDL 4 Feb @ 3:59am 
Is the can be load in middle of game
Duxatious  [author] 24 Dec, 2024 @ 8:52am 
Updated images to highlight where the resolution is.
Duxatious  [author] 24 Dec, 2024 @ 8:40am 
Crisis Custodianship.
dabizi 24 Dec, 2024 @ 8:38am 
oh ty, but what category?
Duxatious  [author] 24 Dec, 2024 @ 7:11am 
The Resolution for a Crisis to become Custodian is now separate so as not to affect other mods. You should see it in a separate category.
dabizi 24 Dec, 2024 @ 7:09am 
option to become custodian as a crisis does not pop up in the galactic reforms page, despite me being on the council and by far the most powerful
Duxatious  [author] 29 Sep, 2024 @ 8:05am 
According to the modding wiki most of the content modified by this mod are LIOS (Last In Only Served), so I presume it will function better if it's lower on the mod load order, after any other mods that also modify ap_become_the_crisis, ap_cosmogenesis, ap_defender_of_the_galaxy, crisis_level_5, or the has_been_declared_crisis scripted trigger.
Duxatious  [author] 29 Sep, 2024 @ 7:44am 
@Syawaltdl could you provide further details? By not work do you mean that you can't take a Crisis Perk if you're Custodian? Can't become Custodian if you're a Crisis? Can't take Defender of the Galaxy and Cosmogenesis/Nemesis?
This mod adds a new resolution allowing a Crisis Empire to nominate themself as Custodian, but this mod doesn't change the regular Nominate Custodian resolution due to compatibility issues.
SYAWALTDL 29 Sep, 2024 @ 5:15am 
What order of this need to activated because i play with many mod and it doesn't seem to work
The Lady Laydralae 11 Jun, 2024 @ 11:25am 
Thank you very much!
The Lady Laydralae 11 Jun, 2024 @ 11:10am 
That is indeed the correct mod.

Sounds good.
Duxatious  [author] 11 Jun, 2024 @ 9:40am 
After taking a look I decided it'd be much more cross-compatible to create a new resolution that would be unaffected by other mods altering vanilla content.
Duxatious  [author] 11 Jun, 2024 @ 7:42am 
This version?
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2928840618&searchtext=NGS

Taking a look at the vote weights now.
Also Stellaris uses a mix of FIOS and LIOS, meaning some things that come first take priority, some things that come last take priority. I'll see what can be done, though I'll probably just look at NGS' code and see if I can make conditional modifiers.
The Lady Laydralae 11 Jun, 2024 @ 7:21am 
I have other mods active, including one that adds resolutions, but yours is at the bottom of the load order and i dont think that mod changes any resolutions but i may be wrong. I get the error text "A Custodianship would reveal our plans for the Galaxy".

I think I found the problem, I have a mod New Galactic System (NGS) active that makes chances to the 01_resolutions_nemesis.txt file; changing AI vote weights. I tried disabling it and launching my game but it crashed when i tried to open the GalCom.

I went into that mod's resolution file and commented out the same things you commented our for yours, and it works now. This suggests to me that the mods at the top of the load order have game file edit priority over those at the bottom; and here I thought it was reversed? Or something else is going on.

This fix will last until the author of that mod updates theirs, so a patch would be appriciated.
Duxatious  [author] 11 Jun, 2024 @ 3:52am 
No, you should be able to take Cosmogenesis prior to becoming custodian.
I just tested this on a save and I was able to become Custodian with the Cosmogenesis perk.
Can you elaborate on your problem? Are there any tooltips? There was previously a tooltip saying something along the lines of "A Custodianship would reveal our plans for the Galaxy" but I fixed that on a previous update.
The Lady Laydralae 10 Jun, 2024 @ 10:32pm 
I have Cosmogensis and stellaris will not let me be nominated as Custodian. do I need to be custodian first?