Repository navigation
Prepare a game from the terminal and save before/after screenshots from the MCP - #68
Merged
Merged
Conversation
…om the MCP `ClientLab --prepare` runs the launcher's Prepare without its window: current official client, recompile from the committed symbols, compile, active build. `--serve` then serves it from the same data folder, so a Linux machine goes from nothing to a served client in two commands instead of hand-collecting seeds for `--recompile` and `--compile`. The MCP's screenshot takes `save`, and `before_after` puts two saved screenshots side by side under captions in one PNG. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014gSmkXQ1jVdnSCorU9Qtzn
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 18 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
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.
Requested by Erwan · project thread
What
ClientLab --prepare [--game <install>] [--emcc <emcc>] --data-dir <dir>runs the launcher's Prepare without its window: current official client (copied from--gamewhere it can), recompile from the committedsymbols/<md5>/with the seeds the launcher derives itself, compile, and make it the active build. It printsCLIENTLAB_RUNTIME=andCLIENTLAB_GAME=.--servewith the same data folder then serves it.screenshottakessaveto write the PNG to a file, and the newbefore_aftertool puts two saved screenshots side by side under captions in one PNG.docs/BROWSER-AUTOMATION.mddocuments both, with the fresh-Linux route.Why
Every cloud client check rebuilt the client by hand: download, collect seeds from every symbols file plus the entry point,
--recompile,--compile, then--serve. That took 15 to 25 minutes and broke whenever a seed was missed. Before/after shots were saved and stitched by ad-hoc scripts in each thread.Tested
From a fresh Linux container (4 cores): the first
--preparedownloaded the 7.8 GB client and recompiled in under a minute, then stopped on the launcher's own tool download (403 behind the proxy). With--emccfrom a cloned emsdk, the compile finished in 4.5 minutes. A second--preparereused the build in about a second.--servethen served it, and the MCP under Xvfb saved two screenshots and composed them withbefore_after(no NosCore stack was running, so the client stops at its login screen).Generated by Claude Code