Garry's Mod

Garry's Mod

26 ratings
Jai's WorkshopSync
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
File Size
Posted
Updated
16.490 KB
18 Jan, 2023 @ 1:24am
23 Feb, 2023 @ 8:57am
3 Change Notes ( view )

Subscribe to download
Jai's WorkshopSync

Description
IMPORTANT
I do not work on Garry's Mod add-ons anymore. It's too difficult balancing life stuff with projects like this. I highly recommend looking at alternatives if you have any issues.

If there are issues with this add-on not properly making clients download content (the code to determine whether to download at the loading screen or while in-game is finicky), set wsync_dynamic_downloads to 0 and restart the map.

WorkshopSync
A simple "install & play" add-on for the latest version of Garry's Mod. This is a successor to my previous Simple Automatic Workshop Downloader add-on but designed to be as minimal as possible. The add-on aims to synchronize all mounted Workshop add-ons to any client that joins the server, avoiding potentially missing assets because a client did not install a specific add-on.

WorkshopSync also implements what I call the "Dynamic Downloads" system. This means not every Workshop add-on will be downloaded while waiting at the loading screen, some add-ons will be installed while the client is in-game. It uses the files present in a GMA to determine if the add-on is suitable for this system, otherwise it uses the resource system built into Garry's Mod. If you encounter any issues with this system, you can either disable it or use the manual JSON method.

As part of the minimal design, there are no menus to customise anything. If you're looking for a more sophisticated solution, this add-on may not suit your needs.

Installation
Subscribe here to instantly download the add-on to your game!

If you're installing this on SRCDS, it's recommended to use +host_workshop_collection to fully automate WorkshopSync's process. If you wish to use the manual method, you are allowed to place *.json files into both the ../garrysmod/data/workshop_sync/resource and ../garrysmod/data/workshop_sync/dynamic directories.

Console variables/commands
  • wsync_dynamic_downloads [0..1] : enable WorkshopSync's Dynamic Downloads system. Takes effect upon loading a map.
  • wsync_resynchronize : re-synchronize WorkshopSync's Dynamic Downloads system.

Project links
6 Comments
Jai "Choccy" Fox  [author] 23 Feb, 2023 @ 8:53am 
If there is no sign of the other's client downloading anything, either the download filter in options is set to not allow Workshop content or their client is failing to initialize the download.

They should check the developer console for any messages that appear.
Breen-Militärprävention 31 Jan, 2023 @ 6:55am 
thank you for Add-On.
I have problem, when playing with friend since many days. He joins and misses a ton of Add-Ons. I already tried several workshop loader add ons and place my hope on this on.
Do you probably know, how it could happen? He just joins and doesnt see a lot of things, which I see.
It always worked great before. No errors, no missing things.
Thank you Jai
Jai "Choccy" Fox  [author] 27 Jan, 2023 @ 8:10am 
You can think of it as that, yes. The general thing I was aiming for is that this add-on remains in the background without the need for fiddling around with it, a "shadow" add-on I guess. You won't really know it's there besides a message being displayed in the console that it's there.

There's only one complicated feature it does and that's the late load-in downloading feature. It determines if an add-on has content that isn't critical for the client to download, and instead will prioritise downloading it later when the player fully loads into the game (i.e. playermodel packs). A very niche feature and is more of a cool trick to show off.
Scott.Mason S.A.S 26 Jan, 2023 @ 7:20pm 
@Jai "Choccy" Fox is this like addon share, I did'int understand the description
joystick_on^ 21 Jan, 2023 @ 4:09am 
good job
Goobert 19 Jan, 2023 @ 2:20am 
sick, great addon