Skip to content

Install

Starcel currently runs on Windows only. The current release is the Windows no-editor build.

Quickstart

  1. Download Python 3.9.13. In the installer, tick Add Python to PATH and click Disable path length limit at the end.
  2. Install Starcel:

    python -m pip install --upgrade pip
    python -m pip install starcel
    python -m starcel install
    
  3. 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:

Install the Python packages Starcel uses:

python.exe -m pip install -r Content/Scripts/requirements.txt

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:

[PlatformPaths]
UnrealBuildTool=Engine/Binaries/DotNET/UnrealBuildTool.exe

If Python isn't found

  • Set the UE_PYTHON_DIR, PYTHONPATH and PYTHONHOME environment variables to your Python 3.9 folder, for example C:\Program Files\Python39.
  • Copy python3.dll and python39.dll into C:\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.