Stellaris

Stellaris

First Ruler Stays
24 Comments
The Unknown Guy 28 May, 2021 @ 11:31am 
Re: character cloning: it happened to me recently
MachEvil 24 Apr, 2021 @ 4:23am 
Is this still okay with 3.02?
Velich  [author] 15 Apr, 2021 @ 9:03pm 
I was aware of this. I've made a change to the mod. This should allow it to still be used in 3.0.1 for anyone still wanting non-governor demotion.

There was a bug that caused my Envoy who got elected down the line to be cloned into my First Ruler's chosen job class after their removal from office, giving me an Admiral and an Envoy with the same name and portrait. I believe I fixed this with a silent update a week ago, but the change I made to make this 3.0.1 compatible might make that happen again. If anyone encounters this, do comment.
arieviloj 15 Apr, 2021 @ 1:46pm 
A change has appeared in this update similar to its mod.
explodoboy 9 Apr, 2021 @ 11:55am 
Finally, I can use this mod! Thank you!
Velich  [author] 9 Apr, 2021 @ 9:25am 
Ruler traits now carry over as intended. Fixed the count for new class traits since it was sometimes generated 4. Weighted down negative traits since I was almost always getting one during my testing.

Contemplating a no-menu version as a separate mod.

A random assignment would take about 5 minutes to make, so it should be up soon. Ethics/Government based assignment is also possible, but the main difficulty of that is how to actually determine which classes are most relevant to which ethics.

I'm thinking in order of priority:

Militarist - Admiral
Egalitarian - Governor
Materialist - Scientist
Xenophobe - General
arieviloj 9 Apr, 2021 @ 6:49am 
awesome thx!
FinePhenomena 9 Apr, 2021 @ 4:35am 
Thank you for this!!
♤ |_Pandora_| ♤ 9 Apr, 2021 @ 2:37am 
Wow
Velich  [author] 8 Apr, 2021 @ 9:41pm 
Good news. Like it says in the description, this is mostly functioning now. I did write a bunch of script for carrying over the Ruler traits, but the only time this actually did anything, the ruler just ended up with 4 ruler traits in their re-election campaign.

So if you don't care about your Ruler's first set of Ruler traits, this should work entirely as intended again.
V i l l a i n 8 Apr, 2021 @ 5:29pm 
good to know
Velich  [author] 8 Apr, 2021 @ 5:26pm 
This mod became something I really wanted right after I decided to not play Authoritarian/Gestalt for once lol. MIA didn't show up when I was searching though.

An update to this is in the works.

Removing the ruler traits from the new class and replacing them in their Ruler set in case they get re-elected. This part's already done.

As for their new class traits, I'm just going to randomly generate 2 or 3 of them after carrying over race-related ones like Synthetic. This is going to take time. Trying to base this on level, but for the most part, I'm not really worried about balancing their traits given the game doesn't add more after 3 anyway.

Feel like your initial Ruler should be pretty solid of all people.
V i l l a i n 8 Apr, 2021 @ 5:07pm 
Good job Nano, this gives me a reason to make a democratic nation, lol
Sarus 8 Apr, 2021 @ 4:56pm 
:) always wanted a mod like this, and actually gives me reason to use election governments, and starting ruler could then lead the glorious fleets, or go the sciences
Velich  [author] 8 Apr, 2021 @ 3:03pm 
I looked into that mod, Sarus, and yes, it's possible and implemented that way now.

The MIA mod has a very thorough process for switching out all of the clone's Ruler traits with Governor traits one-by-one. I was wondering why, and yeah, it turns out that forcefully cloning the Ruler right before they're removed from the position keeps their Ruler traits.

The exacts to this are confusing though. Every leader, if you look in the saves, has traits for all five roles. They swap them when they move to and from Ruler. So there should be a method to force that process.


For now, it's uncertain as to whether this clone's traits are simply not displaying the correct ones or if they're actually inactive . If it's the latter, this is at least up for the RP enthusiasts.

I'm still looking into making this work correctly.
SpaceMan 8 Apr, 2021 @ 1:50pm 
fix
Sarus 8 Apr, 2021 @ 1:36pm 
The mod fix ruler missing in action seems to work/clones the leader but its only into a governor, could this one try same thing but with the other leader types as options?
Velich  [author] 8 Apr, 2021 @ 1:22pm 
* The first ruler, when losing elections, becomes a governor.

I'll put this on hold until 3.0 then and just make it a mod to change the class from governor.

To explain why this no longer works, the value that initial Rulers are missing is 'pre_ruler_class'. This mod simply tries to assign it to your ruler in a very simple manner.

What's stopped it working is that 'pre_ruler_class' also defaults to 'pre_ruler_leader_class' which is a conditional. Everything I've tried to correct this hasn't stopped the script from still trying to read this as a conditional, so instead, you just get an error in the error.log.

'pre_ruler_class' isn't simply a blank value. It just doesn't exist on them. So it defaults to the above, I guess.


I still have no idea why it worked originally since I didn't make any changes to it before uploading.

Here's hoping initial Rulers having this value at the start of the game will help me solve this in 3.0.


For now, sorry for the inconvenience.
WHR | TMaekler 8 Apr, 2021 @ 12:49pm 
Is fixed in 3.0. See DevLog.
Trokkin 8 Apr, 2021 @ 12:00pm 
can you do a version of this without this menu, that would automatically detect government type and select one of the leader types? Or by random chance? So that there wouldn't be any menu
Velich  [author] 8 Apr, 2021 @ 5:41am 
This worked when I tested it originally (hell, I even started a new game and played with it without problem.) After your comment though, I've confirmed that the mod no longer works. I'm not sure what broke, but I'm working on fixing it.
Sarus 7 Apr, 2021 @ 6:30pm 
Not working for me or something conflicts D:
just disappears no matter what option is picked
Aþi 7 Apr, 2021 @ 5:29pm 
LOVE THIS!
thank you very much for this invaluable service
Gbrille 7 Apr, 2021 @ 9:08am 
Thank you for this! My leader never disapeared thanks to maybe another mod but they always went to governor once they lost an election. This open more for RP. :)