答复: Converting track XML in to something playable (.ac files, espec ially)
"YAO Wen" <[email protected]>
| Newsgroups | gmane.games.torcs.general |
|---|---|
| Message-ID | <[email protected]> |
I am not sure if you are saying about the failure about open the .ac file in the following code: Under project ”trackgen” ->“ac3d.cpp” ->function “FILE * Ac3dOpen(char *filename, int nbObjects)” ->”save_fd = fopen(filename, “at”); If I remembered correctly, it used to be “wa” here. I change it into “at” instead. And I delete all the old “.ac” files before I want to generate a new one. So maybe it is also possible to put “wt” here rather than “at”. I am using torcs under Windows 7, so I am not sure if it is the right answer for you, but at least it solve my problem, I used to fail to regenerate any existed track using trackgen.exe. Best Regards, YAO Wen 发件人: Arkady English [mailto:[email protected]] 发送时间: 2012年6月16日 1:30 收件人: [email protected] 主题: [Torcs-users] Converting track XML into something playable (.ac files, especially) Hi everyone. I'm trying to get to grips with procedurally generating tracks. 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. 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/ _______________________________________________ Torcs-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/torcs-users