Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/willkirkmanm/modworkshop-dl
ℹ A Command-Line Utility Tool for Installing Mods from https://modworkshop.net/ (Written in Go🔵)
https://github.com/willkirkmanm/modworkshop-dl
command-line mod-downloader modworkshop payday-2 payday2 payday2mods utility
Last synced: 10 days ago
JSON representation
ℹ A Command-Line Utility Tool for Installing Mods from https://modworkshop.net/ (Written in Go🔵)
- Host: GitHub
- URL: https://github.com/willkirkmanm/modworkshop-dl
- Owner: WillKirkmanM
- License: mit
- Created: 2023-01-13T23:23:19.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-10-18T22:33:54.000Z (about 1 year ago)
- Last Synced: 2024-06-21T10:21:17.542Z (5 months ago)
- Topics: command-line, mod-downloader, modworkshop, payday-2, payday2, payday2mods, utility
- Language: Go
- Homepage:
- Size: 12.6 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# modworkshop-dl
## ℹ A Command-Line Utility Tool for Installing Mods from [Mod Workshop](https://modworkshop.net/)
# ⚠ Migration to a new Version ⚠
With the new addition of the [Modworkshop.net API](https://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](https://github.com/WillKirkmanM/modworkshop-dl/tree/v2)## Install (Conventional)
```sh
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
```## Install (One-Liner)
```sh
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
```### Get Started
#### Install via Searching
1. Run the tool with the `search` flag followed by your query
```
$ modworkshop-dl --search low violence mode
```
2. 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)
3. Launch `PAYDAY 2`!
#### Install from Link
1. 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
```
2. Launch `PAYDAY 2`!
#### Install from File
1. Create / Open the `modlist.txt` file (In the same directory as the executable).
2. Paste the desired mods in the "`Mods`" header
3. Paste the desired assets in the "`Assets`" header
4. Start the tool
```
$ modworkshop-dl --file modlist.txt
```
5. Launch `PAYDAY 2`!### Examples
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/41000Assets
https://modworkshop.net/mod/41001
https://modworkshop.net/mod/40586
```
### Usage
See the usage by running:
```
$ modworkshop-dl --help
```
```
Modworkshop-dl allows for installing mods with ease.usage: modworkshop-dl [] []
The following commands are available:
search, S The mod to search [-S ]
file, f The text file containing the mods [-f ]
install, I The Link / ModID To Be Installed [-I ]
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]
```### Supported Games
| 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.*
### Building
To build the files, run the command:
```
$ go build
```
If the above does not work try the command:
```
$ go install
```### Testing
To Test the Tool, Run the command:
```
$ go test
```
If you would like code coverage, run:
```
$ go test -cover
```### How does it work?
- Web Scraping with [Colly](http://go-colly.org/)
- Downloading with [Grab](https://github.com/cavaliergopher/grab)
- Interactive Terminal with [Uilive](https://github.com/gosuri/uilive)
- Unarchiving .zip / .rar / .tar with [Archiver v3](https://github.com/mholt/archiver)### What I've Learned
- 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.