@echo off REM ProjectSS playtest launcher. REM ASCII only on purpose: Korean text inside a .bat is mangled by cmd.exe codepage REM handling, and calling "chcp" mid-script corrupts the batch parser itself. title ProjectSS - playtest cd /d "%~dp0client" where npm >nul 2>nul if errorlevel 1 goto no_node if not exist node_modules goto install goto run :install echo. echo First run - installing dependencies. This takes 1-2 minutes. echo. call npm install if errorlevel 1 goto install_failed :run echo. echo Starting dev server. Your browser will open automatically. echo Close this window or press Ctrl+C to stop. echo. call npm run dev -- --open echo. echo Server stopped. pause exit /b 0 :no_node echo. echo [ERROR] Node.js is not installed. echo Install the LTS build from https://nodejs.org and run this again. echo. pause exit /b 1 :install_failed echo. echo [ERROR] npm install failed. See the messages above. echo. pause exit /b 1