Difference between revisions of "Manual:Config:Advanced"

From VsWiki
Jump to: navigation, search
(moved the config file example down to the example section where it should be)
(rearrange page contents to improve readability)
Line 7: Line 7:
 
----
 
----
  
=Advanced configuration=
+
=Configuration file structure=
 
+
The basic structure of the vegastrike.config file is as follows:
See the specific sections inside the config file:
 
* [[Manual:Config:Advanced:Bindings|Bindings]]
 
* [[Manual:Config:Advanced:Colors|Colors]]
 
* [[Manual:Config:Advanced:Variables|Variables]]
 
 
 
= Example =
 
The basic structure of the config file:
 
 
<pre>
 
<pre>
 
<vegaconfig>
 
<vegaconfig>
 
+
<!-- this line is a comment -->
<!-- comment
 
# line used by vssetup (inside a comment block)
 
-->
 
  
 
<bindings>
 
<bindings>
 
  <bind key="i" modifier="none" command="Screenshot" />
 
  <bind key="i" modifier="none" command="Screenshot" />
<!-- this line is a comment, the next is a disabled/commented bind config -->
 
<!-- <bind key="M" modifier="none" command="Cockpit::MapKey"/> -->
 
 
</bindings>
 
</bindings>
  
Line 32: Line 20:
 
  <section name="unit">
 
  <section name="unit">
 
   <color name="ship_ambient" r="0.3" g="0.3" b="0.3" a="1.0"/>
 
   <color name="ship_ambient" r="0.3" g="0.3" b="0.3" a="1.0"/>
  <color name="engine" r="1" g="1" b="1" a="1"/>
 
 
  </section>
 
  </section>
 
</colors>
 
</colors>
Line 45: Line 32:
 
</pre>
 
</pre>
  
 +
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:
 +
* [[Manual:Config:Advanced:Bindings|Bindings]]
 +
* [[Manual:Config:Advanced:Colors|Colors]]
 +
* [[Manual:Config:Advanced:Variables|Variables]]
  
 
= See also =
 
= See also =
 +
* Find a simple configuration variable listing at the [[CONFVAR]] page.
 +
  
 
----
 
----

Revision as of 20:32, 29 September 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 basic structure of the vegastrike.config file is 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