NinjaSnowWar.bat 807 B

1234567891011121314
  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. "%~dp0Urho3DPlayer%DEBUG%" Scripts/NinjaSnowWar.as %*