• GMosh: Cross platform workshop/GMA cli powertool
    24 replies, posted
[img]http://i.imgur.com/ee18FSC.png[/img] [b]GMosh[/b]. The [I]ultimate[/I] workshopper tool for power users. [B]Features:[/B] - Publish addons to the workshop (as simple as entering "gmosh" in the terminal!) - Update existing addons on the workshop - Create/extract GMA files - List the files of a GMA file - Generate an addon.json file - [highlight]Downloading addons directly from the workshop without having to subscribe or start gmod![/highlight] (Thanks Willox for the help!) [B]Download:[/B] Windows, Linux AND osx: [url]https://github.com/FPtje/gmosh/releases[/url] [B]Source:[/B] [url]https://github.com/FPtje/gmosh[/url] [B]How to use:[/B] See [I]gmosh --help[/I] or [url=https://github.com/FPtje/gmosh/blob/master/README.md]the readme[/url] [B]FAQ:[/B] [I]What is a cli?[/I] Command Line Interface. It means that it's a program that you use through the command prompt or terminal. [I]But why a command prompt/terminal?[/I] Well, if you update your addon very often, it can become a pain in the arse to start a program, enter the necessary addon details and then click publish. Some people want a fast way to publish updates. That's exactly what the cli does. Especially for people who are well versed with the Linux/OSX terminal this program should be great. [I]But I never have my command prompt/terminal open. I would have to open it just to use gmosh![/I] Well, you could change your workflow to use the terminal more. It can be really powerful once you know how it works. Also, an alternative for the terminal is just to create a batch file (on Windows) in your addon folder with the following contents: [code] gmosh PAUSE[/code] call it "updateworkshop.bat" or something. It will be as easy to update your addon and you won't have to use the terminal! Make sure you add the batch file to the ignore list of your addon.json. [B]Screenshots[/B] Upload to workshop with right click! (Windows only that one) [vid]https://dl.dropboxusercontent.com/u/6766710/webmvids/gmoshcontext.webm[/vid] The help page: [img]http://i.imgur.com/zpLOvSu.png[/img] Publishing an addon to the workshop (Note that I just entered "gmosh" without any command line parameters!) [t]http://i.imgur.com/IUEmXlE.png[/t] Listing the contents of a GMA file on Windows: [t]http://i.imgur.com/hoIbuFA.png[/t]
Thanks for this! The old workshopper is driving me crazy.
[QUOTE=FPtje;44400124]Why SourceForge you ask? Good question. I needed a nice thing to distribute the binaries. I hate the download delay, though. Alternatives are welcome.[/QUOTE] [url]https://github.com/FPtje/gmosh/downloads[/url] ? It seems it's deprecated though. However, they opened a new feature. [url=https://github.com/blog/1547-release-your-software]Releases[/url]. [url=https://help.github.com/articles/creating-releases]Also this[/url].
[QUOTE=danielga;44400280][url]https://github.com/FPtje/gmosh/downloads[/url] ? It seems it's deprecated though. However, they opened a new feature. [url=https://github.com/blog/1547-release-your-software]Releases[/url]. [url=https://help.github.com/articles/creating-releases]Also this[/url].[/QUOTE] Awesome! Edited OP with Github downloads. Thanks!
I can't figure out OSX. The installation of it freezes on virtualbox on my laptop and my dad's Macbook can't compile it because it [I]bitches[/I] about zlib. Python3, osx and zlib don't go well together.
-snip- Didn't readed the bottom of readme
Three times hooray for Bo98! He fixed up the compilation process for OSX and provided me with the latest binaries of gmosh. That means you can now install gmosh on Windows, Linux AND OSX! Download here: [url]https://github.com/FPtje/gmosh/releases[/url]
Alright, there was an error in the install script for Linux and OSX that broke gmpublish. Then there was another error in OSX causing the install.command file not to work when double clicking it. It should be fixed in the latest version. Get the Linux/Windows/OSX version here: [url]https://github.com/FPtje/gmosh/releases[/url] Also, I finally got python to work on my dad's Macbook. I should have access to it every weekend. [editline]4th April 2014[/editline] In another note, this program doesn't seem to be popular at all. I didn't expect that many people to hate the CLI. Also, please tell me if it doesn't work. Previous builds turned out not to work at all. Who knows there are still some errors. This is my first Python program. I'll probably make more mistakes like this.
If Found bugs? or Error where could report bugs/error?? Papa Acachalla=Me?!
This thread or github issues.
Tried this last night, doesn't work... it packs and uploads to the workshop, but the resulting addon cannot be downloaded and mounted, it gets removed for being invalid or something.
Could you give me specific errors? The latest version of FPP has been uploaded by gmosh. That seems to work fine. Maybe it's something in your addon?
[QUOTE=FPtje;44460392]Could you give me specific errors? The latest version of FPP has been uploaded by gmosh. That seems to work fine. Maybe it's something in your addon?[/QUOTE] nah, I redid it all manually with gmad and gmpublish, it works fine that way. I don't have the errors any more, but it was showing in the in-game console when it tried to download the addon and mount it. I tried replacing gmpublish in the gmosh folder with the one in my garrysmod\bin, but that just causes it to crash when it runs.
Trying to figure this out gmosh: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.17' not found (required by /opt/gmosh/libpython3.3m.so.1.0)
Install glibc?
For those working with Python 3.4, cx_freeze for python 3.4 is fucked. To get it to work, clone this repository: ssh://hg@bitbucket.org/takluyver/cx_freeze hg update py34-collections-abc hg merge thaw-importlib then install it. That'll save you a headache. EDIT: Holy shitballs people, look at this crap: [vid]https://dl.dropboxusercontent.com/u/6766710/webmvids/gmoshcontext.webm[/vid] You can update workshop addons by right clicking the folder! Download now! [url]https://github.com/FPtje/gmosh/releases/tag/v0.95-windows[/url] (Non-Windows users should use [url=https://github.com/FPtje/gmosh/releases/tag/V0.94]0.94[/url], which was also updated today)
Important fix for Windows! This version fixes a BIG problem in Windows where addons published in Windows would NOT work in Linux or OSX!! Update now! This bug does not apply to the Linux and OSX versions of GMosh. [url]https://github.com/FPtje/gmosh/releases/tag/v0.96-Windows[/url]
Version 1.1.0: Allows maps/*.png instead of just maps/thumbs/*.png. Added --addon command line parameter for a custom addon.json file. With this you can have multiple addons in a single folder. This is useful e.g. when you have a gamemode with lots of models and materials and have separate workshop addons for those. [url]https://github.com/FPtje/gmosh/releases/tag/v1.1.0[/url]
Woohoo! Half year bump! Version 1.2.0 with an awesome feature! [B]Downloading addons from the workshop without subscribing or starting gmod![/B] [B]Usage:[/B] Downloading and extracting DarkRP: [code] gmosh -De 248302805 [/code] Will download the gma file to 248302805.gma and extract it to ./DarkRP Downloading DarkRP's gma file without extracting it: [code] gmosh -D 248302805 [/code] Download for Windows and Linux here: [url]https://github.com/FPtje/gmosh/releases[/url] No OSX for now. I don't have access to my dad's macbook at the moment. Sorry guys!
[QUOTE]C:\Users\Tomelyr\Documents\Neuer Ordner (10)>gmosh -De 349050451 Downloading 'Customizable Weaponry 2.0' from the workshop Getting... [url]http://cloud-4.steamusercontent.com/ugc/29611747687334135/5DE7B4BD1C5[/url] B3D1E2CF0220EEFBC7553963EE5A8/ Compiling... 349050451.gma.lzma Done. Downloaded '%s' from the workshop. Decompressing... Traceback (most recent call last): File "C:\Python34\lib\site-packages\cx_Freeze\initscripts\Console.py", line 27 , in <module> File "src/gmosh.py", line 326, in <module> File "src/gmosh.py", line 49, in main File "src/gmosh.py", line 263, in download File "src/gmosh.py", line 269, in extract File "src\gmafile.py", line 128, in extract File "C:\Python34\lib\site-packages\construct\core.py", line 198, in parse_str eam File "C:\Python34\lib\site-packages\construct\core.py", line 670, in _parse File "C:\Python34\lib\site-packages\construct\core.py", line 1354, in _parse construct.core.TerminatorError: expected end of stream C:\Users\Tomelyr\Documents\Neuer Ordner (10)> [/QUOTE] When i tried to Download CW2.0
[QUOTE=Tomelyr;47455988]When i tried to Download CW2.0[/QUOTE] I can reproduce that, but there's something weird going on with that addon. [code] falco@manjaro:~/Downloads$ unlzma -d addon_uploads_1427491520_865218200.gma.lzma unlzma: addon_uploads_1427491520_865218200.gma.lzma: Compressed data is corrupt[/code] Oh, it turns out the decompressing is fine, but the extracting goes wrong because there are zeroes padded to the end of the file. Coming up with a fix.
Fixed in this version: [url]https://github.com/FPtje/gmosh/releases/tag/v1.3.0[/url]
[QUOTE]C:\Users\Tomelyr\Documents\Neuer Ordner (9)>gmosh -De 185609021 Downloading 'Atmos - Day / Night and Weather Modification' from the workshop Getting... [url]http://cloud-4.steamusercontent.com/ugc/597034397211249157/9FB0726204[/url] D473E5D19EBEFC915769C4628CFD2B/ Compiling... 185609021.gma.lzma Done. Downloaded 'Atmos - Day / Night and Weather Modification' from the workshop. Dec ompressing... Traceback (most recent call last): File "C:\Python34\lib\site-packages\cx_Freeze\initscripts\Console.py", line 27 , in <module> File "src/gmosh.py", line 339, in <module> File "src/gmosh.py", line 50, in main File "src/gmosh.py", line 276, in download File "src/gmosh.py", line 282, in extract File "src\gmafile.py", line 137, in extract File "X:\Python34\lib\os.py", line 227, in makedirs File "X:\Python34\lib\os.py", line 227, in makedirs File "X:\Python34\lib\os.py", line 237, in makedirs FileNotFoundError: [WinError 3] Das System kann den angegebenen Pfad nicht finde n: 'Atmos - Day / Night and Weather Modification' C:\Users\Tomelyr\Documents\Neuer Ordner (9)>[/QUOTE] When trying to download Atmos. it seems like it tired to create the Folder "Atmos - Day [B]/[/B][I]<-- Important Bit[/I] Night and Weather Modification". \ / : ? * < > and | are not permited for Windows as Foldernames. Maybe strip them? Edit:// Btw. gmosh creates the folder, but only until the / bit. Basicly it creates Atmos - Day from "Atmos - Day / Night and Weather Modification", but still tries to look for the full name.
I'll fix that later. For now you can download it with gmosh -D and extract it later.
[url]https://github.com/FPtje/gmosh/releases/tag/v1.3.1[/url]
Sorry, you need to Log In to post a reply to this thread.