Garry's Mod

Garry's Mod

Not enough ratings
|ENG| How to create your Addon for Garry's Mod| No programs and utilities|
By ŸouŋgPũrpleĎragōnŚtarlŏk
In this manual, I'll teach you how to upload an addon you've already prepared into a workshop, without having sex with programs, utilities and other trash.
   
Award
Favorite
Favorited
Unfavorite
Before you start work.
What do you need before you start acting on this manual:

1. The head. It's mandatory that you read the manual, understand how and what to do.

2. Straight hands. It's also very necessary to have, because if your hands are out of your ass, you can't do anything.

3. Desire. Even though the leadership is not great, stock up on patience and desire, as you can not immediately understand, but I tried to paint in detail.
And as the great Gabe said: Thanks, and have fun!
How to download an addon into a workshop.
LUA knowledge: Not required

Somehow I was looking for a normal article on how to make my addon for GMod and put it in the workshop, but except for the foreign off-site did not dig anything. I had to read it all out there.
But now I can describe in detail the algorithm of filling my addon in Steam WorkShop.

So, instructions:

1. For ease of work, create a separate folder.
I will have it D:/buster/

2. Create a folder where the files to be added to the addon will lie.
Let's say this is: D:/buster/TFAshit
Upload all files there, according to how they should be placed in the game folder.

D:/buster/TFAshit/lua/ - for scripts D:/buster/TFAshit/models/ - for models D:/buster/TFAshit/materials/ - for materials D:/buster/TFAshit/sounds/ - for sounds

3. Create a text document in the folder D:/buster/TFAshit and rename it to addon.json.
Insert the following inside the file:

{ "title" : "TFA is ♥♥♥♥", "type" : "model", "tags" : [ "roleplay", "realism" ], "ignore" : [ "*.psd", "*.vcproj", "*.txt", "*.svn*" ] }

Title is the name of your addon.
Type is an addon type.
Tags are the tags of your addon.
Ignore - files that will be ignored during processing.

4. When the content of the addon is ready, proceed to its packaging.
Create a text file in the folder D:/buster/ rename it to create.bat.
Insert the following inside the file:

D:\Steam\SteamApps\common\GarrysMod\bin\gmad.exe create -folder "D:\\buster\\TFAshit" -out "D:\\buster\\TFA_shit.gma" pause

D:\Steam\SteamApps\common\GarrysMod\bin\gmad.exe - this path is specified before the packer file. Note that path D:\Steam\ may differ depending on where you have Steam installed.

5. Run the create.bat file and wait until it is finished.
If it is successfully executed, it will give you a similar line:

Successfully saved to "D:\\buster\\TFA_shit.gma" [14.2 MB]

In the folder D:/buster/ after this operation should appear file TFA_shit.gma size 14.2 MB

6. After packing, we move on to the final stage.
Prepare a picture of 512x512 pixels in .jpg format and call it icon.jpg.
Create a text file in the folder D:/buster/ rename it upload.bat
Insert the following inside the file:

D:\Steam\SteamApps\common\GarrysMod\bin\gmpublish.exe create -addon "D:\buster\TFA_shit.gma" -icon "D:\buster\icon.jpg" pause

Save it and run it. We'll have to wait for a while.
If executed successfully, it will produce a similar result:

Publiched file! UID: 34895743 Your file is marked as private - only you will be able to see it. Please mark is as public only when you have tested it!! Cleaning up.. All done!

This information informs us that the addon has been successfully downloaded and marked as private (i.e. visible only to you).
To publish the addon, please follow this link.


where xxxxxx is the UID from the result.

7. Configure the addon and set the Permissions to Open.

That's it! Your own addon is ready for use!
Write your questions here.
Epilogue
Thank you so much to everyone who read this manual. Here I have taught you how to load your addon into a workshop easily and without any extra programs or other ♥♥♥♥. I hope that this guide will help both beginners and professionals who play gmod to further develop this wonderful game which I love and appreciate very much.
5 Comments
ŸouŋgPũrpleĎragōnŚtarlŏk  [author] Dec 13, 2022 @ 9:30am 
@ValkTheBoxman
Yea, you right
ScottyNewman Dec 13, 2022 @ 2:07am 
For people who are confused, the ``ignore`` header is used to ignore the files that gmod doesnt need.
Acid Jun 26, 2022 @ 10:14pm 
What exactly does the definition for Ignore mean, Im a little confused. Also, how do I make it ignore things and is it important? Thanks.
ŸouŋgPũrpleĎragōnŚtarlŏk  [author] Aug 11, 2020 @ 3:44am 
@SOVIET_ONION223
THX
WitchlyWonders223 Aug 10, 2020 @ 2:36pm 
This deserves more praise