βΉ A Command-Line Utility Tool for Installing Mods from Mod Workshop
With the new addition of the Modworkshop.net API. I am in the process of cleaning up the code to implement these new additions (removes the tedious web scraping, YES!). This will be in the form of a version 2. View the Development Branch Here
mkdir "C:\Program Files (x86)\Modworkshop-DL"
setx PATH "C:\Program Files (x86)\Modworkshop-DL;%PATH%"
curl https://github.com/WillKirkmanM/modworkshop-dl/releases/download/v1.5.0/modworkshop-dl.exe -o "C:\Program Files (x86)\Modworkshop-DL\modworkshop-dl.exe"
powershell
mkdir "C:\Program Files (x86)\Modworkshop-DL";setx PATH "C:\Program Files (x86)\Modworkshop-DL;%PATH%";curl https://github.com/WillKirkmanM/modworkshop-dl/releases/download/v1.5.0/modworkshop-dl.exe -o "C:\Program Files (x86)\Modworkshop-DL\modworkshop-dl.exe";echo "";echo "Installed! Run the Command 'modworkshop-dl --help'";echo "";echo "Restarting Terminal";echo "";powershell
- Run the tool with the
search
flag followed by your query
$ modworkshop-dl --search low violence mode
- From the list of mods returned, write the index of the mod you would like to download (The mod will now be downloaded into your mods folder)
- Launch
PAYDAY 2
!
- Run the tool with the
install
flag followed by the link to the mod (The mod will now be downloaded into your mods folder)
$ modworkshop-dl --install https://modworkshop.net/mod/25629
- Launch
PAYDAY 2
!
- Create / Open the
modlist.txt
file (In the same directory as the executable). - Paste the desired mods in the "
Mods
" header - Paste the desired assets in the "
Assets
" header - Start the tool
$ modworkshop-dl --file modlist.txt
- Launch
PAYDAY 2
!
Below is an example of the mod list text file that you will be supplied with the --file
flag. Note that the mods links are under the Mods
header and the assets links are below the Assets
header.
# modlist.txt
Mods
https://modworkshop.net/mod/40265
https://modworkshop.net/mod/40992
https://modworkshop.net/mod/41000
Assets
https://modworkshop.net/mod/41001
https://modworkshop.net/mod/40586
See the usage by running:
$ modworkshop-dl --help
Modworkshop-dl allows for installing mods with ease.
usage: modworkshop-dl [<command>] [<argument>]
The following commands are available:
search, S The mod to search [-S <Name>]
file, f The text file containing the mods [-f <File>]
install, I The Link / ModID To Be Installed [-I <Link / ModID>]
help, h Display this Help Message [-h]
version, v Display the Current Version [-v]
update, u Update Modworkshop-DL [-u]
installSBLT, is Install SuperBLT [-is]
Game | Windows | Mac | Linux | Mod Install Path |
---|---|---|---|---|
Payday 2 | π© | π₯ | π₯ | π© |
Noita | π© | π₯ | π₯ | π© |
Enter the Gungeon | π© | π₯ | π₯ | π© |
Payday: The Heist | π© | π₯ | π₯ | π© |
Final Fantasy XV | π© | π₯ | π₯ | π₯ |
Stolen Realm | π© | π₯ | π₯ | π₯ |
RAID: World War II | π© | π₯ | π₯ | π₯ |
Aurora | π© | π₯ | π₯ | π₯ |
Zuma | π© | π₯ | π₯ | π₯ |
Luxor | π© | π₯ | π₯ | π₯ |
VRChat | π© | π₯ | π₯ | π© |
Left 4 Dead 2 | π© | π₯ | π₯ | π© |
Hitman 3 | π© | π₯ | π₯ | π₯ |
Monster Sanctuary | π© | π₯ | π₯ | π© |
Fallout 4 | π© | π₯ | π₯ | π© |
Teardown | π© | π₯ | π₯ | π© |
Black Mesa | π© | π₯ | π₯ | π₯ |
Yakuza Kiwami 2 | π© | π₯ | π₯ | π₯ |
Hotline Miami 2: Wrong Number | π© | π₯ | π₯ | π© |
Friday Night Funkin' | π© | π₯ | π₯ | π₯ |
Hotdogs, Horseshoes & Hand Grenades | π© | π₯ | π₯ | π₯ |
Yakuza Kiwami 1 | π© | π₯ | π₯ | π₯ |
100% Orange Juice | π© | π₯ | π₯ | π© |
Hyperdimension Neptunia Re;Birth2 | π© | π₯ | π₯ | π₯ |
Non-games / Plugins | π© | π₯ | π₯ | π₯ |
Yakuza 0 | π© | π₯ | π₯ | π₯ |
One Step From Eden | π© | π₯ | π₯ | π₯ |
OVERKILL's The Walking Dead | π© | π₯ | π₯ | π₯ |
The Elder Scrolls V: Skyrim - Legendary Edition | π© | π₯ | π₯ | π© |
SCP: Containment Breach | π© | π₯ | π₯ | π₯ |
Fallout: New Vegas | π© | π₯ | π₯ | π© |
OneShot | π© | π₯ | π₯ | π₯ |
SteamVR | π© | π₯ | π₯ | π© |
Criminal Girls: Invite Only | π© | π₯ | π₯ | π₯ |
Gal*Gun: Double Peace | π© | π₯ | π₯ | π© |
Warhammer: End Times - Vermintide | π© | π₯ | π₯ | π© |
Tales of Berseria | π© | π₯ | π₯ | π₯ |
Team Fortress 2 | π© | π₯ | π₯ | π₯ |
Hyperdimension Neptunia Re;Birth3 | π© | π₯ | π₯ | π₯ |
Hyperdimension Neptunia Re;Birth1 | π© | π₯ | π₯ | π₯ |
Metal Gear Solid V: The Phantom Pain | π© | π₯ | π₯ | π₯ |
Skyrim Special Edition | π© | π₯ | π₯ | π₯ |
Forspoken | π© | π₯ | π₯ | π₯ |
A Red Square (π₯) in the Mod Install Path
section of the table indicates the mod will be downloaded and unzipped in the current directory of the terminal.
To build the files, run the command:
$ go build
If the above does not work try the command:
$ go install
To Test the Tool, Run the command:
$ go test
If you would like code coverage, run:
$ go test -cover
- Web Scraping with Colly
- Downloading with Grab
- Interactive Terminal with Uilive
- Unarchiving .zip / .rar / .tar with Archiver v3
- The "Fundahmentals" of Golang β©
- Command Line Tooling (How they are made) πΏ
- Web Scraping β¨
- As a person with OCD. Never write all of your code in one file, You'll go Crazy.