Mapdev:set.lua: Difference between revisions

From Spring
Jump to navigationJump to search
created page
 
Gajop (talk | contribs)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
= set.lua Reference =
= set.lua Reference =
Download the map [https://github.com/jk3064/Map-Blueprint blueprint]
This file lists all the units, buildings and features that belong to the gaia team, their locations and orientation.


variables are organised as such:
==Source==
{{tag|name=VariableName|type=type|range=[valid range]|special=Required|default=value
The engine source code which reads this file from the map is viewable here:
|description=Description}}
* ???
== Example ==
Can be found in the [https://github.com/jk3064/Map-Blueprint/archive/master.zip map blueprint]


If you notice something is incorrect, fix it please!
= File Location =
==Source==
relative to the root directory of the map
The engine source code which reads this file from the map is viewable here: ???
: ./mapconfig/featureplacer/set.lua


= General Formatting =
= Formatting =
check [http://www.lua.org/docs.html Lua Documentation].
check [http://www.lua.org/docs.html Lua Documentation] for syntax etc.


= Data Types =
In this wiki page, variables are organised as such:
{{tag|name=VariableName|type=type|range=[valid range]|special=Required|default=value
|description=Description}}


; <span style="color:#00ff88">int</span> : An integer number. eg. 5
== Data Types ==
; <span style="color:#00ff88">string</span> : Text, or more precisely a string of alphanumeric characters. eg "string of characters"
{{DataTypes}}


= Sections =
= Sections =
== setcfg ==
== setcfg ==
<code><pre>
<pre>
----------------------------------------------------------
----------------------------------------------------------
-- AutoCreated by FeaturePlacer (by smoth)
-- AutoCreated by FeaturePlacer (by smoth)
Line 41: Line 45:
   },
   },
}
}
return setcfg</pre></code>
return setcfg</pre>


{{tag|name=name|type=string
{{tag|name=name|type=string
Line 55: Line 59:
|description=a number which specifies the rotation of the object}}
|description=a number which specifies the rotation of the object}}


[[Category:Mapdev]]
[[Category:Map Dev]]
[[Category:Development]]

Latest revision as of 04:33, 6 May 2020

set.lua Reference

This file lists all the units, buildings and features that belong to the gaia team, their locations and orientation.

Source

The engine source code which reads this file from the map is viewable here:

  • ???

Example

Can be found in the map blueprint

File Location

relative to the root directory of the map

./mapconfig/featureplacer/set.lua

Formatting

check Lua Documentation for syntax etc.

In this wiki page, variables are organised as such: type VariableName  default: value range: [valid range] Required

Description

Data Types

int
An integer number. eg. 5
float
A number with decimals. eg 1.023
bool
A value which can be true or false. eg true
string
Text, or more precisely a string of alphanumeric characters. eg "string of characters"
rgb
Three float components, representing red, green and blue components, ranged from 0.0 to 1.0. eg {0.0, 0.0, 0.0}
float3
Three float components, eg {0.0, 0.0, 0.0}
float4
Four float components, eg {0.0, 0.0, 0.0, 0.0}

Sections

setcfg

----------------------------------------------------------
-- AutoCreated by FeaturePlacer (by smoth)

local setcfg = {
   unitlist = {
   ...
   { name = 'name', x = 0 , z = 0 , rot = "0"},
   ...
   },
   buildinglist = {
   ...
   { name = 'name', x = 0 , z = 0 , rot = "0"},
   ...
   },
   objectlist = {
   ...
   { name = 'name', x = 0 , z = 0 , rot = "0"},
   ...
   },
}
return setcfg

string name  default: ? 

name of the unit, feature, or building owned by the gaia team

integer x  default: ? 

x position on the map

integer z  default: ? 

z position on the map

string rot  default: ? 

a number which specifies the rotation of the object