Start and stop
Start Etch's own copy of EU4 with your mod's playset beside the editor, and stop it.
The live game is EU4 itself: a private copy of the game that Etch starts with your mod’s playset (your mod and the mods its descriptor depends on). You play it as usual, and each file you save goes into it at once (Reload on save).
Start the live game
Section titled “Start the live game”- Open a
.guifile of your mod, for example your copy ofinterface/provinceview.gui. The live game plays with the playset of the mod that file belongs to. - Run Etch: Start the Live Game from the Command Palette (Ctrl+Shift+P), or click Live game in the preview.
- The first time, Etch asks you to confirm what the live game does (below). Click Start.
- Choose where the game starts (below).
- The first time, Etch also asks “Create the private install?” and says how much it copies. Click Create. The private install says what it holds.
The status bar shows Live game: starting, then Live game once the game is ready, and a notice says how long it took. When you start from a save (Continue or one of your saves), the game is ready once that save is loaded, not at the main menu. If the save has not loaded after five minutes, Etch shows the game as ready anyway and warns that it may still be loading or wait at the main menu: look at the game. A first start of a big playset can take several minutes. Etch keeps waiting; after two minutes a notice offers Show Output, with the game’s progress in Etch’s log, and Stop.
The first start
Section titled “The first start”The confirmation comes once. It says that the live game:
- runs in front of your other windows, as EU4 always does;
- takes your settings at every start: resolution, graphics, sound, UI scale and language;
- plays copies of your saves in an EU4 profile of its own (its own folder of settings, saves and mods, see The private install), and writes nothing back to your own profile or saves;
- counts as your EU4 session for Steam while it runs.
If your autosave is off, the live game autosaves monthly anyway, so that a crash loses little. The confirmation says so.
Choose where it starts
Section titled “Choose where it starts”A list asks “Where should the live game start?”
- Continue starts from the live game’s newest save.
- Main menu starts at the game’s main menu.
- Under Your saves come your own saves, newest first. The one you choose is copied into the live game’s saves and played as a copy; your own file does not change.
- Ironman saves show with a lock and “reload does not work in ironman”. You cannot choose them: the live game cannot reload files in ironman, so Etch does not copy them.
Your settings
Section titled “Your settings”The live game copies your settings.txt and pdx_settings.txt at every start. A setting you
change in the live game, such as the resolution, is gone at the next start. If you have never
started EU4, it opens in a borderless window at your monitor’s size.
Steam and your own game
Section titled “Steam and your own game”While the live game runs, Steam shows you playing EU4 and does not start your own game beside it. To play your own game, stop the live game first. The other way round, Etch does not start the live game while your own EU4 runs, and says so.
Etch runs one live game per machine. If another VS Code window runs it, Etch says so.
The live game in the status bar
Section titled “The live game in the status bar”While the live game runs, the status bar at the bottom left shows its state, each with its own icon: Live game: starting, Live game (ready), Live game: restart needed, Live game: restarting and Live game: stopping. While pick mode is on, a second item, Pick mode, shows beside it.
Click Live game for its menu. Its title says the state and your mod, such as “Live Game: ready (41.2 s) · etch-demo-mod”. When the game is ready, the menu offers:
- Turn Pick Mode On (or Off);
- Snapshot from the Live Game, of the previewed window;
- Open the Live Game’s Saves Folder;
- Show the Live Game’s Log: Etch’s log in View › Output;
- Restart the Live Game: saves, then starts EU4 again from that save;
- Stop the Live Game: saves, then closes EU4 (below).
When the game needs a planned restart, Restart Now and Later come first. While it starts, the menu offers the log and Stop the Live Game, which stops the start. A click on the status bar never stops the game by itself.
In the Command Palette, Etch: Start the Live Game shows only while no live game runs, and Etch: Stop the Live Game and the commands that act on the game only while it runs.
Stop the live game
Section titled “Stop the live game”- Click Live game in the status bar and choose Stop the Live Game, or run Etch: Stop the Live Game.
- Close the VS Code window.
Both save first: Etch saves the game as autosave.eu4 in the live game’s saves, waits up to 30
seconds until the file is written, then closes the game. Continue starts from that save next
time. Etch saves nothing when the game is at the main menu, in ironman or in multiplayer.
Quitting from the game’s own menu stops the live game too. Exit to Main Menu makes EU4 close and start again by itself. Etch takes over the new game when it can; if it cannot, it closes the game and asks you to start the live game again.
Etch: Open the Live Game’s Saves Folder opens the folder of the live game’s own saves: the copies of your saves, the saves you make in it and the ones Etch makes before a stop.
Mistakes the game finds at the start
Section titled “Mistakes the game finds at the start”While the game loads, it writes a message to its error.log for each mistake it finds in your
files: an unknown trigger or effect, a modifier no file defines, a letter the game cannot show
in a localisation text. When the live game is ready, Etch puts these messages in the Problems
panel (Ctrl+Shift+M), marked Etch game start, on the file of your mod they are
about. Etch replaces them at the next start.
Each message goes where it points:
- When the game names a file and a line, the message goes on that line. For
File: "events/etch_check.txt", Error: Unknown effect type. Key: add_treasuryy: add_treasuryy, near line: 13, that is line 13 of yourevents/etch_check.txt. - When the game names a
.guifile, a widget and its window, such asinterface/etch.gui: Missing Button 'close' in window 'etch', the message goes on the window’s name in that file. - When the game names nothing but a name, Etch looks for a localisation key in your
.ymlfiles, and for any other name, such as a modifier, in your other files. The message goes on the first place it finds.
A message saying the game could not read your file (“Parsing Error”) is an error in Problems. The others are warnings. Messages about other mods’ files or the game’s own files are not in Problems. Etch’s log only says how many there were (View › Output, then Etch in the list).
When the game crashes
Section titled “When the game crashes”If the game crashes or stops answering Etch, Etch starts it again at the live game’s newest save:
an autosave, the save Etch made at the last stop or restart, or one you saved. A notice says why it
restarts. After the third crash within five minutes, Etch stops the live game and shows the end of
the game’s error.log; start it again yourself.
A game that only stands still is not a crash. Loading a save, starting a new game, saving or a big event can freeze it for a while, and Windows may mark its window “not responding”. After five minutes in which the game draws nothing new, Etch asks Keep Waiting or Close and Restart, and closes it only on your answer.
The achievements message
Section titled “The achievements message”When your playset has a mod that changes the game itself, such as events, decisions or anything in
common, EU4 turns achievements off. In that case, before it loads a save, it shows the message
“Achievements can no longer be earned” with Cancel and Ok. Anbennar shows “Vanilla
achievements can no longer be earned”.
When the live game starts from a save, Etch clicks Ok on this message for you, in any playset, and the save loads. Events that pop up once the save is loaded are yours to answer.
If the game shows a different message before the save loads, Etch does not answer it. It stops waiting: the status bar shows Live game, and a warning in VS Code names the message. Answer it in the game, and the save loads.
What it doesn’t do
Section titled “What it doesn’t do”- It starts only EU4 1.37.5 from Steam: Etch refuses any other
eu4.exe. - It does not copy ironman saves.
- It knows the achievements message only in the game’s own languages: English, French, German and Spanish. If a mod translates it into another language, you see the warning instead and click Ok yourself.
- It does not save before a stop at the main menu, in ironman or in multiplayer.
- Settings you change in the live game do not last.
- It runs one live game per machine, and not beside your own EU4.
- All playsets share the live game’s saves folder, so Continue may offer the newest save of another playset.
- It never writes to your own saves or profile.
- It shows only the mistakes the game writes to
error.logwhile it loads. Some mistakes the game does not report, such as an extra}incommon/scripted_triggersoradd_treasury = lots: Etch shows nothing for them. - When a name appears in several of your files, Etch puts the message on the first one in the order of their folders and names, which may not be the one the game meant.