#hello, i am trying to mod the rings of all solar system gas giants and haumea where are the textures
6 messages · Page 1 of 1 (latest)
Thank you for posting in the modding forums, murilopontes15!
These forums are community-driven, and while the SE Team may reply here from time to time, it is not to be expected.
Thank you to all the awesome people who contribute their time to help others in their modding adventures.
All data about real objects are stored in the /data directory in your SpaceEngine folder. The textures for the rings are in /data/textures/planets. All files ending in .pak are just renamed .zip files, so you can make a copy of Rings.pak, rename it to Rings.zip, and then extract it to see what's inside.
You shouldn't be modifying any of these files though. You should ideally make a copy of the Rings folder and make it into an addon. You can do this by going to your /addons folder, making a new folder called something like myCustomRings, and then inside that folder recreate the file structure you found in /data. Namely, you want a file structure like this:
/addons
|
+- myCustomRings
|
+- textures
|
+- planets
|
+- Rings
Then you can edit whatever you want in the Rings folder, and then you can remove the addon at any time to restore the game to its original state. Doing it this way also guarantees that your changes won't be reverted by a game update that also wants to modify Rings.pak.
Haumea's rings are currently procedurally generated, so you won't find a texture in Rings.pak. You can make one by using the same format as the other ring textures-- they're just 1-pixel-tall PNGs showing ring density/color as you get further from the planet. Make a texture (or copy an existing texture) and rename it Haumea-rings.png and put it in your Rings folder. Then you'll need to make a copy of the Haumea script in your addon to include your new texture.
DwarfPlanet "Haumea/(136108) Haumea/2003 EL61"
{
ParentBody "Sun"
AsterType "Cubewano"
Dimensions (2322, 1138, 1704)
OblatenessInfo 0.434
Mass 0.00066
RotationPeriod 3.9155
Obliquity 126 // used Hi'iaka's orbit Inclination
EqAscendNode 26 // used Hi'iaka's orbit AscendingNode
AbsMagn 0.1
SlopeParam 0.15
Albedo 0.51
Brightness 1.0 // 3.0
Rings
{
//Texture "Haumea-rings.*"
InnerRadius 2252
OuterRadius 2322
}
Orbit
{
RefPlane "Ecliptic"
Epoch 2456401
MeanMotion 0.00348839
SemiMajorAxis 43.0579
Eccentricity 0.195253
Inclination 28.1941
AscendingNode 121.819
ArgOfPericenter 240.678
MeanAnomaly 206.48
}
}
This is the script for Haumea, found in /data/catalogs/Catalogs.pak. Since this is a planet script, it belongs in /addons/myCustomRings/catalogs/planets. Name the file Haumea.sc, and make two changes:
- Add a new line at the very top of the file that says
Remove "Haumea". This prevents the game from loading the default Haumea script so it loads yours instead. - Remove the two slashes (
//) in front of the word "Texture" in the Rings tag.
With all of this done, Haumea will spawn with your custom texture.
Would this also work if I did it with Jupiter?
It should yes