-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTEST_MULTIPLAYER.BAT
132 lines (107 loc) · 3.59 KB
/
TEST_MULTIPLAYER.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
SETLOCAL EnableDelayedExpansion
set EXTRACMD=
set HOSTCMD=-m
set MAP=e3l9.map
set /a NUMPLAYERS=1
set /a FAKEPLAYERS=!NUMPLAYERS!+1
set FAKECMD=-q!FAKEPLAYERS!
set AI=NO
set AICMD=
set NETCMD=
set PORT=30000
rem set PORT=23513
set EDUKE_PATH="D:\sourcecode\eduke32-cs"
:MENU
@echo off
cls
echo EDuke32-OldMP Path: %EDUKE_PATH%
echo Current Path: %~dp0
echo.
echo Choose:
echo 1. Vanilla
echo 2. StrikerDM
echo 3. Duke64 TC
echo.
echo 4. AI Enabled (%AI%) %AICMD%
echo 5. Real Players (%NUMPLAYERS%) %NETCMD%
echo 6. Total Players (Incl. Bots) (%FAKEPLAYERS%) %FAKECMD%
echo.
echo 7. Quit
CHOICE /N /C:1234567
IF ERRORLEVEL 7 GOTO EXIT
IF ERRORLEVEL 6 GOTO INCFAKEPLAYERS
IF ERRORLEVEL 5 GOTO INCPLAYERS
IF ERRORLEVEL 4 GOTO TOGGLEAI
IF ERRORLEVEL 3 GOTO DUKE64
IF ERRORLEVEL 2 GOTO STRIKERDM
IF ERRORLEVEL 1 GOTO VANILLA
:TOGGLEAI
if %AI%==NO (
set AI=YES
set AICMD=-a
) else (
set AI=NO
set AICMD=
)
goto MENU
:INCPLAYERS
set /a NUMPLAYERS=!NUMPLAYERS!+1
if !NUMPLAYERS!==13 (set NUMPLAYERS=1)
if !NUMPLAYERS!==1 (
set NETCMD=
) else (
set NETCMD=/net /n0:!NUMPLAYERS!
)
if !FAKEPLAYERS! LSS !NUMPLAYERS! (
set FAKEPLAYERS=!NUMPLAYERS!
set FAKECMD=-q!FAKEPLAYERS!
)
goto MENU
:INCFAKEPLAYERS
set /a FAKEPLAYERS=!FAKEPLAYERS!+1
if !FAKEPLAYERS!==16 (set FAKEPLAYERS=!NUMPLAYERS!)
if !FAKEPLAYERS!==!NUMPLAYERS! (
set FAKECMD=
) else (
set FAKECMD=-q!FAKEPLAYERS!
)
goto MENU
:VANILLA
set GRP_PATH=
goto START
:STRIKERDM
set GRP_PATH=%~dp0.\pk3
echo %GRP_PATH%
goto START
:DUKE64
set GRP_PATH=%~dp0.\Duke64
echo %GRP_PATH%
goto START
:START
cd /d %EDUKE_PATH%
start netduke32 -nologo -noinstancechecking -nosetup -t23 -c2 -j%GRP_PATH% %HOSTCMD% %FAKECMD% %AICMD% %EXTRACMD% -map %MAP% %NETCMD%
if %NUMPLAYERS%==1 goto EXIT
start netduke32 -cfg player2.cfg -name Player2 -nologo -noinstancechecking -nosetup -j%GRP_PATH% %EXTRACMD% /net /n0 127.0.0.1:%PORT% /p23122
if %NUMPLAYERS%==2 goto EXIT
start netduke32 -cfg player3.cfg -name Player3 -nologo -noinstancechecking -nosetup -j%GRP_PATH% %EXTRACMD% /net /n0 127.0.0.1:%PORT% /p23123
if %NUMPLAYERS%==3 goto EXIT
start netduke32 -cfg player4.cfg -name Player4 -nologo -noinstancechecking -nosetup -j%GRP_PATH% %EXTRACMD% /net /n0 127.0.0.1:%PORT% /p23124
if %NUMPLAYERS%==4 goto EXIT
start netduke32 -cfg player5.cfg -name Player5 -nologo -noinstancechecking -nosetup -j%GRP_PATH% %EXTRACMD% /net /n0 127.0.0.1:%PORT% /p23125
if %NUMPLAYERS%==5 goto EXIT
start netduke32 -cfg player6.cfg -name Player6 -nologo -noinstancechecking -nosetup -j%GRP_PATH% %EXTRACMD% /net /n0 127.0.0.1:%PORT% /p23126
if %NUMPLAYERS%==6 goto EXIT
start netduke32 -cfg player7.cfg -name Player7 -nologo -noinstancechecking -nosetup -j%GRP_PATH% %EXTRACMD% /net /n0 127.0.0.1:%PORT% /p23127
if %NUMPLAYERS%==7 goto EXIT
start netduke32 -cfg player8.cfg -name Player8 -nologo -noinstancechecking -nosetup -j%GRP_PATH% %EXTRACMD% /net /n0 127.0.0.1:%PORT% /p23128
if %NUMPLAYERS%==8 goto EXIT
start netduke32 -cfg player9.cfg -name Player9 -nologo -noinstancechecking -nosetup -j%GRP_PATH% %EXTRACMD% /net /n0 127.0.0.1:%PORT% /p23129
if %NUMPLAYERS%==9 goto EXIT
start netduke32 -cfg player10.cfg -name Player10 -nologo -noinstancechecking -nosetup -j%GRP_PATH% %EXTRACMD% /net /n0 127.0.0.1:%PORT% /p23130
if %NUMPLAYERS%==10 goto EXIT
start netduke32 -cfg player11.cfg -name Player11 -nologo -noinstancechecking -nosetup -j%GRP_PATH% %EXTRACMD% /net /n0 127.0.0.1:%PORT% /p23131
if %NUMPLAYERS%==11 goto EXIT
start netduke32 -cfg player12.cfg -name Player12 -nologo -noinstancechecking -nosetup -j%GRP_PATH% %EXTRACMD% /net /n0 127.0.0.1:%PORT% /p23132
if %NUMPLAYERS%==12 goto EXIT
:EXIT
echo See you later.