General > Developers Corner

Reset a server's resource.AddWorkshop list?

(1/3) > >>

Buzzkill:
Anyone know if it's possible to dynamically reset a server's list of client-delivered addons built through calls to resource.AddWorkshop without having to restart the server/map?  I'm looking to spread addon delivery via the Workshop across days of the week to shorten connection times for new players, but this hinges on my ability to clear and rebuild the addon list every so often.  I didn't see anything in the GMod api, but thought I'd throw the question out on Facepunch and here.

Thanks.

Megiddo:
Look into the steamworks library, it seems you can do it there, though it may require forcing clients to rejoin.

Buzzkill:
Thanks. I did look through it briefly.  It seems to be more about accessing and manipulating Steam-side information rather than making changes to a dedicated server's operational status.  Do you see something there that speaks to server configuration that I might have missed?  I'll dig deeper.   

Thanks again.

Buzzkill:
Bah, never mind.  It's moot.  By skipping AddWorkshop calls for addons it creates mounting problems for the client even though they've already downloaded the addon previously (it never mounts).  It was a semi-interesting idea that ran off the cliff quickly.  :)  Thanks though.

MrPresident:
Why are you trying to remove it?
When a client joins they only download addons from the workshop that they don't have or have been updated.

Navigation

[0] Message Index

[#] Next page

Go to full version