Porting RTS Kit 1.0 to TGE 1.4.2
by Taylor Hughes · in RTS Starter Kit · 09/12/2007 (10:40 am) · 1 replies
Hello, I'm trying to port the RTS Kit (version 1.0) to the main Torque engine (version 1.4.2).
I followed the directions found here:
http://www.garagegames.com/mg/forums/result.thread.php?qt=44135
But when I had finished, and compiled, it failed, saying that a identifier was not defined, and that part of the code was trying to access a protected class member. You can find the complete log here:
http://www.box.net/index.php?rm=box_download_shared_file&file_id=f_92300349&shared_name=ymoviz3gvi
I figured that I must have done something wrong, so I went through the directions again, but I still got the same errors. I then decided to fix the errors by hand, and see what that would do. So I defined the variable and made the class member public, and it compiled! But now I've a different problem: when I run the RTS demo, after I click 'Start Demo' or whatever it is, in the main menu, and the screen switches to the player setup screen, it suddenly starts acting jerky, and then a message box pops up, saying "dSprintf wrote to more memory than the specified buffer size - Stack Corruption Possible". What's causing this? How can I fix it? Why were there those two errors the first time, anyway?
Thanks for your help!
I followed the directions found here:
http://www.garagegames.com/mg/forums/result.thread.php?qt=44135
But when I had finished, and compiled, it failed, saying that a identifier was not defined, and that part of the code was trying to access a protected class member. You can find the complete log here:
http://www.box.net/index.php?rm=box_download_shared_file&file_id=f_92300349&shared_name=ymoviz3gvi
I figured that I must have done something wrong, so I went through the directions again, but I still got the same errors. I then decided to fix the errors by hand, and see what that would do. So I defined the variable and made the class member public, and it compiled! But now I've a different problem: when I run the RTS demo, after I click 'Start Demo' or whatever it is, in the main menu, and the screen switches to the player setup screen, it suddenly starts acting jerky, and then a message box pops up, saying "dSprintf wrote to more memory than the specified buffer size - Stack Corruption Possible". What's causing this? How can I fix it? Why were there those two errors the first time, anyway?
Thanks for your help!
Torque 3D Owner Novack
CyberianSoftware
rigidShape.cc
c:\torque\sdk\engine\game\rigidshape.cc(120) : error C2065: 'RigidShape_GenericShadowLevel' : undeclared identifier
c:\torque\sdk\engine\game\rigidshape.cc(121) : error C2065: 'RigidShape_NoShadowLevel' : undeclared identifier
c:\torque\sdk\engine\game\rigidshape.cc(558) : error C2248: 'Convex::mObject' : cannot access protected member declared in class 'Convex'
c:\torque\sdk\engine\collision\convex.h(166) : see declaration of 'Convex::mObject'
c:\torque\sdk\engine\collision\convex.h(139) : see declaration of 'Convex'
I think you have an #include line missing. Im not working with 1.4.2, so I cannot tell you for sure what goes there, but try adding
at the begining of rigidshape.cc.