Contributing
Thanks for looking. This is a research project; the most useful contributions are bug reports with a reproduction, protocol findings, and tests.
By contributing you agree your work is licensed under the repo's AGPL-3.0 license and may also be distributed under the project's commercial license (see LICENSE and COMMERCIAL.md).
Where things are
| Path | What it is | Start here |
|---|---|---|
client/ |
C++ network client: RakNet transport, session crypto, join builders, replication, viewer | client/apps/ for entry points, client/src/ per subsystem |
rbx_runtime/ |
Roblox scripting environment: Luau VM, instance world, scheduler | rbx_runtime/src/engine.*, rbx_runtime/src/instance/ |
tests/ |
CTest suites, golden vectors, run_all.sh |
tests/CMakeLists.txt |
py/ |
Python reference solver and protocol probes (stdlib-only) | py/solve9b.py, py/msgbuild.py |
tools/ |
Analysis, generation and capture helpers | tools/README if present, else the script headers |
docs/ |
Architecture, protocol, RE record | docs/README.md |
third_party/ |
Vendored libraries | third_party/VERSIONS.md |
rum/ |
Android compatibility runtime (Apache-2.0) | rum/README.md |
New to the protocol? Read docs/ARCHITECTURE.md and docs/PROTOCOL.md before the code; they explain the message flow the C++ mirrors.
Build and test
./build.sh # configure + build the release preset
./build.sh --test # build and run the CTest battery
./tests/run_all.sh # standalone battery (no CMake needed)
All third-party code is vendored, so there is nothing to fetch. System
prerequisites (CMake ≥ 3.21, a C++17 compiler, OpenSSL, zlib, libcurl,
nlohmann/json) are installed by build.sh; use --no-deps if you manage them
yourself.
Code style
- Formatting is defined by
.clang-format. New and edited code should match it:
sh
./tools/format.sh # format your working tree
./tools/format.sh --check # verify without writing
- The project deliberately does not wholesale-reformat historical files -
keep diffs focused on the change.
git clang-formatis a good way to format only the lines you touched. - Match the surrounding naming and comment style. C++ is C++17, no exceptions or RTTI in the hot paths unless the file already uses them.
Generated files - do not edit
These carry a DO NOT EDIT banner and are regenerated by tools; edit the
generator or its JSON source instead:
| File | Regenerate with |
|---|---|
rbx_runtime/src/instance/classes/generated.cpp |
python3 tools/gen_instances.py |
rbx_runtime/src/instance/enums.inc |
python3 tools/gen_instances.py |
client/src/solve/tables.inc |
python3 tools/gen_tables_inc.py (JSON is the source) |
ctest includes parity checks (instances-parity, tables-parity) that fail
if a generated file drifts from its source.
The generator inputs are bundled and need no network: tools/api_dump.json
(Mini-API-Dump) feeds gen_instances.py, and tools/roblox_bc_tables.json
feeds gen_tables_inc.py. To pick up new Roblox classes, replace the dump with
a newer export and re-run the generator; the parity test will confirm the
result matches.
Dependencies
Pins live in third_party/deps.txt; the human-readable
table is in third_party/VERSIONS.md.
./tools/update-deps.sh --check # verify vendored trees
./tools/update-deps.sh --bump third_party/luau # re-vendor at the pinned commit
Bump the commit in deps.txt and VERSIONS.md together, then rebuild.
Never commit credentials
.ROBLOSECURITY cookies, proxy credentials and account lists must never be
committed. .gitignore blocks the common paths; keep it that way, and pass
secrets at run time via RBX_ROBLOSECURITY or --roblosecurity.
Pull requests
- Keep changes scoped and explain the protocol/behaviour impact.
- Run
./build.sh --test(or at least./tests/run_all.sh) and paste the result. - Add a test for a bug fix where one is practical.
- Update the relevant doc (
docs/) when behaviour or the wire format changes.