What is the RXDATA file format?
Files with the .rxdata extension store game data created in RPG Maker XP, a Windows application developed by Enterbrain (now Kadokawa) that allows the creation of role-playing games without the knowledge of programming languages. RPG Maker XP is a Japanese production, first released in 2004 with an English version following in 2005.
Under the hood, .rxdata files are binary objects serialized in Ruby's Marshal format (version 4.8), the serialization format used by the Ruby 1.8 runtime embedded in RPG Maker XP's RGSS scripting engine. A complete project ships roughly 15 standard .rxdata files - Actors.rxdata, Items.rxdata, Scripts.rxdata, and one MapXXX.rxdata per map, among others.
Games developed in RPG Maker XP support capabilities including:
- game graphics at resolutions up to 640×480 pixels,
- RGBA graphic files,
- the RGSS scripting system, powered by Ruby,
- the possibility of encoding files into protected game archives.
Game data is saved in .rxdata files and is not compatible with subsequent versions of RPG Maker. Later versions save data in .rvdata (RPG Maker VX) or .rvdata2 (RPG Maker VX Ace).
Games developed in RPG Maker XP also save the in-game state in .rxdata files. Specialized editors exist that allow modifications to saved game data, though these are not official tools from the developer. Current versions of RPG Maker do not provide backward compatibility with files created in RPG Maker XP.
Security & safety
RISK: LOWRXDATA files are pure data serialization - they contain no executable code directly. Scripts.rxdata contains Ruby script text (compressed), but this code only executes within the RGSS runtime when the game is launched. Merely opening or converting an RXDATA file carries no risk.
Format details
in a nutshellPrograms that open RXDATA files
Technical details
deep spec| Serialization format | Ruby Marshal version 4.8 (tied to Ruby 1.8.x used by the RGSS runtime) |
| Magic bytes | 0x04 0x08 at offset 0 (Ruby Marshal version header) |
| Encoding | Binary |
| Byte order | Big-endian |
| Container | Ruby Marshal serialized object tree - arrays, hashes, symbols, strings, integers, custom class instances |
| Compression | None at file level; Scripts.rxdata stores each script body as an individually zlib DEFLATE-compressed string |
| Scripting runtime | RGSS (Ruby Game Scripting System) using Ruby 1.8.6 |
| Standard project files | ~15 fixed-name data files per project (Actors, Items, Skills, Weapons, Maps, Scripts, System, etc.) |
| Typical size | 1 KB - 5 MB per file; Scripts.rxdata may reach tens of MB |
| Associated OS | Windows |
| Compatibility | Incompatible with RPG Maker VX (RVDATA), VX Ace (RVDATA2), MV, and MZ |
| Superseded by | .rvdata (RPG Maker VX, 2007), then .rvdata2 (RPG Maker VX Ace, 2011) |
| Released | 2004 (RPG Maker XP, first Japanese release; Western release 2005) |
| Latest version | Ruby Marshal version 4.8 (Ruby 1.8.x era); format has not changed |
| Specification | ruby-doc.org |