Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2024, 12:54:53 PM
Home Help Login Register
News: Zombie Master 2 discussion

Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Adding custom models to server.
Pages: [1]
Author Topic: Adding custom models to server.  (Read 7859 times)
ryeezy
Poster

Posts: 22


OFWGKTA


« on: April 13, 2011, 10:10:40 PM »

Hey i have been trying to add custom weapons to my TTT server and although we have the resource add file and stuff working and the models actually download when we try to use the gun in game it just shows up with pink and black textures. i was wondering what i could possibly be doing wrong. i am not sure if it has anything to do with the ttt gamemode and im sorry if it does not.

« Last Edit: April 13, 2011, 10:20:34 PM by ryeezy »
jake_Da_snake
Poster

Posts: 5


« Reply #1 on: April 13, 2011, 10:26:25 PM »

It looks like it could use a good coat of spray paint. Have you tried that?
Cush
Poster

Posts: 79


« Reply #2 on: April 13, 2011, 11:00:56 PM »

The materials for the model need to be added to the server, too.
ryeezy
Poster

Posts: 22


OFWGKTA


« Reply #3 on: April 13, 2011, 11:25:39 PM »

they are
Cush
Poster

Posts: 79


« Reply #4 on: April 14, 2011, 01:25:54 AM »

They need to be in the right folders as well, the .mdl specifies the exact location to look for the textures in the materials folder.
ryeezy
Poster

Posts: 22


OFWGKTA


« Reply #5 on: April 14, 2011, 02:13:56 AM »

i put all the materials and such in garrysmod/materials/weapons and added the resource add files to the resources.lua and it still will not work
Cush
Poster

Posts: 79


« Reply #6 on: April 14, 2011, 12:35:33 PM »

Are you sure you are putting the materials in the correct place as the mdl says?

Is the model up on garrysmod.org or something? I can take a look.
Tommynator
Poster

Posts: 173

Tommynator is a traitor!


« Reply #7 on: April 14, 2011, 05:15:04 PM »

Edit : fail at reading the post, remove this message please  D:

« Last Edit: April 14, 2011, 05:17:20 PM by Tommynator »
bigbadboo
Poster

Posts: 287


« Reply #8 on: April 14, 2011, 07:54:48 PM »

Are you using a fast download system? This is most likely the problem.
ryeezy
Poster

Posts: 22


OFWGKTA


« Reply #9 on: April 15, 2011, 05:40:27 PM »

yes we are using fast download. like i said we can get the model and sounds to download perfectly but the materials will not
SwftOne
Poster

Posts: 28


« Reply #10 on: April 15, 2011, 06:16:59 PM »

Alright we have tried a number of things and no luck with this so far. Can someone take a look at this model and tell us step by step how to add it to the server.

http://www.garrysmod.org/downloads/?a=view&id=93377

and we are only using the models/materials we have our own LUA file.
Jonzky
Poster

Posts: 28


« Reply #11 on: April 16, 2011, 09:22:21 AM »

Have you tried downloading the model/materials locally without the use of the FastDL to see if it works?
jake_Da_snake
Poster

Posts: 5


« Reply #12 on: April 16, 2011, 07:48:52 PM »

do you mean manually adding the files to your garrysmod/garrysmod folder instead of downloading them from the server?
Jonzky
Poster

Posts: 28


« Reply #13 on: April 17, 2011, 06:10:04 AM »

Yes, for troubleshooting if he were to manually place the required content in his local folders we will be able to tell if its a FastDL/Texture/Other issue.
jake_Da_snake
Poster

Posts: 5


« Reply #14 on: April 17, 2011, 07:03:40 AM »

Yes, i have manually added the files located in the rar and the gun looks perfect for me. So the problem is somewhere between when they add the files and when someone downloads them.
Jonzky
Poster

Posts: 28


« Reply #15 on: April 17, 2011, 11:32:13 AM »

Just re-install them to the server and ensure that you have added them to the FastDL correctly (with Resource.addfile). I am not 100% sure that its not a gamemode-lua issue, but I doubt it.
SwftOne
Poster

Posts: 28


« Reply #16 on: April 17, 2011, 02:10:09 PM »

Well i did reinstall them to the server and here is my resourceAddFile its in garrysmod/lua/autorun/server/resource.lua



resource.AddFile("materials/models/weapons/v_models/deagle/dot.vmt")
resource.AddFile("materials/models/weapons/v_models/deagle/lens.vmt")
resource.AddFile("mmaterials/models/weapons/v_models/deagle/omfg.vmt")
resource.AddFile("materials/models/weapons/v_models/deagle/sight.vmt")
resource.AddFile("materials/models/weapons/v_models/deagle/skin3.vmt")
resource.AddFile("materials/models/weapons/v_models/deagle/tac_light.vmt")
resource.AddFile("materials/models/weapons/v_models/deagle/sila.vmt")
resource.AddFile("materials/models/weapons/v_models/deagle/reciever.vmt")
resource.AddFile("materials/models/weapons/v_models/deagle/mainmap.vmt")

resource.AddFile("models/weapons/v_dea_mac10.mdl")
resource.AddFile("models/weapons/w_dea_mac10.mdl")
Jonzky
Poster

Posts: 28


« Reply #17 on: April 17, 2011, 06:41:03 PM »

esource.AddFile("mmaterials/models/weapons/v_models/deagle/omfg.vmt")


Is that copied and pasted from the lua file? Looks like that could be a problem.
SwftOne
Poster

Posts: 28


« Reply #18 on: April 18, 2011, 05:08:49 PM »

awesome problem solved! You can't add it to garrysmod/lua/autorun/server/resources.lua anymore. I just put the resource.AddFile in the SWEP and everything worked fine!
Pages: [1]
Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Adding custom models to server. « previous next »
Jump to:  


Login with username, password and session length

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines
Page created in 0.009 seconds with 18 queries.