Repository navigation
fix: escape user strings in SDK code examples - #51
Merged
Merged
Conversation
Signed-off-by: Emilio Castejón <107069576+ect2000@users.noreply.github.com>
Contributor
Author
|
The SDK string fix and regression tests are ready for review. If there is another focused tool bug or maintenance task you would like help with, I have availability to continue. I am also interested in paid collaboration if you have a budget; we can agree on scope, fee and delivery before starting. |
Signed-off-by: Emilio Castejón <107069576+ect2000@users.noreply.github.com>
Signed-off-by: Emilio Castejón <107069576+ect2000@users.noreply.github.com>
This was referenced Oct 25, 2026
TMHSDigital
added a commit
that referenced
this pull request
Oct 25, 2026
…parity (#54) (#75) * fix: escape user strings in SDK guides Signed-off-by: Emilio Castejón <107069576+ect2000@users.noreply.github.com> * fix(sdk-guides): Steamworks.NET enum names, C# Workshop guide, input parity, registered call results - createLobby: C# uses ELobbyType.k_ELobbyType* (Steamworks.NET keeps the native names); C++/C# register their CallResult; GDScript connects the signal and renames the shadowing connect parameter to this_connect - uploadWorkshopItem: adds the promised Steamworks.NET C# block; GDScript sets description and tags; C++ registers CreateItem and SubmitItemUpdate call results and checks the Workshop legal agreement flag - Tests for each, on top of #51's escaping Fixes #54 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Signed-off-by: Emilio Castejón <107069576+ect2000@users.noreply.github.com> Co-authored-by: Emilio Castejón <107069576+ect2000@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The SDK guide tools interpolate raw titles, paths, tags and lobby metadata into source strings. Quotes break those literals, Windows backslashes become escape sequences, and line breaks split the generated code.
Both guide generators now use a shared quoted-literal encoder. C# and GDScript use JSON-compatible escapes, including escaped line separators. C++ emits fixed-width octal for non-printable/non-ASCII UTF-8 bytes, avoiding both invalid control-character universal names and a following digit extending an escape. The guide's structured metadata remains unchanged.
Closes #36.
Verification:
npm testpasses all 231 tests with the fix. The merge preserves both LOCAL_ONLY annotations and literal escaping.npm run buildpasses.These are client-side SDK guides; there is no HTTP upload or lobby-creation endpoint, no API key is needed, and no Steam mutation was performed. The generated calls reference ISteamUGC and ISteamMatchmaking. I have not linked or executed the full examples against Steamworks, C# or Godot runtimes.