SignallerOnline is an multiplayer signalbox simulator with branchline flair.
- Python 96.3%
- Shell 2.9%
- PowerShell 0.8%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .forgejo/workflows | ||
| .meta | ||
| .vscode | ||
| assets | ||
| client | ||
| common | ||
| devenv | ||
| scripts | ||
| server | ||
| utils | ||
| .gitignore | ||
| ENV.md | ||
| PACKETS.md | ||
| PROTOCOL.md | ||
| pyproject.toml | ||
| README.md | ||
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 |
Saved links
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
printstatements with logger - server: replace
printstatements 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.pyas 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
