Godot reads get_cmdline_user_args() which only contains args after '--'. Without the separator, NetworkManager never saw --server and the ENetMultiplayerPeer never bound UDP 7777. Verified on 192.168.0.89: udp/7777 now listening.
10 lines
239 B
Bash
10 lines
239 B
Bash
#!/bin/bash
|
|
# DauphinCraft Dedicated Server Launcher
|
|
# Usage: ./run_server.sh [port]
|
|
|
|
PORT="${1:-7777}"
|
|
BINARY_DIR="$(dirname "$(readlink -f "$0")")"
|
|
cd "$BINARY_DIR"
|
|
|
|
exec ./DauphinCraftServer.x86_64 --headless -- --server --port "$PORT"
|