So recently i downloaded a knight model from a site and wanted to port it on gmod. I gave the model bones and some weight painting. Made the lua, materials and models folder and got the files in each of those folders. I made a addon.txt in the mod folder and copied it in the garrys mod addons folder. When i started the game to try the mod out it seemed that the model was not there. Not in the ragdoll section, not in the npc category and not in the playermodels list. I did the lua scripting for the npc and the playermodel. Can someone help me?
Try moving your files in the "garrysmod" folder instead of copying them in the "addons" folder.
Still dosen't apear, any other sugestions?
Show me your lua for the playermodel
This is the playermodel lua
player_manager.AddValidModel( "Knight", "models/knight.mdl" ) list.Set( "PlayerOptionsModel", "Knight", "models/knight.mdl" )
And this is the NPC lua
local Category = "Knight"
local NPC = { Name = "Knight",
Class = "npc_citizen",
Model = "models/knight.mdl",
Health = "200",
KeyValues = { citizentype = 4 },
Category = Category }
list.Set( "NPC", "npc_knight", NPC )
- addon.txt is unnecessary
- The model is not rigged properly
- There aren't any textures in the materials folder
- The collision model should match the original model
- You'll need to use CaptainBigButt proportion method so the playemodel proportion won't fucked up or stretched in-game
[QUOTE=CaptainBigButt;45474220]Some of those animations have conflicts with eachother.
[code]
--Player animations
$includemodel m_anm.mdl
--NPC animations
$includemodel humans/male_shared.mdl
$includemodel humans/male_gestures.mdl
$includemodel humans/male_postures.mdl
$includemodel humans/male_ss.mdl
[/code]
You should really just pick one or the other.[/QUOTE]
Some useful links:
[url]https://www.youtube.com/watch?v=VmBPYoHq4wY[/url]
[url]https://facepunch.com/showthread.php?t=1439159[/url]
[url]https://facepunch.com/showthread.php?t=1411683[/url]
[url]https://facepunch.com/showthread.php?t=1412147[/url]
Thanks, it seems it works now!
Sorry, you need to Log In to post a reply to this thread.