Hello,
I'm trying to make an addon for me and my friends that adds custom textures to the game. It works perfectly when it's not a GMA file, but when I make it into one it stops working. I need it to be a GMA file so I can upload it to the workshop, that way my friends can get it easily.
I tried all the addon types in the addon.json but nothing worked.
The addon contains only the textures I'm adding and an autorun LUA to add them to the materials list. I know they are all working cause they worked before when not in a GMA.
The only other way I can do this is to make my mod and STool instead of just an autorun script, (I know this will work cause I did it before) but I've been trying to avoid doing this to keep the mod simple :P
Does anyone know what I'm doing wrong? Is there any way for my mod to work and be uploaded to the workshop without me turning it into an STool.
If you haven't already, [URL="http://wiki.garrysmod.com/page/Workshop_Addon_Creation"]read this[/URL].
Make sure your tree structure is correct.
My tree structure is like this:
myAddon/
myAddon/lua/autorun/myScript.lua
myAddon/materials/models/custom/myMaterial/myMaterial.filetype
Are you sure the addon is mounting or you are simply putting the .gma on the addons folder
I'm just putting it in the addons folder, how do I know if it's mounting? And when I make it a GMA what should the addon type be in the addon.json?
The type doesnt matter.
If the addon works outside the .gma works it will inside of it.
Just upload it and suscribe to it.
Theres no way to test a .gma as far as i know.
Ok, I'll try that
[editline]4th December 2015[/editline]
Thanks very much! That worked!
Sorry, you need to Log In to post a reply to this thread.