Enetheru:smd: Difference between revisions

From Spring
Jump to navigationJump to search
m 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...
 
Flozi (talk | contribs)
m remove drd
 
(19 intermediate revisions by 3 users not shown)
Line 1: Line 1:
= Spring Map Definition (smd) Reference =
#REDIRECT [[Map_Making:SMD]]
= 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.
 
<code><pre>// Example (this is a comment)
[MAP]
{
  ...
  // this is a comment
  [subsection]
  {
      ...
  }
  ...
}</pre></code>
 
= Sections =
== MAP ==
<code><pre>[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]
  {
      ...
  }
}</pre></code>
 
== ATMOSPHERE ==
<code><pre>[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;
  }
  ...
}</pre></code>
 
== WATER ==
<code><pre>[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
  }
  ...
}</pre></code>
 
== LIGHT ==
<code><pre>[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;
  }
  ...
}</pre></code>
 
== TEAMx ==
<code><pre>[MAP]
{
  ...
  [TEAM0]
  {
      StartPosX=730;
      StartPosZ=821;
  }
  [TEAM1]
  {
      ...
  }
  [TEAMn]
  {
      ...
  }
  ...
}</pre></code>
 
== TERRAINTYPEx ==
<code><pre>[MAP]
{
  ...
  [TERRAINTYPE0]
  {
      name=default;
      hardness=1;
      tankmovespeed=1;
      kbotmovespeed=1;
      hovermovespeed=1;
      shipmovespeed=1;
  }
  [TERRAINTYPE1]
  {
      ...
  }
  [TERRAINTYPEn]
  {
      ...
  }
  ...
}</pre></code>
 
== WTAEVER ==
<code><pre>[MAP]
{
  ...
  [WHATEVER]
  {
      ...
  }
  ...
}</pre></code>

Latest revision as of 23:18, 13 July 2012

Redirect to: