Another Problem: Server doesn't send textures or models
3 replies, posted
It sends the maps just fine, but the models do not get sent. This is a very serious issue that hinders the server.
When editing the map file in the "Downloadlists" folder (just took a wild guess) to include a model, it made one 'other' file (canyonwars.ain)
This happens for all gamemodes (I've tested upwards of 19)
Please let me know what information you need and I'll post it ASAP.
edit: sv_downloadurl is properly set to "" -- keep in mind maps download just fine
Models and textures require a lua file to be set up in lua/autorun/server.
It must list each file you require to be sent, as seen from garrysmod/garrysmod.
resource.AddFile(Path)
for instance:
resource.AddFile("models/somefolder/awesomefileyouwantsent.mdl")
Note that it'll also send all files in that directory with the same name and extensions of: .vvd, .ani, .dx80.vtx, .dx90.vtx, .sw.vtx, .phy,.jpg
And the vtf and vmf for textures.
[QUOTE=whosdr;24585605]Models and textures require a lua file to be set up in lua/autorun/server.
It must list each file you require to be sent, as seen from garrysmod/garrysmod.
resource.AddFile(Path)
for instance:
resource.AddFile("models/somefolder/awesomefileyouwantsent.mdl")
Note that it'll also send all files in that directory with the same name and extensions of: .vvd, .ani, .dx80.vtx, .dx90.vtx, .sw.vtx, .phy,.jpg
And the vtf and vmf for textures.[/QUOTE]
Okay, thanks. Where do I put this lua file?
lua/autorun/server normally. There's also another less labour intensive method of adding files to the resource queue - it varies depending on if it's addon based or from the gamemode.
Sorry, you need to Log In to post a reply to this thread.