Doom Comic
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Source Ports > My Chocolate Doom Frontend [Now with raven-branch support]
 
Author
All times are GMT. The time now is 19:38. Post New Thread    Post A Reply
Kagemaru_H
Banned


Posts: 422
Registered: 09-09


I made a batch file to act as a frontend for Chocolate Doom. That's what I needed help with in some thread but not I found help elsewhere. The Google Gods blessed me with the ability to make this FE for Chocolate Doom.

Now I bless you with convenience for Chocolate Doom in a few simple steps.

Step 1) Open Notepad
Step 2) Copy and paste the text in the "code" box into Notepad
code:
@echo off ECHO **************************** ECHO *Welcome to Chocolate Doom!* ECHO **************************** pause :start cls ECHO What would you like to do? ECHO. ECHO 1 = Play The Ultimate Doom ECHO 2 = Play Doom II: Hell on Earth ECHO 3 = Play Final Doom - TNT Evilution ECHO 4 = Play Final Doom - The Plutonia Experiment ECHO 5 = Play Heretic: Shadow of the Serpent Riders ECHO 6 = Play Hexen: Beyond Heretic ECHO 7 = Play Hexen: Deathkings of the Dark Citadel ECHO 8 = Load a modification ECHO 9 = Setup Chocolate Doom ECHO 0 = Exit ECHO. ECHO. :choice set /P C=[What would you like to do]? if "%C%"=="1" goto DOOM if "%C%"=="2" goto DOOM2 if "%C%"=="3" goto TNT if "%C%"=="4" goto PLUTONIA if "%C%"=="5" goto HERETIC if "%C%"=="6" goto HEXEN if "%C%"=="7" goto HEXDD if "%C%"=="8" goto MOD if "%C%"=="9" goto SETUP if "%C%"=="0" goto END goto choice :DOOM2 ECHO You have chosen to play DOOM II: Hell On Earth. pause chocolate-doom -iwad doom2.wad goto start :DOOM ECHO You have chosen to play The Ultimate Doom. pause chocolate-doom -iwad doom.wad goto start :TNT ECHO You have chosen to play Final Doom - TNT Evilution. pause chocolate-doom -iwad tnt.wad goto start :PLUTONIA ECHO You have chosen to play Final Doom - the Plutonia Experiment. pause chocolate-doom -iwad plutonia.wad goto start :SETUP ECHO You have chosen Setup Chocolate Doom. pause chocolate-setup goto start :MOD ECHO You have chosen to load a modification file. pause Set /P E=[What game are you playing (WAD filename)]? set /P D=[What WAD would you like to load (filename)]? :MOD2 Set /P G=[Will you load a .DEH file(Y or N)? if "%G%"=="y" goto deh if "%G%"=="n" goto nodeh ECHO You must type "y" or "n". Please try again. goto mod :nodeh chocolate-doom -iwad "%E%" -merge "%D%" goto start :deh Set /p F=[What DEH patch would you like to load (filename)]? chocolate-doom -iwad "%E%" -merge "%D%" -deh "%F%" goto start :HERETIC ECHO You have chosen to play Heretic: Shadow of the Serpent Riders pause chocolate-heretic goto start :HEXEN ECHO You have chosen to play Hexen: Beyond Heretic pause chocolate-hexen goto start :HEXDD ECHO You have chosen to play Hexen: Deathkings of the Dark Citadel pause chocolate-hexen -file hexdd.wad goto start :END exit


Step 3) Save the file as a Batch file "*.BAT" in your Chocolate Doom directory
Step 4) Run the batch file.

This will work on Windows XP because it doesn't use CHOICE.COM.

EDIT: Better code organization and a more verbose interface. I may publish the BAT for people who can't be bothered with these simple steps.

EDIT2: Now you can load a DEH file with it!

EDIT3: I've made it so the frontend loops back to the menu when an action is selected rather than closing out.

EDIT4: Integrated raven-branch support.

Last edited by Kagemaru_H on 02-28-10 at 01:50

Old Post 02-22-10 00:55 #
Kagemaru_H is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Kagemaru_H
Banned


Posts: 422
Registered: 09-09


Updated.

Also, if you wish to load another WAD, such as graphics or music, you should do the following:

Hell revealed is the only WAD I know to use an external music WAD, so type "hr.wad -file hrmus.wad".

Old Post 02-23-10 00:58 #
Kagemaru_H is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
entryway
Forum Staple


Posts: 2522
Registered: 01-04


1337

Old Post 02-23-10 02:35 #
entryway is online now Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
RazTK
Junior Member


Posts: 148
Registered: 10-05


Ah, batch files. Amazing little things. Also, you might want to add an "/i" switch to the IFs in the "MOD2" section of the code.

Old Post 02-23-10 10:42 #
RazTK is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Mr. T
Senior Member


Posts: 1136
Registered: 12-03



entryway said:
1337


This... haha

Old Post 02-23-10 11:56 #
Mr. T is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
fraggle
Super Moderator


Posts: 5904
Registered: 07-00


Nice, but it still does not compare to the awesomeness of The Ultimate WAD.BAT :-P

Old Post 02-23-10 12:42 #
fraggle is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Kagemaru_H
Banned


Posts: 422
Registered: 09-09



RazTK said:
Ah, batch files. Amazing little things. Also, you might want to add an "/i" switch to the IFs in the "MOD2" section of the code.


I just made the "y" and "n" lowercase, which is the next best thing.

EDIT: I linked to this page on the Chocolate Doom Wiki. The link to this page is a) for confirmation purposes and b) because Wiki fucks up the code.

Last edited by Kagemaru_H on 02-24-10 at 05:35

Old Post 02-24-10 01:02 #
Kagemaru_H is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Kagemaru_H
Banned


Posts: 422
Registered: 09-09


I have integrated support for the raven-branch.

Old Post 02-28-10 01:22 #
Kagemaru_H is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
ducon
Régulier du Forum


Posts: 1064
Registered: 12-03


I made something like this in Perl a few years ago.

__________________
A shell, an imp.

Old Post 02-28-10 07:36 #
ducon is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Kagemaru_H
Banned


Posts: 422
Registered: 09-09



ducon said:
I made something like this in Perl a few years ago.


Well some of us don't have Perl and have better things to do than figure out Perl, like create a MegaWAD or finish a game/book. Anyone who bothered to install Linux, Perl, or whatever else isn't really needed is wasting time solely for g33k c123d that they'll never get because the 10000 other geeks in the universe installed Linux and Perl. Why not do something else for geek cred, like get laid. The only reason I installed Firefox because I prefer it over IE. It's more stable and has a lot of things over IE.

Last edited by Kagemaru_H on 02-28-10 at 22:19

Old Post 02-28-10 22:06 #
Kagemaru_H is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Gez
Why don't I have a custom title by now?!


Posts: 6458
Registered: 07-07


There's Perl for Windows, you know.

Also, why do you have to be an ass?

Old Post 02-28-10 22:20 #
Gez is online now Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
esselfortium
Cumulonimbus Antagonistic Posting


Posts: 5153
Registered: 01-02



Kagemaru_H said:
Why not do something else for geek cred, like get laid.

Or insulting strangers for no reason on an internet forum about video games. Wait a minute--

Old Post 02-28-10 22:43 #
esselfortium is online now Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
fraggle
Super Moderator


Posts: 5904
Registered: 07-00



Kagemaru_H said:


Well some of us don't have Perl and have better things to do than figure out Perl, like create a MegaWAD or finish a game/book. Anyone who bothered to install Linux, Perl, or whatever else isn't really needed is wasting time solely for g33k c123d that they'll never get because the 10000 other geeks in the universe installed Linux and Perl. Why not do something else for geek cred, like get laid.

I suggest you ditch the shitty attitude fast or you won't be on these forums much longer.

Old Post 02-28-10 23:14 #
fraggle is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Patrick
someone employed to clean and maintain a building


Posts: 2005
Registered: 02-07


This is pretty cool, but does it have support for -merge (in case I don't feel like whipping out my copy of DEU to play Batman Doom?)

EDIT: heh, just because we play Doom doesn't mean we can't get girlfriends. unless you're AndrewB of course, but what's the worst that could happen ...

Old Post 02-28-10 23:20 #
Patrick is offline Profile || Blog || Search || Add Buddy IP || Edit/Delete || Quote
Kagemaru_H
Banned


Posts: 422
Registered: 09-09



Patrick said:
This is pretty cool, but does it have support for -merge (in case I don't feel like whipping out my copy of DEU to play Batman Doom?)


I just put the -merge function in the code not too long ago. Though D2Xtreme.deh and D2Xgold.deh don't work on Chocolate Doom. I'll download Batman Doom and try sometime.

Old Post 02-28-10 23:23 #
Kagemaru_H is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
ducon
Régulier du Forum


Posts: 1064
Registered: 12-03



Kagemaru_H said:

Why not do something else for geek cred, like get laid.



Programming this DOS script doesn’t make you a bit of a geek? ;-)
Of course my script is made for Unix, because Perl is very often installed even if you didn’t asked for it. But it might work in Windows if it is rewritten.

__________________
A shell, an imp.

Old Post 03-01-10 17:36 #
ducon is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Quasar
Moderator


Posts: 4484
Registered: 08-00


Isn't getting laid negative geek cred anyway?

Old Post 03-01-10 18:26 #
Quasar is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
HackNeyed
Member


Posts: 380
Registered: 08-04



Quasar said:
Isn't getting laid negative geek cred anyway?


Dressed as Princess Leia maybe?

Back on topic. That's a nice clean bat and should be helpful to some.

I've got a mess of a batch file that I made/I'm remaking for PrBoom-Plus. It can open the text file so I can read about the game/comp setting before adding the wads/dehs/complevel and it will spit out a batch file with the name of the first wad added. Then I have a recording batch that asks for a game bat to launch (the one made by the first batch file) and then asks for level and skill info to record a demo. Once the demo recording is done it asks what the time was and if I give a time it renames my demo modname-skill-level-time.lmp but if I leave it blank then it just starts the recording again. I keep adding and changing what I want it to do and where so it's a mess and I doubt many would find it useful but maybe I'll post it next time its in working order.

Old Post 03-01-10 19:37 #
HackNeyed is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Patrick
someone employed to clean and maintain a building


Posts: 2005
Registered: 02-07


could you add an option for demo playback/recording?

Old Post 03-01-10 21:42 #
Patrick is offline Profile || Blog || Search || Add Buddy IP || Edit/Delete || Quote
Kagemaru_H
Banned


Posts: 422
Registered: 09-09


Demos aren't really anything I'm into, but I'll add a command line option for advanced users, in which if you know the command or have a program to record/play demos, you can record and playback demos.

But for now, I don't know of a function for demo recording in Chocolate Doom, and I'll just throw in a command line and leave it to advanced users.

EDIT: My command line didn't work so well.
code:
:CMD set /p A=[CMD]? "%A%" goto START

Last edited by Kagemaru_H on 03-02-10 at 01:48

Old Post 03-02-10 01:13 #
Kagemaru_H is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
GhostlyDeath
Forum Retard


Posts: 783
Registered: 08-05



Kagemaru_H said:
Demos aren't really anything I'm into, but I'll add a command line option for advanced users, in which if you know the command or have a program to record/play demos, you can record and playback demos.

But for now, I don't know of a function for demo recording in Chocolate Doom, and I'll just throw in a command line and leave it to advanced users.

EDIT: My command line didn't work so well.
code:
:CMD set /p A=[CMD]? "%A%" goto START



-record <lump>, -playdemo <lump>, and -timedemo <lump>

Old Post 03-03-10 07:15 #
GhostlyDeath is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
RazTK
Junior Member


Posts: 148
Registered: 10-05


Kagemaru_H: Take a look on the following code. I think it can give you something to start off from, in case you want to add demo support.

code:
@echo off set x=0 for %%? in (PATH-TO-DEMOS\*.lmp) do call :addlmp %%? if %x% equ 0 goto :eof :choose set y=0 cls echo Demos echo ----- echo. for /l %%? in (1 1 %x%) do call echo %%?. %%file%%?%% echo. set /p y=Your choice: if %y% lss 1 (goto choose) else if %y% gtr %x% goto choose call start <SOURCE-PORT> -iwad <IWAD> -playdemo %%file%y%%% goto :eof :addlmp set /a x+=1 set file%x%=%* goto :eof

Old Post 03-03-10 08:56 #
RazTK is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 19:38. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Source Ports > My Chocolate Doom Frontend [Now with raven-branch support]

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Forums Directory