Skip to content
项目

关于

An open-source reimplementation of the Roblox engine, written in Rust.

游戏与模拟器

这些数字如何统计

可以做什么

  • Files: loads and saves .rbxl, .rbxm, .rbxlx and .rbxmx, including 2006-era XML that other parsers reject, without dropping data.
  • Scripting: Luau with the Instance API, Roblox's datatypes, signals in both Immediate and Deferred modes, wait and task, require and Roblox's error messages.
  • Client and server: Play mode as on modern Roblox, with replication, FilteringEnabled, LocalScripts and remotes.
  • Physics: Rapier at 240 Hz with Roblox's joints, assemblies, materials, BodyMovers, constraints and raycasts.

实测星标增长

24小时
0
7天
正在收集历史
15天
正在收集历史
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文
Rook icon

Rook

An open-source reimplementation of the Roblox engine, written in Rust.

An open engine for Roblox places: run them offline, host them yourself, mod them, and keep them alive. Built to match modern Roblox.

License: Apache-2.0 Rust 1.97.1+ Status: early development

Getting started · Features · Tools · Roadmap · Contributing · FAQ

[!NOTE] Rook is an independent project. It is not affiliated with, endorsed by, or sponsored by Roblox Corporation. "Roblox" is a trademark of Roblox Corporation. This repository never contains Roblox place files, models or client assets.

Why Rook?

Millions of places have been built on Roblox since 2006, and today they run in exactly one place. Rook is an open engine in the spirit of Xash3D and OpenMW: bring your own places, and run them on an engine anyone can read, fix and extend.

What you get

  • Singleplayer that works offline. The server runs inside the player, so a place plays on your machine with nothing to connect to.
  • Your own servers (planned, M12). Host a place yourself and invite your friends.
  • Preservation. Old places keep running as long as someone has the file, with no account and nothing that can be switched off.
  • Modding. The whole engine is open, so any behavior can be inspected, patched and extended.
  • Fewer restrictions (planned). Opt-in extensions such as WebSockets for any script, and EditableImage and EditableMesh with no platform gating. They're off by default, so modern Roblox stays the reference.
  • A platform you already know. The same Luau, Instance API and services. Scripts written for Roblox are scripts for Rook, and places saved from Studio open as they are.

Why you can trust it

  • Modern Roblox is the reference. Rook tracks the live Roblox version and catches up as Roblox ships, with no separate legacy mode. Old content works as far as modern Roblox runs it.
  • Checked against Studio. Behavior is diffed against real Studio recordings, and each behavior cites its source.
  • Measured on real places. Progress is tracked on an archive of about 3,000 places, not hand-picked demos.

Standing on the shoulders of giants

Rook doesn't reinvent what the community has already solved. It builds on projects proven on years of real Roblox files and puts its own effort into the engine between them.

  • rbx-dom: file formats and the reflection database, the same foundation Rojo is built on
  • rbx-test-files: format test fixtures
  • Luau and mlua: Roblox's own open-source language, so scripts run on the real VM, not an imitation
  • Rapier: physics
  • wgpu and winit: rendering on Vulkan, Metal and DirectX 12, and windowing
  • full_moon: Luau parsing for the corpus scanner
  • glam: vector maths

What Rook adds is the engine itself: the DataModel, the scheduler, replication and Studio-checked behavior.

Status

Rook is in early development. File formats (M0), scripting (M1), the client/server split with the first renderer (M2), physics (M3), content (M4: meshes, materials, textures, decals), audio (M5), terrain (M6), and lights and effects (M7) are done. GUI (M8) is in progress. The full plan, its order and why, is in the roadmap.

Measure Result
Archive places that load 99.3% of 3,077 unique files (11.5 million instances, 287,000 scripts)
Places with server scripts that run 10 s without a script error 60.4% (1,236 of 2,048)
Places that crash Rook 0
Studio conformance cases Instance API, property coercion, error messages, signal order, wait/task order, tweens

The numbers come from running an archive of real places through Rook (how). The failures they list set the priorities.

Features

  • Files: loads and saves .rbxl, .rbxm, .rbxlx and .rbxmx, including 2006-era XML that other parsers reject, without dropping data.
  • Scripting: Luau with the Instance API, Roblox's datatypes, signals in both Immediate and Deferred modes, wait and task, require and Roblox's error messages.
  • Client and server: Play mode as on modern Roblox, with replication, FilteringEnabled, LocalScripts and remotes.
  • Physics: Rapier at 240 Hz with Roblox's joints, assemblies, materials, BodyMovers, constraints and raycasts.
  • Rendering: a wgpu renderer for parts, the built-in mesh shapes, mesh files and MeshParts, live in a window or to a PNG.
  • Content: rbxasset://, rbxassetid:// and legacy asset URLs resolve from your own Roblox install, content folders, a disk cache and Roblox's asset delivery.
  • Tools: dump, round-trip, run headless, scan an archive, trace where content comes from and check behavior against Studio.

The full list is in docs/guide/features.md.

Documentation

New here? Start with Getting started: build Rook and open your first place in three commands.

Getting started Build Rook, open a place, controls and the command bar
Features Everything Rook supports today
Tools The rook command-line tool, and cargo xtask for working on the repository
Roadmap What's next, in what order, and why
Architecture How Rook is built, and the rules every behavior follows
Behavior notes What Rook found in Studio and the archive, topic by topic
Contributing Reporting problems, pull requests, finding your way around the code, running the checks

FAQ

Can Rook connect to Roblox servers or join Roblox games? No. Replication is Rook to Rook. Wire compatibility with Roblox clients or servers isn't a goal. Instead, you'll be able to host your own Rook servers (M12 on the roadmap).

Does Rook use Roblox's code or assets? No. Rook is written from public documentation, the public API dump and observation of Studio through its scripting API. Each behavior cites its source.

Why do old places look different from how they did in 2010? Rook matches what modern Roblox does with old content. For example, modern Roblox loads embedded legacy textures as empty, and so does Rook. Restoring them is a possible opt-in extension.

Contributing

Rook gets better with every place people throw at it. The most useful thing you can do is run your places through Rook and report what breaks. Pull requests are welcome too. Star the repo to follow along.

License

Rook is copyright the Rook Contributors and licensed under the Apache License 2.0. See NOTICE for attribution.

探索相关项目

加载中…