Making a mod
A mod is a folder of models, scenes, pictures, sound and scripts, built into one .zip
file. This page takes you from nothing installed to a mod on
mod.io. What a mod can do (add a console, a cartridge, a room,
a prop, replace something RetroXR ships) is covered in the
modding reference.
What you need
Section titled “What you need”- Godot 4.7.2, the version RetroXR is built with, from the
Godot download archive. On Windows the
download has two programs:
Godot_v4.7.2-stable_win64.exe(the editor) andGodot_v4.7.2-stable_win64_console.exe. Use the console one for every command on this page: it waits and prints in your terminal, where the other returns at once and its messages go nowhere. - Python 3, for the script that starts a new mod. On Windows, if
pythonopens the Microsoft Store or is “not recognized”, install it from python.org and tick Add Python to PATH. - The RetroXR project, from GitHub. Either
git cloneit with Git LFS installed (rungit lfs installonce, before cloning: the game’s models are LFS files), or press Code → Download ZIP and unpack it.
Why you work inside RetroXR
Section titled “Why you work inside RetroXR”A mod is made inside the game’s own project, not a Godot project of your own. Your scripts
extend the game’s classes and use its autoloads, and your models and textures have to be
imported with the game’s settings. Only the real project has all of that. Your work-in-progress
mods live in the project’s mods/ folder, which never ends up in a build of the game.
Which folder is which
Section titled “Which folder is which”RetroXR-master/ the folder you cloned or unpacked├── Tools/mods/new_mod.py starts a new mod└── RetroXR/ THE GODOT PROJECT: it holds project.godot ├── project.godot ├── DevTools/mods/pack_mod.gd builds a mod into a pack └── mods/<your id>/ your modTwo folders matter, and they are easy to confuse. The outer one is what you downloaded. The
inner RetroXR, the one with project.godot in it, is the Godot project: that is the one
you open in the Godot editor, and the one every --path below names.
The commands give every path in full, so they work from any folder. They use
D:\RetroXR-master; put the folder you downloaded to in its place, and the full path to your
Godot console program in place of Godot_v4.7.2-stable_win64_console.exe if it is not on
your PATH.
Making your first mod
Section titled “Making your first mod”-
Import the project. Open
RetroXR\project.godotin the Godot editor and wait for the import to finish, or run:Terminal window Godot_v4.7.2-stable_win64_console.exe --headless --path D:\RetroXR-master\RetroXR --importThe first import of a fresh download takes several minutes. Do it again whenever you add or change a model, texture or sound in your mod.
-
Start your mod.
Terminal window python D:\RetroXR-master\Tools\mods\new_mod.py you.mymod --name "My Mod" --author "You"That makes
RetroXR\mods\you.mymod\with amod.jsonand amod_main.gdin it.you.mymodis your mod’s id: lower-case, no spaces, starting with a name of your own. Keep it for good, since the id is how RetroXR knows a new upload is an update. Every id your mod registers starts with it too, likeyou.mymod:console. -
Fill it in. Put your models, scenes and scripts in the mod’s folder, and register them in
mod_main.gd(the reference has a section for each kind of thing). Everything has to stay insidemods/you.mymod/: RetroXR refuses a pack with files anywhere else. -
Add a preview image.
thumbnail.pngin the mod’s folder, 16:9 and at least 512×288 (1280×720 is usual). It is your mod’s tile in RetroXR and its logo on mod.io. No thumbnail, no pack. -
Build it. Import again if you added assets, then:
Terminal window Godot_v4.7.2-stable_win64_console.exe --headless --path D:\RetroXR-master\RetroXR --script res://DevTools/mods/pack_mod.gd -- --id=you.mymod--scriptis the packer’s path inside the project, which is why it startsres://. It writesyou.mymod.zipstraight into your mods folder, so building is also installing, and then reads the pack back the way the game will, refusing to finish if RetroXR could not load it. Add--out=D:\somewhere\you.mymod.zipto write it somewhere else instead. -
Try it. In RetroXR, open MODS → Installed, enable your mod and press Apply now. Anything wrong with it is listed on its page there. For a Quest, copy the zip to the headset’s mods folder, for example with
adb push you.mymod.zip /sdcard/Android/data/com.xenu.retroxr/files/mods/.
To check a zip you already have, made by the packer or some other way:
Godot_v4.7.2-stable_win64_console.exe --headless --path D:\RetroXR-master\RetroXR --script res://DevTools/mods/pack_mod.gd -- --check=D:\full\path\to\you.mymod.zipGive the zip’s full path: Godot runs from inside the project folder, so a bare
you.mymod.zip is looked for there.
Publishing on mod.io
Section titled “Publishing on mod.io”RetroXR’s mod browser lists what is published at mod.io/g/retroxr. Add your mod there, then:
- Upload the
.zipitself, not a zip with your pack inside it. - Use your
thumbnail.pngas the logo. The name, summary and logo on your mod.io page are what players see before they download; yourmod.jsonis what they see after. - Updates: keep the same id, raise
versioninmod.json, build again and upload the new zip. RetroXR offers it as an update to the one installed. - If your mod needs other mods (
dependenciesinmod.json), add the same mods as dependencies on its mod.io page: that list, not yourmod.json, is what the game downloads with it. - A new upload shows as Being scanned by mod.io until mod.io’s scan finishes.
A mod may not carry a game or a program. See
what a mod may not contain; notes in
particular go in as .txt, because .md is also a Mega Drive ROM extension and is refused.
When a command fails
Section titled “When a command fails”- Dozens of
Parse Errors, such asCould not find type "ModManifest"orIdentifier "JsonStore" not declared. Godot could not see the game’s code. Either--pathis not the folder holdingproject.godot(a common slip is giving it the folder the packer is in, or the outer download folder), or the project has never been imported: do step 1. - Nothing printed, and the prompt came back at once. That was the editor program; use
the one ending
_console.exe. Failed to load script "res://...". The--scriptpath is wrong. It isres://DevTools/mods/pack_mod.gd; a download from before 20 November 2026 has it atres://Tools/mods/pack_mod.gdinstead.... is not imported yetorhas no .import. Run the import (step 1) again.pythonis “not recognized” or opens the Microsoft Store. Install Python from python.org with Add Python to PATH ticked, and open a new terminal.- The game’s own models are missing or tiny. The
.glbfiles were not fetched from Git LFS: rungit lfs pullin your clone. A GitHub zip has them only if the repository includes LFS files in its archives. - The mod is not listed under MODS → Installed. The zip is not in the mods folder of the
copy of RetroXR you are running, or it was built with
--outsomewhere else.