Thalassocracy — Dev Quickstart
Run the server (local dev):
- Windows PowerShell:
setx RUST_LOG "info,bevy_renet=debug,renet=debug" & cargo run -p server - Bash:
RUST_LOG=info,bevy_renet=debug,renet=debug cargo run -p server
Run the client (local dev):
- Windows PowerShell:
setx RUST_LOG "info,bevy_renet=debug,renet=debug" & cargo run -p client -- --connect-timeout-secs 5 - Bash:
RUST_LOG=info,bevy_renet=debug,renet=debug cargo run -p client -- --connect-timeout-secs 5
Server configuration:
- Default config path:
server/config.toml - Keys:
port: UDP listen port (default61234)max_clients: maximum simultaneous clientstick_hz: simulation tick ratesnapshot_hz: target snapshot send ratepublic_addr(optional): address advertised in netcode tokens.- For local dev, omit this (defaults to
127.0.0.1:<port>if bound to0.0.0.0). - For remote hosting, set to your public IP/hostname and port, e.g.
"203.0.113.10:61234".
- For local dev, omit this (defaults to
Windows firewall (server):
- Allow inbound UDP on the server port:
netsh advfirewall firewall add rule name="thalasso-udp" dir=in action=allow protocol=UDP localport=61234
Client options:
--server <ip:port>: override server address (default127.0.0.1:61234)--headless: run without window/rendering--name <display_name>: optional display name--connect-timeout-secs <n>: timeout before exiting (default5)
Notes:
- Client and server use a shared netcode protocol id and real wall-clock time for stable handshakes.
- For remote use, ensure
public_addris set and firewall/NAT forwards UDP.