Gmod Server ( Purple checkered Playermodels )

Hey :smiley:

I have a Linux Based Gmod Server, I built about 2 weeks ago… the only problem im having with it is the Materials for the player models, I have literally tried everything,
but when It comes down to it, It has to be either the resource file or where the files are placed.
I also Double checked the files match the casing on the resource file.
Below is a copy of the resource file and the picture of the player model. if anyone could help it would be much appreciated. :smiley:

[HR][/HR]

if (SERVER) then

resource.AddWorkshop (“128093075”)
resource.AddWorkshop (“115743876”)
resource.AddWorkshop (“128091208”)

end

if (SERVER) then

resource.AddSingleFile ( “models/player/kurisu.mdl” )
resource.AddSingleFile ( “materials/player/kurisu.vvd” )
resource.AddSingleFile ( “materials/player/Kurisu.dx80.vtx” )
resource.AddSingleFile ( “materials/player/Kurisu.dx90.vtx” )
resource.AddSingleFile ( “materials/player/Kurisu.phy” )
resource.AddSingleFile ( “materials/player/Kurisu.sw.vtx” )
resource.AddSingleFile ( “models/weapons/us_bar.vvd” )
resource.AddSingleFile ( “models/weapons/us_BAR.dx80.vtx” )
resource.AddSingleFile ( “models/weapons/us_BAR.dx90.vtx” )
resource.AddSingleFile ( “models/weapons/us_BAR.phy” )
resource.AddSingleFile ( “models/weapons/us_BAR.sw.vtx” )
resource.AddSingleFile ( “models/weapons/us_bar.mdl” )
resource.AddSingleFile ( “models/weapons/tex_bar_diff.vmt” )
resource.AddSingleFile ( “models/weapons/tex_bar_diff.vtf” )
resource.AddSingleFile ( “models/weapons/tex_bar_nrm.vtf” )
resource.AddSingleFile ( “models/player/kurisu_labcoat.mdl” )
resource.AddSingleFile ( “models/player/kurisu_labcoat.vvd” )
resource.AddSingleFile ( “models/player/Kurisu_labcoat.dx80.vtx” )
resource.AddSingleFile ( “models/player/Kurisu_labcoat.dx90.vtx” )
resource.AddSingleFile ( “models/player/Kurisu_labcoat.phy”
resource.AddSingleFile ( “models/player/Kurisu_labcoat.sw.vtx” )

end

  1. Where are those resource files located?
  2. Post your FastDL link.

the resource file is located in gmod/autorun/lua/server

Move it to autorun.

i did it. no dice :confused:

Can you post your FastDL link now?

How long have you used Linux?
I see so many mismatched caps it’s not even funny. That is almost guaranteed to be your problem.

Remove the capitals from the model names and report back.

Correct me if wrong but I don’t see any .vtf and .vmt for the model in the resource.AddFile part

You’re wrong Models load their materials from the materials folder.

Well done, you can’t read.

They’re listed separately so they wouldn’t be included automatically for the model.
To use this effectively, you just need to do this:
[lua]
resource.AddFile( “models/player/kurisu.mdl” )
resource.AddFile( “materials/player/kurisu.vmt” )
[/lua]
Or something along those lines. (Not sure on file names etc.)

Also, correct me if I’m wrong but, I don’t think they should be under materials are they’re related to the model.

tl;dr resource.AddFile will add corresponding model files but not the textures unless told to do so.

Edit:
To make this an “all answers in one” kind of post, you also need to make sure all the files are in lowercase and they’re all referenced in lowercase. Linux doesn’t like capitals.

Yup. That’s his issue. But tell him, case sensitivity in linux too.