Stationeers

Stationeers

Stationeers
Share the best world creations and game modifications with the community for Stationeers through Steam workshop.
How TO modify Sun/solar panel power generation??!
Hello I have been playing this Game for a while now and I want to try to create a mode for steam workshop.
I would like to change the strength of the sun to generate more power wit (solar panels) on all the Planetary environment's to work in a mod.
Which .XML file sections need to be changed to make the solar panel generate X1.5 or X2 times power?
< >
Showing 1-15 of 23 comments
Kastuk 9 19 Jul, 2020 @ 6:24am 
Stationeers\rocketstation_Data\StreamingAssets\Data\worldsettings.xml

<SolarScale>1.0</SolarScale> is moon/earth orbit default value of sunlight. 1.5 for Vulcan.
You can edit this file in savegame file too without full game modding.

But solar panels can't make more than 500 w of energy per tick.

Unless you edit the game dll by dnSpy or something
Stationeers\rocketstation_Data\Managed\Assembly-CSharp.dll
For this method strings of SolarPanel class:
public static List<SolarPanel> AllSolarPanels = new List<SolarPanel>(); // Token: 0x04003F62 RID: 16226 [Header("Solar Panel")] [Tooltip("How many watts are generated")] public float MaxPowerGenerated = 500f;
But this hardcode modding may be unstable and will be rewritten by every update.
And it's not possible to post it in Workshop.
Last edited by Kastuk; 19 Jul, 2020 @ 6:27am
OperationDx 1 30 May, 2022 @ 12:39am 
All this stuff being hardcoded is a real bummer. I seen a reddit post that is 2 years old where the developers said they would expose these values in xml's but it seems they never did it.
OperationDx 1 30 May, 2022 @ 12:41am 
This also explains why the modding scene is dead in the workshop.
JeanDeaux 4 30 May, 2022 @ 1:03am 
I am certain your constructive feedback will motivate the dev's to do better.
OperationDx 1 30 May, 2022 @ 1:11am 
This is not exactly feedback but an observation. This was asked for 2 years ago with a direct developer response. However despite a positive response saying how easy this would be to do. Curiously this was never done and likely intentional. The only things that seem to be exposed are recipes and their respective costs.
OperationDx 1 30 May, 2022 @ 1:21am 
However the workshop does have a single mod that I don't understand how it was made. Unless I subscribe and dissect it I won't know how it was created. Normally this mod would be easy to make but because the code is not exposed I'll have to look into it. The mod changes the capacity of a nuclear battery. But I ether missed it or that code is not exposed.
Kastuk 9 30 May, 2022 @ 1:55am 
Originally posted by OperationDx:
The mod changes the capacity of a nuclear battery. But I ether missed it or that code is not exposed.
It's simple attributes mod, as it is written in tationeers\rocketstation_Data\StreamingAssets\AttributesExampleMod.zip

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1785747072

<ThingModData xsi:type="BatteryCellData"> <PrefabName>ItemBatteryCellNuclear</PrefabName> <PowerMaximum>1210000000</PowerMaximum> </ThingModData>
Last edited by Kastuk; 30 May, 2022 @ 1:57am
OperationDx 1 30 May, 2022 @ 2:07am 
Alright interesting. So I figured it was something simple like this but where did the mod maker get <powerMaximum></powermaximum> code from?
OperationDx 1 30 May, 2022 @ 2:11am 
I assume this is a built in override for the hardcode that the developers put in.
OperationDx 1 30 May, 2022 @ 2:15am 
Because something like this for power generation should be something similar

<PrefabName>GasGenerator</PrefabName>
<MaxPowerGenerated>150000</MaxPowerGenerated>
OperationDx 1 30 May, 2022 @ 2:21am 
Oh you are the mod maker. Nice!
OperationDx 1 30 May, 2022 @ 2:27am 
I see the code is in the example file. Got it.
OperationDx 1 30 May, 2022 @ 2:35am 
I wonder if you can do something like.


<PrefabName>Coal</PrefabName>
<BurnTime>999</BurnTime>
<EnergyReleasedWhenBurning>150000</EnergyReleasedWhenBurning>
Kastuk 9 30 May, 2022 @ 2:37am 
Not much of fields/parameters is exposed for xml editing.

This ones is not about power generated in Solid fuel generator, but just for item burning in the room to raise local temperature.
Well, it can be used for proper coal burning with oxygen consumption and Stirling engine nearby.
Last edited by Kastuk; 30 May, 2022 @ 2:42am
Kastuk 9 30 May, 2022 @ 2:49am 
You can open Stationeers\rocketstation_Data\Managed\Assembly-CSharp.dll by dnSpy and see game code inside (works for most of Unity games).
This tool can edit some methods to change values sometimes and analyze things to find, where particular parameter is changed and used.
To find all moddable parameters just Search for ModData.
Last edited by Kastuk; 30 May, 2022 @ 2:52am
< >
Showing 1-15 of 23 comments
Per page: 1530 50