Stellaris

Stellaris

View Stats:
Marth Vader Aug 11, 2019 @ 1:19pm
Is there any way to change star type with console commands?
Simply changing the planet type of the star turns it into some kind of mix between the original star type and the new one that was entered. Commands also don't seem to change system background color, the star type on map view, and doesn't add any special effects if you change it to a pulsar/black hole/neutron star.

Is there any solution to this?
Originally posted by Xcyiterr:
very late, but after much testing, I finally figured it out
select the star you want from the planetary system view (aka just click on it), and run this command
effect solar_system = {set_star_class = <star class>}
replacing "<star class>" with the desired star class of choice, for example "sc_m_giant" for the M Red Giant star

here's a list of all the vanilla star classes https://stellaris.paradoxwikis.com/System_modding#Vanilla_star_classes
and for any modded star types, I suggest searching for the workshop folder of the mod that added the star types, and then going down <mod folder>/common/star_classes/00_star_classes.txt
then, just find the desired star class of choice, and done (ie; "sc_xxxxx")

phew, let me know if there's any problems or questions to ask
hopefully this helps anyone trying to do this
(works as of 2.1.1 Lem)
< >
Showing 1-9 of 9 comments
Try the Otter Editor mod.
Although not omnipotent, it's decently featured for making changes to naturally-occurring astronomical bodies in a Stellaris campaign.

With that modder-made editor, I have not yet found any way to technically "change" a star itself. However, I can do the following semi-effective/semi-OCD workaround:

1) Delete star (also deletes that entire star system);

2) Replace with star of a different type;

3) Rebuild planets and/or asteroids (if any were in the original system);

4) Rebuild colonizable worlds (if any);

5) Rebuild hyperlanes, wormholes and /or gates which originally connected here.

(Make sure you take detailed notes about the original star system so you can re-create it all generally accurately.)

I have not yet found a way to place objects in a specific orbit, nor to make one body revolve as a moon around another body.

With the exceptions of super-extreme stellar objects (neutron stars, pulsars, black holes) the Otter Editor does include buttons to create numerous other types of stars HOWEVER those buttons are only labelled such as "Binary 1," "Trinary 2," etc. They don't tell you exactly what color star you're creating, which is problematic and annoying.

...

Anyhow, as long as the star system AND planets that you're trying to re-create after altering the star are not any kind of focus of a pre-scripted event, Otter Editor can get it done.

How do you know if it's tied to a pre-scripted event? Firstly, just open the game's built-in command console (check the Stellaris wiki for how to).

Type "debugtooltip". This will expand tooltips (in some cases very substantially), revealing code dependencies of the sort that you do not want to risk breaking. The vast majority of star systems are not connected to that sort of additional code, so you should generally have no major risk to editing away.
Damn! Vague syntax on one point above; my apologies. What I actually meant was this:

You CAN spawn new neutron stars, pulsars and black holes with the Otter Editor.

Not only that, but the buttons in question ARE clearly labelled and you know exactly which of the above bodies you've commanded to spawn. It's all of the other various normal stellar objects that the labels for the buttons are only labeled vaguely. Trial and error testing is necessary.
The author of this thread has indicated that this post answers the original topic.
Xcyiterr Oct 2, 2021 @ 8:47am 
2
2
very late, but after much testing, I finally figured it out
select the star you want from the planetary system view (aka just click on it), and run this command
effect solar_system = {set_star_class = <star class>}
replacing "<star class>" with the desired star class of choice, for example "sc_m_giant" for the M Red Giant star

here's a list of all the vanilla star classes https://stellaris.paradoxwikis.com/System_modding#Vanilla_star_classes
and for any modded star types, I suggest searching for the workshop folder of the mod that added the star types, and then going down <mod folder>/common/star_classes/00_star_classes.txt
then, just find the desired star class of choice, and done (ie; "sc_xxxxx")

phew, let me know if there's any problems or questions to ask
hopefully this helps anyone trying to do this
(works as of 2.1.1 Lem)
Last edited by Xcyiterr; Oct 2, 2021 @ 9:23am
Mardols May 15, 2022 @ 9:10pm 
Originally posted by Xcyiterr:
very late, but after much testing, I finally figured it out
select the star you want from the planetary system view (aka just click on it), and run this command
effect solar_system = {set_star_class = <star class>}
replacing "<star class>" with the desired star class of choice, for example "sc_m_giant" for the M Red Giant star

here's a list of all the vanilla star classes https://stellaris.paradoxwikis.com/System_modding#Vanilla_star_classes
and for any modded star types, I suggest searching for the workshop folder of the mod that added the star types, and then going down <mod folder>/common/star_classes/00_star_classes.txt
then, just find the desired star class of choice, and done (ie; "sc_xxxxx")

phew, let me know if there's any problems or questions to ask
hopefully this helps anyone trying to do this
(works as of 2.1.1 Lem)


Oh thank you so much. This was uber helpful.
Golden May 17, 2022 @ 4:22pm 
Originally posted by Xcyiterr:
very late, but after much testing, I finally figured it out

Perfect fix, thank you very much for the solution.
FrostAdept Apr 25, 2023 @ 9:40am 
Also very late, but this should be quite useful for my plan to laugh maniacally with a Zroni Storm Caster built on Neutron Star choke points against 25x Unbidden.
Supercomputer Apr 25, 2023 @ 2:40pm 
Did the solutions listed end up working for you? If you don't find an answer here, you might also try posting in the Paradox Forums - there's a lot of great help there as well.
Piple Apr 25, 2023 @ 2:51pm 
You should try posting this on Reddit. r/Stellaris is a very helpful community when it comes to this sort of thing.
Piple Apr 25, 2023 @ 6:06pm 
Oh, sorry, just noticed this thread is almost 4 years old. My bad, ignore my previous comment.
< >
Showing 1-9 of 9 comments
Per page: 1530 50

Date Posted: Aug 11, 2019 @ 1:19pm
Posts: 9