NinjaSnowWar.bat 918 B

123456789101112131415
  1. :: To avoid cacophony of multiple background music when testing with multiple connections on the same test machine,
  2. :: start all the other non-headless connections with '-nobgm' argument.
  3. :: E.g. 1 - headless server
  4. :: Start the server with "NinjaSnowWar -headless -server"
  5. :: Start the first client with "NinjaSnowWar -w -address <put-your-host-name-here>"
  6. :: Start the subsequent clients on the same host with "NinjaSnowWar -w -nobgm -address <put-your-host-name-here>"
  7. ::
  8. :: E.g. 2 - non-headless server
  9. :: Start the server with "NinjaSnowWar -w -server"
  10. :: Start the client on the same host with "NinjaSnowWar -w -nobgm -address <put-your-host-name-here>"
  11. ::
  12. @echo off
  13. if exist "%~dp0Urho3DPlayer.exe" (set "DEBUG=") else (set "DEBUG=_d")
  14. if exist "%~dp0..\share\Urho3D\Resources" (set "OPT1=-pp ..\share\Urho3D\Resources") else (set "OPT1=")
  15. "%~dp0Urho3DPlayer%DEBUG%" Scripts/NinjaSnowWar.as %OPT1% %*