Announcement

Collapse
No announcement yet.

Mod Selector Batch File

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mod Selector Batch File

    Hey guys. Made this quick batch file you could use to set up a menu to run various mods in your quake folder. I suppose you could just simply use miniql or similar but just thought someone might find it useful. Easily adjustable.
    And you get to learn a bit about win batch!

    Basically just paste this into notepad or similar and save it as whatever.bat Obviously have it in your quake folder! But you can set it up to work from anywhere by changing the directories under the udefine. Have fun!

    Code:
    @echo off
    color 0c
    title Darkplaces Mod Selection
    :top
    echo ***************************************************************
    echo.
    echo Darkplaces Mod Selection
    echo.
    echo ***************************************************************
    echo.
    echo [1] Darkplaces Mod
    echo [2] Zeus Bot
    echo [3] Reaper Bot (Missing)
    echo [4] FrikBot
    echo [5] Kleshik Coop Mod
    echo [6] The Myths Mod
    echo [7] Beyond Belief Mod
    echo [8] Travail Mod
    echo [9] Mission Pack 1
    echo [10] Mission Pack 2
    echo [11] Mission Pack 3 (Missing)
    echo [12] QuakeInjector Map Selector
    echo.
    echo [e] Exit
    echo.
    echo ***************************************************************
    echo Enter the number of the MOD which you would like to start:
    echo.
    set /p udefine= 
    echo.
    echo ***************************************************************
    if %udefine%==1 start darkplaces.exe -game dpmod
    if ෯ine%==2 start darkplaces.exe -game ZeusBot
    if ෯ine%==3 start darkplaces.exe -game ReaperBot
    if ෯ine%==4 start darkplaces.exe -game frikbot
    if ෯ine%==5 start darkplaces.exe -quake -game rogue -game hipnotic -game id1 -game kleshik
    if ෯ine%==6 start darkplaces.exe -hipnotic -game themyths
    if ෯ine%==7 start darkplaces.exe -rogue -game bbelief
    if ෯ine%==8 start darkplaces.exe -game travail -travail
    if ෯ine%==9 start darkplaces.exe -hipnotic
    if ෯ine%==10 start darkplaces.exe -rogue +game rogue
    if ෯ine%==11 start darkplaces.exe -rogue -game abyss
    if ෯ine%==12 start quakeinjector.jar
    if ෯ine%==e goto exit
    
    cls
    echo ***************************************************************
    echo.
    echo Your Mod is Running using Darkplaces Mod Selector!
    echo.
    echo ***************************************************************
    echo Type [e] to exit or [b] to go back and select MOD.
    echo.
    set /p udefine=
    echo.
    echo ***************************************************************
    if ෯ine%==b goto top
    if ෯ine%==e goto exit
    :exit
    cls
    echo ***************************************************************
    echo.
    echo Thank You for using Darkplaces Mod Selector! Happy Quaking! :)
    echo.
    echo ***************************************************************
    pause
    exit
    Last edited by PrimalLove; 08-12-2014, 08:57 PM. Reason: error

  • #2
    For whatever reason it keeps messing up when I post with the % in the code. I'll just post the file. It's virus free in a zip file.

    Download Here
    Last edited by PrimalLove; 08-10-2014, 08:24 PM.

    Comment


    • #3
      thank you!! the virus is awesome for trolling people
      the invasion has begun! hide your children, grab the guns, and pack sandwiches.

      syluxman2803

      Comment


      • #4
        Another totally useless bicycle invention.....
        MOD it! Start Point Remake Quake Scout's Journey Quaketastic WhiteDay Quake Terminus UQE

        Comment


        • #5
          LOL! Yeah im here to help feed the trolls

          Speaking of which. I decided to rewrite this a bit so that it take into account you pressing just any old thing into the selection field. LoL! Here ya go!


          Code:
          @echo off
          color 0c
          title Darkplaces Mod Selection
          :Menu
          echo ***************************************************************
          echo.
          echo Darkplaces Mod Selection
          echo.
          echo ***************************************************************
          echo.
          echo [1] Darkplaces Mod
          echo [2] Zeus Bot
          echo [3] Reaper Bot (Missing)
          echo [4] FrikBot
          echo [5] Kleshik Coop Mod
          echo [6] The Myths Mod
          echo [7] Beyond Belief Mod
          echo [8] Travail Mod
          echo [9] Mission Pack 1
          echo [10] Mission Pack 2
          echo [11] Mission Pack 3 (Missing)
          echo [12] QuakeInjector Map Selector
          echo.
          echo [q] Exit
          echo.
          echo ***************************************************************
          echo Enter the number of the MOD which you would like to start:
          echo.
          set INPUT=
          SET /P INPUT=Selection:
          echo.
          echo ***************************************************************
          if /I '%INPUT%'=='1' GOTO Select1
          if /I '%INPUT%'=='2' GOTO Select2
          if /I '%INPUT%'=='3' GOTO Select3
          if /I '%INPUT%'=='4' GOTO Select4
          if /I '%INPUT%'=='5' GOTO Select5
          if /I '%INPUT%'=='6' GOTO Select6
          if /I '%INPUT%'=='7' GOTO Select7
          if /I '%INPUT%'=='8' GOTO Select8
          if /I '%INPUT%'=='9' GOTO Select9
          if /I '%INPUT%'=='10' GOTO Select10
          if /I '%INPUT%'=='11' GOTO Select11
          if /I '%INPUT%'=='12' GOTO Select12
          if /I '%INPUT%'=='q' goto exit
          cls
          
          ECHO ============INVALID INPUT============
          ECHO -------------------------------------
          ECHO Please select a number from the Main
          echo Menu [1-12] or select 'Q' to quit.
          ECHO -------------------------------------
          ECHO ======PRESS ANY KEY TO CONTINUE======
          
          PAUSE > NUL
          GOTO Menu
          
          :Select1
          start darkplaces.exe -game dpmod
          goto MOD
          :Select2
          start darkplaces.exe -game ZeusBot
          goto MOD
          :Select3
          start darkplaces.exe -game ReaperBot
          GOTO MOD
          :Select4
          start darkplaces.exe -game frikbot
          GOTO MOD
          :Select5
          start darkplaces.exe -quake -game rogue -game hipnotic -game id1 -game kleshik
          GOTO MOD
          :Select6
          start darkplaces.exe -hipnotic -game themyths
          GOTO MOD
          :Select7
          start darkplaces.exe -rogue -game bbelief
          GOTO MOD
          :Select8
          start darkplaces.exe -game travail -travail
          GOTO MOD
          :Select9
          start darkplaces.exe -hipnotic
          GOTO MOD
          :Select10
          start darkplaces.exe -rogue +game rogue
          GOTO MOD
          :Select11
          start darkplaces.exe -rogue -game abyss
          GOTO MOD
          :Select12
          start Quake Injector\quakeinjector.jar
          goto MOD
          :MOD
          CLS
          echo ***************************************************************
          echo.
          echo Your Mod is Running using Darkplaces Mod Selector!
          echo.
          echo ***************************************************************
          echo Type [q] to exit or [b] to go back and select another MOD.
          echo.
          set /p INPUT=Selection:
          echo.
          echo ***************************************************************
          if /I %INPUT%==b goto Menu
          if /I %INPUT%==q goto exit
          :exit
          cls
          echo ***************************************************************
          echo.
          echo Thank You for using Darkplaces Mod Selector! Happy Quaking! :)
          echo.
          echo ***************************************************************
          pause
          exit
          No idea if it will show up correctly in the post. *Crosses fingers*

          Comment


          • #6
            Originally posted by hgdagon View Post
            Another totally useless bicycle invention.....
            Yeah I can see your point, I did mention it was not a necessity. More for those that just wanted a batch file to run with predefined variables. But yeah, I was just bored and I use it myself because it's convenient.

            Comment


            • #7
              actually its kinda cool. not every day you see batch files anymore.
              www.quakeone.com/qrack | www.quakeone.com/cax| http://en.twitch.tv/sputnikutah

              Comment


              • #8
                Originally posted by R00k View Post
                actually its kinda cool. not every day you see batch files anymore.
                Yeah batch files are close to my heart I do alot of remote server work and sometimes these babies can save you a ton of headache If you are into batch stuff check out WinBatch Comes with a complier and everything. I'd say it's on par with AutoHotKey tho I think WinBatch is much more versatile but i'm bias. Both are great automation tools for windows.

                Comment


                • #9
                  I once did something like that in bash to run DOOM wads.
                  Scout's Journey
                  Rune of Earth Magic

                  Comment


                  • #10
                    Originally posted by PrimalLove View Post
                    ...I use it myself because it's convenient.
                    This is convenient.
                    MOD it! Start Point Remake Quake Scout's Journey Quaketastic WhiteDay Quake Terminus UQE

                    Comment


                    • #11
                      Originally posted by hgdagon View Post
                      This is convenient.
                      Yes I also love that app. But I also like batch files.

                      Comment


                      • #12
                        Originally posted by PrimalLove View Post
                        Yes I also love that app. But I also like batch files.
                        Oh, so you just like oldskul stuff? Can't blame you, I have the same "desease"...
                        MOD it! Start Point Remake Quake Scout's Journey Quaketastic WhiteDay Quake Terminus UQE

                        Comment


                        • #13
                          More importantly this is a very simple version that doesn't do much. My personal version has much more functionality. For instance it also has a server selector for my favorite servers, the ability to manually enter commandline extras and various menus but I use MiniQL quite a bit too especially if I just want to run maps real quick. But the batch file lets me run preconfigured variables quickly, connect to fav servers quickly, etc.

                          Comment

                          Working...
                          X