Skip to content

Steam bridge: publish Puzzle Maker chambers to the Workshop - #50

Merged
kanapitsas merged 1 commit into
kanapitsas:mainfrom
Zertrox123:feat/workshop-publishing-macos
Nov 19, 2026
Merged

kanapitsas merged 1 commit into
kanapitsas:mainfrom
Zertrox123:feat/workshop-publishing-macos

Conversation

@Zertrox123

Copy link
Copy Markdown
Contributor

Summary

The Puzzle Maker's Publish button trapped on Mac:

Steam: STEAMREMOTESTORAGE_INTERFACE_VERSION016::slot30 has no flat function in SDK 1.53a

Slot 30 is PublishWorkshopFile, which has no flat function. virtual_bridge now calls it on the host object (ARM64 C++ ABI), along with the three ISteamRemoteStorage016 methods that take SteamParamStringArray_t tags and were left untranslated by the generator:

Slot Method
30 PublishWorkshopFile
37 UpdatePublishedFileTags
49 EnumerateUserSharedWorkshopFiles
53 EnumeratePublishedWorkshopFiles

Guest tag arrays ({const char **, int32}, at most 64 strings) are copied into host arrays. Slot order follows isteamremotestorage.h and matches the neighbouring flat functions (29, 31, 38, 52, 54). method_shim also tries virtual_bridge for methods that have a table entry but no translated function.

Docs: docs/steam.md and the README roadmap.

Testing

  • make check passes.
  • Published a chamber from the Puzzle Maker (private visibility) with the Mac app built with ./setup.sh --puzzle-maker; it appears on the Workshop.
  • The two enumeration methods (49, 53) are bridged but were not exercised.

The editor's Publish button called ISteamRemoteStorage016::PublishWorkshopFile
(slot 30), which has no flat function in SDK 1.53a, and trapped. virtual_bridge
now calls it on the host object, along with the three methods that take
SteamParamStringArray_t tags and were left untranslated by the generator:
UpdatePublishedFileTags (37), EnumerateUserSharedWorkshopFiles (49) and
EnumeratePublishedWorkshopFiles (53). Guest tag arrays ({const char **, int32},
at most 64 strings) are copied into host arrays.

Slot order follows isteamremotestorage.h and matches the neighbouring flat
functions (29, 31, 38, 52, 54). Tested by publishing a chamber (private
visibility) from the Mac app; the two enumeration methods were not exercised.
@kanapitsas
kanapitsas merged commit b5bbb3c into kanapitsas:main Nov 19, 2026
3 checks passed
kanapitsas added a commit that referenced this pull request Nov 19, 2026
PR #50 bridges four ISteamRemoteStorage016 methods by hand. Add a check
with a fake host object so the guest SteamParamStringArray_t copy (null
pointer, empty array, two arrays in one call) and the 64-bit arguments
and results stay covered.

The README said publishing works; only the contributor has tried it so
far, so say that until we have published a chamber ourselves.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@kanapitsas

Copy link
Copy Markdown
Owner

Thanks for this, merged. I checked the four slots against the generated
table and read through the signatures, and CI is green.

Two small follow-ups on my side (commit on main):

  • a check in tests/checks_steam.c that calls the four methods on a fake
    host object, so the tag array copy stays covered;
  • the README line now says "reported working by a contributor, not tested
    by us yet". I will put the ✅ back once I have published a chamber here.

One question: after publishing, does the game show the success screen and
the new chamber in your list, or did you only see it on the Workshop page?
I want to know whether the result callback comes back correctly.

It will ship in the next installer.

@Zertrox123

Copy link
Copy Markdown
Contributor Author

The game show the success screen and
the new chamber in my list, and I can see my puzzle through the workshop page. All works pretty fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants