Files
Commonwealth-Online-Public/run-server-gui.bat
T
andrew 8dfec0a4b3 Rename project to Commonwealth Online
Replace occurrences of "Fallout 4 Together" with "Commonwealth Online" across docs and testing guidance. Add Interface assets and tooling: MainMenu/Pipboy SWFs, translation/fonts, exported scripts (Interface/exported/scripts/MainMenu.as) and a PATCH_MainMenu_Multiplayer.md describing how to add a Multiplayer menu entry that calls root.f4se.plugins.commonwealthOnline.openManager(). Also add build/run batch scripts and apply assorted updates to README, plugin, server and protocol documentation/source to align with the rename and UI changes.
2026-06-07 16:22:50 +12:00

46 lines
894 B
Batchfile

@echo off
setlocal EnableExtensions
set "SCRIPT_DIR=%~dp0"
set "SERVER_DIR=%SCRIPT_DIR%server"
cd /d "%SERVER_DIR%"
if errorlevel 1 (
echo Failed to change to server directory:
echo "%SERVER_DIR%"
pause
exit /b 1
)
where python >nul 2>&1
if errorlevel 1 (
echo python was not found on PATH.
echo Install Python 3 and add it to PATH.
pause
exit /b 1
)
python -c "import PySide6" >nul 2>&1
if errorlevel 1 (
echo Installing server GUI dependencies...
python -m pip install -r requirements.txt
if errorlevel 1 (
echo Failed to install requirements.
pause
exit /b 1
)
)
echo Starting Commonwealth Online Dev Server GUI...
python dev_server_app.py
set "EXIT_CODE=%ERRORLEVEL%"
if not "%EXIT_CODE%"=="0" (
echo Dev server GUI exited with error code %EXIT_CODE%.
pause
exit /b %EXIT_CODE%
)
endlocal
exit /b 0