Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
wallabra

Automated multiplayer

Recommended Posts

I made the following batch code which allows for easy hosting or joining of multiplayer games in a prompt GUI.

@echo off
title ZDoom Multiplayer Handler
cls
echo .
echo .___________________________.TM
echo - ZDOOM MULTIPLAYER HANDLER -
echo .---------------------------.
echo by Gustavo Ramos "Gustavo6046" Rehermann
echo -------------------------
echo Press any key to continue.
pause >nul
goto questionz
:questionz
cls
echo .
echo .___________________________.TM
echo - ZDOOM MULTIPLAYER HANDLER -
echo .---------------------------.
echo by Gustavo Ramos "Gustavo6046" Rehermann
echo -------------------------
echo Which is your ZDoom folder?
set /p zdoomdir=:
cd %zdoomdir%
goto question0
:question0
cls
echo .
echo .___________________________.TM
echo - ZDOOM MULTIPLAYER HANDLER -
echo .---------------------------.
echo by Gustavo Ramos "Gustavo6046" Rehermann
echo -------------------------
echo Join or Host?
set /p jorh=:
if /i %jorh%==Join (goto jquestion1) else (if /i %jorh%==Host (goto question1) else (goto question0))
:question1
cls
echo .
echo .___________________________.TM
echo - ZDOOM MULTIPLAYER HANDLER -
echo .---------------------------.
echo by Gustavo Ramos "Gustavo6046" Rehermann
echo -------------------------
echo Type the number of players to host.
set /p numplayers=:
goto question2
:question2
cls
echo .
echo .___________________________.TM
echo - ZDOOM MULTIPLAYER HANDLER -
echo .---------------------------.
echo by Gustavo Ramos "Gustavo6046" Rehermann
echo -------------------------
echo Type the number of the map to host.
set /p mapname=:
goto question3
:question3
cls
echo .
echo .___________________________.TM
echo - ZDOOM MULTIPLAYER HANDLER -
echo .---------------------------.
echo by Gustavo Ramos "Gustavo6046" Rehermann
echo -------------------------
echo Which skill? (1 = Very Easy, 2 = Easy, 3 = Medium, 4 = Hard and
echo 5 = Nightmare)
set /p skillz=:
goto question4
:question4
cls
echo .
echo .___________________________.TM
echo - ZDOOM MULTIPLAYER HANDLER -
echo .---------------------------.
echo by Gustavo Ramos "Gustavo6046" Rehermann
echo -------------------------
echo Is Deathmatch? (0 = No, 1 = Yes)
set /p deathm=:
goto start
:jquestion1
cls
echo .
echo .___________________________.TM
echo - ZDOOM MULTIPLAYER HANDLER -
echo .---------------------------.
echo by Gustavo Ramos "Gustavo6046" Rehermann
echo -------------------------
echo Which IPv4 of the host?
set /p ipgame=:
goto startj
:start
if %deathm%==0 (zdoom.exe -host %numplayers% -skill %skillz% +map %mapname%) else (zdoom.exe -host %numplayers% -skill %skillz% -deathmatch +map %mapname%)
exit
:startj
zdoom.exe -join %ipgame%
exit

Share this post


Link to post

Huh. When I first read the title I thought you meant that it would be like Automated Wolfenstein i.e. Having bots kill each other with no way for human players to join.

I would then have asked why.

Share this post


Link to post
Gustavo6046 said:

It is a automated join/host script so you don't need to enter command prompt.


There are most likely launchers for (G)ZDoom.

Share this post


Link to post
Danfun64 said:

Huh. When I first read the title I thought you meant that it would be like Automated Wolfenstein i.e. Having bots kill each other with no way for human players to join.

I would then have asked why.



Would have been cool getting people to code bots and then making them fight to the death... robot wars doom style.

Share this post


Link to post

OK, this batch file exists and works as intended, nice. But it's inflexible, and also inferior to already existing solutions. Both ZDL and command prompt itself surpass this batch file by being as flexible and convenient as possible for what each of them is. Sorry to say, I don't think people will use your batch file as common practice.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×