forked from eressea/server
-
Notifications
You must be signed in to change notification settings - Fork 0
The Game Editor
Steffen Mecke edited this page Sep 30, 2023
·
1 revision
With
eressea
E> require('config')
E> gmtool.editor()You can start the text-based map editor. Here are most of the keyboard shorcuts you can use.
- Use the arrow keys and position keys to move the cursor on the map. The highlighted region's details are displayed on the right side of the window.
-
gmoves the cursor to the region with the coordinates you enter -
/searche for ...- r: a region by name
- u: a unit by id
- f: a faction by id
- F: afaction from a list of factions
-
nfinds the next element according to last search -
SPACEselects or unselects the current region -
TABjumps to next selected region (by space or t) -
pjumps between planes -
ajumps to corresponding astral region / real region
-
Ishows / hides (in the window on the right) info about ... f: factions, u: units, s: ships, b: buildings -
dlets you choose between the map modest: show terrains and 'l': show luxuries -
Oopens a data file in thedatasubdirectory -
Ssaves the data to a file in thedatasubdirectory -
forCtrl-tterraforms the region under the cursor; it lets you choose a terrain -
CTRL+badds a block of oceans without overwriting existing regions -
Bbuilds an island using an algorithm used for the E3 game (PRO TIP: You can change the size of the created islands by settingeressea.settings.set("editor.island.min", 20))from the LUA console -
sseeds the next player from thenewfactionsfile at the current region (see below) -
Aresets an area: any region that can be reached by an uninterrupted path from the current region (not crossing empty regions, walls, or firewalls) has their region age reset to 0. -
cclears the region under the cursor, randomly resetting all resources -
Cclears a rectangular region (2 regions up and to the right) -
hmarks regions:n: none,i: island under the cursor,t: terrain type,s: with ships,u: with units,p: with player units,m: with monsters,f: with units of a faction,cchaos regions,v: new regions with age 0 -
Hunmarks regions (as above) -
tselects regions (for batch commands, as above) -
Tun-selects regions (as above) -
;runs a batch command for all selected regionsr: resets the regions,tterraforms,f: fixes the regions (a very special operation you are not likely to need)-
Ctrl+Lredraws the screen -
Lopens a lua prompt; you can enter lua commands most likely calling other scripts withloadfile('xyz.lua') -
Qquit the editor
-
The file newfactions (in the current directory, most likely the game directory) is read when the editor starts. It contains one new faction per line and is used by the s command. Existing factions (identified by email) are ignored. A line can contain up to 5 fields separated by one or more spaces:
- an email (there can be no duplicat emails, at most 54 characters long)
- a race
- a locale (either 'de' or 'en' currently)
- a password (15 characters)
- an alliance (a number); this is not used by standard eressea, but was used in a High Speed Eressea game to put players into fixed alliances (not to be confused with E3 alliances)
The last two values are optional.