wallabra Posted September 26, 2015 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 0 Share this post Link to post
Danfun64 Posted September 26, 2015 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. 0 Share this post Link to post
wallabra Posted September 26, 2015 It is a automated join/host script so you don't need to enter command prompt. 0 Share this post Link to post
RestlessRodent Posted September 26, 2015 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. 0 Share this post Link to post
Tompig Posted September 26, 2015 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. 0 Share this post Link to post
wallabra Posted September 27, 2015 Would have been cool and I am doing an C++ script for a bot. Either way, that code is an Multiplayer launcher. Check it out working! 0 Share this post Link to post
scifista42 Posted September 27, 2015 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. 0 Share this post Link to post