An Android-first editor for Roblox place and model files, written in Rust. The
main application uses Bevy for the 3D viewport and egui for the editor UI; a
Kotlin GameActivity host supplies Android file, clipboard, keyboard, and native
script-editor integration. It edits local files and selected Roblox web APIs;
it is not Roblox Studio or a full Roblox game runtime.
- Open, edit, and save binary or XML places (
.rbxl,.rbxlx); import and export models (.rbxm,.rbxmx). - Browse the DataModel, edit properties, insert instances, and inspect a 3D viewport. Meshes and textures are fetched when needed and available.
- Preview common
ScreenGui,BillboardGui, andSurfaceGuicontent. This is an editor preview, not Roblox's runtime UI engine. - Edit Luau in the egui editor or the Android Sora editor, with syntax assistance and project-aware completion. Scripts can also be handed off to an external Android editor and synchronized back into the open place.
- Run Luau snippets and compatible plugins in the embedded sandbox. A separate companion plugin can send Command Bar snippets to a connected Studio session.
- Use selected Creator Store, Open Cloud, and cookie-authenticated Roblox API
operations. Features that access Roblox require network access and may require
an API key or a saved
.ROBLOSECURITYcookie.
Team Create join and transport support is experimental. The app can negotiate a
join and run legacy RakNet connection probes or an RbxTransport QUIC/TLS path
(with an app=4 post-handshake flow when the required fields are available). The
join-channel and replication-decode planes default on so a session that reaches
0x81 join-start keeps walking: 0x97 schema magics (including the 0.744
50 d3 pair), schema-derived 0x03 property tags with name-keyed live-wire
overrides, and 0x0B/0x25 entry batches from the live Boblox client. A successful handshake or observed flow
traffic does not prove native BaseClient connection or Team Create acceptance.
The RbxTransport path ends at "handshake plus one burst". Three switches extend it. Join channels (reference openU, byte-identical to the observed burst) and replication decode default on so a session that reaches join-start keeps walking; outbound sync stays off:
| Switch | Module | What it does | What it does not claim |
|---|---|---|---|
| Join channels | src/rbx_channels.rs |
Keeps the recovered fourteen-row openSendChannel profile, stages this client's open records on the control stream, decodes the peer's announcements (including the parity rule that separates a peer's unreliable id from this client's own), reports channels opened but never answered or answered but never opened, and calls a channel the peer opened as a bare stream one-direction rather than a gap. |
That any channel carries usable traffic. In the default reference mode the staged records are byte-identical to the previous hard-coded burst, so this plane adds accounting rather than behaviour; full profile is the only mode that changes bytes. |
| Replication | src/rbx_replication.rs |
Walks the join channel's compact-varint frames into the 0x93 configuration table, 0x81 join start, 0x97 schema (any codec-magic pair, including 0.744 50 d3), 0x83/0x16 JoinDataItemV2 batches, 0x0B/0x25 zstd entry batches, and the live delta chains of spawn, property (0x03 continues via schema-derived tags), event and clock items; recognises the 0x04 marker items and 0x10 tag items that carry the join gate and the join-phase completions (tag 12 = ReplicatedFirst finished, tag 13 = JoinData finished, both byte orders named); decodes the snapshot schema, shared strings and instance records, then builds a WeakDom and serializes it so the editor can open the place. |
That the place is complete or current, or that this client joined. Messages whose inner layout the analysis does not pin down are counted and reported rather than guessed at, and a snapshot requested without a schema is refused instead of invented. |
| Syncing | src/rbx_sync.rs |
The outbound half: the 0xA6 flow-control block and route step counters, the reference client's 1 s ping and 5 s sync periods, and a coalescing queue of 0x83/0x03 property items fed two ways - a diff of the applied DOM against the snapshot baseline, or explicit edits named by the wire instance id the peer assigned. |
That the peer wants any of it. The property id an update needs indexes the replicator's runtime table, which the snapshot never sends, so changes are encoded only against the candidate global id table the schema can validate and are otherwise refused and counted. An editor edit reaches a running session only through the flow's outbox (AppFlow::offer_edit, AppFlow::edits_handle), and an edit no applied snapshot can address is dropped into the session's skip notes instead of waiting there. The UI does not offer one yet, so on the current path the queue still stays empty and only the liveness frames are produced. |
Each plane reports what it refused. The session output carries the channel gaps,
the unparsable message ids, the liveness and sync counters, and the property-id
binding decision, so "sent nothing" and "had nothing to send" stay distinguishable
in a log. The live session of 2026-10-16 is what these rows rest on: the
four-byte compact-varint frame this client writes was read back without an error
from the server's own 0x93 table (1869 bytes, 48 declared pairs), the server
opened streams for the ten reliable channels and sent no open record for any of
them, and the flow stopped before any 0x9B challenge reached the join channel. The reference material in dump/ stops at verified framing on purpose;
these modules stop at the same line.
The optional Live Session WebSocket listens on loopback port 41742 by default.
Run the desktop editor and Studio on the same computer. If the editor is running
on Android, create a port forward on the host before connecting:
adb forward tcp:41742 tcp:41742Keep the app's port setting and the plugin's PORT value in sync. The editor
currently uses the bridge to run Command Bar snippets in Studio; the plugin's
selection, undo/redo, and shallow place-summary handlers are not wired into the
editor UI, and the bridge does not synchronize the Studio DataModel.
| Path | Purpose |
|---|---|
Cargo.toml |
Main Rust app. Builds the Android cdylib and the desktop runner. |
src/ |
Editor UI, file codecs, renderer, Luau tools, Roblox APIs, and transport code. |
kotlin/MainActivity.kt |
Android GameActivity, file/clipboard bridges, and Sora script editor. |
kotlin/LuauLanguage.kt |
Luau language support for the Sora editor. |
src/android_ime.rs |
Android GameTextInput-to-egui keyboard and clipboard bridge. |
src/team_create.rs |
Join-config parsing, legacy RakNet probes, and the RbxTransport QUIC/TLS session and its report. |
src/appflow.rs |
The app=4 post-handshake flow: control hello on the application id (openStream(APP, CTRL)), the channel burst, 0x90/0x92/0x9B/0xA7 (real capture by default, PreloadedVersion echoed from the gamejoin response), route declarations, snapshot markers, and the join gate — every snapshot-done marker shape (0x84 frames, bare 0x04 frames, 0x04 items in 0x83 runs) is answered with the 0x04+id ack the server continues the join on, once per id. The guessed BaseClient app=1/chan0 open record is a switchable wire experiment (off by default: reliability-2's wire record is unresolved and the reference client emits none). Frames composed before their stream binds (the chan-1 liveness ping) are held and flushed, not dropped. The report carries a burst TX digest (lengths and xxh32 fingerprints; ticket-bearing frames redacted to structure) and names every wire deviation switch. |
src/rbx_channels.rs, src/rbx_replication.rs, src/rbx_sync.rs |
Opt-in join-channel, replication-decode and outbound-sync planes for that flow. |
manifest.yaml |
xbuild Android package, SDK, permission, and Maven dependency configuration. |
assets/companion_plugin.lua |
Optional Roblox Studio companion plugin for the Live Session bridge. |
renderer/ |
Standalone renderer sandbox; separate from the main editor app. |
.github/workflows/main.yml |
Host checks, Android target checks, and APK packaging. |
cargo run --bin rbxl-editor-desktop -- /path/to/place.rbxlThe root crate's desktop runner uses the same Bevy/egui editor as Android. The
separate renderer/ package is an independent rendering sandbox, not a
prerequisite for running the editor.
The checked-in CI configuration uses Rust nightly for the app build, Android
NDK r27c, Java 17, Gradle 8.11.1, AGP 8.7.3, Kotlin Gradle plugin 2.1.21, and a
pinned xbuild revision. Install those tools (including the Android SDK build
tools) before building. On a Linux x86-64 host, set ANDROID_NDK_HOME to the
installed NDK directory and install the pinned xbuild revision. Native
Android dependency builds use API 26 (the app's minSdk); the generated Gradle
project targets SDK level 34 from the manifest:
rustup toolchain install stable --profile minimal
rustup toolchain install nightly --profile minimal
rustup target add aarch64-linux-android --toolchain nightly
# The pinned xbuild starts `cargo` by name and inherits this Rustup selection.
export RUSTUP_TOOLCHAIN=nightly
cargo +stable install --locked \
--git https://github.com/rust-mobile/xbuild \
--rev e67b501cbe0e9ca5436c223aa7ec0fe5e27544d1 xbuild
export ANDROID_SDK_ROOT="$HOME/Android/Sdk"
export ANDROID_HOME="$ANDROID_SDK_ROOT"
export ANDROID_NDK_HOME="$ANDROID_SDK_ROOT/ndk/27.2.12479018"
export ANDROID_NDK_ROOT="$ANDROID_NDK_HOME"
export ANDROID_PLATFORM=android-26
export ANDROID_API_LEVEL=26
NDK_HOST="$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64"
mkdir -p "$HOME/.cache/x"
# If Android.ndk exists as a real directory, inspect it and move it aside first.
ln -sfnT "$NDK_HOST/sysroot" "$HOME/.cache/x/Android.ndk"
export PATH="$NDK_HOST/bin:$PATH"For another host OS, use the matching NDK prebuilt/<host> directory. xbuild's
generated Gradle project needs the plugin versions used by CI. Create the
~/.gradle/init.d directory if needed, then save the following as
~/.gradle/init.d/xbuild-overrides.gradle:
settingsEvaluated { settings ->
settings.pluginManagement.resolutionStrategy.eachPlugin { details ->
def id = details.requested.id.id
if (id == 'com.android.application' || id == 'com.android.library') {
details.useModule('com.android.tools.build:gradle:8.7.3')
} else if (id == 'org.jetbrains.kotlin.android') {
details.useModule('org.jetbrains.kotlin:kotlin-gradle-plugin:2.1.21')
}
}
}Then check the local toolchain and build:
x doctor
x build --release --platform android --arch arm64 --format apkThe local APK is written to
target/x/release/android/rbxl-editor.apk and is unsigned. The command above
uses Rustls by default: that backend verifies the expected raw public key but
does not add the 0xFF00 extension and does not send SNI for the configured IP
address. ossl-tls switches to OpenSSL, registers the RbxTransport 0xFF00
ClientHello extension, and sets SNI to the configured IP literal; it requires
an Android OpenSSL build at version 3.5.0 or later. The current OpenSSL configuration disables
peer verification, so a successful handshake is not authenticated; do not use
that feature for trusted sessions until verification is re-enabled. The CI
workflow compiles OpenSSL 3.5.9, builds with --features ossl-tls, and signs its
test artifact with a per-run key; use your own persistent signing key for an
app you intend to distribute or update. To
install and run on a connected device, use
x run --device adb:<device-id>.
android-activity is pinned to 0.6.1 in Cargo.toml, while
manifest.yaml declares androidx.games:games-activity:4.4.0. Keep these
versions in sync when upgrading: Bevy's GameActivity glue and the Android AAR
must expose matching JNI entry points.
GameActivity provides the Android InputConnection, but Bevy/winit does not
currently translate all GameTextInput state into egui events. src/android_ime.rs
therefore polls GameTextInput directly: it forwards committed text, backspace,
newlines, and composing text to egui, and routes copy/paste through Android's
clipboard. MainActivity applies the keyboard's bottom inset to the content
root; the manifest uses adjustNothing because resizing the native surface is
not reliable on every device.
The workflow runs host checks and selected regression tests, checks the Android
target without packaging an APK, and reports the full library test suite
separately. The selected tests are named in .github/workflows/main.yml, because
the suite as a whole has pre-existing failures that would otherwise hide the
signal: besides the plugin and caps-splice filters, the ones that guard bytes this
app puts on the wire (the 0x92 layout, the marker ack, the control-record framing)
and the three post-join plane modules are run by name. Those plane suites are the
only thing that exercises the snapshot decoders and encoders, since no plane runs
on the default wire path. APK packaging runs on manual dispatch and on pushes to arena/**;
it is skipped for ordinary pushes to master.
The Android native script editor uses the Sora editor AAR declared in
manifest.yaml, distributed under LGPL v2.1. The AAR is resolved at build time
and bundled into the APK; this repository does not vendor its source. Anyone
redistributing a built APK should review the upstream license and ensure the
distribution meets its requirements. Roblox Builder fonts and their license
notes are documented in content/fonts/README.md.