[GH-ISSUE #960] Starbound Workshop Support #765

Open
opened 2026-02-27 02:53:22 +03:00 by kerem · 8 comments
Owner

Originally created by @phit on GitHub (Jul 31, 2016).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/960

Would love to see this added

  • add support to download collections like in gmod etc.
  • automatically edit /serverfiles/linux/sbinit.config to include downloaded workshop files

for reference:
https://www.reddit.com/r/starbound/comments/4u69z8/10_installing_steam_workshop_mods_on_servers/
https://www.reddit.com/r/starbound/comments/4ub95u/dedicated_server_steam_workshop/

Originally created by @phit on GitHub (Jul 31, 2016). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/960 Would love to see this added - add support to download collections like in gmod etc. - automatically edit /serverfiles/linux/sbinit.config to include downloaded workshop files for reference: https://www.reddit.com/r/starbound/comments/4u69z8/10_installing_steam_workshop_mods_on_servers/ https://www.reddit.com/r/starbound/comments/4ub95u/dedicated_server_steam_workshop/
Author
Owner

@UltimateByte commented on GitHub (Aug 1, 2016):

I think we can do this, but gosh, doesn't Starbound support the downloading of collections ? Would be much more simple.

<!-- gh-comment-id:236602798 --> @UltimateByte commented on GitHub (Aug 1, 2016): I think we can do this, but gosh, doesn't Starbound support the downloading of collections ? Would be much more simple.
Author
Owner

@phit commented on GitHub (Aug 1, 2016):

doesn't seem like it :/
for my own server I'm doing something like this right now

updatemods.sh in the root server dir

#!/bin/bash
cd steamcmd
./steamcmd.sh +login "user" "pass" +force_install_dir ../serverfiles +workshop_download_item 211820 731592371 +workshop_download_item 211820 730867662 +workshop_download_item 211820 730587191 +workshop_download_item 211820 729427606 +workshop_download_item 211820 729427436 +quit

that will install the mods to serverfiles/steamapps/workshop/content/211820

then i have to manually edit serverfiles/linux/sbinit.config for the mods above it then looks like this

{
  "assetDirectories" : [
    "../assets/",
    "../mods/",
    "../steamapps/workshop/content/211820/729427606",
    "../steamapps/workshop/content/211820/730587191",
    "../steamapps/workshop/content/211820/730867662",
    "../steamapps/workshop/content/211820/731592371",
    "../steamapps/workshop/content/211820/729427436"
  ],

  "storageDirectory" : "../storage/"
}
<!-- gh-comment-id:236609439 --> @phit commented on GitHub (Aug 1, 2016): doesn't seem like it :/ for my own server I'm doing something like this right now updatemods.sh in the root server dir ``` #!/bin/bash cd steamcmd ./steamcmd.sh +login "user" "pass" +force_install_dir ../serverfiles +workshop_download_item 211820 731592371 +workshop_download_item 211820 730867662 +workshop_download_item 211820 730587191 +workshop_download_item 211820 729427606 +workshop_download_item 211820 729427436 +quit ``` that will install the mods to `serverfiles/steamapps/workshop/content/211820` then i have to manually edit `serverfiles/linux/sbinit.config` for the mods above it then looks like this ``` { "assetDirectories" : [ "../assets/", "../mods/", "../steamapps/workshop/content/211820/729427606", "../steamapps/workshop/content/211820/730587191", "../steamapps/workshop/content/211820/730867662", "../steamapps/workshop/content/211820/731592371", "../steamapps/workshop/content/211820/729427436" ], "storageDirectory" : "../storage/" } ```
Author
Owner

@UltimateByte commented on GitHub (Aug 1, 2016):

Well, that'll be a bit of a challenge to script for me, that's interesting.
I'll notify on this issue when i'm on it, but if anyone feels like doing it before, feel free to take the job and make a pull request; because chances are i won't code in the next few days.

<!-- gh-comment-id:236611254 --> @UltimateByte commented on GitHub (Aug 1, 2016): Well, that'll be a bit of a challenge to script for me, that's interesting. I'll notify on this issue when i'm on it, but if anyone feels like doing it before, feel free to take the job and make a pull request; because chances are i won't code in the next few days.
Author
Owner

@jaredballou commented on GitHub (Aug 8, 2016):

Seems like one of those "Nice to have, but not easily done in Bash" things.

<!-- gh-comment-id:238249716 --> @jaredballou commented on GitHub (Aug 8, 2016): Seems like one of those "Nice to have, but not easily done in Bash" things.
Author
Owner

@shadow-absorber commented on GitHub (Sep 20, 2017):

see issue #1623 for a solution one how to do this and a suggestion for how to implement it
@phit
@UltimateByte
@jaredballou

<!-- gh-comment-id:330933362 --> @shadow-absorber commented on GitHub (Sep 20, 2017): see issue #1623 for a solution one how to do this and a suggestion for how to implement it @phit @UltimateByte @jaredballou
Author
Owner

@linonetwo commented on GitHub (Dec 16, 2018):

Seems LinuxGSM is auto downloading mods, but not editing sbinit.config. We should edit it manually at this time.

<!-- gh-comment-id:447636839 --> @linonetwo commented on GitHub (Dec 16, 2018): Seems LinuxGSM is auto downloading mods, but not editing `sbinit.config`. We should edit it manually at this time.
Author
Owner

@linonetwo commented on GitHub (Apr 6, 2019):

Use

echo -e "{\n  \"assetDirectories\": [\n    \"../assets/\",\n    \"../mods/\",\n    " && \
curl -s --data "collectioncount=1&publishedfileids[0]=[[YOUR_COLLECTION_ID]]" https://api.steampowered.com/ISteamRemoteStorage/GetCollectionDetails/v1/ \
| jq '.response.collectiondetails[] | .children[] | .publishedfileid' \
| sed 's#^#"../steamapps/workshop/content/211820/#' | sed 's#/"#/#' | tr -t '\n' ',' && \
echo -e "\b\b\n  ],\n  \"storageDirectory\": \"../storage/\"\n}\n"

to generate sbinit.config, then paste it to serverfiles/linux/sbinit.config

And use

echo login [[YOUR_USERNAME]] [[YOUR_PASSWORD]] > moddownload.sh && curl -s --data "collectioncount=1&publishedfileids[0]=[[YOUR_COLLECTION_ID]]" https://api.steampowered.com/ISteamRemoteStorage/GetCollectionDetails/v1/ \
| jq '.response.collectiondetails[] | .children[] | .publishedfileid' \
| sed 's/^/workshop_download_item 211820 /' | tee -a moddownload.sh && echo quit >> moddownload.sh && ./steamcmd/steamcmd.sh +runscript ../moddownload.sh

to start download your mod collection.

<!-- gh-comment-id:480511955 --> @linonetwo commented on GitHub (Apr 6, 2019): Use ```shell echo -e "{\n \"assetDirectories\": [\n \"../assets/\",\n \"../mods/\",\n " && \ curl -s --data "collectioncount=1&publishedfileids[0]=[[YOUR_COLLECTION_ID]]" https://api.steampowered.com/ISteamRemoteStorage/GetCollectionDetails/v1/ \ | jq '.response.collectiondetails[] | .children[] | .publishedfileid' \ | sed 's#^#"../steamapps/workshop/content/211820/#' | sed 's#/"#/#' | tr -t '\n' ',' && \ echo -e "\b\b\n ],\n \"storageDirectory\": \"../storage/\"\n}\n" ``` to generate `sbinit.config`, then paste it to `serverfiles/linux/sbinit.config` And use ```shell echo login [[YOUR_USERNAME]] [[YOUR_PASSWORD]] > moddownload.sh && curl -s --data "collectioncount=1&publishedfileids[0]=[[YOUR_COLLECTION_ID]]" https://api.steampowered.com/ISteamRemoteStorage/GetCollectionDetails/v1/ \ | jq '.response.collectiondetails[] | .children[] | .publishedfileid' \ | sed 's/^/workshop_download_item 211820 /' | tee -a moddownload.sh && echo quit >> moddownload.sh && ./steamcmd/steamcmd.sh +runscript ../moddownload.sh ``` to start download your mod collection.
Author
Owner

@Shadowblitz16 commented on GitHub (Jun 28, 2022):

Is this going to be implemented?

<!-- gh-comment-id:1169060561 --> @Shadowblitz16 commented on GitHub (Jun 28, 2022): Is this going to be implemented?
Sign in to join this conversation.
No labels
Atomic
Epic
cannot reproduce
command: backup
command: console
command: debug
command: details
command: fast-dl
command: install
command: mods
command: monitor
command: post-details
command: restart
command: send
command: start
command: stop
command: update
command: update-lgsm
command: validate
command: wipe
distro: AlmaLinux
distro: Arch Linux
distro: CentOS
distro: Debian
distro: Fedora
distro: RedHat
distro: Rocky Linux
distro: Ubuntu
distro: openSUSE
engine: goldsrc
engine: source
game: 7 Days to Die
game: ARMA 3
game: Ark: Survival Evolved
game: Assetto Corsa
game: Avorion
game: BATTALION: Legacy
game: Barotrauma
game: Battalion 1944
game: Battlefield 1942
game: Black Mesa: Deathmatch
game: Blade Symphony
game: Call of Duty 2
game: Call of Duty 4
game: Call of Duty: United Offensive
game: Counter-Strike 1.6
game: Counter-Strike 2
game: Counter-Strike: Global Offensive
game: Counter-Strike: Source
game: Day of Infamy
game: Dayz
game: Death Match Classic
game: Don't Starve Together
game: ET: Legacy
game: Eco
game: Factorio
game: Factorio
game: Garry's Mod
game: Half-Life
game: Hurtword
game: Insurgecy
game: Insurgecy
game: Insurgency: Sandstorm
game: Just Cause 3
game: Killing Floor
game: Killing Floor 2
game: Left 4 Dead 2
game: Minecraft
game: Minecraft Bedrock
game: Mordhau
game: Multi Theft Auto
game: Mumble
game: Natural Selection 2
game: No More Room in Hell
game: Pavlov VR
game: Post Scriptum
game: Project Zomboid
game: Quake 3
game: QuakeWorld
game: Red Orchestra: Ostfront 41-45
game: Return to Castle Wolfenstein
game: Rising World
game: Rust
game: San Andreas Multiplayer
game: Satisfactory
game: Soldat
game: Soldier of Fortune 2
game: Squad
game: Squad 44
game: Starbound
game: Stationeers
game: Sven Co-op
game: Team Fortress 2
game: Teamspeak 3
game: Teeworlds
game: Terraria
game: The Front
game: Unreal Tournament 2004
game: Unreal Tournament 3
game: Unreal Tournament 99
game: Unturned
game: Valheim
game: Wurm Unlimited
game: Zombie Master Reborn
game: label missing
good first issue
help wanted
info: alerts
info: dependency
info: docker
info: docs
info: email
info: query
info: steamcmd
info: systemd
info: tmux
info: website
info: website
needs more info
outcome: duplicate
outcome: issue resolved
outcome: issue resolved
outcome: issue unresolved
outcome: pr accepted
outcome: pr rejected
outcome: unconfirmed
outcome: wontfix
outcome: wrong forum
potential-duplicate
priority
pull-request
type: bug
type: feature
type: feature
type: feature request
type: game server request
type: refactor
waiting response
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/LinuxGSM#765
No description provided.