-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
!start_mp_server.bat
34 lines (24 loc) · 1.5 KB
/
!start_mp_server.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
@echo off
::///////////////////////////////////////////////////////////////////////
::/// IW6x Server Configuration start-up file ///
::///////////////////////////////////////////////////////////////////////
::// This config best view with Notepad++ or other non-windows notepad //
::///////////////////////////////////////////////////////////////////////
::// Your edited server.cfg in the "main" folder goes here //
::// This is were you edit your hostname, map & gamemodes from. //
::///////////////////////////////////////////////////////////////////////
set ServerFilename=server.cfg
:://///////////////////////////////////////////////////////////////////////////
::// What port do you want the server to run on? //
::// You must port forward this port & allow it through your firewall //
:://///////////////////////////////////////////////////////////////////////////
set port=27016
:: Either put the batch in the Ghosts install dir, or change the value below to the Ghost install dir
set XLABS_GHOSTS_INSTALL=%~dp0
:: Remove this line, if automatic updates on start should be disabled
start /W xlabs.exe -update
::///////////////////////////////////////////////////////////////////////
:://You're done!! WARNING!!! Don't mess with anything below this line //
::///////////////////////////////////////////////////////////////////////
set GAME_EXE=%localappdata%\xlabs\data\iw6x\iw6x.exe
start %GAME_EXE% -dedicated +set net_port "%port%" +exec %ServerFilename% +map_rotate