Garry's Mod

Garry's Mod

Not enough ratings
N2 In-Game Workshop Downloader
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
File Size
Posted
Updated
9.091 KB
22 Jul, 2020 @ 1:56pm
18 Dec, 2020 @ 8:30pm
6 Change Notes ( view )

Subscribe to download
N2 In-Game Workshop Downloader

Description
N2 In-Game Workshop Downloader
This addon is for SERVERS ONLY
This will do nothing if you download it and don't put it on your server.

This addon allows the to download addons after connecting.
This shortens the connection time.

How do I use it?
Add this addon to your server, then in your server.cfg or in your gmodserver.cfg add the following lines:
n2wd_collection "<your workshop collection ID>"
n2wd_overrideresource 0 // Change this to 1 if you want to overwrite resource.AddWorkshop

Does it ignore linked collections?
Yes, but an update is planned

this is a fork of In-Game Workshop Downloads- No more long join times!
51 Comments
Unbloated [イーブイ] 2 Feb @ 9:35am 
Don't use this, broken.

[N2WD] CollectionID: XXXXXXXXXX
[N2WD] CollectionID: XXXXXXXXXX
Unknown command: headtrack_reset_home_pos
[N2WD] Data collected!

[N2 In-Game Workshop Downloader] lua/autorun/client/cl_n2workshopdls.lua:165: bad argument #1 to 'pairs' (table expected, got nil)
1. pairs - [C]:-1
2. onsuccess - lua/autorun/client/cl_n2workshopdls.lua:165
3. unknown - lua/includes/modules/http.lua:59

[N2WD] Data collected!

[N2 In-Game Workshop Downloader] lua/autorun/client/cl_n2workshopdls.lua:165: bad argument #1 to 'pairs' (table expected, got nil)
1. pairs - [C]:-1
2. onsuccess - lua/autorun/client/cl_n2workshopdls.lua:165
3. unknown - lua/includes/modules/http.lua:59
party 29 Apr, 2023 @ 2:44am 
[ERROR] lua/autorun/client/cl_n2workshopdls.lua:165: bad argument #1 to 'pairs' (table expected, got nil)
1. pairs - [C]:-1
2. onsuccess - lua/autorun/client/cl_n2workshopdls.lua:165
3. unknown - lua/includes/modules/http.lua:58
YoungVega 7 Apr, 2023 @ 3:37pm 
when people log back in to the server they still see things with errors even though they have already downloaded the addons with the plugin help
XxsSole!WizZxX 5 Mar, 2023 @ 5:11am 
why does this disable workshop resorce add files?

i need both?
HardCoreMC 19 Jun, 2022 @ 6:40am 
does it work with multiplayer
Eggroll 20 Dec, 2021 @ 12:26pm 
Does this still work?
lexicon 16 Feb, 2021 @ 11:28am 
Figured out my others, for those like me who want to clear it ALL and rejoin to check how it works for a totally "unprepared" client:

Clear garrysmod/data/n2wd, garrysmod/cache, garrysmod/download
Clear steamapps/workshop/content/4000, steamapps/workshop/download/4000
Close steam and delete steamapps/workshop/appworkshop_4000.acf
Start steam and you're done.

Of course, don't be subscribed to any during this. Unrelated to issue below, might be something on my end too though.
netram2  [author] 16 Feb, 2021 @ 9:35am 
When a mod has received an update, it will automatically get downloaded by the client.

About the locations, the mod has a folder in the data folder of Garry's mod. In it, he writes the used metadata. The files are named after the mod id. (Folder: [Garry's Mod Folder]\garrysmod\data\n2wd)
The mods get downloaded with Steamworks, the folder is located in [Steam Library]steamapps\workshop\content\4000
lexicon 16 Feb, 2021 @ 7:43am 
This is a great mod, thank you. Only issue I've had is I can't seem to find how it knows something is downloaded.

I tried clearing my Cache & Download folders & rejoining and it did not redownload. Not a fault of the mod, I obviously just didn't clear where it stores what's downloaded.

Adding a new mod caused it to download so it does work, where's that file stored? Does it work if mods get updated to update them?