Changing TTT player models (Not point shop)

Hey guys, I’ve installed a workshop add on for a player model. It’s said to work with TTT, What file do I need to edit for this to swap the default player model with the new workshop model.

Thanks

Thank you Matt. Life saver!

If I recall, inside shared.lua is a table of player models it randomly picks from. Change those to the filepath of what you now want

That’s kind of correct… But it doesn’t work nicely. It’ll only pick one player model from the random table and then use that for every player until next round, so you have two choices.

The link to the add on I gave, Does anyone know what model name it is?

You can find it out using the GMAD Extractor: http://www.treesoft.dk/gmod/gmad/

That program is good, I found it.

hunk_orc.mdl

However setting everything to that just makes people errors…

it should look something like

models/player/hunk_orc.mdl

based on the directories you had to traverse through.

[editline]27th December 2013[/editline]

also you have to resource.AddFile “models/…/hunk_orc.mdl” too

I just extracted all the files from the workshop and added them into the server itself.

Then I ran update FASTDL with this :

Processing #34/41::Compressing superadmin.vmt…OK…Copying…OK
Processing #35/41::Compressing superadmin.vtf…OK…Copying…OK
Processing #36/41::Compressing hunk_orc.dx80.vtx…OK…Copying…OK
Processing #37/41::Compressing hunk_orc.dx90.vtx…OK…Copying…OK
Processing #38/41::Compressing hunk_orc.mdl…OK…Copying…OK
Processing #39/41::Compressing hunk_orc.phy…OK…Copying…OK
Processing #40/41::Compressing hunk_orc.sw.vtx…OK…Copying…OK
Processing #41/41::Compressing hunk_orc.vvd…OK…Copying…OK

Etc, Am sure it will work now.

You still need to resource.AddFile or resource.AddWorkshop them.

Where is the resource add file at? I’ve forgot…

[editline]27th December 2013[/editline]

Nevermind, Found it.

– resource.AddFile(“path/file.ext”)

resource.AddFile(“sound\siege\big_explotion.waw.bz2”)
resource.AddFile(“sound\siege\jihad.waw.bz2”)
resource.AddFile(“models/hunk_orc.mdl”)

[editline]27th December 2013[/editline]

Oh, That slash will be why…

[editline]27th December 2013[/editline]

Nope, Doing that has done nothing to fix the errors.

[editline]27th December 2013[/editline]

Model missing: models/player/hunk_orc.mdl
Model missing: models/player/hunk_orc.mdl
Dropped Techen the Dragon from server (Disconnect by user.)
Model missing: models/player/hunk_orc.mdl
Model missing: models/player/hunk_orc.mdl

[editline]27th December 2013[/editline]

Finally got it working, I made a mistake. Deleting the player part in models/player/hunk_orc.mdl fixed the problem.

Thank you Matt!

[editline]27th December 2013[/editline]

Nevermind back to stage one.

I can see the models but everyone gets errors still.

I’ve added

resource.AddFile(“models\hunk_orc.mdl”)
resource.AddWorkshop( “110571239” )

And still nothing, Any ideas?

Try resource.AddFile(“models/hunk_orc.mdl”).

You have the file on your FastDL, right?

OHGOD, Code, You epic man. I don’t have the files in the fastdl part…

[editline]27th December 2013[/editline]

Wait no, There all in there. Nevermind. Back to stage one again.

[editline]27th December 2013[/editline]

Also the new resource addfile didn’t help.

[editline]27th December 2013[/editline]

*** ERROR: C_ServerRagdoll::InitModel: models/hunk_orc.mdl missing vcollide data ***
TTT: Nikolai found the body of Andrew. He was innocent.
*** ERROR: C_ServerRagdoll::InitModel: models/hunk_orc.mdl missing vcollide data ***
TTT: Barry Burton found the body of Techen the Dragon. He was innocent.
*** ERROR: C_ServerRagdoll::InitModel: models/hunk_orc.mdl missing vcollide data ***

Is the model in your server directory too?

Yes sir, Both.

Is the model on your FastDL packed in a .bz2?

Yes sir

[editline]27th December 2013[/editline]

hunk_orc.mdl.bz2

Can you post your entire resource.AddFile file in


 tags?

What do you mean Code tags?