• adding stuff to poinshop by _undefined
    8 replies, posted
helo i have been trying to add some more things to the addon: pointhshop by _undefined (PS the server its runing on is TTT) in the ttt server when u add this addon and type !shop it briings up the shop as everyone knows, and u can purchase lot of stuff etc models. so what ive been trying to do is adding some more models t the shop, so i downloaded some from workshop and used gmad to extract them. i opened the folder where the mdl,vtx, phy and the ccd files are. i extracted all theese into my folder: /garrysmod/models/player/overlord/ (yes i made the folder named overlord as the purchased item is going to be named overlord, i do this to keep a track on what files belongs to what item. [code] then i made a script: ITEM.Name = 'test' ITEM.Price = 1 ITEM.Model = 'models/player/overlord/combine_super_soldier.mdl' ITEM.AllowedUserGroups = { "owner" } ITEM.Skin = 1 function ITEM:OnEquip(ply, modifications) if not ply._OldModel then ply._OldModel = ply:GetModel() end timer.Simple(1, function() ply:SetModel(self.Model) end) end function ITEM:OnHolster(ply) if ply._OldModel then ply:SetModel(ply._OldModel) end end function ITEM:PlayerSetModel(ply) ply:SetModel(self.Model) end [/code] and placed it here: garrysmod/addons/pointshop-master/lua/pointshop/items/playermodels/ i updated the fastDL, restarted the server and went into it. the item is now in the shop. but yet it is an error. there is no pproblems with the fastdl as it works for everything else. so what can be the error? anyone got an idea of how to fix this?
If you have it subscribed, and you're sure the model pathing is correct, that means you haven't properly implemented it into the server. Why didn't you use the folder you extracted it into with GMAD and just put that in addons? That's the easiest way to go, because gmad automatically extracts into addon format
i used gmad to extract the files. but the folder that the neccecarly files is named: fraggerhir, that name got nothing to do with what the model is. so i used a name that describes the what model it is. it shouldnt matter at all. + i only uploaded the: mdl,vtx, phy and the ccd files when i extracted with gmad the entire thing looked like this: (directly what i did: i started my coreftp, made a folder inside: garrysmod/addons/pointshop-master/lua/pointshop/items/playermodels/ and named it to overlord. i took every single file you can see inside fraggerhir, putted it into it. that is what i did) and now its time to show my skills on paint. i drawed a quick overview of how the entire model directory looks like for this workshop model after i used gmad to extract it. hope u understand my drawing xD: [IMG]http://s3.postimg.org/ykj3hueb7/model_maps.png[/IMG]
You can change the name back to fraggerhir or change the file path under the lua/autorun: [CODE]player_manager.AddValidModel( "Overlord", "models/FraggerHiR/combine_super_soldier.mdl" ) list.Set( "PlayerOptionsModel", "Overlord", "models/FraggerHiR/combine_super_soldier.mdl" )[/CODE] Also make sure you added the materials and models to the server and FastDL :p
i didnt upload entire "overlord playermodels" folder. only the fraggerhir. reason: i tried to check out what files i needed with checking the player model that was already added in the addon and i only found same kind of files as i found under fraggerhir. but are the other files also vital parts? i thouhg those were for the npc part and not the playermodel part... hmm
It's helpful to upload all of the files in the folder. Even though the model is an NPC and Player model they are still labeled. Try re uploading the files to the correct paths (don't change the names of the folders) as well as add it to the FastDL
I just realized you said [quote](directly what i did: i started my coreftp, made a folder inside: garrysmod/addons/pointshop-master/lua/pointshop/items/playermodels/ and named it to overlord.[/quote] If that is true, then first off, there shouldn't be a folder inside the playermodels folder with your models in it, the only thing in there should be the .lua file for the playermodel. The rest should hopefully be in addon format. I'm assuming you messed up on your sentence tho? Oh and to respond to [quote]it shouldnt matter at all. + i only uploaded the: mdl,vtx, phy and the ccd files[/quote] I was referencing to the fact that you'd be better off putting the files in addon format instead of extracting them straight into the garrysmod/ folder
ohhhhhh siorry my pardon ;:P so basically u mean i should just try to find my addonsfolder on pc. find the addon in (the compressed worshop file) ??? and just upload the entire thing and remove the folder i made inside playermodels and just do it in the playermodels root folder? i will try that. bbut on my darkrp server, i did use gmad and extracted it and just putted entire thing inside the addon folder and voila it worked (also recently tried same way as i used on the ttt seerver on dakrrp and it worked for darkrp but not for the ttt, but im going to try this and see what happens) correct me if i understood you wrong again xDD) im not from english speaking country so sometimes i migh misunderstand so i'll apolegise for that :) and thanks everyone for trying to help :D
YESSSSSSSSSSSSSSSSSSSS I DID IT I MADE IT WORK!!!!!!!!!!! the error was: u need to have it in player root folder. u can not make a folder inside it (sadly) :( and only files i need to upload is: mdl,vtx, phy and the ccd [editline]15th August 2014[/editline] thansk everyone for trying to help me i apreachiate it a lot :D [editline]15th August 2014[/editline] ehm how do i mark this topic as solved`? xDD
Sorry, you need to Log In to post a reply to this thread.