Install¶
Starcel currently runs on Windows only. The current release is the Windows no-editor build.
Quickstart¶
- Download Python 3.9.13. In the installer, tick Add Python to PATH and click Disable path length limit at the end.
-
Install Starcel:
-
Run the game,
%USERPROFILE%\Documents\Starcel\WindowsNoEditor\Starcel9.exe.
Your Python scripts are in %USERPROFILE%\Documents\Starcel\WindowsNoEditor\Starcel9\Content\Scripts.
How To Download Starcel¶
Why Python 3.9?
Starcel embeds Python 3.9 through the UnrealEnginePython plugin. Python's C API changed in 3.10, so other versions don't load. Use exactly 3.9.
Working from the project files¶
How To Download, Run, and Build the Starcel Unreal Project¶
The project on GitHub is about 2 GB; check .gitignore to see what is left out. The full Unreal project folder is more than 50 GB.
You need:
- Unreal Engine 4.27.2
- Visual Studio 2019 to compile
- Python 3.9 (64-bit)
- An editor such as PyCharm Community
Install the Python packages Starcel uses:
You don't install unreal_engine with pip. The plugin creates it while the game runs. Content/Scripts/unreal_engine holds stubs so your editor can autocomplete it.
Add this to C:\Program Files\Epic Games\UE_4.27\Engine\Config\BaseEngine.ini:
If Python isn't found¶
- Set the
UE_PYTHON_DIR,PYTHONPATHandPYTHONHOMEenvironment variables to your Python 3.9 folder, for exampleC:\Program Files\Python39. - Copy
python3.dllandpython39.dllintoC:\Program Files\Epic Games\UE_4.27\Engine\Binaries\ThirdParty\Python3.
What runs at startup¶
The default map contains a PyActor that loads main.py and its Main class. The client and the server each run it. Use KismetSystemLibrary.IsDedicatedServer() to keep client and server code apart.
from unreal_engine.classes import KismetSystemLibrary
if KismetSystemLibrary.IsDedicatedServer():
... # server only
Warning
The world isn't saved yet. Objects you spawn while playing are gone when you quit. To keep them, put the code that spawns them in main.py or in a script you run again.