SM3 FAQ: Difference between revisions
No edit summary |
|||
| Line 11: | Line 11: | ||
== "Map Size (x) should be equal to GameAreaW and GameAreaH"? == | == "Map Size (x) should be equal to GameAreaW and GameAreaH"? == | ||
For the map to load you need to add these two variables to your .sm3: | For the map to load you need to add these two variables to your .sm3: | ||
GameAreaW=xxx; | <br> | ||
GameAreaH=xxx; | GameAreaW=xxx;<br> | ||
GameAreaH=xxx;<br> | |||
The map size(note, not the heightmap size which is map+1 pixel) width/height goes here. | The map size(note, not the heightmap size which is map+1 pixel) width/height goes here. | ||
== How do I use external textures? == | == How do I use external textures? == | ||
Revision as of 09:11, 25 July 2006
Frequently Asked Questions on SM3
What is DevIL
DevIL is the Image Loading library that spring uses. http://openil.sf.net/
DevIL supports loading of bmp, dds, gif, jpg, png, pcx, psd, psp, tga, raw, pal, tif, pal, sgi, hdr among others.
"Map Size (x) should be equal to GameAreaW and GameAreaH"?
For the map to load you need to add these two variables to your .sm3:
GameAreaW=xxx;
GameAreaH=xxx;
The map size(note, not the heightmap size which is map+1 pixel) width/height goes here.
How do I use external textures?
Create a modinfo.tdf textfile in your mapname.sdd. It should contain:
[MOD]
{
Name=mapname;
Description=your description here;
ModType=0;
NumDependencies=1;
Depend0=texturefilename.sd7;
}
This will tell Spring to look in the directory where your map is located(eg. \maps\) for the textures you have specified in the SM3. Example:
[Rock]
{
TileSize=60;
File=textures/rock/rock.jpg;
Bumpmap=textures/rock/rock_normal.jpg;
}
Which would tell Spring that your texture is at texturefilename.sd7/textures/rock/rock.jpg.