Hazel

Exporting Your Game

Exporting turns your project into a game other people can run, without the editor. You pick a platform, choose how the game is packaged, and press Export. Renzora packs your scenes, models, textures and sounds into one archive and puts it next to (or inside) the game program.

This page walks through the export window. For what each platform needs, see Platforms.

The Export Project window with a Windows (x64) preset selected, its tabs in the middle and the This build summary on the right

Opening the export window

Open the ☰ menu in the top bar and choose Export Project.... You can also press Ctrl+P to open the command palette and type Export.

A project has to be open. While the export window is open the viewport pauses, so the build is not competing with a scene you cannot see.

The window has three columns:

ColumnWhat it is for
Presets (left)Your saved export setups, grouped as Desktop, Mobile, TV and Web
Settings (middle)Five tabs: Output, Packaging, Features, Plugins, Files
This build (right)A summary of what will be built, and a Before you export checklist

Step 1: add a preset

A preset is a named export setup: the platform, the packaging, the window settings and so on. Keeping them as presets means you can have, for example, a quick test build and a release build side by side, and they are still there the next time you open the editor.

  1. Press + at the top of the Presets column.
  2. Pick a platform from the list.
  3. The new preset appears under its platform family, selected.

The + button's platform list open in the Presets column

Each preset says in a few words whether it can export as it stands:

LabelMeaning
Lean buildSet to the release packaging mode, which builds the game from source
Template installedThe ready-made game program for this platform is on your machine
Template available to downloadOne is published and can be fetched with one click
No template yetNothing to download for this platform; see Platforms

With a preset selected, the Duplicate and Remove buttons under the list act on it. Presets are saved per project on your own machine.

Step 2: the Output tab

SettingWhat it does
NameThe file name of your game, such as MyGame.exe. Left empty, the project name is used
FolderWhere the export is written. Press Browse to pick one
IconAn image for your game's window and taskbar button. PNG, ICO, JPG, BMP, WebP and TGA all work
ModeWindowed, Fullscreen or Borderless
SizeThe window size the game opens at. Default 1280 x 720
Console loggingKeeps a log window open beside the game. Handy while testing
Allow profilingLets your editor's companion profile the running game over your network. Leave it off for builds you give to players
Include dedicated serverAlso writes a headless server for hosting multiplayer games (desktop only). See Multiplayer

The icon always shows on the game's window. On Windows, the icon of the .exe file itself (what File Explorer shows) can only be changed by a Lean build, because the other modes reuse a program that was built in advance.

Step 3: the Packaging tab

This is the main choice: how your game is put together. The modes are shown as cards.

The Packaging tab with its three mode cards

ModeBadgeWhat you get
Lean single binaryFor releaseThe engine is rebuilt for this game alone. One file, no extra libraries beside it, and none of the engine code your game never uses
Single executableQuick testCopies the editor's own game program and packs your assets into it. Fast to produce
Binary + .rpakQuick testCopies the editor's own game program and puts your assets in a .rpak file beside it. The fastest way to re-test

Ship the Lean build. The two quick modes are for checking an export while you work: they carry the whole engine and its shared libraries, so they are much bigger.

For the web the choice is between Lean recompile and Prebuilt template. Lean is the one to ship there too: the prebuilt template is the whole engine, downloaded by every player before the game starts.

What a Lean build needs

A Lean build compiles the engine, so the first one takes a while.

  • Rust is installed for you if you do not have it. It goes into a private folder in your user directory and does not touch any Rust you already have.
  • The engine source. If you downloaded the editor rather than building it yourself, the tab shows a Download engine source button. It has to match your editor version, so after an update the button comes back.
  • An internet connection for the first build. Later builds reuse what was downloaded and only rebuild what changed.
  • Docker, only when you build for a different desktop operating system than the one you are on (for example a Linux build from Windows). See Platforms.

By default the build runs in a console window of its own, so you can watch it. The window closes when the build succeeds and stays open if it fails, so you can read the errors. Turn off Show the build in a console to keep the output inside the export window instead.

What the quick modes need

The quick modes copy a ready-made game program called a runtime template. For the platform you are on, the editor already has one. For other platforms the Runtime Template section offers Download from GitHub (fetched once, reused by every export) or Install from file....

Other packaging options

These appear only where they apply:

OptionWhereWhat it does
Wrap as an AppImageLinuxPacks the game into a single .AppImage file. Without the appimagetool program the runnable folder is kept instead
Wrap as a .app bundlemacOS (on by default)Makes a proper Mac app with an icon. A bare program opens a terminal window on a Mac
Enable moddingNot on the web, and not in a Lean buildShips the plugin kit (about 1.5 GB) so players can add their own plugins and Rust scripts. Off by default
Asset compression levelAllHow hard the asset archive is squeezed, from 1 to 22. Higher is smaller but exports more slowly. Default 3
Compress binary with UPXWindows and LinuxShrinks the game program with the free UPX tool, which must be installed. Some antivirus programs distrust packed programs
Simplify meshes, Quantize vertex attributes, Generate LODsAllOptional mesh shrinking while the archive is packed

Step 4: the Features tab (Lean only)

A Lean build only includes the parts of the engine your game uses. When the window opens, Renzora reads your scenes and scripts and switches on what it finds: a 2D game starts with 3D rendering off, a game with no terrain starts with terrain off, and so on.

The Features tab with its search box, the All / Enabled / Changed filters and the section cards

You can switch features on or off yourself. A feature you changed carries a small changed tag; the Changed filter shows only those, and Reset to detected puts everything back. If you switch off something the scan thought you need, the Before you export list mentions it.

Turn a feature back on if your game reaches it in a way a scan cannot see. In the quick modes this tab does nothing: they always ship the whole engine.

Step 5: the Plugins tab

If you have installed plugins from the Marketplace, this tab chooses which ones go with the game. Plugins your project uses are ticked for you.

LinkingWhat you ship
Ship as filesA plugins/ folder beside the game. Players or mods can still swap plugins later
Link into the binaryThe plugins are built into the game itself. One file, nothing to load at startup

A Lean build always links plugins in; the web always does too, because a browser cannot load a plugin from a file. Ship as files only works from a quick mode for the platform you are on; for any other platform, use a Lean build. A plugin that cannot be built for the chosen platform is listed and left out. A plugin with a newer version published shows an amber arrow, so you can update it before you ship.

Step 6: the Files tab

Only the files your game needs go into the archive. Renzora starts at your main scene and follows every file it mentions: a scene names its models, a model names its textures, and so on.

A file the scan cannot see (for example a level whose path a script builds while the game runs) would be missing. Open the Files tab to check: tick anything extra, untick anything you do not want to ship, or use Select all, Select none and Reset to detected. Your choices here last until you close the window.

Step 7: check and export

The right-hand column sums up the build and lists anything that still needs doing under Before you export. Most problems come with a button that fixes them, such as Download, Choose folder, Use lean build or Review (which jumps to the tab the problem is on).

The Export button in the header names its target, for example Export Web. While something blocks the export, the button is grey and shows how many problems are left.

When you press it, Renzora asks whether to save first, because the build uses what is on disk, not what is open in the editor. Choose Save and export unless you have a reason not to.

While it runs, the window shrinks to a small card with the current step and a Cancel button. When it finishes, the export folder opens on its own and the card offers Open folder, Back and Close. Copy log copies everything the export printed, which is useful when asking for help.

What comes out

For a desktop game you get a folder named after your project holding the game program and, depending on the mode, a .rpak asset archive and shared libraries beside it. Zip that folder (or the .app / .AppImage) and you have something to hand to players.

With Include dedicated server on, the folder also holds server.rpak and a server.bat or server.sh launcher that starts the same game as a server.

Getting help

If an export fails, press Copy log and bring it to the Renzora Discord: https://discord.gg/9UHUGUyDJv

Going deeper