Difference between revisions of "Map Editing"

From MegaGlest
Jump to navigation Jump to search
 
(143 intermediate revisions by the same user not shown)
Line 1: Line 1:
To create a map in Glest you will need to download the Glest Tools. [https://sourceforge.net/project/showfiles.php?group_id=127297&package_id=141551 Sourceforge Download] The information is for Glest Map Editor v0.3.0
+
To create a map in Glest you will need to download the [[Glest_Tools|Glest Tools]] at [https://sourceforge.net/project/showfiles.php?group_id=127297&package_id=141551 Sourceforge Download]
[[Image:Mapeditor.jpg|right|thumb|300px|The editor with the map 'The Ruins' loaded]]
 
  
==Introduction==
 
Glest Map Editor is a basic map editor for Glest, the realtime strategy game. Glest Map Editor allows to define map dimensions, surface height, surface type, object location, resource location, number of players, faction starting points and some other parameters. You can not define unit or building placements, the reason for this is that a map can be played with various tech trees with different types of units and buildings. To play a map created with this map editor just put the .rsm file on the map folder of the game.
 
  
==Editor Window==
+
[[Image:Mapeditor.jpg|right|thumb|610px|The editor with the map 'The Ruins' loaded]]
Glest Map Editor has a single window, on top is the Menu Bar, on Center-Left the Map Display, at right the Tool Bar, and on bottom the Info Label.
 
  
==Map Display==
+
=== Map overview ===
Map display reflects the current state of the map. The big 'X' show the location of each player starting point. The map is divided in cells, each cell has a state: height, surface type, object type and resource type. The way the map reflects the state of the cells is as follows: Intensity of color reflects height, the darker the color is, the lower the height of the cell. Color reflects the surface type: green is surface 1, brown surface 2, grey surface 3, blue surface 4 and cyan surface 5. An 'X' means that there is a resource on this cell, the color of the 'X' indicates the type of resource. An inverted 'L' means that the is an object on this cell, the color of the inverted 'L', indicates the type of object. Note that a cell can't have a resource and an object at the same time.
+
'''Maps are single files, that define bi-dimensional matrices of cells, each cell has the following attributes:'''
  
You can interact with the map display as follows: To left click over the map or to move the mouse while pressing left button modifies the map. To move the mouse while pressing right button moves the map. To move the mouse while pressing the center button or shift+right button zooms the map.
+
*Height. From 0 to 20
 +
*Surface type. There are 5 surface types, and the map editor numbering system indicates the [[Surface_texture_pallette.jpg|texture type]], the texture file itself depends on the [[Tilesets#Custom_Tilesets|tileset]].
 +
*Object. A cell can have an object or not, there are 10 types of [[Objects|objects]], object models depend on the tileset, but in general terms, objects 1 and 2 are trees, 3 is stone, 4 and 5 are bushes, objects from 6 to 9 can be anything and 10 is an invisible blocking object.
 +
*Resource. Resources can be placed on cells. objects and resources cannot share the same cell at the same time. Resources depend on the Tech Tree.
  
==Toolbar==
+
Maps also define the start locations for each player, map size, altitude factor, and water level. Maps cannot define the placement of units or buildings. To play maps created with the editor, just place the .gbm file into the Glest [[Install_Mods.jpg|directory]] map folder.
The toolbar defines the way the map is modified when you left click on the map display. Depending on the selected radio button you can edit height, surface type, object type, resource type or starting points.
 
  
===Radius===
+
=== Introduction to the map editor ===
The radius combo box is always available and indicates the number of cells modified when editing the map, a radius of one modifies only one cell, a higher radius modified more cells. This value has no sense when defining starting locations.
+
'''Glest Map Editor is the default map editor for Glest - the free, open-source, 3D real-time strategy game.'''
  
===Height===
+
Glest Map Editor allows users to define:
When height radio button is selected you alter surface height, radius and height combo boxes allow to modify surface in different ways
 
  
===Surface===
+
*Map dimensions
When surface radio button is selected, you edit map surface type. Surface types depend on the tileset, but you can assume that surface 1 is grass, surface 2 road and surface 3 rock.
+
*Surface height
===Object===
+
*Surface type
When object radio button is selected, you place objects over the map. Objects depend on the tileset, but you can assume that objects 1 and 2 are trees 3 is a chopped tree and 4 and 5 are types of stones. Tech trees can use objects as resources (Experimental tech tree uses object types 1 and 3 for wood rersource). The difference is that 3d models for objects are defined on the tileset while resource 3d models are defined on the tech tree.
+
*Object location
===Resource===
+
*Resource location
When resource radio button is selected, you place resources over the map, one map cell can't have a resource and an object at the same time. Resources depend on the tech tree, you can't make any assumption of the types of resources unless you want to create a map designed for one concrete tech tree (in this case the map will probably can be played only with this tech tree). Experimental tech tree, only uses resource 1 (as gold, resources 2, 3, 4 and 5 will be ignored).
+
*Number of players
===Starting Points===
+
*Player and computer faction starting points  
Each player needs one starting point, this point is where its initial buildings and units are placed. If there is not enough space near the starting point to place all the units/buildings, an error will happen.
+
*Other significant parameters  
==Menu bar==
 
===File===
 
====Load====
 
Loads a map file.
 
====Save and Save as====
 
Saves a map file.
 
====Exit====
 
Closes the editor.
 
===Edit===
 
====Reset====
 
Resets the map, you can specify map dimensions (from 16 to 1024), and default altitude and surface types.
 
====Reset players====
 
Changes the number of players of the map and resets starting points.
 
====Info====
 
Here you enter the map author, title and description.
 
====Advanced====
 
Two parameters can be edited here, altitudeFactor and waterLevel. Altitude factor is a number that divides altitudes when surface is drawn in the game. It defaults to 3, that means that a cell that has an altitude of x, will have a real altitude of x/3 when rendered. Water level is the altitude of the water in the game, note that units can walk over every cell that has a an altitude greater or equal to waterLevel-1. Water level is also divided by altitudeFactor.
 
===Misc===
 
====Reset zoom and pos====
 
Resets the zoom amd position to its default values.
 
====About====
 
Displays the copyright notice.
 
====Mouse buttons====
 
Shows a brief explaination of how to use mouse to interact with map display.
 
==Info label==
 
Here are displayed some parameters of the map.
 
  
==Playing==
+
Note: the map editor cannot define unit or building placements, the reason for this is that a map can be played with various tech trees with different unit and building types.
Copy/cut the map file to the maps folder of Glest. It should now be in the list of maps in the game setup.
 
  
==Improving Map Editor==
+
=== Editor window ===
===Development===
+
'''Single window properties'''
====Buttons====
+
 
Buttons for Glest Map Editor are in development. If you want to help, please visit: [http://andy0101-glest.blogspot.com/]
+
*Top''':''' Menu Bar 
 +
*Center-Left''':''' Map Display
 +
*Right''':''' Tool Bar
 +
*Bottom''':''' Info Label
 +
 
 +
=== Map display ===
 +
'''Map display reflects the current state of the map'''
 +
 
 +
The map is divided into cells, each cell has a state: height, surface type, object type and resource type. The way the map reflects the state of the cells is as follows:
 +
 
 +
*The big <tt><font color="darkred">''''X''''</font></tt><tt><font color="darkblue">''''X''''</font></tt><tt><font color="#ddcc00">''''X''''</font></tt><tt><font color="#888888">''''X''''</font></tt> show the location of each player starting point.
 +
*Intensity of color reflects height(elevation).
 +
**the darker the color is, the lower the height of the cell.
 +
**the lighter the color is, the higher the height of the cell.
 +
*Color reflects the surface type:
 +
**Light Green''':''' surface - 1
 +
**Dark Green''':''' surface - 2
 +
**Brown''':''' surface - 3
 +
**Gray''':''' surface - 4
 +
**Red''':''' surface - 5
 +
*An <tt><font color="#bbbb33">'X'</font></tt><tt><font color="#888877">'X'</font></tt> means that there is a resource on the cell, the color of the 'X' indicates the resource type.
 +
*An inverted 'L' means there is an object on the cell, the color of the inverted 'L', indicates the object type.
 +
Note''':''' Objects and resources cannot share the same cell.
 +
 
 +
 
 +
Users may interact with the map as follows''':'''
 +
 
 +
*Left clicking over the map or to move the mouse while pressing left button modifies the map.
 +
*Moving the mouse while pressing the right mouse button scrolls the users viewing location on the map.
 +
*Moving the mouse while pressing the center button or shift+right mouse button zooms the map view.
 +
 
 +
=== Toolbar ===
 +
 
 +
'''The toolbar defines the way the map is modified when left clicking on the map display.'''
 +
 
 +
Depending on the selected radio button, users may edit height, surface type, object type, resource type or starting points.
 +
 
 +
*Radius''':''' The radius combo box is always available and indicates the number of cells modified when editing the map, a radius of one modifies only one cell, a higher radius modified more cells.
 +
 
 +
*Height''':''' When height radio button is selected, users can alter the map surface height. (radius and height combo boxes modify the surface in different ways)
 +
 
 +
*Starting Points''':''' Each player requires one starting point, this point is the map location where the initial [[Defense tower.jpg|buildings]] and units are placed. If there is not enough space at the starting point to place all [[Guard.jpg|units]] and buildings, an error will occur and the game will not load.
 +
 
 +
*Surface''':''' When the surface radio button is selected, users can edit map surface type(s). Surface [[Surface texture pallette.jpg|texture types]] vary between individual tilesets, but the default settings are:
 +
**Surface''':''' 1 -  [[Surface texture pallette.jpg|grass]]
 +
**Surface''':''' 2 -  [[Surface texture pallette.jpg|secondary grass]]
 +
**Surface''':''' 3 -  [[Surface texture pallette.jpg|road]]
 +
**Surface''':''' 4 -  [[Surface texture pallette.jpg|stone]]
 +
**Surface''':''' 5 -  <tt><font color="#bb8800">undefined</font></tt>
 +
*Object''':''' When the object radio button is selected, users can place objects on the map cells. Objects depend on the tileset, but the default settings are:
 +
**Object''':''' 0 - <tt><font color="#bb8800">undefined</font></tt>
 +
**Object''':''' 1 - [[Object montage.jpg|tree]] <tt><font color="#114400">walkable</font></tt>(<tt><font color="#770000">false</font></tt>) - [[Resource_gold_stone_tree.jpg|wood resource type]] 
 +
**Object''':''' 2 - [[Object montage.jpg|dead tree/stump]] <tt><font color="#114400">walkable</font></tt>(<tt><font color="#770000">false</font></tt>) 
 +
**Object''':''' 3 - [[Object montage.jpg|stones]] <tt><font color="#114400">walkable</font></tt>(<tt><font color="#770000">false</font></tt>)
 +
**Object''':''' 4 - [[Object montage.jpg|bush]] <tt><font color="#114400">walkable</font></tt>(<tt><font color="green">true</font></tt>)
 +
**Object''':''' 5 - [[Object montage.jpg|water object]] <tt><font color="#114400">walkable</font></tt>(<tt><font color="green">true</font></tt>)
 +
**Object''':''' 6 - Custom1 - [[Object_dead_big_tree.jpg|dead/big tree]] <tt><font color="#114400">walkable</font></tt>(<tt><font color="#770000">false</font></tt>) 
 +
**Object''':''' 7 - Custom2 - [[Object_hanged_impaled.jpg|hanged/impaled]] <tt><font color="#114400"> walkable</font></tt>(<tt><font color="#770000">false</font></tt>)
 +
**Object''':''' 8 - Custom3 - [[Object statues.png|statues obelisk/technician/broken]] <tt><font color="#114400"> walkable</font></tt>(<tt><font color="#770000">false</font></tt>)
 +
**Object''':''' 9 - Custom4 - [[Object_mossy_rock.jpg|mossy rock]] <tt><font color="#114400">walkable</font></tt>(<tt><font color="#770000">false</font></tt>)
 +
**Object''':''' 10 -Custom5 - [[Object_invisible.jpg|invisible object]] <tt><font color="#114400">walkable</font></tt>(<tt><font color="#770000">false</font></tt>)
 +
*Resource: When the resource radio button is selected, users can place resources on a map cell. Resource types depend on the tech tree selected, but the default settings are:
 +
**Custom''':''' 0 - <tt><font color="#bb8800">none</font></tt>
 +
**Custom''':''' 1 - [[Resource_gold_stone_tree.jpg|gold]] <tt><font color="#114400">walkable</font></tt>(<tt><font color="#770000">false</font></tt>)
 +
**Custom''':''' 2 - [[Resource_gold_stone_tree.jpg|stone]] <tt><font color="#114400">walkable</font></tt>(<tt><font color="#770000">false</font></tt>)
 +
**Custom''':''' 3 - <tt><font color="#bb8800">undefined</font></tt>
 +
**Custom''':''' 4 - <tt><font color="#bb8800">undefined</font></tt>
 +
**Custom''':''' 5 - <tt><font color="#bb8800">undefined</font></tt>
 +
*Note''':''' Tech trees can use objects as resources. The difference is that 3d models for objects are defined on the tileset while resource 3d models are defined on the tech tree.
 +
*Note''':''' ''<tt><font color="#bb8800">undefined</font></tt>'' refers to resource and object models as well as surface texture settings used in most user created faction and tileset modification files.
 +
*Note''':''' ''<tt><font color="#114400">walkable</font></tt>(<tt><font color="#770000">false</font></tt>)'' are objects which restrict or block unit movement across cells where they have been placed - units cannot walk over these cells.
 +
*Note''':''' ''<tt><font color="#114400">walkable</font></tt>(<tt><font color="green">true</font></tt>)'' are objects which allow ground unit movement across cells where they have been placed - units can walk over these cells.
 +
 
 +
=== Menu rar ===
 +
*File
 +
*Load: loads the selected map file.
 +
*Save and Save As: saves a map file.
 +
*Exit: closes the editor.
 +
*Edit
 +
*Reset: resets the map, users can specify map dimensions, default altitude and surface types.
 +
*Reset Players: changes the number of players on the map and resets starting points.
 +
*Info: here is where users enter the authors name, title and description of the map.
 +
*Advanced: two parameters can be edited here, ''altitudeFactor'' and ''waterLevel''.
 +
**Altitude factor is a number that divides altitudes when surface is drawn in the game. It defaults to 3, that means that a cell that has an altitude of x, will have a real altitude of x/3 when rendered.
 +
**Water level is the altitude of the water in the game, note that units can walk over every cell that has a an altitude greater or equal to ''waterLevel''-1.
 +
**Note: ''waterLevel'' is also divided by ''altitudeFactor''.
 +
*Misc
 +
*Reset zoom and pos: resets zoom and position to the default values.
 +
*About: displays the copyright notice.
 +
*Mouse buttons: brief explanation of mouse functionality when interacting with the map.
 +
*Info label: here are displayed some parameters of the map.
 +
 
 +
=== General map design information ===
 +
 
 +
'''Below is a list of guidelines written for users who are new to the Glest map making process.'''
 +
 
 +
*Player and Resource Placement''':'''
 +
**At least [[Ten resource.jpg|10 tiles]] (cells) of gold, stone and wood (trees) at the player starting point locations, and at least one smaller 5 tile(cells) resource area nearby
 +
**Generic four player maps space player and AI faction starting locations equidistantly
 +
**Multiplayer maps differ from generic maps and place allies closer together, and those allies may also share gold and stone resource sites.
 +
*Road and Trail Systems''':'''
 +
**Roads connect all player start locations
 +
**Roads should be at least five tiles (cells) [[Th_wide_stone-road.jpg|wide]]. 
 +
**Trails and paths connect to roads and usually lead to resource locations. Paths also provide an easy route through dense forests or across large, non descript, plains and deserts. 
 +
**Trails and paths should be three tiles (cells) wide. Trails through dense forests - with a width of only two tiles(cells) - may trap size3 AI faction units and cause [[Th_MapStuckB.jpg| unit stacking and grid-locking]].
 +
*Rivers, lakes and oceans''':'''
 +
*Map Objects''':'''
 +
**Place objects where logical. Trees rarely grow in rivers and lakes although a few dead tree objects in a pond can be visually appealing.
 +
**Statue and gallows objects should be used infrequently. Both look good at trail intersection points and on [[Statue_on_isolated_isle.jpg|isolated islands]].
 +
**Bushes look great in forests and along riverbanks - use them often.
 +
**Small stones look good but use them sparingly and in appropriate locations. IE: player starting locations are an inappropriate stone object placement location
 +
**Mossy Rocks/Big Rocks need to be [[Surrounded_mossy_rock.jpg|surrounded]] with the pink colored invisible blocking 10-C5 object to prevent units from walking inside the rock model(s)
 +
*Surface [[Surface texture pallette.jpg|texture types]]
 +
**surface 1 is normally light-colored green grass with random flower and weed texture patterns.
 +
**surface 2 is normally dark-colored green grass with no flower and weed texture patterns.
 +
**surface 3 is normally brown dirt or tan sand with random pebble and weed texture patterns.
 +
**surface 4 is normally composed of gray cobblestones, bricks, interlocking stone-tile and rock-gravel texture patterns
 +
**surface texture 5 is normally undefined and is rarely used on maps.
 +
*Surface texture uses''':'''
 +
**surface textures vary greatly between tilesets but in general:
 +
***surface textures 1 and 2 are used as the primary surface type for meadows, mountains, plains, hills and valleys
 +
***surface textures 3 and 4 are used for roads, trails, as ocean and lake shorelines and at player starting locations
 +
***surface texture 5 is normally undefined and is rarely used on maps.
 +
 
 +
=== General map design tips ===
 +
 
 +
'''Map making is tedious and boring so don't expect to knock out a map in an hour. Work on a map a few times a week with the ultimate goal of having a completed map ready after 15 days.'''
 +
 
 +
*Is there enough room for building expansion at each of the starting locations?
 +
**The ultra AI typically constructs at least 12 buildings around the starting point which may lead to unit movement congestion.
 +
 
 +
*Resource node location placement?
 +
**Ensure AI units do not become stuck between buildings and nodes while harvesting in large groups.  
 +
**Placing blocking objects next to resources nodes may lead to unit [[Th_map_stuckA.jpg|stacking]]
 +
 
 +
* AI Pathfinding on long routes?
 +
**Can the AI find the hostile base or group of hostiles? or does it get stuck on a path in a forest or around a lake or river?
 +
 
 +
*Is the pathing at least 3 tiles (cells) wide at chokepoints?
 +
**Entry and exit trails and roads near the player starting points tend to be narrow to accommodate defensive oriented gamers.
 +
 
 +
*Trails and roads?
 +
**Do roads and trails follow the natural geography of the map?
 +
**Do trails lead to resources or connect to other trails and roads? Please, no dead-end roads and trails.
 +
 
 +
*Swamps and flooded regions
 +
**Proper height settings will trigger water splash animations and particles. This effect is quite pleasing, use it wisely.
 +
 
 +
*Topography
 +
**Roads should be a couple units lower than the rest of the map, and only two units above the water, so that the river heights will look natural at road/water crossing points.
 +
**Maps with little change in elevation are uninteresting and require increased object placement to balance the flat, visually unappealing, terrain.
 +
 +
*Game world visual appeal?
 +
**No one enjoys running around in a barren game world - place lots of objects on the map
 +
**Fifteen statues or nine stones in one location makes no sense and looks bad.
 +
**Does the map look good at various locations and from different viewing perspectives?
 +
**Do placed objects enhance the organic feel of the map?
 +
**Do the hills, valley's, mountains appear natural?
 +
**Do Lakes connect with rivers?
 +
**Apply dirt or sand [[Shoreline borders.jpg|shorelines]] around bodies of water
 +
**Roads look better if they are trimmed/bordered by dirt or sand [[Road_shoulder.jpg|shoulders]].
 +
 
 +
=== Image reference (incomplete) ===
 +
 
 +
http://images2.wikia.nocookie.net/glest/images/2/25/Th_samplemap.jpg
 +
 
 +
map editor basic elements
 +
 
 +
http://images3.wikia.nocookie.net/glest/images/f/f9/Th_samplemapGAE-1.jpg
 +
 
 +
game view of the map editor basic elements
 +
 
 +
=== Design tricks and glest AI pathfinder limitations (incomplete) ===
 +
 
 +
'''visual enhancements while conforming to the AI pathfinder rules'''
 +
 
 +
http://images1.wikia.nocookie.net/glest/images/1/12/Th_definedparameters.jpg
 +
 
 +
*Draw diagonal perimeter lines on a map using the pink colored invisible <tt><font color="green">walkable(false)-- blocking object</font></tt> 10-C5
 +
**Create the map world within the predefined perimeter boundaries.
 +
 
 +
 
 +
http://images3.wikia.nocookie.net/glest/images/4/45/Map_guide_elements.jpg
 +
 
 +
*Now place objects outside the perimeter of the ground unit (walkable) playfield - ground units cannot travel in these areas. This technique enhances the visual appearance of the game world.
 +
**Yellow highlighted areas are the walkable(false) portion of the map.note the pink blocking C5 pixel perimeter surrounding the walkable(false) map area
 +
**Blue lines are the original parameter requirements.
 +
**Red square is where the AI unit pathfinder fails. The map breaks the perimeter rule.
 +
**Red lines indicate the path on which the AI wants to travel - but cannot - due to performance failures with the Glest AI pathfinder coding.
 +
 
 +
 
 +
http://images1.wikia.nocookie.net/glest/images/b/b5/Guide_yellowcircle_pathing.jpg
 +
 
 +
Game view of the map editor image seen above  <tt><font color="green">walkable(false)-- blocking object</font></tt> portion of the map.
 +
 
 +
==from callum: i want to go on map editor==
 +
*[[Glest_Tools|Glest Tools]]
 +
*[[Objects]]

Revision as of 08:19, 29 August 2010

To create a map in Glest you will need to download the Glest Tools at Sourceforge Download


File:Mapeditor.jpg
The editor with the map 'The Ruins' loaded

Map overview

Maps are single files, that define bi-dimensional matrices of cells, each cell has the following attributes:

  • Height. From 0 to 20
  • Surface type. There are 5 surface types, and the map editor numbering system indicates the texture type, the texture file itself depends on the tileset.
  • Object. A cell can have an object or not, there are 10 types of objects, object models depend on the tileset, but in general terms, objects 1 and 2 are trees, 3 is stone, 4 and 5 are bushes, objects from 6 to 9 can be anything and 10 is an invisible blocking object.
  • Resource. Resources can be placed on cells. objects and resources cannot share the same cell at the same time. Resources depend on the Tech Tree.

Maps also define the start locations for each player, map size, altitude factor, and water level. Maps cannot define the placement of units or buildings. To play maps created with the editor, just place the .gbm file into the Glest directory map folder.

Introduction to the map editor

Glest Map Editor is the default map editor for Glest - the free, open-source, 3D real-time strategy game.

Glest Map Editor allows users to define:

  • Map dimensions
  • Surface height
  • Surface type
  • Object location
  • Resource location
  • Number of players
  • Player and computer faction starting points
  • Other significant parameters

Note: the map editor cannot define unit or building placements, the reason for this is that a map can be played with various tech trees with different unit and building types.

Editor window

Single window properties

  • Top: Menu Bar
  • Center-Left: Map Display
  • Right: Tool Bar
  • Bottom: Info Label

Map display

Map display reflects the current state of the map

The map is divided into cells, each cell has a state: height, surface type, object type and resource type. The way the map reflects the state of the cells is as follows:

  • The big 'X''X''X''X' show the location of each player starting point.
  • Intensity of color reflects height(elevation).
    • the darker the color is, the lower the height of the cell.
    • the lighter the color is, the higher the height of the cell.
  • Color reflects the surface type:
    • Light Green: surface - 1
    • Dark Green: surface - 2
    • Brown: surface - 3
    • Gray: surface - 4
    • Red: surface - 5
  • An 'X''X' means that there is a resource on the cell, the color of the 'X' indicates the resource type.
  • An inverted 'L' means there is an object on the cell, the color of the inverted 'L', indicates the object type.

Note: Objects and resources cannot share the same cell.


Users may interact with the map as follows:

  • Left clicking over the map or to move the mouse while pressing left button modifies the map.
  • Moving the mouse while pressing the right mouse button scrolls the users viewing location on the map.
  • Moving the mouse while pressing the center button or shift+right mouse button zooms the map view.

Toolbar

The toolbar defines the way the map is modified when left clicking on the map display.

Depending on the selected radio button, users may edit height, surface type, object type, resource type or starting points.

  • Radius: The radius combo box is always available and indicates the number of cells modified when editing the map, a radius of one modifies only one cell, a higher radius modified more cells.
  • Height: When height radio button is selected, users can alter the map surface height. (radius and height combo boxes modify the surface in different ways)
  • Starting Points: Each player requires one starting point, this point is the map location where the initial buildings and units are placed. If there is not enough space at the starting point to place all units and buildings, an error will occur and the game will not load.
  • Surface: When the surface radio button is selected, users can edit map surface type(s). Surface texture types vary between individual tilesets, but the default settings are:
  • Object: When the object radio button is selected, users can place objects on the map cells. Objects depend on the tileset, but the default settings are:
  • Resource: When the resource radio button is selected, users can place resources on a map cell. Resource types depend on the tech tree selected, but the default settings are:
    • Custom: 0 - none
    • Custom: 1 - gold walkable(false)
    • Custom: 2 - stone walkable(false)
    • Custom: 3 - undefined
    • Custom: 4 - undefined
    • Custom: 5 - undefined
  • Note: Tech trees can use objects as resources. The difference is that 3d models for objects are defined on the tileset while resource 3d models are defined on the tech tree.
  • Note: undefined refers to resource and object models as well as surface texture settings used in most user created faction and tileset modification files.
  • Note: walkable(false) are objects which restrict or block unit movement across cells where they have been placed - units cannot walk over these cells.
  • Note: walkable(true) are objects which allow ground unit movement across cells where they have been placed - units can walk over these cells.

Menu rar

  • File
  • Load: loads the selected map file.
  • Save and Save As: saves a map file.
  • Exit: closes the editor.
  • Edit
  • Reset: resets the map, users can specify map dimensions, default altitude and surface types.
  • Reset Players: changes the number of players on the map and resets starting points.
  • Info: here is where users enter the authors name, title and description of the map.
  • Advanced: two parameters can be edited here, altitudeFactor and waterLevel.
    • Altitude factor is a number that divides altitudes when surface is drawn in the game. It defaults to 3, that means that a cell that has an altitude of x, will have a real altitude of x/3 when rendered.
    • Water level is the altitude of the water in the game, note that units can walk over every cell that has a an altitude greater or equal to waterLevel-1.
    • Note: waterLevel is also divided by altitudeFactor.
  • Misc
  • Reset zoom and pos: resets zoom and position to the default values.
  • About: displays the copyright notice.
  • Mouse buttons: brief explanation of mouse functionality when interacting with the map.
  • Info label: here are displayed some parameters of the map.

General map design information

Below is a list of guidelines written for users who are new to the Glest map making process.

  • Player and Resource Placement:
    • At least 10 tiles (cells) of gold, stone and wood (trees) at the player starting point locations, and at least one smaller 5 tile(cells) resource area nearby
    • Generic four player maps space player and AI faction starting locations equidistantly
    • Multiplayer maps differ from generic maps and place allies closer together, and those allies may also share gold and stone resource sites.
  • Road and Trail Systems:
    • Roads connect all player start locations
    • Roads should be at least five tiles (cells) wide.
    • Trails and paths connect to roads and usually lead to resource locations. Paths also provide an easy route through dense forests or across large, non descript, plains and deserts.
    • Trails and paths should be three tiles (cells) wide. Trails through dense forests - with a width of only two tiles(cells) - may trap size3 AI faction units and cause unit stacking and grid-locking.
  • Rivers, lakes and oceans:
  • Map Objects:
    • Place objects where logical. Trees rarely grow in rivers and lakes although a few dead tree objects in a pond can be visually appealing.
    • Statue and gallows objects should be used infrequently. Both look good at trail intersection points and on isolated islands.
    • Bushes look great in forests and along riverbanks - use them often.
    • Small stones look good but use them sparingly and in appropriate locations. IE: player starting locations are an inappropriate stone object placement location
    • Mossy Rocks/Big Rocks need to be surrounded with the pink colored invisible blocking 10-C5 object to prevent units from walking inside the rock model(s)
  • Surface texture types
    • surface 1 is normally light-colored green grass with random flower and weed texture patterns.
    • surface 2 is normally dark-colored green grass with no flower and weed texture patterns.
    • surface 3 is normally brown dirt or tan sand with random pebble and weed texture patterns.
    • surface 4 is normally composed of gray cobblestones, bricks, interlocking stone-tile and rock-gravel texture patterns
    • surface texture 5 is normally undefined and is rarely used on maps.
  • Surface texture uses:
    • surface textures vary greatly between tilesets but in general:
      • surface textures 1 and 2 are used as the primary surface type for meadows, mountains, plains, hills and valleys
      • surface textures 3 and 4 are used for roads, trails, as ocean and lake shorelines and at player starting locations
      • surface texture 5 is normally undefined and is rarely used on maps.

General map design tips

Map making is tedious and boring so don't expect to knock out a map in an hour. Work on a map a few times a week with the ultimate goal of having a completed map ready after 15 days.

  • Is there enough room for building expansion at each of the starting locations?
    • The ultra AI typically constructs at least 12 buildings around the starting point which may lead to unit movement congestion.
  • Resource node location placement?
    • Ensure AI units do not become stuck between buildings and nodes while harvesting in large groups.
    • Placing blocking objects next to resources nodes may lead to unit stacking
  • AI Pathfinding on long routes?
    • Can the AI find the hostile base or group of hostiles? or does it get stuck on a path in a forest or around a lake or river?
  • Is the pathing at least 3 tiles (cells) wide at chokepoints?
    • Entry and exit trails and roads near the player starting points tend to be narrow to accommodate defensive oriented gamers.
  • Trails and roads?
    • Do roads and trails follow the natural geography of the map?
    • Do trails lead to resources or connect to other trails and roads? Please, no dead-end roads and trails.
  • Swamps and flooded regions
    • Proper height settings will trigger water splash animations and particles. This effect is quite pleasing, use it wisely.
  • Topography
    • Roads should be a couple units lower than the rest of the map, and only two units above the water, so that the river heights will look natural at road/water crossing points.
    • Maps with little change in elevation are uninteresting and require increased object placement to balance the flat, visually unappealing, terrain.
  • Game world visual appeal?
    • No one enjoys running around in a barren game world - place lots of objects on the map
    • Fifteen statues or nine stones in one location makes no sense and looks bad.
    • Does the map look good at various locations and from different viewing perspectives?
    • Do placed objects enhance the organic feel of the map?
    • Do the hills, valley's, mountains appear natural?
    • Do Lakes connect with rivers?
    • Apply dirt or sand shorelines around bodies of water
    • Roads look better if they are trimmed/bordered by dirt or sand shoulders.

Image reference (incomplete)

http://images2.wikia.nocookie.net/glest/images/2/25/Th_samplemap.jpg

map editor basic elements

http://images3.wikia.nocookie.net/glest/images/f/f9/Th_samplemapGAE-1.jpg

game view of the map editor basic elements

Design tricks and glest AI pathfinder limitations (incomplete)

visual enhancements while conforming to the AI pathfinder rules

http://images1.wikia.nocookie.net/glest/images/1/12/Th_definedparameters.jpg

  • Draw diagonal perimeter lines on a map using the pink colored invisible walkable(false)-- blocking object 10-C5
    • Create the map world within the predefined perimeter boundaries.


http://images3.wikia.nocookie.net/glest/images/4/45/Map_guide_elements.jpg

  • Now place objects outside the perimeter of the ground unit (walkable) playfield - ground units cannot travel in these areas. This technique enhances the visual appearance of the game world.
    • Yellow highlighted areas are the walkable(false) portion of the map.note the pink blocking C5 pixel perimeter surrounding the walkable(false) map area
    • Blue lines are the original parameter requirements.
    • Red square is where the AI unit pathfinder fails. The map breaks the perimeter rule.
    • Red lines indicate the path on which the AI wants to travel - but cannot - due to performance failures with the Glest AI pathfinder coding.


http://images1.wikia.nocookie.net/glest/images/b/b5/Guide_yellowcircle_pathing.jpg

Game view of the map editor image seen above walkable(false)-- blocking object portion of the map.

from callum: i want to go on map editor