Skip to content

Commit

Permalink
some edits
Browse files Browse the repository at this point in the history
  • Loading branch information
SupinePandora43 committed Jun 26, 2019
1 parent e2c3e27 commit 03ba45d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
21 changes: 15 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,25 @@
* Download only if update available
* Download progress
* Custom configuration (main.cfg)
## How-To-Use
1. change paths in main.cfg (`gmad_path`, `gmod_path`, `temp_path`)
2. enter in command line/prompt `python main.py -install` (steam workshop link)
## How To Install
1. download exe from [releases](https://github.com/SupinePandora43/gmod-manager/releases)
2. move `gmod-manager.exe` to `Garry's Mod/garrysmod` folder, run it!
3. change [paths](#Paths) in `main.cfg`
4. enter in command line/prompt `gmod-manager.py -install` (steam workshop link)
## Arguments
* `-install` - argumant for providing workshop urls/id's. `python main.py -install https://steamcommunity.com/sharedfiles/filedetails/?id=1771611119`
* `-install` - argument for providing workshop urls/id's. `python main.py -install https://steamcommunity.com/sharedfiles/filedetails/?id=1771611119`
* `-nocheck` - argument for disabling checking for updates, addons in addons.json. `python main.py -nocheck -install https://steamcommunity.com/sharedfiles/filedetails/?id=1771611119`
## Requirements
## Paths
Path | Optional | Description | Default value
--|--|--|--
| `gmad_path` | :heavy_multiplication_x: | path to `gmad.exe` | `gmad.exe` ( if in gmod folder: `../bin/gmad.exe`)
| `temp_path` | :heavy_check_mark: | temp folder | `temp`
| `gmod_path` | :heavy_check_mark: | path to `garrysmod` | `.`

## Build Requirements
* Python 3
## Limitations
* finds addons.json only in script folder
* uses addons.json only in self folder
* can't dedupe collections

inspired by https://github.com/magnusjjj/gmadget
Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
config = ConfigParser()
if not os.path.exists("main.cfg"):
config.add_section("main")
config.set("main", "gmad_path", "gmad.exe")
config.set("main", "gmad_path", os.path.exists("../bin/gmad.exe") and "../bin/gmad.exe" or "gmad.exe" )
config.set("main", "temp_path", "temp")
config.set("main", "gmod_path", ".")
with open("main.cfg", "w") as configFile:
Expand Down

0 comments on commit 03ba45d

Please sign in to comment.