Garry's Mod

Garry's Mod

View Stats:
elderstyx Aug 14, 2015 @ 3:12pm
Need help with a Playermodel
I'm making a playermodel out of Half-Dead's Doom Marine ragdolls. However, opening up the Player Model menu doesn't show the model I've added. I've seen multiple tutorials on how to make this work, and so far I've:

-Made a LUA script.
-Decompiled, modified the qc and recompiled the MDL using Crowbar.

What am I doing wrong? I'll post photos of the QC if necessary.
EDIT: And yes, the model is rigged to Valve Biped.
Last edited by elderstyx; Aug 14, 2015 @ 3:43pm
< >
Showing 1-12 of 12 comments
Lazy Aug 14, 2015 @ 3:22pm 
Originally posted by VonHootie02:
I'm making a playermodel out of Half-Dead's Doom Marine ragdolls. I've seen multiple tutorials on how to make this work, and so far I've:

-Made a LUA script.
-Decompiled, modified the qc and recompiled the MDL using Crowbar.

What am I doing wrong? I'll post photos of the QC if necessary.

What are you doing wrong? You haven't really stated the problem.
Does the model use the VALVe skeleton? Does it not compile?
Will it not show up in game?
Alec Aug 14, 2015 @ 3:24pm 
Originally posted by ErrolLiamP:
Originally posted by VonHootie02:
I'm making a playermodel out of Half-Dead's Doom Marine ragdolls. I've seen multiple tutorials on how to make this work, and so far I've:

-Made a LUA script.
-Decompiled, modified the qc and recompiled the MDL using Crowbar.

What am I doing wrong? I'll post photos of the QC if necessary.

What are you doing wrong? You haven't really stated the problem.
Does the model use the VALVe skeleton? Does it not compile?
Will it not show up in game?

What he said. No info = No answer.
elderstyx Aug 14, 2015 @ 3:39pm 
Excuse me, guys. You're right, I didn't state the problem.

So, I do all this, and supposedly set up the files so I can go and use the model. When I load a map, a message pops up saying "Something is causing script errors", which I know is the model because the message never popped up before adding the model. I open up the Player Model menu and it isn't there.

My theory is that I didn't write the path to the MDL file right, but it appears I've done everything right. So what's going on?
Lazy Aug 14, 2015 @ 3:51pm 
Originally posted by VonHootie02:
Excuse me, guys. You're right, I didn't state the problem.

So, I do all this, and supposedly set up the files so I can go and use the model. When I load a map, a message pops up saying "Something is causing script errors", which I know is the model because the message never popped up before adding the model. I open up the Player Model menu and it isn't there.

My theory is that I didn't write the path to the MDL file right, but it appears I've done everything right. So what's going on?
If the model is loaded in your :gmod:arry's Mod, I would locate it by searching in the spawnlist, and when it shows up, right click and press "Copy File Location".
Paste this into your lua script to get the proper directory.

Your script should look something like this;

list.Set( "PlayerOptionsModel", "Name Here", "models/mymodel.mdl" ) player_manager.AddValidModel( "Name Here", "models/mymodel.mdl", true )
Last edited by Lazy; Aug 14, 2015 @ 3:52pm
elderstyx Aug 14, 2015 @ 4:17pm 
Originally posted by ErrolLiamP:
Originally posted by VonHootie02:
Excuse me, guys. You're right, I didn't state the problem.

So, I do all this, and supposedly set up the files so I can go and use the model. When I load a map, a message pops up saying "Something is causing script errors", which I know is the model because the message never popped up before adding the model. I open up the Player Model menu and it isn't there.

My theory is that I didn't write the path to the MDL file right, but it appears I've done everything right. So what's going on?
If the model is loaded in your :gmod:arry's Mod, I would locate it by searching in the spawnlist, and when it shows up, right click and press "Copy File Location".
Paste this into your lua script to get the proper directory.

Your script should look something like this;

list.Set( "PlayerOptionsModel", "Name Here", "models/mymodel.mdl" ) player_manager.AddValidModel( "Name Here", "models/mymodel.mdl", true )
Okay, let's see if I'm getting this right.
I put my models folder containing the MDL in the same folder as the hl2.exe, create the path with the LUA script, and get the model?
Sorry, I'm very new to Source modding.
Edit: Well, nope.
Last edited by elderstyx; Aug 14, 2015 @ 4:31pm
Lazy Aug 14, 2015 @ 4:40pm 
Originally posted by VonHootie02:
Originally posted by ErrolLiamP:
If the model is loaded in your :gmod:arry's Mod, I would locate it by searching in the spawnlist, and when it shows up, right click and press "Copy File Location".
Paste this into your lua script to get the proper directory.

Your script should look something like this;

list.Set( "PlayerOptionsModel", "Name Here", "models/mymodel.mdl" ) player_manager.AddValidModel( "Name Here", "models/mymodel.mdl", true )
Okay, let's see if I'm getting this right.
I put my models folder containing the MDL in the same folder as the hl2.exe, create the path with the LUA script, and get the model?
Sorry, I'm very new to Source modding.
Edit: Well, nope.
Your model directory should look like this;
C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\models
(Not the same folder as hl2.exe)

But I would forget about that and instead put the model in the folder of the addon itself.
Follow the steps below VVV

For your lua script, I would put it in a path like this;

C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\addons\NameOfAddon\lua\autorun\nameofscript.lua

And your model should go in;

C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\addons\NameOfAddon\models\extrapathshereifany\mymodel.mdl

(This way if you upload the addon to the workshop, the model will be included - Don't forget textures!)

(This includes the
.dx90.vtx
.dx80.vtx
.phy
.mdl
.vvd)

Sorry this may be a bit cluttered for you, I can try to go into more depth if you wish.
Last edited by Lazy; Aug 14, 2015 @ 4:41pm
elderstyx Aug 14, 2015 @ 5:50pm 
No, that didn't work either. Copy-Pasting from the console:
[ERROR] lua/autorun/doomguy.lua:1: invalid escape sequence near '"addons'
1. unknown - lua/autorun/doomguy.lua:0

It seems like the directory won't recognize the addon or the script. :steamsad:
elderstyx Aug 14, 2015 @ 7:01pm 
Originally posted by benyamin.2004:
http://bosscade.com/c?r=FCwg3S5ab
My friend, your link was removed.
Lazy Aug 14, 2015 @ 7:34pm 
Originally posted by VonHootie02:
No, that didn't work either. Copy-Pasting from the console:
[ERROR] lua/autorun/doomguy.lua:1: invalid escape sequence near '"addons'
1. unknown - lua/autorun/doomguy.lua:0

It seems like the directory won't recognize the addon or the script. :steamsad:
I'm not familiar with the cause of that error, but I would try Googling it.
Last edited by Lazy; Aug 14, 2015 @ 7:34pm
elderstyx Aug 14, 2015 @ 7:39pm 
HOLY CRAP YESSSSS!!! I did it! I'll probably upload this to the Workshop in a couple of days! Thanks so much for your help!
Last edited by elderstyx; Aug 15, 2015 @ 9:56am
Lazy Aug 14, 2015 @ 9:08pm 
Originally posted by VonHootie02:
HOLY CRAP YESSSSS!!! I did it! I'll probably upload this to the Workshop in a couple of days!
Congrats, great to hear :woodlehappy:
< >
Showing 1-12 of 12 comments
Per page: 1530 50

Date Posted: Aug 14, 2015 @ 3:12pm
Posts: 12