Enetheru:smd

From Spring
Revision as of 06:37, 19 July 2010 by Enetheru (talk | contribs) (New page: = Spring Map Definition (smd) Reference = = General Formatting = * All lines must end in a ';' * Sections begin with a keyword wrapped in Square brackets, and are wrapped in Curly Brackets...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Spring Map Definition (smd) Reference

General Formatting

  • All lines must end in a ';'
  • Sections begin with a keyword wrapped in Square brackets, and are wrapped in Curly Brackets
  • Blank lines are allowed
  • Comments are preceded by // anything following a comment marker is ignored
  • Whitespace is ignored so you can tabulate your SMD to help the overall readability, and to show where sections begin and end.
// Example (this is a comment)
[MAP]
{
   ...
   // this is a comment
   [subsection]
   {
      ...
   }
   ...
}

Sections

MAP

[MAP]
{
   // properties
   Description = "mountainous whatever";
   DefaultOptions=1;
   TidalStrength = 20;
   Gravity = 130;
   MaxMetal = 0.03;
   ExtractorRadius = 400;
   MapHardness = 100;
   AutoShowMetal=1
   DetailTex=detailtex.bmp;
   voidwater=0;

   // subsections
   [SMF]
   {
      ...
   }
   [ATMOSPHERE]
   {
      ...
   }
   [WATER]
   {
      ...
   }
   [LIGHT]
   {
      ...
   }
   [TEAMX]
   {
      ...
   }
   [TERRAINTYPEX]
   {
      ...
   }
}

ATMOSPHERE

[MAP]
{
   ...
   [ATMOSPHERE]
   {
      FogColor=0.7 0.7 0.8;
      FogStart=0.48;
      CloudColor=0.9 0.9 0.9;
      SkyColor=0.1 0.15 0.7;
      SunColor=1.0 1.0 1.0;
      CloudDensity=0.25;
      MinWind=1;
      MaxWind=25;
      SkyBox=nebulus.dds;
   }
   ...
}

WATER

[MAP]
{
   ...
   [WATER]
   {
      WaterSurfaceColor=0.3 0.3 0.4;
      WaterBaseColor=0.4 0.6 0.8;
      WaterAbsorb=0.004 0.004 0.002;
      WaterMinColor=0.1 0.1 0.3;
      WaterPlaneColor= 0.1 0.1 0.3;
      WaterDamage=0;

      // Bump Mapped Settings
      WaterSurfaceAlpha = 0.55;
      WaterDiffuseColor = 0.55 0.4 0.3;
      WaterSpecularColor = 0.55 0.4 0.3;
      WaterSpecularPower = 2.0;
      WaterSpecularFactor = 0.3;
      WaterAmbientFactor = 1.3;
      WaterDiffuseFactor = 0.3;
      WaterFresnelMin = 0.3;
      WaterFresnelMax = 0.8;
      WaterFresnelPower = 4;
      WaterReflectionDistortion = 0.1;
      WaterBlurBase = 2;
      WaterBlurExponent = 2;
      WaterPerlinStartFreq = 8;
      WaterPerlinLacunarity = 3;
      WaterPerlinAmplitude= 0.9
   }
   ...
}

LIGHT

[MAP]
{
   ...
   [LIGHT]
   {
      SunDir=2 1 1;
      GroundAmbientColor=0.6 0.6 0.6;
      GroundSunColor=0.9 0.9 0.9;
      GroundShadowDensity=0.6;
      GroundSpecularColor=0 0 0;
      UnitAmbientColor=0.6 0.6 0.6;
      UnitSunColor=0.93 0.93 0.93;
      UnitShadowDensity=0.8;
      UnitSpecularColor=0 0 0;
   }
   ...
}

TEAMx

[MAP]
{
   ...
   [TEAM0]
   {
      StartPosX=730;
      StartPosZ=821;
   }
   [TEAM1]
   {
      ...
   }
   [TEAMn]
   {
       ...
   }
   ...
}

TERRAINTYPEx

[MAP]
{
   ...
   [TERRAINTYPE0]
   {
      name=default;
      hardness=1;
      tankmovespeed=1;
      kbotmovespeed=1;
      hovermovespeed=1;
      shipmovespeed=1;
   }
   [TERRAINTYPE1]
   {
      ...
   }
   [TERRAINTYPEn]
   {
      ...
   }
   ...
}

WTAEVER

[MAP]
{
   ...
   [WHATEVER]
   {
      ...
   }
   ...
}