https://www.sjbaker.org/wiki/index.php?title=GameTools_ultimate.xml&feed=atom&action=historyGameTools ultimate.xml - Revision history2024-03-29T15:28:36ZRevision history for this page on the wikiMediaWiki 1.24.4https://www.sjbaker.org/wiki/index.php?title=GameTools_ultimate.xml&diff=73&oldid=prevSteveBaker: New page: The file 'ultimate.xml' is in the 'data' directory. It is the first file read by the game on startup and everything else comes from that. == Example == Here is an example of an 'ultimate...2007-10-24T03:43:33Z<p>New page: The file 'ultimate.xml' is in the 'data' directory. It is the first file read by the game on startup and everything else comes from that. == Example == Here is an example of an 'ultimate...</p>
<p><b>New page</b></p><div>The file 'ultimate.xml' is in the 'data' directory. It is the first file read by the game on startup and everything else comes from that.<br />
<br />
== Example ==<br />
<br />
Here is an example of an 'ultimate.xml' file:<br />
<br />
<?xml version="1.0" ?><br />
<game><br />
<main><br />
<camera id="0" name="Camera" fullscreen="true" /><br />
<model name="Hero" src="models/characters/hero.plb" /><br />
<model name="Jeep" src="models/vehicles/jeep.plb"<br />
alt="models/vehicles/jeep_alternat.plb" /><br />
<model name="Tank" src="models/vehicles/tank.ac" /><br />
</main><br />
<level name="The Training Level" src="data/training.xml" /><br />
<level name="The Volcano Level" src="data/volcano.xml" /><br />
<level name="The Arctic Level" src="data/arctic.xml" /><br />
</game><br />
<br />
== Structure ==<br />
<br />
Since this is an XML 'game' file, the first two lines must always be:<br />
<br />
<?xml version="1.0" ?><br />
<game><br />
<br />
...and the last line is always:<br />
<br />
</game><br />
<br />
Between the <game> tags must be a section:<br />
<br />
<main><br />
...<br />
</main><br />
<br />
This section includes definitions for things that could be present anywhere the game - cameras, characters, moving vehicles, etc.<br />
<br />
Then there are a number of sections that say:<br />
<br />
<level name="''XXX''" src="''YYY''" /><br />
<br />
== <level> sections. ==<br />
<br />
There is one '''<level...>''' section for each level of the game. (''XXX'' is the human-readable name of the level, ''YYY'' is the name of an XML level file that describes it. Currently, all levels can be reached from the startup screen - but eventually you'll be able to disable levels so they don't show up there until they are unlocked somehow.<br />
<br />
== The <main> section. ==<br />
<br />
At a minimum, this must contain at least one camera and at least one model.<br />
<br />
A camera record looks like this:<br />
<br />
<camera id="0" name="''XXX''" fullscreen="true" /><br />
<br />
''XXX'' is the name of the camera which must match the Java plugin that controls it - this is usually just "Camera". Currently there is just one camera (hence: id="0") and it's always set to be fullscreen="true".<br />
<br />
A model record looks like this:<br />
<br />
<model name="''XXX''" src="''YYY''" alt="''ZZZ''" /><br />
<br />
''XXX'' is the human-readable name of the model - and also the root name for [[LoL Java plugin API|''plugins/XXX.java'']] and [[gameTools physics.xml|''physics/XXX.xml'']] which contain the behavior and physics of the model. ''YYY'' and ''ZZZ'' are model files in any format that PLIB knows how to load. The 'alt' (alternate) model is currently unused. (It was intended to be a greatly simplified model to be used for collision detection purposes - but this has been superceded by the physics file),<br />
<br />
{{gameTools}}<br />
{{LoL}}</div>SteveBaker