Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/williamvenner/gmsv_workshop
📩 steamworks.DownloadUGC for the server!
https://github.com/williamvenner/gmsv_workshop
binary-module garrys-mod garrysmod gmod module rust steamworks ugc
Last synced: 3 months ago
JSON representation
📩 steamworks.DownloadUGC for the server!
- Host: GitHub
- URL: https://github.com/williamvenner/gmsv_workshop
- Owner: WilliamVenner
- License: mit
- Created: 2022-01-09T05:05:54.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-03-07T15:41:23.000Z (11 months ago)
- Last Synced: 2024-10-11T11:34:25.131Z (4 months ago)
- Topics: binary-module, garrys-mod, garrysmod, gmod, module, rust, steamworks, ugc
- Language: Rust
- Homepage: https://wiki.facepunch.com/gmod/steamworks.DownloadUGC
- Size: 12.2 MB
- Stars: 49
- Watchers: 5
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
gmsv_workshop
This module allows for servers to use the [`steamworks.DownloadUGC`](https://wiki.facepunch.com/gmod/steamworks.DownloadUGC) and [`steamworks.FileInfo`](https://wiki.facepunch.com/gmod/steamworks.FileInfo) functions, enabling runtime downloading & mounting of Workshop addons and GMA files through [`game.MountGMA`](https://wiki.facepunch.com/gmod/game.MountGMA)
No additional configuration is needed, just install the module to the server and scripts can make use of it.
## Installation
First, run this command in your server console to determine the correct module to download:
```lua
lua_run print("gmsv_workshop_" .. ((system.IsLinux() and "linux" .. (jit.arch == "x86" and "" or "64")) or (system.IsWindows() and "win" .. (jit.arch == "x86" and "32" or "64")) or "UNSUPPORTED") .. ".dll")
```Next, download the module from the [releases page](https://github.com/WilliamVenner/gmsv_workshop/releases)
Finally, drop the DLL file in `garrysmod/lua/bin` in your server files. **If the `lua/bin` folder doesn't exist, create it.**
# "Couldn't load module library!" error or similar
Either:
1. Your server is outdated
2. **(Most likely)** Your server is running the x86-64 branch in 32-bit. If you start your x86-64 branch server using the `srcds_run` binary, this is the problem. Start it using `srcds_run_x64` to launch it in 64-bit.
3. Garry's Mod updated the Steamworks version and this now needs to be recompiled against it, [open an issue](https://github.com/WilliamVenner/gmsv_workshop/issues) if this is the case.