• Gmod Server ( Purple checkered Playermodels )
    11 replies, posted
Hey :D 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. :D [IMG]http://i.imgur.com/CK8ADQl.jpg[/IMG] [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 :/
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
[QUOTE=Knoxed;45217507]Correct me if wrong but I don't see any .vtf and .vmt for the model in the resource.AddFile part[/QUOTE] [url=http://wiki.garrysmod.com/page/resource/AddFile]You're wrong[/url] Models load their materials from the materials folder. [quote] For convenience, this function will automatically add any other files that are related to the selected one, and throw an error if it can't find them. For example, a .vmt file will automatically add the .vtf with the same name, and [B]a .mdl file will automatically add all .vvd, .ani, .dx80.vtx, .dx90.vtx, .sw.vtx, .phy and .jpg[/B] files with the same name, with a separate error for each missing file. If you do not want it to do this, use resource.AddSingleFile. [/quote]
[QUOTE=Aj;45218114][url=http://wiki.garrysmod.com/page/resource/AddFile]You're wrong[/url] Models load their materials from the materials folder.[/QUOTE] Well done, you can't read. [quote] a .mdl file will automatically add all .vvd, .ani, .dx80.vtx, .dx90.vtx, .sw.vtx, .phy and .jpg [/quote] 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. [QUOTE=Origommi;45216334] 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" ) [/quote] tl;dr resource.AddFile will add corresponding model files but not the textures unless told to do so. [b]Edit:[/b] 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.
[QUOTE=Jarva;45218521]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.[/QUOTE] Yup. That's his issue. But tell him, case sensitivity in linux too.
Sorry, you need to Log In to post a reply to this thread.