How To Upload A Addon To The Workshop Gmod
Publish an addon on the Gmod workshop
🇫🇷 🇬🇧
Norda Creator of this doctor
Certificate Updated ago
Hello! I've been asked far too much that I decided to make a documentation of it in guild to share the solution as well as possible to avoid repeating myself in my tickets. With this documentation you can create an addon(gma file), upload it, update your addon on the workshop, create a drove, associate a collection to your server, force your users to download the addons yous created.
If this documentation has helped yous, don't hesitate to transport me a private message. Your enthusiast makes me happy to see.
Regards,
Contents :
- HOW TO CREATE AND PUBLISH AN ADDON ON THE WORKSHOP?
ane.1 What's an addon on the workshop, what's information technology for?
1.2 How to create the GMA file to upload?
ane.3 Publish the addon on the workshop
1.iv How to observe the addon ID on the workshop?
1.v How to force the upload of addons to your server?
1.six Publish an addon update on the workshop - HOW TO CREATE AND Add A Collection TO A GARRY'S Mod SERVER?
ii.1 What is a collection on the workshop, what is it for?
2.2 Create a collection of addons for Garry'due south Mod
2.iii How to detect the collection identifier on the workshop?
2.4 How to add together a workshop collection to your Gmod server?
HOW TO CREATE AND PUBLISH AN ADDON ON THE WORKSHOP?
one.1 What's an addon on the workshop, what's it for?
When you lot upload models, materials, maps on your server, the content is only for your server, if a role player joins your server and he is missing his resources, he won't become the sounds, textures problems (Pink and Black), red MODEL ERRORS, in short, all that means he is missing something on his hard bulldoze.
To solve this, he will need to have the contents of installed on his computer, for this you tin put its contents in an addon to share its elements easily.
There are several methods of sharing, via the Lua file described in this documentation below. The user tin likewise "Subscribe" on the addon folio. Or include it in a collection I besides took the care to explain below.
one.two How to create the GMA file to upload?
We presume that your addon is already working, if you are new here is the structure of the folder already explained here : File structure
In this caption nosotros're going to call the addon : gmodaddon.gma
Before you can publish your addon you will accept to compress your folder into GMA, because it is this GMA file that you volition upload, so our start goal is to get the famous gmodaddon.gma. To do this you volition accept to do information technology via your command prompt and and then doing everything step past pace is a piece of cake there are only three commands. The first to go to a folder, the 2d to shrink (create your GMA), the third to upload.
Before typing the commands to plough your folder into gmodaddon.gma you'll accept to put one matter at the root of your addon binder :
A text file that you will name addon.json, I use :
{
"title" : "gmodaddon",
"blazon" : "ServerContent",
"tags" : [],
"ignore" :
[]
}
It's the bare minimum to function. The content of the addon.json file volition be editable from the addon page on steam.
And so nosotros can start with the commands :
- To open the command prompt: Press Windows+R and type cmd in the Run window.
- Yous will demand to become to the bin folder of your gmod installation where gmad.exe is located and enter the command :
cd /Programme Files (x86)/Steam/steamapps/common/GarrysMod/bin
In this example my addon folder is on my desktop:
And we're going to run gmad.exe and bespeak to the folder gmodaddon to compress it to .gma
gmad.exe create -binder C:Users/user/Desktop/gmodaddon
Now you have your gmodaddon.gma. Later a little processing time y'all will get a confirmation that your gma has been created and volition find your gmodaddon.gma in the same folder where your addon binder was. If yous accept this gma under the elbow to publish information technology you can go to the next step.
Beware it doesn't piece of work if you forget to put the addon.json file within.
1.3 Publish the addon on the workshop
You need an image for your addon on the workshop:
The epitome for the workshop in jpg format and with dimensions of 512x512 we will proper noun it addon_image.jpg in this example.
Then you have at hand your gmodaddon.gma (your addons) and your image.
Then you are still in the bin folder of your gmod installation where gmad.exe was, but this time you will run gmpublish.exe to upload your gmodaddon.gma file:
gmpublish.exe create -icon C:Users/user/Desktop/addon_image.jpg -addon C:Users/user/Desktop/gmodaddon.gma
Y'all volition and then encounter the percentage of the progress catastrophe with a : Success!
Now you'll just take to go to your contour folio to see your addon online.
Shortcut link : Your workshop showcase
ane.v How to forcefulness the upload of addons to your server?
To commencement you will create a file in the autorun binder of your server called workshop_addons.lua, path :
garrysmod/garrysmod/lua/autorun/server/workshop_addons.lua
Open the file with any text editor and you will insert this line : resource.AddWorkshop( "Workshop_Addon_ID" )
Example :
resource.AddWorkshop("109691377") -- Content ressource of Zworld
resources.AddWorkshop("109691377") -- Map
Use -- to annotate in lua file :
-- Map
Duplicate this line by irresolute the ID for each addon that you desire to strength the user to download when logging in.
1.6 Publish an addon update on the workshop
Yous may have added textures and templates in your package then don't forget to update your addon on the workshop to share the content with your users. Re-create the updated gma file (explained above) that yous will upload except that this time the control to update an existing product will ask you to insert your workshop id (also explained above). In my example the number of my addon is: "109691377".
gmpublish update -addon "C:/Users/PCFIX/Desktop/gmodaddon.gma" -id "109691377" -changes "Add together Content"
Terminé.
2. HOW TO CREATE AND ADD A COLLECTION TO A GARRY'Southward Modernistic SERVER?
2.1 What is a collection on the workshop, what is it for?
A collection is a collection of addons that makes upward the content of your server, so your users will be able to download all the content at once without searching every link in each addon. They will only have to click subscribe to everything to subscribe to each addon in the collection. Useful and efficient.
Before calculation a workshop collection to your server, you lot must outset create a collection on Steam.
You will also exist able to associate a collection to your server, i.due east. the user will download the unabridged content earlier beingness able to join, which will prevent them from disconnecting due to texture and model errors.
2.ii Create a collection of addons for Garry's Mod
This link is a shortcut to create your collection: https://steamcommunity.com/workshop/browse/?appid=4000§ion=collections
You can run across the collections created by other users with the create your collection button in blue on the right :
ii.iv How to add a workshop drove to your Gmod server?
Include this variable in the control line to launch your server +host_workshop_collection COLLECTION_ID
COLLECTION_ID is the id of your collection.
What gives for my collection for example:
+host_workshop_collection 108212613
Source: https://originahl-scripts.com/en/help/publish-addon-on-gmod-workshop
Posted by: graysaight.blogspot.com
0 Response to "How To Upload A Addon To The Workshop Gmod"
Post a Comment