Exporting Your Game
Export is part of the full version of Vǫrðr. The demo cannot export a game; this page describes what the full version does.
The full version and the demo
The demo is a program of its own, built apart from the full version. Its Export Game... says Export is part of the full version.
The full version never opens as the demo. As it starts, it asks Steam whether the account signed in owns Vǫrðr, up to six times, half a second apart, so a Steam that is still starting has time to answer. If Steam is not up, or the account does not own Vǫrðr, a box says which, with Retry and Cancel:
- Vordr needs Steam to start. Start Steam, sign in to the account that owns Vǫrðr, then press Retry.
- The Steam account signed in does not own Vordr. Sign in to the account that owns Vǫrðr, then press Retry.
Cancel closes it without opening the editor.
Edit > Export Game... builds a finished copy of your game that runs without the editor. It saves the open map first, so the game ships the world as you see it.
What it makes
A folder export/<Title>/ inside your project (the title is title in game.vdc, the Game title on Project Settings > Project), holding:
<Title>.exe: the engine. A shipping mark packed with the game tells it to run as the game, with the editor switched off.game.pak: every asset the game uses, packed into one file.THIRD_PARTY_NOTICES.txt: the licences of the libraries inside the engine.- FFmpeg's four DLLs and
FFmpeg-LICENSE.txt, so video clips play. shader_cache: the shaders of a first launch, prepared ahead (see below).steam_api64.dll, when Steam is on (see below).
Hand the folder to anyone and it plays. It opens on the main menu (New Game, Continue and Quit, with New Game + and Options when your game has them), wears the game's title, and has no editor and no way into the tools. Saves and settings go to the player's own folder, never the game's (see Saves and Player Files).
The first launch's shaders
The last step runs the exported game once so that it can prepare the shaders a player's first launch needs. With them in the folder, a first launch reaches the menu in seconds. The step takes about four minutes, shows how many shaders are done, and has a Skip button. A skipped export still works; the shaders it lacks are made on the player's first launch.
When it is done
Export ends with a card that says what it made, where it went and how big it is, with the shader line under it, Open Folder and Close. The status bar says how many files went, how many unused ones stayed home, and anything you should know: a warning, the folders kept home, and what the script check found.
An exported game carries the engine's own audio, data and effects, keeps its caches and logs in the player's folder, and shows a 3D character in third person.
Only what the game uses
Every folder of your project's assets goes, apart from the editor's own: docs, editor_ui, the caches and the character creators' kits. Inside them, the export reads every text file the game ships (maps, layouts, data tables, dialog, events, interface screens) and collects every picture, model and sound they name. Only those are packed; the rest of the library stays home. If the game names it, it ships. Text files and baked characters (.pvc) always ship. The style pack your game wears, the terrain surfaces its worlds use, and the engine's fallback fonts travel with it, so every alphabet shows.
Art imported by reference (see Importing Models) is copied from its source file. If a used file is missing or unreadable, the export stops and names each one; an unused one that is missing is only a warning at the end.
If a picture is missing from an exported game, it is art the game only builds up in code rather than naming in data. Name it in a data file and the next export carries it.
Scripts are checked
Every script that ships is checked with the editor's own checker before it is packed (see Rûn Basics). The closing note gives the number of errors and the first of them, or says how many scripts came through clean. A script with errors still ships, so read the note.
Steam
Turn on Enable Steam and type the game's Steam App ID on Project Settings > Project, and the export puts steam_api64.dll beside the game, which then starts Steam as your app. Achievements and stats work from Rûn (achievement, steamstat, and Steam in Rûn Programs). With Steam on and no App ID, the game ships without Steam and the note says so.
The console
The Rûn Console ships with the game unless the project file (<Name>.vdr) says feature console off.
The pack
game.pak is a header, an index of every file's name, size and position, and the files one after another. Positions are 64-bit, so a pack can be larger than 2 GB. The exported game reads every asset from the pack; the editor never uses one and always reads your loose files, so your project stays plain text.
A pack keeps your files in one place and keeps players from casually reading the story's text or data. It is not encryption.
Limits
- The pack stores every file as it is, with nothing compressed.
- The export runs on the editor's thread; a big game holds the window until it is done.