Map Editor

From FA Forever Wiki
Revision as of 14:02, 30 March 2015 by Speed2 (talk | contribs) (First part, using tutorial from supcom wiki and adding new stuff)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Introduction

Editor splash.png

Welcome! This guide will take you step-by-step through the creation of a small 1v1 map entitled Summer Duel. Before you continue reading, please ensure you have the necessary tools: Map editing tools

If you’ve already taken a look at the Supreme Commander map editor, you’re probably a little confused. At first glance it doesn’t seem like there is a whole lot there. You’ve also probably noticed that there isn’t quite as much polish as Supreme Commander itself. This is because the tool was first built for internal use. Don’t let that get you down! This is the same editor that GPG uses at their studio. We are very lucky to have access to it. Everything you need to create rich maps like the ones that shipped with the game can be found in the editor, once you get used to it.

A word of caution: a good map takes many, many hours to complete. A lot more goes into maps than throwing up a heightmap and slapping down some textures. Doing those things is easy enough, but doing them in an interesting and gameplay promoting way is very difficult. If you have the patience, however, playing on a map you designed yourself can be a rewarding experience.

Create a new map

Go ahead and start the map editor. You will be greeted by a familiar splash screen. The editor integrates directly with the game engine, and it puts it to some pretty cool uses. The splash screen will disappear to a black window once loading is complete. If the window starts out maximized, double click on the top blue bar to resize it down. (When maximized, the editor simply stretches the image over the screen. This can confuse you when you try clicking around or zooming in and out, so it’s easiest to just use the default size.)

  • Size of the main window can be changed in this file: C:\Users\<USERNAME>\AppData\Local\Gas Powered Games\SupremeCommander\Editor.prefs
  • Edit height and width in Main to your values.
  • If your editor start everytime maximized, change maximized value from true to false
   Windows = {
       Main = {
           y = 5,
           x = 10,
           height = 800,
           maximized = false,
           width = 600

Under the File menu, select New map icon.PNG New. A dialog box will appear.

New map.png

The options are mostly self-explanatory, but just to be clear:

Map sizes
km Game Units
5x5 256x256
10x10 512x512
20x20 1024x1024
40x40 2048x2048
80x80 4096x4096
  • Name: The name of your map. The directory your map is saved to will be the same as this.
  • Description: A short description of your map. This is the same description you see when browsing the maps before hosting a game.
    • Both Name and Description can be changed later in Edit - Scenario... or in MAPNAME_scenario.lua file located in your map folder.
  • Use existing map: You can create a new map based off of another map. For instance, if you wanted to modify Sentry Point to remove the civilians, you could fill in the Map File field with the path to Sentry Point. This is effectively the same as opening a map and saving it with a different name.
  • Create new map: Starts a new, completely blank map. Selecting this will allow you to check and uncheck the Water field.
  • Width/Height: Size of the map in game units. A 5x5 km map is 256x256 game units wide.
  • Initial Elev.: How high the default terrain is. A good number is usually 64. Very low or very high initial elevations may cause problems later on when you are editing your heightmap.
  • Water: Enables or disables water.
  • Water Elev./Deep Elev./Abyss Elev.: The threshold values for rendering water. If the heightmap is below these values, the appropriate type of water will be rendered. It is important to keep these in mind if you are designing a map with water. (These values can be changed later in Water Layer - Properties icon.PNG Edit Water Properties)

Name your map whatever you would like. This guide will refer to it as Summer Duel, since we’re going to make a map similar to Winter Duel. You can leave the Description field blank if you’d like. Check the Create new map box. If you want to use water, keep the Water box checked; otherwise, uncheck it. Keep the map size at 256x256 and the initial elevation at 64. Click the Create button.

A new map will be created and displayed. Click the save button on the toolbar or go to File > Save. Saving your work is never a bad thing. You should do it as often as possible. The map editor is stable, but there are certain elements beyond your control. The last thing you want is for your power to flicker and erase three hours of hard work! Take a moment and get accustomed to the feel of the editor. Zooming works the same as in Supreme Commander. You can scroll with Middle Mouse Click + Drag and rotate with Alt + Middle Mouse Click + Drag. The current world coordinates of the mouse cursor are displayed in the lower right of the window.