SpaceEngine

SpaceEngine

Not enough ratings
How to make a custom menu scenario for SpaceEngine
By Mosfet
You want to create a custom menu scenario for SpaceEngine? It's easier than you think. Follow these few steps...
   
Award
Favorite
Favorited
Unfavorite
The easy way: modify the existing scene
So, you want to create a custom menu for SpaceEngine.

We can start by looking at the default menu scenario file, which is in data > scripts > Scripts.pak archive.
Open the .pak file with your preferred zip manager, go to the menu folder, and extract the scene1.se file. That's the script file for the default menu scene.

You can save it into an addons subfolder, for example, by placing it into an addons > MyMenu > scripts > menu folder.

When you open it with a text editor, you may notice the relevant part of the menu:

GotoLocation { Body "Menu Moon 1.2" Parent "Menu Planet 1" Date "2019.05.31 18:23:57.57" Pos (-4F5791FF91DD5932E1680000 -260FF17FB4C8FB29B6FA0000 -20BC307DCE5E99787800000) Rot (0.6784887885700137 -0.3884777664761343 0.5280721251295764 -0.3314782336740115) Vel 2.0513983e-011 Stereobase 1 BindMode 1 PhotoMode 0 Exposure 0 }

Now we need to find a location for our custom menu. Go to the desired place with your camera, then save the location with the Locations menu (F6), by clicking Add > This location, just as we learned from the Tutorial (You did the tutorial, right?).



Let's get the script for this location by using Share > Copy script code to clipboard, then paste the content into the text editor.
This will be the result:
Place "Proxima b: the nearest exoplanet" { Ver 990 Body "Proxima b" Parent "Proxima" Date "2015.06.07 01:29:55.24" Time +257E5C8FFC63EFF8F77D130BF0 Pos (-5C1ED644B69DCE84E1B3 -125671934C0E97FCBD8C6 -785CC95BBD80C8AE716B) Rot (0.2518362002320683 0.4103078169431566 -0.5071523865447312 0.714858363894554) Vel 1.081903e-10 Stereobase 1 BindMode 1 PhotoMode 0 Exposure 0 }

You can see that the code for the menu scene is basically identical. To use this location on the menu scene you only have to copy:
Body "Proxima b" Parent "Proxima" Date "2015.06.07 01:29:55.24" Time +257E5C8FFC63EFF8F77D130BF0 Pos (-5C1ED644B69DCE84E1B3 -125671934C0E97FCBD8C6 -785CC95BBD80C8AE716B) Rot (0.2518362002320683 0.4103078169431566 -0.5071523865447312 0.714858363894554) Vel 1.081903e-10 Stereobase 1 BindMode 1 PhotoMode 0 Exposure 0

and substitute this:
Body "Menu Moon 1.2" Parent "Menu Planet 1" Date "2019.05.31 18:23:57.57" Pos (-4F5791FF91DD5932E1680000 -260FF17FB4C8FB29B6FA0000 -20BC307DCE5E99787800000) Rot (0.6784887885700137 -0.3884777664761343 0.5280721251295764 -0.3314782336740115) Vel 2.0513983e-011 Stereobase 1 BindMode 1 PhotoMode 0 Exposure 0

Then save the modified scene1.se file.
If you have placed the file where suggested above, next time you run SpaceEngine your location saved in addons will be the scene used by the program.

You can play with the other variables available in the scene1.se file, for example to change the speed of time (TimeScale command[spaceengine.org]), field of view (FOV command[spaceengine.org]), and others.
1 Comments
Zombie 21 Aug, 2024 @ 1:01pm 
Body "Menu Moon 1.2"
Parent "Menu Planet 1"
Date "2019.05.31 18:23:57.57"
Pos (-4F5791FF91DD5932E1680000 -260FF17FB4C8FB29B6FA0000 -20BC307DCE5E99787800000)
Rot (0.6784887885700137 -0.3884777664761343 0.5280721251295764 -0.3314782336740115)
Vel 2.0513983e-011
Stereobase 1
BindMode 1
PhotoMode 0
Exposure 0