Re: Workflow from XML to a track
Arkady English <[email protected]>
| Newsgroups | gmane.games.torcs.general |
|---|---|
| Message-ID | <CAH4xcLqzJtd-Y-RkJOT5XpzRtwhC68+LrJBha4m8cAgUN3WUgA@mail.gmail.com> |
I've just tried again with the latest build of my track generator. It's worse: It now says: trackgen -c road -n test_track ++++++++++++ Track ++++++++++++ name = test_track author = Arkady English - track creator filename = tracks/road/test_track/test_track.xml nseg = 0 version = 1 length = 0.000000 width = 14.000000 pits = 0 XSize = 0.000000 YSize = 0.000000 ZSize = 0.000000 ... and then crashes (trackgen.exe has stopped working... Windows is checking for a solution). The XML produced for this version is attached. It is worth noting this does produce a .ac file, but the .ac file is size 0. On 3 September 2012 15:52, Arkady English <[email protected]> wrote: > > Hi everyone. > > Back in July I posted that I was having difficulty converting XML to a track. > > I tried what was suggested, but realise I didn't give much information and focussed on the meat and bones of the project I was actually doing. I'd like to try to get trackgen working. I've attached a sample track XML and the console output for it. > > Console output: > ++++++++++++ Track ++++++++++++++ > name = test > author = Vicente Marti [node to self: I need to change this line] > filename = tracks/test/example_track/example_track.xml > nseg = 323 > version = 4 > length = 1265.484131 > width = 14.000000 > pits = 0 > XSize = 571.576416 > YSize = 217.999969 > ZSize = 0.000000 > Delta X = 0.000549 > Delta Y = -0.001114 > Delta Z = 0.000000 > Delta Ang = -0.000006 (-0.000318) > === Indices array size =19790 > === Vertex array size = 59370 > === Tex coord array size = 39580 > === Indices really used = 7454 > > > At this point I get the Windows "trackgen has stopped working, Windows is searching for a solution..." > > The XML is attached. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Torcs-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/torcs-users
test_track.xml
(text/xml, 8.5 KB)
<?xml version="1.0" encoding="UTF-8"?><!--
file : test.xml
auto generated : by Intelligent track creator
version : v 0.1
copyright : (C) 2012 Arkady English
--><!DOCTYPE params SYSTEM "../../../src/libs/tgf/params.dtd" [
<!-- general definitions for tracks -->
<!ENTITY default-surfaces SYSTEM "../../../data/tracks/surfaces.xml">
]>
<params name="test" type="param" mode="mw">
<section name="Surfaces">&default-surfaces;</section>
<section name="Header">
<attstr name="name" val="test_track" />
<attstr name="category" val="road" />
<attnum name="version" val="1" />
<attstr name="author" val="Arkady English - track creator" />
<attstr name="description" val="Test track" />
</section>
<section name="Graphic">
<attstr name="3d description" val="test.ac" />
<section name="Terrain Generation">
<attnum name="track step" unit="m" val="20" />
<attnum name="border margin" unit="m" val="50" />
<attnum name="border step" unit="m" val="30" />
<attnum name="border height" unit="m" val="15" />
<attstr name="orientation" val="clockwise" />
</section>
</section>
<section name="Main Track">
<attnum name="width" unit="m" val="14.0" />
<attnum name="profil steps length" unit="m" val="4.0" />
<attstr name="surface" val="asphalt2-lines" />
<!--Left part of track-->
<section name="Left Side">
<attnum name="start width" unit="m" val="4.0" />
<attnum name="end width" unit="m" val="4.0" />
<attstr name="surface" val="grass" />
</section>
<section name="Left Border">
<attnum name="width" unit="m" val="0.5" />
<attnum name="height" unit="m" val="0.05" />
<attstr name="surface" val="curb-5cm-r" />
<attstr name="style" val="plan" />
</section>
<section name="Left Barrier">
<attnum name="width" unit="m" val="0.1" />
<attnum name="height" unit="m" val="1.0" />
<attstr name="surface" val="barrier" />
<attstr name="style" val="curb" />
</section>
<!--End of left part-->
<!--Right part of track-->
<section name="Right Side">
<attnum name="start width" unit="m" val="4.0" />
<attnum name="end width" unit="m" val="4.0" />
<attstr name="surface" val="grass" />
</section>
<section name="Right Border">
<attnum name="width" unit="m" val="0.5" />
<attnum name="height" unit="m" val="0.05" />
<attstr name="surface" val="curb-5cm-r" />
<attstr name="style" val="plan" />
</section>
<section name="Right Barrier">
<attnum name="width" unit="m" val="0.1" />
<attnum name="height" unit="m" val="1.0" />
<attstr name="surface" val="barrier" />
<attstr name="style" val="curb" />
</section>
<!--End of right part-->
<section name="Pits">
<attstr name="side" val="right" />
<attstr name="entry" val="" />
<attstr name="start" val="" />
<attstr name="end" val="" />
<attstr name="exit" val="" />
<attnum name="length" unit="m" val="0.0" />
<attnum name="width" unit="m" val="0.0" />
</section>
<section name="Track Segments">
<!--
Segment 0
-->
<section name="segment0">
<attstr name="type" val="rgt" />
<attnum name="arc" unit="deg" val="149.8" />
<attnum name="radius" unit="m" val="41.4227" />
<attnum name="z start left" unit="m" val="0" />
<attnum name="z end left" unit="m" val="0" />
<attnum name="z start right" unit="m" val="0" />
<attnum name="z end right" unit="m" val="0" />
<attstr name="surface" val="asphalt2-lines" />
<!--Left side-->
<section name="Left Border">
<attnum name="start width" unit="m" val="13" />
<attnum name="end width" unit="m" val="13" />
<attstr name="surface" val="curb-5cm-r" />
<attstr name="style" val="curb" />
</section>
<!--Right side-->
<section name="Right Border">
<attnum name="start width" unit="m" val="13" />
<attnum name="end width" unit="m" val="13" />
<attstr name="surface" val="curb-5cm-r" />
<attstr name="style" val="curb" />
</section>
<!--End of segment-->
</section>
<!--
Segment 1
-->
<section name="segment1">
<attstr name="type" val="str" />
<attnum name="lg" unit="m" val="307.04" />
<attnum name="z start left" unit="m" val="0" />
<attnum name="z end left" unit="m" val="0" />
<attnum name="z start right" unit="m" val="0" />
<attnum name="z end right" unit="m" val="0" />
<attstr name="surface" val="asphalt2-lines" />
<!--Left side-->
<section name="Left Border">
<attnum name="start width" unit="m" val="13" />
<attnum name="end width" unit="m" val="13" />
<attstr name="surface" val="curb-5cm-r" />
<attstr name="style" val="curb" />
</section>
<!--Right side-->
<section name="Right Border">
<attnum name="start width" unit="m" val="13" />
<attnum name="end width" unit="m" val="13" />
<attstr name="surface" val="curb-5cm-r" />
<attstr name="style" val="curb" />
</section>
<!--End of segment-->
</section>
<!--
Segment 2
-->
<section name="segment2">
<attstr name="type" val="rgt" />
<attnum name="arc" unit="deg" val="47.8762" />
<attnum name="radius" unit="m" val="345.816" />
<attnum name="z start left" unit="m" val="0" />
<attnum name="z end left" unit="m" val="0" />
<attnum name="z start right" unit="m" val="0" />
<attnum name="z end right" unit="m" val="0" />
<attstr name="surface" val="asphalt2-lines" />
<!--Left side-->
<section name="Left Border">
<attnum name="start width" unit="m" val="13" />
<attnum name="end width" unit="m" val="13" />
<attstr name="surface" val="curb-5cm-r" />
<attstr name="style" val="curb" />
</section>
<!--Right side-->
<section name="Right Border">
<attnum name="start width" unit="m" val="13" />
<attnum name="end width" unit="m" val="13" />
<attstr name="surface" val="curb-5cm-r" />
<attstr name="style" val="curb" />
</section>
<!--End of segment-->
</section>
<!--
Segment 3
-->
<section name="segment3">
<attstr name="type" val="str" />
<attnum name="lg" unit="m" val="609.451" />
<attnum name="z start left" unit="m" val="0" />
<attnum name="z end left" unit="m" val="0" />
<attnum name="z start right" unit="m" val="0" />
<attnum name="z end right" unit="m" val="0" />
<attstr name="surface" val="asphalt2-lines" />
<!--Left side-->
<section name="Left Border">
<attnum name="start width" unit="m" val="13" />
<attnum name="end width" unit="m" val="13" />
<attstr name="surface" val="curb-5cm-r" />
<attstr name="style" val="curb" />
</section>
<!--Right side-->
<section name="Right Border">
<attnum name="start width" unit="m" val="13" />
<attnum name="end width" unit="m" val="13" />
<attstr name="surface" val="curb-5cm-r" />
<attstr name="style" val="curb" />
</section>
<!--End of segment-->
</section>
<!--
Segment 4
-->
<section name="segment4">
<attstr name="type" val="rgt" />
<attnum name="arc" unit="deg" val="162.324" />
<attnum name="radius" unit="m" val="39.5452" />
<attnum name="z start left" unit="m" val="0" />
<attnum name="z end left" unit="m" val="0" />
<attnum name="z start right" unit="m" val="0" />
<attnum name="z end right" unit="m" val="0" />
<attstr name="surface" val="asphalt2-lines" />
<!--Left side-->
<section name="Left Border">
<attnum name="start width" unit="m" val="13" />
<attnum name="end width" unit="m" val="13" />
<attstr name="surface" val="curb-5cm-r" />
<attstr name="style" val="curb" />
</section>
<!--Right side-->
<section name="Right Border">
<attnum name="start width" unit="m" val="13" />
<attnum name="end width" unit="m" val="13" />
<attstr name="surface" val="curb-5cm-r" />
<attstr name="style" val="curb" />
</section>
<!--End of segment-->
</section>
<!--
Segment 5
-->
<section name="segment5">
<attstr name="type" val="str" />
<attnum name="lg" unit="m" val="1092.16" />
<attnum name="z start left" unit="m" val="0" />
<attnum name="z end left" unit="m" val="0" />
<attnum name="z start right" unit="m" val="0" />
<attnum name="z end right" unit="m" val="0" />
<attstr name="surface" val="asphalt2-lines" />
<!--Left side-->
<section name="Left Border">
<attnum name="start width" unit="m" val="13" />
<attnum name="end width" unit="m" val="13" />
<attstr name="surface" val="curb-5cm-r" />
<attstr name="style" val="curb" />
</section>
<!--Right side-->
<section name="Right Border">
<attnum name="start width" unit="m" val="13" />
<attnum name="end width" unit="m" val="13" />
<attstr name="surface" val="curb-5cm-r" />
<attstr name="style" val="curb" />
</section>
<!--End of segment-->
</section>
<!--End of track-->
</section>
</section>
</params>