Difference between revisions of "Manual:Config:Advanced"

From VsWiki
Jump to: navigation, search
(Advanced configuration: added colors section to match config file)
(Configuration file structure: Mention XML)
 
(4 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
}}
 
}}
 
----
 
----
{{Fixme}} ''Add general description of the config file syntax+structure''
 
  
=Advanced configuration=
+
=Configuration file structure=
 +
The VegaStrike configuration file <code>vegastrike.config</code> is in an XML style as follows:
 +
<pre>
 +
<vegaconfig>
 +
<!-- this line is a comment -->
  
See the specific sections inside the config file:
+
<bindings>
 +
<bind key="i" modifier="none" command="Screenshot" />
 +
</bindings>
 +
 
 +
<colors>
 +
<section name="unit">
 +
  <color name="ship_ambient" r="0.3" g="0.3" b="0.3" a="1.0"/>
 +
</section>
 +
</colors>
 +
 
 +
<variables>
 +
<section name="data">
 +
  <var name="usingtemplates" value="false"/>
 +
</section>
 +
</variables>
 +
 
 +
</vegaconfig>
 +
</pre>
 +
 
 +
As you can see, the configuration is separated into 3 parts: <code>bindings</code>, <code>colors</code>, and <code>variables</code>. The <code>colors</code> and <code>variables</code> parts are each divided into sections. Learn more from the following pages:
 
* [[Manual:Config:Advanced:Bindings|Bindings]]
 
* [[Manual:Config:Advanced:Bindings|Bindings]]
 
* [[Manual:Config:Advanced:Colors|Colors]]
 
* [[Manual:Config:Advanced:Colors|Colors]]
 
* [[Manual:Config:Advanced:Variables|Variables]]
 
* [[Manual:Config:Advanced:Variables|Variables]]
  
= Example =
+
= See also =
{{Fixme}} ''Insert a very short example code showing the layout of a complete config file.''
+
* Find a simple configuration variable listing at the [[CONFVAR]] page.
  
= See also =
 
  
 
----
 
----

Latest revision as of 19:08, 2 October 2010

View this site in other languages:   DeutschEnglishFrançaisEspañolPolskiItalianoNederlandsРуccкий简体中文


arrow_left.png Config arrow_up.png Config Config:Advanced:Bindings arrow_right.png

Configuration file structure

The VegaStrike configuration file vegastrike.config is in an XML style as follows:

<vegaconfig>
<!-- this line is a comment -->

<bindings>
 <bind key="i" modifier="none" command="Screenshot" />
</bindings>

<colors>
 <section name="unit">
  <color name="ship_ambient" r="0.3" g="0.3" b="0.3" a="1.0"/>
 </section>
</colors>

<variables>
 <section name="data">
  <var name="usingtemplates" value="false"/>
 </section>
</variables>

</vegaconfig>

As you can see, the configuration is separated into 3 parts: bindings, colors, and variables. The colors and variables parts are each divided into sections. Learn more from the following pages:

See also

  • Find a simple configuration variable listing at the CONFVAR page.



arrow_left.png Config arrow_up.png Config Config:Advanced:Bindings arrow_right.png