Garry's Mod

Garry's Mod

View Stats:
Jahn Feb 21, 2019 @ 4:20am
Forced Downloads on Steam Server
Hello

I'm hosting a arena server as of yesterday, but i cant get some of the addons to work.

I made a collection with addons which the server is subscribed to, but me and a friend of mine are not getting all the necesary files when joining and so most weapons are just errors.
When i subscribe to the collection myself aswell then it works.
Is there a way to force clients to download the complete addons themselves so it also works correctly for guests?

Thanks

Edit : The weapons are from Quake 2 and 1, not from a game that needs to be mounted like TF2 or CSS.
Last edited by Jahn; Feb 21, 2019 @ 4:21am
< >
Showing 1-15 of 24 comments
Sarabi Feb 21, 2019 @ 12:39pm 
That should be one of the first things you learn when you make a server. Im going to teach you the PROPER way to force clients to download workshop addons.
make a .lua file in D:\SteamLibrary\steamapps\common\GarrysMod\garrysmod\lua\autorun\server
Doesnt matter what you call it, as long as you can recognize it. No special charcters.
Inside that, youll put a line
resource.AddWorkshop( "ID" )

For id, youd go to the workshop page for that addon,
We will use this as an example. On the page url, see what it says after "id="? Copy that id and put that in place of "ID" in the lua file.
Now youve forcefully made clients download your shizz.

ALWAYS make sure that the content that they download is ON your server. Always make a server collection and link that to your server. If youre starting to have too many addons, you can use a generator like... https://csite.io/tools/gmod-universal-workshop
That'll grab all the addons in your collection, grab the ids, write the code, and make the file. You just have to place it into autorun/server.
꧁Jay꧂ Feb 21, 2019 @ 1:10pm 
Originally posted by Beef Noodles:
That should be one of the first things you learn when you make a server. Im going to teach you the PROPER way to force clients to download workshop addons.
make a .lua file in D:\SteamLibrary\steamapps\common\GarrysMod\garrysmod\lua\autorun\server
Doesnt matter what you call it, as long as you can recognize it. No special charcters.
Inside that, youll put a line
resource.AddWorkshop( "ID" )

For id, youd go to the workshop page for that addon,
We will use this as an example. On the page url, see what it says after "id="? Copy that id and put that in place of "ID" in the lua file.
Now youve forcefully made clients download your shizz.

ALWAYS make sure that the content that they download is ON your server. Always make a server collection and link that to your server. If youre starting to have too many addons, you can use a generator like... https://csite.io/tools/gmod-universal-workshop
That'll grab all the addons in your collection, grab the ids, write the code, and make the file. You just have to place it into autorun/server.
To add onto that csite URL, it'll throw literally everything from your collection into a file which is a bad thing.
You have to go through the list of IDs it prints out and remove anything that doesn't have custom content, such as things that are just scripts.
Jahn Feb 21, 2019 @ 1:33pm 
I'm using a dedicated server on a seperate pc so the folder arrangement is a bit different :
C:\SteamCMD\steamapps\common\GarrysModDS\garrysmod\lua\autorun
That's the folder where i put the .lua file in with: resource.AddWorkshop( "370535017" )

When i connect to my own server it is downloading files, but every icon is missing, and every 3d model is just a error still. It's only downloading the lua files as far as i can tell.

Is that the wrong folder?
꧁Jay꧂ Feb 21, 2019 @ 4:33pm 
Originally posted by Harrie Poeste:
I'm using a dedicated server on a seperate pc so the folder arrangement is a bit different :
C:\SteamCMD\steamapps\common\GarrysModDS\garrysmod\lua\autorun
That's the folder where i put the .lua file in with: resource.AddWorkshop( "370535017" )

When i connect to my own server it is downloading files, but every icon is missing, and every 3d model is just a error still. It's only downloading the lua files as far as i can tell.

Is that the wrong folder?
A lot of addons I've noticed don't come with full icons/textures, and often they have a 'dependency' addon that you need to download to see the textures. I'd check for that
Jahn Feb 21, 2019 @ 5:35pm 
No i'm quite sure that M9K weapons do come with icons, 3d models and sounds.
Like i said "When i subscribe to the collection myself aswell, then it works."

The problem is that clients who join my server don't automatically download all the neccesary files.
Not a big deal, but it doesnt make any sense how Quake 3 Arena Gamemode gets downloaded by everyone, including the maps, weapons and effects. But not the addons like HBombs and M9K Weapons...

Is there like a data download restriction that needs to be highered somewhere?
꧁Jay꧂ Feb 21, 2019 @ 9:02pm 
Originally posted by Harrie Poeste:
No i'm quite sure that M9K weapons do come with icons, 3d models and sounds.
Like i said "When i subscribe to the collection myself aswell, then it works."

The problem is that clients who join my server don't automatically download all the neccesary files.
Not a big deal, but it doesnt make any sense how Quake 3 Arena Gamemode gets downloaded by everyone, including the maps, weapons and effects. But not the addons like HBombs and M9K Weapons...

Is there like a data download restriction that needs to be highered somewhere?
Does that problem persist when the user restarts their client? Often there's problems where workshop addons don't mount properly from servers. The limit I think was 256MB with workshop addons
Sarabi Feb 21, 2019 @ 9:12pm 
Originally posted by Soarin':
To add onto that csite URL, it'll throw literally everything from your collection into a file which is a bad thing.
You have to go through the list of IDs it prints out and remove anything that doesn't have custom content, such as things that are just scripts.

I simply suggest doing it like that so they didnt run into any issues. This guy clearly has no idea what serverside and clientside is. So he wouldnt be able to tell what to get rid of and what not to.



Originally posted by Harrie Poeste:
I'm using a dedicated server on a seperate pc so the folder arrangement is a bit different :
C:\SteamCMD\steamapps\common\GarrysModDS\garrysmod\lua\autorun
That's the folder where i put the .lua file in with: resource.AddWorkshop( "370535017" )

When i connect to my own server it is downloading files, but every icon is missing, and every 3d model is just a error still. It's only downloading the lua files as far as i can tell.

Is that the wrong folder?

You make a server folder in AUTORUN, otherwise no severside lua can be run.
Sarabi Feb 21, 2019 @ 9:16pm 
Originally posted by Soarin':
Does that problem persist when the user restarts their client? Often there's problems where workshop addons don't mount properly from servers. The limit I think was 256MB with workshop addons

I've never heard of this before. Where are you getting this information? It used to be an issue but hasn't been relevant for years and has been fixed.
꧁Jay꧂ Feb 21, 2019 @ 9:20pm 
Originally posted by Beef Noodles:
Originally posted by Soarin':
Does that problem persist when the user restarts their client? Often there's problems where workshop addons don't mount properly from servers. The limit I think was 256MB with workshop addons

I've never heard of this before. Where are you getting this information? It used to be an issue but hasn't been relevant for years and has been fixed.
Happens on servers I run myself and people I've hosted for, and my friends. Last I tested it was about 5 months ago if anything has changed since then.
꧁Jay꧂ Feb 21, 2019 @ 9:20pm 
Originally posted by Beef Noodles:
Originally posted by Soarin':
To add onto that csite URL, it'll throw literally everything from your collection into a file which is a bad thing.
You have to go through the list of IDs it prints out and remove anything that doesn't have custom content, such as things that are just scripts.

I simply suggest doing it like that so they didnt run into any issues. This guy clearly has no idea what serverside and clientside is. So he wouldnt be able to tell what to get rid of and what not to.



Originally posted by Harrie Poeste:
I'm using a dedicated server on a seperate pc so the folder arrangement is a bit different :
C:\SteamCMD\steamapps\common\GarrysModDS\garrysmod\lua\autorun
That's the folder where i put the .lua file in with: resource.AddWorkshop( "370535017" )

When i connect to my own server it is downloading files, but every icon is missing, and every 3d model is just a error still. It's only downloading the lua files as far as i can tell.

Is that the wrong folder?

You make a server folder in AUTORUN, otherwise no severside lua can be run.
You can run the .lua in the /autorun folder too, it just runs both on client and serverside.
Sarabi Feb 21, 2019 @ 9:21pm 
Originally posted by Soarin':
Originally posted by Beef Noodles:

I've never heard of this before. Where are you getting this information? It used to be an issue but hasn't been relevant for years and has been fixed.
Happens on servers I run myself and people I've hosted for, and my friends. Last I tested it was about 5 months ago if anything has changed since then.

So you're basing off of this because of something that happened 5 months ago? Either way, im just saying your information is false. And has been dealt with years ago.
Sarabi Feb 21, 2019 @ 9:23pm 
Originally posted by Soarin':
Originally posted by Beef Noodles:

I simply suggest doing it like that so they didnt run into any issues. This guy clearly has no idea what serverside and clientside is. So he wouldnt be able to tell what to get rid of and what not to.





You make a server folder in AUTORUN, otherwise no severside lua can be run.
You can run the .lua in the /autorun folder too, it just runs both on client and serverside.
Oopsies. I was thinking of something else atm. But regardless, It doesnt need to be ran clientside. I prefer to have it in its own seperate folder for the sake of organization.
꧁Jay꧂ Feb 21, 2019 @ 9:24pm 
Originally posted by Beef Noodles:
Originally posted by Soarin':
Happens on servers I run myself and people I've hosted for, and my friends. Last I tested it was about 5 months ago if anything has changed since then.

So you're basing off of this because of something that happened 5 months ago? Either way, im just saying your information is false. And has been dealt with years ago.
It isn't false..... I don't know why you come in trying to spark a debate. You said it has been solved years ago when it happened to me and my clients in the last 5 months... I've been making GMod servers for a decade, I'm confident in what I'm telling this person is correct.
Sarabi Feb 21, 2019 @ 9:26pm 
Originally posted by Soarin':
Originally posted by Beef Noodles:

So you're basing off of this because of something that happened 5 months ago? Either way, im just saying your information is false. And has been dealt with years ago.
It isn't false..... I don't know why you come in trying to spark a debate. You said it has been solved years ago when it happened to me and my clients in the last 5 months... I've been making GMod servers for a decade, I'm confident in what I'm telling this person is correct.

If you can find any thread or post that reinforces your opinion, id be happy to see it. In 3 years of coding and 5 years of playing the game, never have i heard of that in the last 2-3 years
꧁Jay꧂ Feb 21, 2019 @ 9:29pm 
Originally posted by Beef Noodles:
Originally posted by Soarin':
It isn't false..... I don't know why you come in trying to spark a debate. You said it has been solved years ago when it happened to me and my clients in the last 5 months... I've been making GMod servers for a decade, I'm confident in what I'm telling this person is correct.

If you can find any thread or post that reinforces your opinion, id be happy to see it. In 3 years of coding and 5 years of playing the game, never have i heard of that in the last 2-3 years
I don't see people making posts on this because it just takes restarting/reconnecting to fix, of course there isn't going to be much on it. I'm not a lying person, why are you so irritated over this? I have 0 to gain from lying about this, I feel like you're bored and want to debate. I'm saying off my experience in the last 5 months for me and my clients I host for, if you are hungry to debate then you can add me but this isn't the right place to feed the urge.
< >
Showing 1-15 of 24 comments
Per page: 1530 50

Date Posted: Feb 21, 2019 @ 4:20am
Posts: 24