Mapdev:Tutorial Simple: Difference between revisions

From Spring
Jump to navigationJump to search
m →What you will need: fixed tools link
m →Create Resource Map: filled out metal map section
Line 71: Line 71:
|}
|}


= Create Resource Map =
= Create Metal Map =
blah
<ol>
<li>Check the [[Mapdev:metal|metal]] page to get our image dimensions. In our case a 4x4 map yields an image resolution of 257x257 pixels
<li>Create a 257x257 greyscale image
<li>Paint full white spots a couple of pixels wide on the places where metal will appear in game.
<li>Save the image to your working directory, call it metal.png
</ol>
{| class="wikitable" width="100%"
|+ Example
| (picture of metal map) || (picture of resulting game terrain )
|-
! Example Metal Map !! Ingame Result
|}
 
= Create Mini Map =
= Create Mini Map =
blah blah
blah blah

Revision as of 00:58, 16 December 2012

Beginners Tutorial Stage 1

This beginners tutorial is aimed at getting you from nothing, to something simple, from which you can then extend by looking through the more detailed technical documentation.

What you will need

There are a multitude of other tools you can use to make maps, however for the purposes of this beginners tutorial, these are the only ones you will need. Check the tools section for more information.

Preparation

  1. Extract the mapcontainer.sdd folder from the blueprint archive into your working directory.
  2. Your directory structure should look like this:
    working directory
      |-mapcontainer.sdd/
        |-mapinfo.lua
        |-mapoptions.lua
        |-LuaGaia/
          |- ...
        |-mapconfig/
          |- ...
        |-maphelper/
          |- ...
        |-maps/
          |- ...
    
  3. Rename the mapcontainer.sdd folder to the name of your map, eg. mymap.sdd
  4. Edit the following fields in the mapinfo.lua file, ignore the rest for now.
    • name
    • shortname
    • description
    • author
    • version (just put like v1 or something in here)

Create Height map

For this tutorial we will be creating a 4x4 size map, which is relatively small.

  1. Check the height page to get our image dimensions. In our case a 4x4 map yields a image resolution of 257x257 pixels
  2. Create a 257x257 greyscale image in your image editor
  3. Draw the terrain.
  4. Save the image to your working directory, call it heightmap.png
  5. Edit the mapinfo.lua minHeight and maxHeight values as outlined in the height page.
  6. Since we are not dealing with water in this tutorial, set the minHeight to 10(0 is where water begins), and the maxHeight to 512
Tip
Black represents the lowest elevation on the map, white represents the highest, in between lies all the shades of grey. Hard edges in the image will be cliffs, and smooth gradients will be ramps
Example
(picture of greyscale height map) (picture of resulting game terrain )
Example Height Map Ingame Result

Create Texture Map

  1. Check the diffuse page to get our image dimensions. In our case a 4x4 map yields an image resolution of 2048x2048 pixels
  2. Create a 2048x2048 RGB image
  3. Paint your ground colour in such a way that it compliments the height of the terrain
  4. Save the image to your working directory, call it diffuse.png
Tip
It may be useful to use the heightmap.png image as a starting point, scaling it up to size, and then painting over the top
Example
(picture of diffuse map) (picture of resulting game terrain )
Example Diffuse Map Ingame Result

Create Metal Map

  1. Check the metal page to get our image dimensions. In our case a 4x4 map yields an image resolution of 257x257 pixels
  2. Create a 257x257 greyscale image
  3. Paint full white spots a couple of pixels wide on the places where metal will appear in game.
  4. Save the image to your working directory, call it metal.png
Example
(picture of metal map) (picture of resulting game terrain )
Example Metal Map Ingame Result

Create Mini Map

blah blah

Download example

Here is a link to the map we have shown in these instructions.

Finalizing

continue to this page to compile and archive your map for play

I want more

continue to stage two