Page 1 of 1

Getting access to start locations?

Posted: 09 Mar 2007, 04:19
by QMan
Anyone know if there is there any way to access the start locations on the map or even the number of players in the game?

-QMan

Posted: 09 Mar 2007, 12:04
by AF
Use the TdfParser class to parse script.txt. For exact start psoitions you parse the map data file.

See OTAI and NTai source code.

Posted: 09 Mar 2007, 22:45
by QMan
Cool, thanks!

-QMan

Posted: 09 Mar 2007, 23:31
by QMan
I found the CSunParser class in KAI & OTAI, who wrote that piece of code?

-QMan

Posted: 10 Mar 2007, 22:18
by AF
SJ wrote it for spring, then veylon ported it voer to AIs, then tobi and jelmer tore it out and replaced it with TdfParser which is much better, then I ported TdfParser.

You'll find TdfParser in NTai and OTAI 1.14, CSunParser has a bgu in it that requires it to use kludges sucha s exception handling and generally allows much looser error prone TdfSyntax that TdfParser without giving any indication of an error or where it happened.

Posted: 10 Mar 2007, 22:33
by Tobi
Andreas Pokorny tore it out, not jc or me.

Posted: 10 Mar 2007, 23:53
by AF
easy mistake to make