-
Notifications
You must be signed in to change notification settings - Fork 2
/
DedicatedLobbyServer.bat
102 lines (75 loc) · 5.16 KB
/
DedicatedLobbyServer.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
@echo off
::///////////////////////////////////////////////////////////////////////
::/// IW4x Lobby Server Configuration start-up file ///
::///////////////////////////////////////////////////////////////////////
::// For support visit us on discord https://discord.gg/2ETE8engZM //
::// //
::// Default Playlist Gamemode from myplaylists.info //
::// (If you change that file around. consider this list useless..) //
::// //
::// 0 iw4x DLC (bonus edit) //
::// 1 Team Deathmatch //
::// 2 Hardcore Team Deathmatch //
::// 3 Free-for-all //
::// 4 Hardcore Free-for-all //
::// 5 Domination //
::// 6 Hardcore: Domination //
::// 7 Search and Destory //
::// 8 Hardcore: Search and Destory //
::// 9 Demolition //
::// 10 Hardcore: Demolition //
::// 11 Capture the flag //
::// 12 Hardcore: Capture the flag //
::// 13 Headquarters //
::// 14 Hardcore: Headquarters //
::// 15 Sabotage //
::// 16 Hardcore: Sabotage //
::// 17 Ground War //
::// 18 Hardcore: Ground War //
::// //
::///////////////////////////////////////////////////////////////////////
::///////////////////////////////////////////////////////////////////////
::// Choose your gamemode of 0-22 of your choice above //
::///////////////////////////////////////////////////////////////////////
set PlaylistGameMode=1
::///////////////////////////////////////////////////////////////////////
::// Your Game Server Port. //
::// Make sure you Port Forward both UDP & TCP //
::///////////////////////////////////////////////////////////////////////
set GamePort=28960
::///////////////////////////////////////////////////////////////////////
::// Offline/Private LAN Party Mode //
::// 0 Disable (Send heartbeats to online serverlist) //
::// 1 Enable (Add to the Local serverlist. Unlisted from Public) //
::///////////////////////////////////////////////////////////////////////
set LANMode=0
::///////////////////////////////////////////////////////////////////////
::// Enable logging. //
::///////////////////////////////////////////////////////////////////////
set LogFile=1
::///////////////////////////////////////////////////////////////////////
::// Below edits are optional unless you run multiable servers or mods.//
::///////////////////////////////////////////////////////////////////////
::// Load a mod on your server //
::// Example: ModfolderName=mods/bots //
::// //
::// UNLOAD a mod on your server //
::// Example: ModfolderName= //
::///////////////////////////////////////////////////////////////////////
set ModFolderName=
::///////////////////////////////////////////////////////////////////////
::// Your edited Playlist in the "userraw" folder goes here (optional) //
::///////////////////////////////////////////////////////////////////////
set PlaylistFilename=myplaylists.info
::///////////////////////////////////////////////////////////////////////
::// Your edited partyserver.cfg in the "userraw" folder goes here //
::// This is were you edit your hostname, rcon, inactivity, etc //
::// (Optional) //
::///////////////////////////////////////////////////////////////////////
set ServerFilename=partyserver.cfg
:: Remove this line if automatic updates on start should be disabled
start /W alterware-launcher.exe --update
::///////////////////////////////////////////////////////////////////////
:://DONE!! WARNING! Don't mess with anything below this line. SEROUSLY!//
::///////////////////////////////////////////////////////////////////////
start iw4x.exe -dedicated +set fs_game "%ModFolderName%" +set sv_lanonly "%LANMode%" +set net_port "%GamePort%" +exec %ServerFilename% +set logfile "%LogFile%" +set party_enable "1" +set playlistFilename "%PlaylistFilename%" +playlist "%playlistGameMode%"