• Workshop screws my addon's models (sck)?
    1 replies, posted
Hello. I made an addon that works very good as a non-gma addon, but when I tried to upload it to workshop and test it, all the models that I put using Swep Constructor Kit (SCK) are not working. I don't know why, but I think that the workshop's GMA is not assigning the correct bone to the models... For example: On the "Dev" version of my addon (where I code it on a folder inside the addons folder) the models are attached to Valve_R_Hand, but on the "release" version (the version that the normal user gets on workshop), the models are attached to Valve_Pelvis, and everything is screwed up. I tried to search, but I don't get the correct terms to look for (I tried with "gmod sck workshop not working" for example, but I don't get nothing). Here is two pics: (Taked using the "Dev" version): [IMG]https://i.imgur.com/oPDZYr1.png[/IMG] (Taked using the "Release/Workshop" version) [IMG]https://i.imgur.com/pDhzp1K.png[/IMG] Funny thing: If I descompress the GMA that I download from the workshop, it works fine, but I delete the folder and just leave the GMA, It's starts to fail. PS: Everything about the code is fine.... The models are the only things that don't works. PS2: Also, the "HoldType" doesn't works on GMA but does on the Dev Version.
Bump I discovered that my addon doesn't load the base_code.lua when it is on a GMA I have this on every weapon lua: [LUA]AddCSLuaFile("../base_code.lua") include("../base_code.lua")[/LUA] [editline]19th July 2016[/editline] FIXED. I found the problem... Somewhy on non-gma lua, using "../" to refer to the prev-folder works, but on gma lua doesn't. So, I had to change the above code by AddCSLuaFile("weapons/base_code.lua") include("weapons/base_code.lua") Also I moved up the base_code.lua to another folder to avoid any duplicated file with another addons.
Sorry, you need to Log In to post a reply to this thread.