Empire Deluxe Enhanced Edition
Terrain Database Editor
Quick Links:
Other Details Links:
Terrain Database
Editor Overview
The terrain database editor allows you to create new or edit existing
terrain.
Be aware that changes made to the terrain database will not have an effect on
saved games.
The Terrain Database
Concept
When a game is played, a Terrain Set is loaded. This Terrain
Set defines the name, category identification, and graphical details of the
terrain. This information is used both by the game engine and the
game play client during the course of game play.
The terrain is defined by a set of Categories. Each Category has a
unique Terrain Id. This Terrain Id is a represented by one printable
character, which is used for reference when used by units in the
Unit Database.
Terrain categories hold mostly image information. Movement costs and such are
defined via the Unit Database.
Mandatory Terrain Types
Every Terrain Database has two mandatory terrain categories. These are
Edge and Unexplored. These are considered common, and their Ids
cannot be changed. You may edit the graphics for these categories to make them
unique to your database.
Terrain Categories
Specification
The Terrain Category is comprised of the following information:
- Category Id - The Terrain Id, represented by one printable
character.
- Category Name - The name of this terrain.
- Terrain Graphic Type - This specifies the type of icon sheet used
for terrain display. These are specified in a standard way. See
Terrain Icon Notes for details.
- Number of Icons - The number of terrain icons included in this
category. See Terrain Icon Notes for
details.
- Description - Text describing the category for the player's review.
- Sister Terrain Types - These are the Terrain Ids which qualify as
"Sister Terrain". See Terrain Icon Notes for
details.
- Image File Name - This is the image file used.
- Pixel Color - The color used when the player specifies his desire
for it to be displayed at low zoom scales.
Details here and
here.
Terrain Editor Menu
Options
The editor menu options are all under Data in the menu, and allow you to
manage the databases available. The options are
- New Terrain DB - This will create a new terrain database. It
will come with two categories pre-made, Edge and Unexplored.
- Load Terrain DB - This will load an existing terrain database. You
will be prompted to load the "TerrDB.ini" file in the database's named
directory.
- Set DB Lock Code - To protect yourself from yourself, a database
can have a Lock Code, which will be required to be entered before a database
will be changed. Selecting this menu option will prompt you to set the lock
code. A lock code is not required, but is a matter of precaution.
- Merge Another Terrain DB - This will take your current database,
grab another database you specify, and merge the two together.
- Save Terrain DB - This will save your terrain database. A lock code
may be required. NOTE: Do not save over the databases
distributed with the game. This will disrupt your ability to play with others.
Copy them and make new ones.
- Save Terrain DB As - This will save the terrain database as a new
database, with no lock code. You will be prompted to enter the new directory
name.
- Delete Database - This will remove your database and all of the
contents in the directory. Use this option with caution.
Editing Terrain
Categories
The terrain categories are presented in a list form. You may select an item
to edit, or create a new one.
The buttons along the bottom help you add, edit and delete unit types in your
database. These are:
- Sort Columns - Allows you to drag and drop the column names so that
they appear in different order.
- Edit - Edits the selected terrain category. Calls up the
Terrain Category Editor.
- Delete - Deletes the selected terrain category.
- New - Creates a new terrain category. Calls up the
Terrain Category Editor.
- Copy - Creates a new terrain category by copying the currently
selected category. Calls up the Terrain
Category Editor.
Terrain Category Editor
The Terrain Category Editor allows you to edit a terrain category.
You can edit the following:
- Terrain Category Id - Enter the Id you wish to assign. Be aware that
changing this may affect Unit Databases which reference this terrain type.
- Category Name - Enter the name you wish to assign.
- Graphics Type - Chose the appropriate standard. See
Terrain Icon Notes for details and settings.
- Pixel Color - Click on the color to call up the
Color Chooser to set the color.
- Sister Terrain - Enter the Terrain Id for the sister Categories.
See Terrain Icon Notes for details.
- Icon Image - Click on the image displayed to change the file. See
Terrain Icon Notes for details.
To save your changes, press the Save Button. You must remember to
also Save the database for the changes to take effect.
Terrain Icon Notes
Terrain icons must be in Microsoft's BMP image format.
There are no transparent colors in terrain.
Sister Terrain
The terrain database has a concept of "Sister Terrain". When the map is
displayed, the icons are placed a certain way depending on what lies next to in.
Sometimes, you would like terrain, such as Mountains and Peaks, to blend
together. This relationship is called "Sisters". When a sister square is
adjacent, the ion will behave as if it is the same type for matching purposes.
Graphical Types
The terrain icon image must follow a standard to be appropriately displayed
in the game. This standard depends on the "type" of terrain you define the file
to represent.
A number of graphical positions are specified in each graphical type. It is
assume the image will divide exactly into that many icons. The icons are
represented by one row only. The files distributed with the game have their
icons at 32x32 pixels in size, but this is not a requirement. Study the existing
image files with the game to gain a better understanding of how the icons should
be laid out.
The types are:
- Water Type - Water Type graphics assume there is a coastal edge. There are
32 graphical positions. They are doubled for variety. These are specified by:
- No Exit
- No Exit
- Exit to the North
- Exit to the North
- Exit to the East
- Exit to the East
- Exit to the North, East
- Exit to the North, East
- Exit to the South
- Exit to the South
- Exit to the North, South
- Exit to the North, South
- Exit to the East, South
- Exit to the East, South
- Exit to the North, East, South
- Exit to the North, East, South
- Exit to the West
- Exit to the West
- Exit to the North, West
- Exit to the North, West
- Exit to the East, West
- Exit to the East, West
- Exit to the North, East, West
- Exit to the North, East, West
- Exit to the South, West
- Exit to the South, West
- Exit to the North, South, West
- Exit to the North, South, West
- Exit to the East, South, West
- Exit to the East, South, West
- Exit to the North, East, South, West
- Exit to the North, East, South, West
- Shallow Type - Same as Water Type.
- Land Type - Land Type graphics have 32 different icon positions.
Each position is set in a certain way, encompassing terrain in certain
directions. They are doubled for variety. These are specified by:
- Terrain Type Only in Square
- Terrain Type Only in Square
- Terrain Type to the North
- Terrain Type to the North
- Terrain Type to the East
- Terrain Type to the East
- Terrain Type to the North, East
- Terrain Type to the North, East
- Terrain Type to the South
- Terrain Type to the South
- Terrain Type to the North, South
- Terrain Type to the North, South
- Terrain Type to the East, South
- Terrain Type to the East, South
- Terrain Type to the North, East, South
- Terrain Type to the North, East, South
- Terrain Type to the West
- Terrain Type to the West
- Terrain Type to the North, West
- Terrain Type to the North, West
- Terrain Type to the East, West
- Terrain Type to the East, West
- Terrain Type to the North, East, West
- Terrain Type to the North, East, West
- Terrain Type to the South, West
- Terrain Type to the South, West
- Terrain Type to the North, South, West
- Terrain Type to the North, South, West
- Terrain Type to the East, South, West
- Terrain Type to the East, South, West
- Terrain Type to the North, East, South, West
- Terrain Type to the North, East, South, West
- River Type - These graphics have 32 different icon positions.
Each position is set in a certain way, with river exiting in certain
directions. They are doubled for variety. These are specified by:
- No Exit
- No Exit
- Exit to the North
- Exit to the North
- Exit to the East
- Exit to the East
- Exit to the North, East
- Exit to the North, East
- Exit to the South
- Exit to the South
- Exit to the North, South
- Exit to the North, South
- Exit to the East, South
- Exit to the East, South
- Exit to the North, East, South
- Exit to the North, East, South
- Exit to the West
- Exit to the West
- Exit to the North, West
- Exit to the North, West
- Exit to the East, West
- Exit to the East, West
- Exit to the North, East, West
- Exit to the North, East, West
- Exit to the South, West
- Exit to the South, West
- Exit to the North, South, West
- Exit to the North, South, West
- Exit to the East, South, West
- Exit to the East, South, West
- Exit to the North, East, South, West
- Exit to the North, East, South, West
- Other Type - This type is more free form. The minimum number is 2.
You can set the number of icons represented in the file. They will be used
randomly when displayed.
- Edge Type - This is a special type that is defined to specify how
the edges should be drawn. It includes 30 icons. The specifications are:
- Single Square Edge
- North Edge with Water
- North Edge with Water
- South Edge With Water
- South Edge With Water
- North Edge With Land
- North Edge With Land
- South Edge With Land
- South Edge With Land
- North Edge Land to the East
- North Edge Land to the West
- South Edge Land to the East
- South Edge Land to the West
- North Edge With Water, Land To East and West
- South Edge With Water, Land To East and West
- Single Edge Square
- West Edge with Water
- West Edge with Water
- East Edge with Water
- East Edge with Water
- West Edge with Land
- West Edge with Land
- East Edge with Land
- East Edge with Land
- West Edge Land Exits North
- West Edge Land Exits South
- East Edge Land Exits North
- East Edge Land Exits South
- West Edge Water, Land North and South
- East Edge Water, Land North and South