• Reset resource.AddWorkshop internal list dynamically?
    9 replies, posted
Greetings. Anyone know if it's possible to clear the DS's internal list of addons built by calls to resource.Addworkshop without having to restart the server itself? I see nothing in the GMod API around this, but thought I'd ask. Thx.
No, you cannot. Why do you need this though?
It's an experiment. I'm attempting to "spread out" client-side addon downloads from the Workshop across time of day or day of week, so that the entire collection of addon data isn't downloaded in one lump. Manual experimentation shows that this approach has some merit (I had been concerned that a dynamically changing list of AddWorkshop calls would create mounting problems, but that doesn't seem to be the case). However, to use time-of-day changes effectively I need to be able to clear and rebuild the list on demand. Day of week is a little easier, since I can just force a restart in the wee hours. Thanks. [editline]12th January 2015[/editline] Bah, never mind. I must have been half-asleep last night. The partial mounting problem *is* a problem. The client never mounts the "skipped" addons, even if they've been downloaded previously. Oh well, it was an interesting thought experiment anyway. :)
Wouldn't removing entries here create the same client-side mounting issues? That is, previously downloaded gma's will not get mounted (same problem when removing AddWorkshop calls). [editline]12th January 2015[/editline] Also, if we're talking about gm_stringtable ([url]https://github.com/gmodcoders/gm_stringtable[/url]), that appears to provide read-only functions.
Purr, can you point me towards the module or modules that support write access to stringtables? gm_stringtable is the only one I've come across, and that's specifically read only. Thanks.
[url]https://bitbucket.org/breakpointservers/bkacjios-glua-modules/src[/url]
Thanks. Looks like thats only pieces of the code, unfortunately (no header files), and since I'm running under Linux I'll need to build it. Before I spend any time, can anyone confirm that this actually allows you to delete entries in a stringtable? Without the interface defs in the header files I can't be sure what calls to string tables this actually supports. (Of course, without the header files I can't build the thing anyway). Thx
-snip-
Sorry, you need to Log In to post a reply to this thread.