SignallerOnline is an multiplayer signalbox simulator with branchline flair.
  • Python 96.3%
  • Shell 2.9%
  • PowerShell 0.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-29 03:35:26 +01:00
.forgejo/workflows ci: ... 2026-11-28 04:05:09 +01:00
.meta meta: rename screenshot.png -> .meta/screenshot-game.png, add screenshot-login.png 2026-11-27 04:11:00 +01:00
.vscode vscode(launch.json): fix broken env variable for server config, change to internal console 2026-11-26 19:02:06 +01:00
assets ci: add build workflows 2026-11-28 03:03:47 +01:00
client both: partially replaced print statements with logger 2026-11-29 02:59:51 +01:00
common common: cleanup 2026-11-29 03:35:26 +01:00
devenv feat: communicator chat works now 2026-11-25 14:47:11 +01:00
scripts ci: source uv 2026-11-28 04:00:07 +01:00
server both: partially replaced print statements with logger 2026-11-29 02:59:51 +01:00
utils Auth 2026-10-23 22:19:17 +02:00
.gitignore ci: improve dependency managment 2026-11-28 03:52:27 +01:00
ENV.md client(units): Add env-var 'SIGON_CL_GAME_SCALE' to override the game scale 2026-10-24 19:01:59 +02:00
PACKETS.md Add docs + SIGON_CL_PWD 2026-10-23 22:50:04 +02:00
PROTOCOL.md server(socket): Add basic packet handler 2026-10-24 20:35:44 +02:00
pyproject.toml common: cleanup 2026-11-29 03:35:26 +01:00
README.md common: implement logging 2026-11-29 02:34:20 +01:00

Signaller Online

SignallerOnline is an multiplayer signalbox simulator with branchline flair.

Quickstart

Bash

# Install dependencies
sudo apt install python3-dev patchelf ccache    # Debian/Ubuntu
sudo dnf install python3-devel patchelf ccache  # Fedora

# Install uv
pip install uv

# Clone this repository
git clone https://git.sam302.de/railventure/signaller-online.git --depth=1

# Setup the virtual enviroment
uv sync

Powershell

# Install uv
winget install --id=astral-sh.uv -e

# Clone this repository
git clone https://git.sam302.de/railventure/signaller-online.git --depth=1

# Setup the virtual enviroment
uv sync

Toolchain

Building

Bash

# Build everything
./scripts/build-all.sh

# Build client
./scripts/build-client.sh

# Build server
./scripts/build-server.sh

# Delete all build files
./scripts/clean.sh

PowerShell

Authentication

# Generate password hash
python utils/hash-password.py "<password>"

# Create user with pre-hashed password
python utils/create-user.py "<username>" "<hashed-password>" --verbose True

# One-liner version to create new user credentials. DEPRECATED!
python utils/create-user.py "<username>" $(python utils/hash-password.py "<password>") --verbose True

Dependencies

Debian Fedora
python3-dev python3-devel
patchelf patchelf
ccache ccache

Test credentials

Client 1

Key Value
Server IP 0.0.0.0
Server Port 1778
Username player1
Password test

Client 2

Key Value
Server IP 0.0.0.0
Server Port 1778
Username player2
Password test

TODOs

  • client: add wrong password dialog instead of quitting
  • client: fix always overriding the cached username
  • client: program freezes when connecting to a server when started via Steam
  • both: fix client not receiving the UserConnectPacket for the own player when run via Steam
  • ci: find a way to install raylib
  • client(login): don't open communicator without successful authentication

feat: diagnostics

  • client: debugger class
  • common: implement logging
  • client: replace print statements with logger
  • server: replace print statements with logger

feat: shutdown/disconnect

  • server: handle shutdown gracefully
  • client: handle shutdown gracefully
  • client: implement global exception handler
  • both: graceful disconnect
  • server: fix exception when reconnecting

feat: maps

  • server: load map
  • both: send map to client
  • client(communicator): implement signal box selector

feat: loading screen

  • client: generic loading screen
  • client: display loading screen while downloading map

feat: integrated tools

  • client(login): integrate utils/hash-password.py as gui tool

feat: time system

  • common: create time api
  • server: implement time/schedule thread
  • both: sync time between server and client

feat: build pipeline/CI

  • ci: create build scripts with nuitka
  • ci: write forgejo actions
  • ci: improve dependency managment
  • ci: versioning