<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.wiki.omnibussimulator.de/omsiwikineu/index.php?action=history&amp;feed=atom&amp;title=Configuration_File</id>
	<title>Configuration File - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://www.wiki.omnibussimulator.de/omsiwikineu/index.php?action=history&amp;feed=atom&amp;title=Configuration_File"/>
	<link rel="alternate" type="text/html" href="http://www.wiki.omnibussimulator.de/omsiwikineu/index.php?title=Configuration_File&amp;action=history"/>
	<updated>2026-06-19T10:28:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>http://www.wiki.omnibussimulator.de/omsiwikineu/index.php?title=Configuration_File&amp;diff=51&amp;oldid=prev</id>
		<title>Marcel Kuhnt: Translated from German version</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.omnibussimulator.de/omsiwikineu/index.php?title=Configuration_File&amp;diff=51&amp;oldid=prev"/>
		<updated>2011-11-16T17:56:43Z</updated>

		<summary type="html">&lt;p&gt;Translated from German version&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
== Definition ==&lt;br /&gt;
&lt;br /&gt;
Configuration Files (or shorter: config files) are all files which supply OMSI with external data and constants and which do not include executable code like the files of the [[script system|Scripts]]. They are plain text files and are following a special syntax developed for OMSI. There are lots of config files:&lt;br /&gt;
&lt;br /&gt;
* options.cfg, envir.cfg, gamectrl.cfg and keyboard.cfg for global OMSI parameters&lt;br /&gt;
&lt;br /&gt;
* global.cfg and all associated *.map files of the maps&lt;br /&gt;
&lt;br /&gt;
* *.sco-, *.sli-, *.bus-, *.ovh- and *.hum-files, which contain the general and physical data of scenery objects, splines, vehicles and humans&lt;br /&gt;
&lt;br /&gt;
* Model, sound, texture change, cabin and path files with the ending *.cfg, which contains further information about 3D objects&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
The syntax of config files follow a scheme which is quite simple but not very common. The basic rules is:&lt;br /&gt;
&lt;br /&gt;
'''OMSI reads only lines which are following a key word!'''&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
In the following examples, we imply that ''[keyword]'' is a key word of this config file and that OMSI expects three values following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
This is a comment, because there is no key word leading.&lt;br /&gt;
So OMSI do not care about this lines until there is no key word.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the upper example, nothing will happen.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[keyword]&lt;br /&gt;
1&lt;br /&gt;
2&lt;br /&gt;
3&lt;br /&gt;
&lt;br /&gt;
This was a valid command which was introduced by [keyword].&lt;br /&gt;
After the three parameters were read, OMSI again searchs for key words and ignores everything else (like these two lines).&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we had a command which allot the values 1, 2 and 3 to the three parameters. '''In front of and behind the key word there must not stay any other character, even no tab or space!'''&lt;br /&gt;
&lt;br /&gt;
Wrong:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    [keyword]&lt;br /&gt;
1&lt;br /&gt;
2&lt;br /&gt;
3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Wrong:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[keyword] Comment&lt;br /&gt;
1&lt;br /&gt;
2&lt;br /&gt;
3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this knowledge, it is very simple to comment commands out - you just have to add at least one character:&lt;br /&gt;
&lt;br /&gt;
Not commented out:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[keyword]&lt;br /&gt;
1&lt;br /&gt;
2&lt;br /&gt;
3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Commented out:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    [keyword]&lt;br /&gt;
1&lt;br /&gt;
2&lt;br /&gt;
3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
... or ...&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[keyword]##&lt;br /&gt;
1&lt;br /&gt;
2&lt;br /&gt;
3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Attention!''' Not every command follows the convention &amp;quot;[...]&amp;quot;! Also these which are not bracked, follow the convention explained.&lt;br /&gt;
&lt;br /&gt;
Some commands / key words expect a quantity of parameters first, so that the count of read lines by OMSI depends of this number. One example of this behaviour is the command to include scripts in a scenery object or vehicle:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[script]&lt;br /&gt;
3&lt;br /&gt;
script\script1.sco&lt;br /&gt;
script\script2.sco&lt;br /&gt;
script\script3.sco&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, there are some key words which expect an ''[end]'' command like e.g. the command ''[description]'':&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[description]&lt;br /&gt;
Der MAN SD 200 ...&lt;br /&gt;
&lt;br /&gt;
-Technische Daten-&lt;br /&gt;
&lt;br /&gt;
Länge: 11.490 mm&lt;br /&gt;
Breite: 2500 mm&lt;br /&gt;
Höhe 4060 mm&lt;br /&gt;
&lt;br /&gt;
Motor: MAN D2566MUH, 141 kW bei 2100 U/min&lt;br /&gt;
Getriebe: Voith D851&lt;br /&gt;
Höchstgeschwindigkeit: 75 km/h&lt;br /&gt;
&lt;br /&gt;
Leergewicht: 10700 kg&lt;br /&gt;
Zulässiges Gesamtgewicht: 16.000 kg&lt;br /&gt;
&lt;br /&gt;
Sitzplätze Oberdeck: 53&lt;br /&gt;
Sitzplätze Unterdeck: 35&lt;br /&gt;
Stehplätze: 8&lt;br /&gt;
[end]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Developing Reference]]&lt;br /&gt;
&lt;br /&gt;
[[de:Configuration File]]&lt;/div&gt;</summary>
		<author><name>Marcel Kuhnt</name></author>
		
	</entry>
</feed>