Guides/17

Interface

The graphical interface esx-gui. A person makes a Fallout 4 mod with it, from objects of each type and assets to the build, the game test and the release.

esx-gui is the graphical interface of esx. It is a second program beside esx. It is the tool of a person who makes a mod. The command line esx stays the tool of an AI agent. The two work on the same mod folder: the interface writes the same source files that an agent writes, and it reads a file again when the file changes.

The interface is general, as the Creation Kit is. It has each of the 147 record types of Fallout 4 in one window, and each type has a form. It shows no command line on a page. The command line of each job is in the details of the activity panel, so you can give it to an agent.

Install

A release package has the two programs, esx and esx-gui, in one folder. Keep them together.

esx-gui looks for esx in three places, in this order:

  1. The folder of esx-gui.
  2. The path of esx in the settings.
  3. Each folder of the PATH variable.

On Linux the interface needs a Vulkan driver and the libraries of X11 or Wayland of the desktop. esx needs none of them.

esx-gui is a program with its own icon.

  • On Windows, start esx-gui.exe from the file manager. The program of a release package opens no console window.

  • On Linux, run this command one time. It puts esx and its icon into the application menu of your desktop:

    esx-gui --add-to-menu

    The command writes the menu entry esx-gui.desktop and 9 icon files into your data folder. That folder is XDG_DATA_HOME, or ~/.local/share. The entry has the full path of the program, so run the command again after you move the folder of esx. esx-gui --remove-from-menu removes the 10 files.

Start

esx gui
esx gui path/to/mymod
esx-gui path/to/mymod

esx gui looks for esx-gui beside esx and then in each folder of PATH. It starts the program and ends. The interface runs on its own. The variable ESX_GUI_PROGRAM names the program and stops the search.

With no esx-gui program the command gives the code NOT_FOUND, the exit code 3 and the reason GUI_NOT_INSTALLED:

{"ok":false,"command":"gui","error":{"code":"NOT_FOUND","message":"the program esx-gui was not found, so the graphical interface is not installed","hint":"put esx-gui beside esx or into a folder of the path, or name it with the variable ESX_GUI_PROGRAM. A release package has the two programs","details":{"reason":"GUI_NOT_INSTALLED","searched":["/opt/esx/esx-gui"]}}}

Words

Word Meaning
Mod One project folder of esx. The other documents say “project”.
Plugin The .esp, .esl or .esm file of a mod or of the game.
Object One record of a plugin: a weapon, an actor, a quest, a keyword.
Type A record type, with its name and its signature: “Weapon (WEAP)”.
Asset A mesh, a material, a texture, a sound, a compiled script or an animation file.
Build Make the plugin and the archives of the mod.
Release The files of a build that passed its checks, and the ZIP file.
Issue, warning A finding by its weight. An issue stops a release.

The window

The window with the overview of a mod: the side bar, the path to a release, what the mod has and what it needs.

Area Content
Side bar The name of the open mod, then its pages in two groups, “Make” and “Ship”, then “Tools”, “Help” and “Settings”. A number beside a page is a count of its content. Beside “Build” it is the count of the issues.
Top bar The path of the page, the search (Ctrl+K) and “Build”.
Page The content.
Activity line The last result as a sentence, and the job that runs. A click (Ctrl+J) opens the activity panel with each job of the session, its time, its result and its command line.

The search finds a mod, an object of the mod, an object of the game, a type, a page, an action and a tool. A command name of esx finds its tool too.

First start

The first start has one page with three parts: the game folder, the folder for your mods, and the state of the optional tools. esx game detect finds the game. Each part says what works without it. “Continue” opens “Your mods”.

Your mods

“Your mods” has one card for each mod: its name, its description, its plugin, counts of its content and the state of its last build. The mods are the mod folders in your mods folder, and each other folder that you opened.

Action Result
New mod The flow below.
Import a plugin A new mod from a plugin of the Creation Kit or xEdit. The interface writes the records of the plugin as source files with esx plugin export-records. It does not change the plugin.
Open a folder A mod folder at any place.
Duplicate A copy of the mod folder, with no build folder.
Remove from the list The card goes. The interface does not delete a mod folder.

New mod

  1. The details: the name, the author and the description. The description can have more than one line. The folder name and the plugin name come from the name. A light plugin does not use one of the 254 places of a load order, and it holds 2,048 new records.
  2. What the mod starts with. “An empty mod” is first. The other starts are shortcuts in groups: a weapon, armor, an aid item, an actor, a quest, a perk, a workshop object, a recipe, a leveled list, a retexture, a change of objects of the game, a mod from a plugin. “Another type” has each type of the game.
  3. The start object. A weapon, armor, ammunition and a misc item select an object of the game in this step. Each other start makes the mod and then opens the “Add” dialog in the new mod.
  4. A summary. “Create” makes the folder and opens the mod.

Objects

The objects page: the types at the left, each object of the mod in the middle, and the selected object at the right.

“Objects” is the main page of creation.

Area Content
Tree “In this mod” with the types that the mod has objects of, then each type in its category: actors, audio, character, items, magic, miscellaneous, special effects, world data, world objects. The filter finds a type by its name or its signature.
List The objects of the selected type. “My mod” shows the objects of the mod. “The game too” adds the objects of the game. A row of the mod has the mark “New” or “Changed”. A click on a column sorts.
Panel The selected object: its type, its editor ID, its FormID, its main values and its actions.

The first read of a type of the game takes 1 to 6 seconds. The list then stays in the cache folder. A type with more than 10,000 objects in the game shows its first objects. Write a part of an editor ID into the filter and press Enter: the interface then searches the game.

Action Result
Add, New The “Add” dialog.
Edit, Open The form of the object, in a tab. A second click on a row does the same.
Change in my mod An object of the game becomes a change in the mod.
Duplicate The “Add” dialog with the object as the start.
Remove from the mod The object goes, with each change of it. The dialog says what else goes: a link to it, or a copy of it.

Add

The Add dialog with the blueprints of the object types.

The “Add” dialog has the common starts in groups: items, characters, quests and text, world objects, crafting and loot, lists and values. “Another type” has each of the 147 types.

  1. Select what you add.
  2. Select the start. “A copy of an object” is a copy of an object of the game or of the mod: it works in the game as it is. “Empty” is an object with the defaults of esx.
  3. Give the name. The editor ID comes from the name.
  4. Some starts can make a second object with a link to the first one: a recipe for a workbench, or a leveled list that has the object.

A weapon, armor, ammunition and a misc item that start from an object of the game get an item file (see Items). A weapon has the choice between its own parts and the parts of the game weapon. Each other object is an entry of the file records/90-objects.json of the mod.

After “Create”, the form of the new object opens. Its right side has the next steps as sentences.

The form of an object

The form of an actor: the sections at the left, the fields, and the panel with “Used by” and “Versions”.

One form engine makes the form of each type from the record definitions of esx.

  • The sections at the left are the layout of the type: “General” first, then sections in the words of a modder. “More” has each other field of the object. “Not set” has the fields of the type that the object does not have, each with “Add”. So each field of each type is reachable.
  • A text and a number have a field. A choice has a list of its values. Flags are check boxes. A group opens and closes.
  • An object field shows the object that a link names. “Select” opens a list of the objects of the mod and of the game with the types that the link can name. “New” in that list makes an object of the type in place. “Open” opens the object in its own tab.
  • A list has “Add”. An entry has “Remove”, and “Up” and “Down” when the game keeps the order of the list. These show when the pointer is on the row.
  • The model of the object shows in the preview at the right, with “Large view”.
  • “Find what uses it” lists the objects that name the object. The read takes about 5 seconds.
  • “Save” writes the changes. Ctrl+Z takes back a change of the form, then a save. “Save” is off when the form has no change.

After a save, the interface runs the records step of the build in the background, so the lists and the forms have the new values. That step writes the ID of each new object into ids.lock, so an object keeps its FormID in each later build.

An object of the game shows its values as text. “Change in my mod” makes it a change in the mod, and the form then takes edits.

The special form of a weapon, with the section “Values”.

A weapon, armor, ammunition and a misc item of an item file open in the special form. It has the frame of the general form. The sections at the left are the groups of the item file: “Basics”, “Values”, “Meshes”, “Parts” for a weapon, and “Recipe”. The panel at the right has the picture of the item, its type, its editor ID, its item file, what the build makes, “Used by” and “Versions”. “Each field” shows the general form for the same object.

The table of a type

“Table” shows the list of a type with a cell for each main value. A click on a value gives it a field, and Enter keeps the edit. “Save” writes each cell as one change. An object of the game becomes a change in the mod. This is how you change one value of many weapons or of many actors.

Where a save goes

The object The save
A new object A create or a copy entry of records/90-objects.json, and one set entry for each changed field.
A change of an object of the game A copy entry with no new ID, and one set entry for each changed field.
An object of an item file The keys of the item file in the special form. A set entry in records/90-objects.json for a field of the general form.

records/90-objects.json is a records file of esx (see Editing). An agent can read it and change it. The interface never changes a plugin in place.

Assets

“Assets” has the files of the mod by kind: meshes and models, materials, textures, sounds, scripts and animations.

  • “Import” takes a model, an image or another file. A glTF model goes into meshes/ with its job file, and the build makes the mesh. An image becomes a DDS texture with the format of its role.
  • An asset opens with its details: the nodes and the connect points of a mesh, the values of a material as a form, the format of a texture.
  • “New material” makes a material.
  • “Take a file of the game” copies a file of the game archives into the mod.

Large view

“Large view” of an object or of an asset, and “Open in the viewer” of a file of the game, open the thing in the large view. “Back” in the top bar goes to the page where you were.

The large view has these ways to open a thing, and none of them needs a typed path:

  • “Weapons of the mod”: each weapon of the built plugin. A weapon shows with the part of each slot, and a click on another part changes the picture. A mod with no build has the sentence “The mod is not built yet” and “Build” in place of the list.
  • “Files of the mod”: each mesh, material and texture of the mod.
  • “Select a file” opens the file dialog for a .nif, .bgsm, .bgem or .dds file of the disk.
  • “Take a file of the game” opens the dialog with the files of the game.
  • The line “Filter the lists” leaves the rows with its words. Enter opens the first row.

See Viewer for the views, the channels and the limits of the picture.

Build

The build page after a build with one issue and three warnings.

  • One state: not built, building, passed or failed, with a sentence.
  • The steps: objects, animations, assets, scripts, archives and checks. A step opens to its report.
  • The issues and the warnings. Each has a title, what it means, what to do, and “Show” for its object or its file. The code is small text.
  • “Build” pins the object IDs first when ids.lock does not have each new object. It runs the records step with --update-lock for this, and then the build.
  • “More” has the other ways to build: each step again, stop after a step, leave a step out, update each lock. “Update each lock” writes the lock of each animation source again too.
  • A mod with commands of its author in esx.toml gives a question before its first build.

Changes

The changes page: the files, the objects and the meshes that changed, and the fields of one object before and after.

  • “Compare with” selects the start: the last build, or the last commit of the Git repository of the mod.
  • Three lists: the source files that changed, the objects that the last build changed, and the meshes and materials that it changed. Each row has a mark and the change in words.
  • The panel at the right shows the selected row. A file shows its text. An object shows each changed field with its value before and after. A mesh or a material shows its picture before and after, and “Open in the viewer”.
  • The interface keeps the release of the last two builds in its cache folder for this.

Game test

The game test page with a run that passed: its steps, the picture of the game and the preview of the interface.

  • The state of the game test tools, the build, the test plan and the test world, as one line each.
  • The line of the test world says in which cell a run starts: the cell of the test world when the test folder has one (WeapTest for TestWorldspace.esp), and the cell QASmoke of the game when it has none. A plan with its own cell starts there.
  • “Make the test plan” writes build/test-plan.toml: one case for each new weapon with its parts, and for each new armor.
  • “Run in the game” opens a dialog that names the plan and says that the game starts. Only its answer starts the run. The interface never starts a game by itself.
  • The runs as cards, each with its result and its time. A run shows one row for each step with its result, and the picture of the game beside the preview of the interface. The panel at the right has the action of the selected step, its checks and “Open the weapon in the viewer”. See Game tests.

Release

The release page: what a release needs, the ZIP file, and the two lists of the release check.

  • What a release needs, each line with its state and its fix: the mod is built, the checks found no issue, the object IDs are pinned, each asset is in the release, the masters are known.
  • The version and the name of the ZIP file.
  • “Make the release” writes the ZIP name into esx.toml and builds. The build pins the object IDs first when it is necessary. The build page shows the run.
  • The files of the release with their size.
  • Two lists of the release check. “Add an object of the game” opens the object dialog, and the object goes into the intended changes of the game ([release] overrides). “Select from the game files” and “Select a file” add a file of another mod (loose_dependencies). The lists take no typed editor ID and no typed path.

The result of a mod is its release folder and its ZIP file. A mod manager installs it. The interface has no install into the game.

Game

  • “Files” has each file of the Data folder and of the archives of the game as folders, with the count of the files of each folder. The filter finds a file by each word of its path. The first read takes about one second, and the list then stays in the cache folder.
  • A file has “Open in the viewer” for a mesh, a material and a texture, and “Copy into my mod”. For a mesh, the copy can also export a model for an art tool.
  • “Load order” has the installed plugins with their kind and their state, and the findings of esx loadorder check as sentences. The interface reads the load order and does not change it.
  • The objects of the game are in “Objects”, with “The game too”.

Tools

“Tools” has each other capability of esx as a form with a result: plugins, objects, archives, meshes, materials, textures, animations, scripts, translation, load order, bulk edits, Creation Kit. A tool that writes says what it writes before the run. A result shows as labelled values and tables: a size has its unit, a type has its name, and a path in your home folder starts with ~. A checksum, an offset and the raw flags of a header show only with “Show technical details”.

“Find conflicts with another mod” in the group “Plugins” lists the objects that your plugin and another plugin change. Give the plugin of the other mod in “Other plugins to load”. Each row has the type, the editor ID, the state of the object, the state in your plugin and the plugins that have the object.

“Translation table” in the group “Translation” has each text of the mod that a player sees: the type, the editor ID, the field, the source text and the translation. “Read the text of the mod” reads the built plugin into translation/strings.json with esx strings export. A click on a translation gives it a field. “Save” writes the file, and “Make the translated plugin” writes a new plugin into build/translated with esx strings import. See Strings.

Help

“Help” (F1) has the first steps, the keys, what the interface does not do, and the guides of esx help-topic.

Settings

Settings (Ctrl+,) has the game folder, the folder for your mods, the esx program, the text size, “Show technical details”, and the state of the optional tools. Each folder comes from a dialog.

The card “Game test tools” has the test world of the test folder: its plugin and its cell, or that the folder has none. “Install a test world from a ZIP file” and “From a folder” open a file dialog. A second dialog names the file and asks, and only its answer runs esx probe install --world. A plugin with no named cell, or with more than one, gives the message “The test world needs its cell”: then use “Install the game test tools” in the tools page and give “Cell of the test world”. See Game tests.

System Settings file Cache folder
Linux ~/.config/esx/gui.toml ~/.cache/esx/gui
Windows %APPDATA%\esx\gui.toml %LOCALAPPDATA%\esx\gui\cache

On Linux, XDG_CONFIG_HOME and XDG_CACHE_HOME replace ~/.config and ~/.cache. The variables ESX_GUI_CONFIG_DIR and ESX_GUI_CACHE_DIR replace the two folders. You can delete the cache folder at each time.

Safety

  • The interface writes into four places: its settings file, its cache folder, the folder of a mod that you made or opened, and an output that you selected in a dialog.
  • Each write of a source of a mod is one step that Ctrl+Z takes back. The interface writes a temporary file and then renames it.
  • When a file changed on disk after the interface read it, the interface asks before it replaces the file.
  • The interface never writes into the installed game, the saves, plugins.txt or an INI file. A folder in the game is refused as a mod folder.
  • A command line with --allow-game-folder does not start. --overwrite comes only from your answer to the question “Replace the file?”.
  • A game test and an install of the game test tools start only from a button and its dialog.
  • The interface deletes no mod folder.

Keys

Key Action
Ctrl+K Search
Ctrl+B Build the open mod
Ctrl+N New mod
Ctrl+O Open a folder as a mod
Ctrl+S Save the open form
Ctrl+Z, Ctrl+Shift+Z Undo, and do again
Ctrl+J The activity panel
Ctrl+0 Your mods
Ctrl+1 to Ctrl+7 Overview, Objects, Assets, Build, Changes, Game test, Release
F1 Help
F5 Read the open mod again
Esc Close a dialog, a panel or the search

What the interface does not do

  • It has no 3D editor of a cell. A cell, a placed object and a navmesh are objects in the object window with their fields. A placed object has its position as numbers. The preview shows the model of one object. Use the Creation Kit to place objects in a cell with a mouse.
  • It does not make a face of an actor, and it does not edit the triangles of a navmesh.
  • It does not install a mod into the game.
  • A union field of a record shows as the shape that the object has. The form does not change the shape.
  • The form does not move an entry of a list that the game sorts.
  • The viewer shows no animation, no collision and no armor on a body. See Viewer.
  • It has no test in a real window on Windows or on Wayland yet.