Re: Converting track XML into something playable (.ac files, especially)

kilo <[email protected]>
Newsgroups gmane.games.torcs.general
Message-ID <CACKpvYva6P7tepWGyp0LYwVLLX0d6VWEy+_6kZ8YExczKRXomQ@mail.gmail.com>
Hi Arkady,

maybe you don't have write permission for the directory where trackgen
is attempting to put the completed .ac file.

kilo
http://three.sentenc.es


On 20 June 2012 10:09, Bernhard Wymann <[email protected]> wrote:
> Hi Arkady
>
>> I'm trying to get to grips with procedurally generating tracks.
>
> Cool, interesting, did you read the thesis of those guys (have a look
> into "about"):
> http://trackgen.pierlucalanzi.net/
>
>> I can output xml, but I can't find out how to turn this xml into a
>> usable track. Trackgen seems to do part of the job, but I get message
>> saying it failed to open the .ac file.
>
> Maybe you refer to another ac file in the xml (e.g. the optional
> relief?), no idea, what is the console output if you run it from console?
>
> If you compiled from source with Visual Studio newer than 6.0, there is
> an issue with wrong fopen parameters, which cause an exception. If you
> run it under Posix like systems or the binary distribution (which is
> still built with vc 6.0) then trackgen should work with a correct xml file.
>
> Use trackgen -h for help:
> Usage: trackgen -c category -n name [-a] [-m] [-s] [-S] [-E <n> [-H <nb>]]
>        -c category    : track category (road, oval, dirt...)
>        -n name        : track name
>        -b             : draw bump track
>        -B             : Don't use terrain border (relief supplied int
> clockwise, ext CC)
>        -a             : draw all (default is track only)
>        -z             : Just calculate track parameters and exit
>        -s             : split the track and the terrain
>        -S             : split all
>        -E <n>         : save elevation file n
>                          0: all elevatation files
>                          1: elevation file of terrain + track
>                          2: elevation file of terrain with track white
>                          3: track only
>                          4: track elevations with height steps
>        -H <nb>        : nb of height steps for 4th elevation file [30]
>        -L libDir      : Library directory
>
> And maybe this helps:
> usuarios.multimania.es/f1torcs/
> and
> http://torcs.cvs.sourceforge.net/viewvc/torcs/torcs/torcs/doc/tutorials/track/index.html?revision=1.2&pathrev=r1-3-1
>
> If this does not help, please post the console output of trackgen, maybe
> this gives a hint. If there isn't anything interesting you could as well
> build a debug version of trackgen and have a look with the debugger why
> it fails or post the track xml, then I could have a look when I find the
> time.
>
> Do not forget to show us the result then;-)
>
> Best regards
>
> Bernhard
>
>
>>
>> How do I create the .ac file from my xml file?
>>
>>
>> Thanks in advance,
>>
>>
>> Arkady.
>>

------------------------------------------------------------------------------
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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.