ULX

Author Topic: Questions about getting a dedicated server  (Read 10137 times)

0 Members and 1 Guest are viewing this topic.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Questions about getting a dedicated server
« Reply #15 on: March 24, 2014, 12:11:19 PM »
Personally my allowdownload and allowupload are set to 0.

Your sv_downloadurl looks correct and the structure of your fastdl folder is correct as far as I can tell as well.

Are you sure that the content you want your clients to download are properly being added to the resource list?

Offline sabo

  • Full Member
  • ***
  • Posts: 136
  • Karma: 2
  • Hello :)
    • The Elite Gaming
Re: Questions about getting a dedicated server
« Reply #16 on: March 24, 2014, 03:15:38 PM »
Code: [Select]
sv_allowdownload 0
sv_allowupload 0

+ you have to add a lua file in your garrysmod/lua/autorun/server/.. folder which "forces" clients to download the stuff.

The file for 1 of my Models looks like this:
Code: [Select]
resource.AddFile( "materials/models/grim/grimbody.vmt" )
resource.AddFile( "materials/models/grim/mouth.vmt" )
resource.AddFile( "materials/models/grim/skelface.vmt" )
resource.AddFile( "materials/models/grim/skelface2.vmt" )
resource.AddFile( "materials/models/grim/stimer.vmt" )
resource.AddFile( "materials/models/grim/sythe.vmt" )
resource.AddFile( "models/grim.dx80.vtx" )
resource.AddFile( "models/grim.dx90.vtx" )
resource.AddFile( "models/grim.mdl" )
resource.AddFile( "models/grim.phy" )
resource.AddFile( "models/grim.sw.vtx" )
resource.AddFile( "models/grim.vvd" )

You have to add all the files to the list above except for *.vtf files.

Hope I was of any help, if not let me know ;)

Offline ojbristow

  • Newbie
  • *
  • Posts: 47
  • Karma: 0
    • Superclocked
Re: Questions about getting a dedicated server
« Reply #17 on: March 24, 2014, 04:22:03 PM »
Thanks,

So I haven't got to the player models yet. But with the custom weapons, do you need to do that?

Thanks,
Owen


Offline sabo

  • Full Member
  • ***
  • Posts: 136
  • Karma: 2
  • Hello :)
    • The Elite Gaming
Re: Questions about getting a dedicated server
« Reply #18 on: March 26, 2014, 04:35:40 AM »
Thanks,

So I haven't got to the player models yet. But with the custom weapons, do you need to do that?

Thanks,
Owen

I suppose the custom weapons are custom and not just an AK47 with a changed fire rate and more damage... then yes, you need to add all the models/materials into the lua file with resource.AddFile( "" )

Offline ojbristow

  • Newbie
  • *
  • Posts: 47
  • Karma: 0
    • Superclocked
Re: Questions about getting a dedicated server
« Reply #19 on: March 28, 2014, 08:46:21 AM »
Ok, so I've done that for each of the player models and you can see when trying to connect that it is downloading the files.  Once connected the player models are errors, I think I know why but I do not know if that is the problem.  Windows OS uses backslashes \ with directories and file paths, gmod seems to want to use forward slashes /.  Would this be a problem?

Owen


Offline Bytewave

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 718
  • Karma: 116
  • :)
    • My Homepage
Re: Questions about getting a dedicated server
« Reply #20 on: March 28, 2014, 03:32:45 PM »
Ok, so I've done that for each of the player models and you can see when trying to connect that it is downloading the files.  Once connected the player models are errors, I think I know why but I do not know if that is the problem.  Windows OS uses backslashes \ with directories and file paths, gmod seems to want to use forward slashes /.  Would this be a problem?

Owen
No.
GMod will read /'s as \'s on a Windows OS.
In fact, a \ marks a character escape, so... yeah, you would definitely not want to use a \ in file paths.
bw81@ulysses-forums ~ % whoami
Homepage

Offline ojbristow

  • Newbie
  • *
  • Posts: 47
  • Karma: 0
    • Superclocked
Re: Questions about getting a dedicated server
« Reply #21 on: March 29, 2014, 06:13:26 AM »
Ok thanks :)

Still cant get that working though :( all the player models now come up as the big red flashing errors.

Im not sure if I have missed something but Im fairly sure that everything on my end is setup properly, unless you cant host the fastdl on the same gameserver IP?

Owen


Offline ojbristow

  • Newbie
  • *
  • Posts: 47
  • Karma: 0
    • Superclocked
Re: Questions about getting a dedicated server
« Reply #22 on: March 29, 2014, 01:39:04 PM »
I think I've got a hint at what it is.  I was having a look on the fastdl site http://31.186.251.155:91/ for just any clue of what is wrong and I noticed that some files do not want to download, it shows an error.  The file type are .mdl and .vvd (not sure if that are any others or not.)

I've tried to add these extensions to the MIME Types in the IIS manager but didnt seem to have any effect.

Any guidance?

Thanks,
Owen


Offline Decicus

  • Hero Member
  • *****
  • Posts: 552
  • Karma: 81
    • Alex Thomassen
Re: Questions about getting a dedicated server
« Reply #23 on: March 29, 2014, 01:45:45 PM »
When I've used IIS, I usually do extension "*" (only using the asterix, as it's pretty much "anything") and then setting the MIME-type to application/octet-stream.

Try removing the ones you've set and just do that, as that seems to work for me.
Contact information:
E-mail: alex@thomassen.xyz.
You can also send a PM.