#Gmod file addon update
Of course, do not forget to update your scripts in order to match with the new filenames.If you rename textures, do not forget to modify VMTs that need them.If you rename models, you really should modify your QC script and re-generate the model (bug with Entity:GetModel() clientside).Simply rename everything including extensions to make them: lowercase, no accents, no spaces.GMad tells me that I have uppercase characters, spaces or whatever forbidden in filenames!.You will have to enter information again. I made a mistake in my addon.json, how do I re-generate it?.You can see it in the URL of your Workshop addon. Replace 000000000 by the UID of your addon.
#Gmod file addon code
Place this code inside: set WorkshopId=000000000.Create or edit the file workshop_id.cmd.
I accidentally closed the window when it asked for the UID, I removed the workshop_id.cmd, or I mistyped the UID!.Fonts must be placed in the resource\fonts folder.Vehicle scripts must be placed in the scripts\vehicles folder.
If you do not want to place the addon in your garrysmod\addons folder then you need to make sure that the GarrysMod path is correct by editing Upload.cmd. Your addon must contain the files addon.json and workshop_id.cmd. When you want to update, just run Upload.cmd and enter the reason (with only US-ASCII characters). Run Upload.cmd and follow instructions until the window closes automatically. Place Upload.cmd in the folder of your addon. The chroma subsampling must be 4:2:0 (for instance GIMP and Photoshop can use 4:2:2 or 4:4:4). Save it as a JPEG image in the folder of your addon and name it the same as the folder of your addon. If your addon is already there then ignore this step.Ĭreate a thumbnail for your addon: picture of 512x512 pixels.
#Gmod file addon mod
Most addons are written in Lua, with the exception of some being written in C++ in the form of a module (.dll)- A brief introduction to Lua can be found here.Garry's Mod Easy Addon Uploader InstructionsĬreate the folder of your addon in garrysmod\addons and place your files in it. Complimentary to addons, there are also gamemodes that can be installed, with their own file and folder structure more information on that can be found here. The addon file and folder structure can be found here. Garry's Mod addons must adhere to a very particular filestructure, on Linux they must not have any capital letters or special characters (although on Windows, capital letters are fine). Unlike some other games, if the server has an addon the client does not, they will download it during connection (instead of simply being kicked, like Minecraft). The "addons" directory located in garrysmod/garrysmod/addons is where such folders go, with addons being downloadable from and various other places. Garry's Mod includes native support for Addons, that is modifications or additions to the base game that can be added without modifying the core game directly.