From 5382a062015b6db7cf08f62f6bab3a8aafa50ac8 Mon Sep 17 00:00:00 2001 From: "Fabian @ Blax Software" Date: Sun, 29 Nov 2026 21:45:10 +0100 Subject: [PATCH] feat: uploader creates new Workshop items as Public Steam creates new items Private, so the first release of a mod stayed hidden. Pass -Visibility private to review a new item first. --- Tools/workshop-upload.ps1 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Tools/workshop-upload.ps1 b/Tools/workshop-upload.ps1 index 82ce5a0..0a8f751 100644 --- a/Tools/workshop-upload.ps1 +++ b/Tools/workshop-upload.ps1 @@ -17,8 +17,10 @@ Without About\PublishedFileId.txt it creates a new Workshop item; with it, it up published from here yet (no Tools\workshop-published.txt). A new item needs one. -DescriptionOnly with -DescriptionFile: replaces only the description. No build, no content upload, no change note, no title or preview. - -Visibility public|friends|private|unlisted who sees the item. Left out, the item keeps its visibility, and a - new item gets Steam's default, as with the in-game uploader. + -Visibility public|friends|private|unlisted who sees the item. Left out, an existing item keeps its + visibility and a new item is created Public (Steam's own default + for a new item is Private). Pass -Visibility private to review a + new item before anyone else sees it. The title is About.xml's name and the preview is About\Preview.png (under 1 MB), set on every upload like the in-game uploader does. @@ -293,6 +295,8 @@ else { if ($Publish -or (Test-Path -LiteralPath $previewFile)) { $toolArgs += @('--preview', $previewFile) } if ($DescriptionFile) { $toolArgs += @('--description-file', $DescriptionFile) } } +# Steam creates new items Private; a release is meant to be seen, so a new item is Public unless told otherwise. +if (-not $Visibility -and $create) { $Visibility = 'public' } if ($Visibility) { $toolArgs += @('--visibility', $Visibility) } if ($Publish) { $toolArgs += '--publish' }