Repository navigation
feat(waypoint-tools): a way into the game for Waypoint's tools, without the client bridge - #30
Merged
Merged
Conversation
…ut the client bridge A project mod that carries out requests Waypoint writes to data/waypoint-tools/requests/ and answers in replies/. The first action is item_give, what gm-commands' /item_give does, so Waypoint's item crafter can give its items on a release, where there is no client control bridge, and without the chat box's length limit. A request runs on the next tick of that character's connection, so the inventory change and its message go through the connection's own task; one that waits 30 s for its character is answered "not in game". loaded.json says the mod is loaded in which Gateway. Nothing listens on the network. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t names none Waypoint does not know which character is in game without the client bridge, so a request without "character" goes to the one whose connection ticked in the last 2 s; with several in game it is answered "name one", with none "No character is in game" after the 30 s wait. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
It builds and places items with the Gateway's own ItemCrafter.Build and the Game module; Game in depends is LocalExile's module, not a mod. 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.
What it does
Waypoint Tools (
waypoint-tools) is a project mod that lets Waypoint's tools reach the game without the client control bridge (Frida +client_control.py), so they work the same on a LocalExile release and on a source checkout. The first use is Waypoint's item crafter: it used to give items through/item_giveover the bridge, which a release doesn't have, and the game's chat box (175 characters) is too short to paste a rare's command by hand.data/waypoint-tools/requests/<id>.json(written as.tmp, then renamed):{"action": "item_give", "character": "<name>", "item": <an item in the crafter hook's format>}.characteris optional: without it the request goes to the one character in game, and with several in game it is answered asking to name one.Tickof that character's connection: it builds the item with the Gateway's ownItemCrafter.Build, finds a free cell, puts it there and sends the inventory change, all on the connection's own task, as a chat command does.replies/<id>.json(ok,message) before removing the request, and says it in the character's chat (Waypoint: Added …).data/waypoint-tools/loaded.json(protocol, version, the Gateway's pid, the actions) is written on load and removed on unload, so Waypoint can tell whether the running Gateway has the mod.Game(the module) independs. So it needs LocalExile v0.4.0-beta or later;compatibleClientVersionsis0.4.2-beta.The README documents the request and reply files.
Tested in game
LocalExile v0.4.2-beta (
a6e3b6a2), on a source checkout started withscripts/dev/live.ps1and on the extracted release, the real client in Lioneye's Watch:[mods] loaded waypoint-tools 1.0.0 (feature, 1 hook(s)), andloaded.jsonwritten with the Gateway's pid.item_giveof a rare ring, by character name and with no name: the reply wasok, the request file was removed, and the ring appeared in the main inventory with the chat line.mod.json), and disable then enable throughmod-state.txt: unloaded and loaded again cleanly, with nostill in memoryline.dotnet buildis clean with warnings as errors, andtools/build-index.ps1updatedmods.json.The Waypoint side is LocalExile/Waypoint#30.
🤖 Generated with Claude Code