F3: client Godot minimo, replay dei comandi e collaudi automatici
- Client Godot 4.7 .NET (Godot.NET.Sdk 4.7.2): menu, collegamento, partita locale con server figlio; mappa con terreno (fasce, ombreggiatura, rive curve con shader, curve di livello), opere, entità, alberi, treni interpolati con fumo; strumenti binari con profilo, stazione, deposito, segnali, demolizione; pannelli treni, linee, mercato, finanze, schede; barra superiore, minimappa, notiziario; italiano e inglese. - Pilota automatico del client e scripts/client-autopilot.sh: partita locale, linea con ponte, treni in moto e schermate (docs/screenshots). - Registro dei comandi del server (--record) e viaferrea-tools replay. - PROTOCOL.md normativo, ADR 0009, ARCHITECTURE, STATE e README aggiornati. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0191R7vXgtbAvSV4V8tj8uzL
This commit is contained in:
97 files changed
+5151
-96
No files matched your search
Executable
+23
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env bash
|
||||
# Collaudo grafico del client Godot: compila server e client, importa il progetto, avvia una
|
||||
# partita locale con il pilota automatico (stazioni, ponte, treni) e salva le schermate.
|
||||
# Senza display usa xvfb-run (rendering software Mesa).
|
||||
# Uso: GODOT=/percorso/Godot_v4.7.2-stable_mono_linux.x86_64 scripts/client-autopilot.sh [cartella]
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
godot="${GODOT:-godot}"
|
||||
out="$(realpath -m "${1:-out/autopilot}")"
|
||||
mkdir -p "$out"
|
||||
|
||||
dotnet build src/ViaFerrea.Server -c Release -v quiet -nologo
|
||||
dotnet build client/ViaFerrea.Client/ViaFerrea.Client.csproj -c Debug -v quiet -nologo
|
||||
"$godot" --headless --path client/ViaFerrea.Client --import >/dev/null 2>&1 || true
|
||||
|
||||
run=("$godot" --path client/ViaFerrea.Client --rendering-driver opengl3 --resolution 1600x900 --windowed -- --autopilot "$out")
|
||||
if [ -z "${DISPLAY:-}" ] && command -v xvfb-run >/dev/null 2>&1; then
|
||||
xvfb-run -a -s "-screen 0 1600x900x24" "${run[@]}" 2>&1 | grep -E "autopilot|ERROR" || true
|
||||
else
|
||||
"${run[@]}" 2>&1 | grep -E "autopilot|ERROR" || true
|
||||
fi
|
||||
ls "$out"/*.jpg >/dev/null 2>&1 && grep -q . <(ls "$out") && echo "client-autopilot: schermate in $out"
|
||||
Reference in new issue
Block a user