TrackXMLexplained

Speed Dreams Documentation Wiki

XML file of a track explained WIP

All properties in detail of XML nodes can be found in src/interfaces/track.h

TRK_SECT_PITS

    <!-- PITS -->
    <section name="Pits">
      <attstr name="type" val="track side"/>
      <attstr name="side" val="left"/>
      <attstr name="entry" val="pit entry"/>
      <attstr name="start" val="last seg"/>
      <attstr name="end" val="start lane"/>
      <attstr name="exit" val="pit exit"/>
      <attnum name="length" unit="m" val="15"/>
      <attnum name="width" unit="m" val="5"/>
      <attnum name="speed limit" unit="m" val="25"/>
    </section>  <!-- PITS -->

Notes on speed limit :

  • unit ="m" meters per second (default if no unit specified)
  • unit ="mph" miles per hour
  • unit ="kph" kilometers per hour

Pit speed limit can also be specified in the race xml file (ie quickrace.xml) which will take priority over the limit specified in the track xml file.

<attnum name="pit speed limit" unit="kph" val="50"/>


Related

Wiki: Home

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.