Skip to content

Hosts a JSON and MSGPACK copy of Rojo's reflection database

Notifications You must be signed in to change notification settings

UpliftGames/rbx-reflection-database

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rbx-reflection-database

Inside this repository are two copies of Rojo's reflection database. These are utilized by Rojo and tools which use Rojo's parsing library (Lune, mostly) to gain information about classes and their properties. Most notably, this includes the data type of properties as well as their defaults.

An outdated reflection database can cause many problems. To that end, it's desirable to be able to load it from a remote source rather than bundling it. This repository serves a source of truth for those downloads. It is separate from the rbx-dom repo because tags will be made for every update to the database, and that would ruin rbx-dom. It is also not officially part of Rojo (yet!).

Fetching

This repository is tagged with a GUID every time a database is committed. A release is made that's named after the Roblox version that it corresponds to as well.

The intention is that this repo will be targeted using JSDelivr. To that end, please use the tagged version to avoid getting a cached version!

Generating a new database

The process of generating a new database is currently manual. Here's a step by step guide. You will need Cargo installed for this.

  1. Download rbx-dom
  2. Run cargo run -p rbx_reflector -- generate --patches patches PATH_TO_THIS_REPO/database.msgpack PATH_TO_THIS_REPO/database.json Replace PATH_TO_THIS_REPO with the path to this repository
  3. Wait for Studio to open and when it does, close any popups and save the file
  4. Studio should automatically close and rbx-reflector should write both a JSON and MSGPACK database.

About

Hosts a JSON and MSGPACK copy of Rojo's reflection database

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages