Thirdperson Weapon model shows ERROR : Checked everything
10 replies, posted
As the title says, when I switch to thirdperson, I'm holding an "ERROR", I checked everything, and it was working last time I checked (and if I remember right, never changed anything)
Also, my Gmod won't show "Team models" in thirdperson, only the Model I'm using normally in Sandbox
Everything else is working fine (The firstperson view of my weapon is working perfectly)
My SWEP has these folders as shortcuts :
SWEP.ViewModel = "models/weapons/v_sword.mdl" -- This is the model used for clients to see in first person.
SWEP.WorldModel = "models/weapons/w_sword.mdl" -- This is the model shown to all other clients and in third-person.
I checked my folders, and I'm sure this is the right path to the right .mdl files
The World Model simply won't work
I checked the integrity of my Gmod Files to see if it was on this side, it didn't fix it
Are you sending the modules to the client?
What do you mean by "module" ?
The only file the clients download is shared.lua
[QUOTE=dylanstrategie;35247107]What do you mean by "module" ?
The only file the clients download is shared.lua[/QUOTE]
You need to ensure that you are forcing the players to download the models, otherwise they won't be able to render them (which is what sounds like the problem is). You need to include a [B]resource.AddFile( path );[/B] for each model that you have. For example:
[lua]
resource.AddFile("gamemodes/[GameModeNameHere]/content/models/weapons/v_sword.mdl");
resource.AddFile("gamemodes/[GameModeNameHere]/content/models/weapons/w_sword.mdl");
[/lua]
etc... You need to do that for everything. A better way would be to setup a folder processor function which consumes all of the content files in a given directory and forces clients to download everything. I can give you a script I wrote if you would like.
I hope this makes sense!
I added these 2 lines in the init.lua
My thirdperson view stills shows an error, I checked the path and it's working
Edit : I have "Script Enforcer" disabled, and it shows as an error, does that mean anything ?
[QUOTE=dylanstrategie;35247868]I added these 2 lines in the init.lua
My thirdperson view stills shows an error, I checked the path and it's working
Edit : I have "Script Enforcer" disabled, and it shows as an error, does that mean anything ?[/QUOTE]
Keep Script Enforcer disabled for now, just to be safe (while testing stuff). If you are still getting the error, chances are there might be more models that you need to send OR the path is wrong. Can you post exactly what path you have chosen for the [I]resource.AddFile[/I] method call?
Also keep in mind you will have to send any textures (vtf/vmt) files associated. And if you are using FastDL, you will have to make sure the fastdl server has the appropriate models in the proper folder paths.
Lastly, when you joined your test server, did it force you to download any models?
Are you sure it's a real model?
This is not a server, it's Singleplayer
And I'm pretty sure the model is real, just to be sure I'll redownload it
Edit : After multiple checks, the "world" models (Player models, weapons models) won't show in Thirdperson
I wonder if this is because ScriptEnforcer is off, and to try, I need to know how to turn it on :/
well put the models in models\weapons and see if that works
[QUOTE=dylanstrategie;35248535]This is not a server, it's Singleplayer
And I'm pretty sure the model is real, just to be sure I'll redownload it
Edit : After multiple checks, the "world" models (Player models, weapons models) won't show in Thirdperson
I wonder if this is because ScriptEnforcer is off, and to try, I need to know how to turn it on :/[/QUOTE]
If anything, it would be messing up because SE is ON, not off. All ScriptEnforcer does is keep other scripts from running that aren't on the server. But because you're in singleplayer, you will be the server, so it's really pointless. Just forget SE exists.
[QUOTE=dylanstrategie;35248535]This is not a server, it's Singleplayer
And I'm pretty sure the model is real, just to be sure I'll redownload it
Edit : After multiple checks, the "world" models (Player models, weapons models) won't show in Thirdperson
I wonder if this is because ScriptEnforcer is off, and to try, I need to know how to turn it on :/[/QUOTE]
Try using a stock weapon model. Just to see if it works. If you can get that far, it means your model is fubar. If a stock model won't work, then perhaps spawning the weapon is the actual problem.
Sorry, you need to Log In to post a reply to this thread.