Tank Pack and TGE 1.4
by Pat AfterMoon · in Torque Game Engine · 12/01/2005 (1:59 pm) · 69 replies
I would like to implement Tank Pack with TGE 1.4 but it seem more difficult than expected. A lot of things have changed since 1.3.
I follow the BraveTree guideline for integrating in "custom version of Torque" (TankPackReadMe.htm) bug I'm stucked at start with too much change in "consoleTypes.h".
Anyone working on same subject ?
I follow the BraveTree guideline for integrating in "custom version of Torque" (TankPackReadMe.htm) bug I'm stucked at start with too much change in "consoleTypes.h".
Anyone working on same subject ?
#42
08/29/2006 (11:28 pm)
Yea, I forgot to say that I'm using Visual Studio 2005.
#43
Everything has compiled fine, I can drop the tanks into my build, they are listed as mountable but my player doesn't mount them. I've gone through the player and tank scripts a bunch of times but I just can't figure it out. I compiled the code in a clean build and the player spawns as the vehicle as expected, but in my working build the tank doesn't seem mountable.
Here is the what I think is the problem, possibly or some relation to it. I'm using the player selection code from Gonzo T. Clown in this forum:
www.garagegames.com/mg/forums/result.thread.php?qt=15408
It works great, and it works with both the Bravetree Car Pack and the Warsparrow Pack, I just can't seem to get it to work with the Tank Pack. There are no console errors, nothing but when the player walks up to the tank it's just like walking into any other static shape. I'm at a loss as to what the problem is. all of the scripts look like they should work. Has anyone else had anything like this happen? Or if you have a clue on what I might have missed I'd love to hear from you.
Thanks,
Alan
12/29/2006 (3:39 pm)
Sorry to everyone for necroing this post, but I have a question regarding the Tank Pack and 1.4. Everything has compiled fine, I can drop the tanks into my build, they are listed as mountable but my player doesn't mount them. I've gone through the player and tank scripts a bunch of times but I just can't figure it out. I compiled the code in a clean build and the player spawns as the vehicle as expected, but in my working build the tank doesn't seem mountable.
Here is the what I think is the problem, possibly or some relation to it. I'm using the player selection code from Gonzo T. Clown in this forum:
www.garagegames.com/mg/forums/result.thread.php?qt=15408
It works great, and it works with both the Bravetree Car Pack and the Warsparrow Pack, I just can't seem to get it to work with the Tank Pack. There are no console errors, nothing but when the player walks up to the tank it's just like walking into any other static shape. I'm at a loss as to what the problem is. all of the scripts look like they should work. Has anyone else had anything like this happen? Or if you have a clue on what I might have missed I'd love to hear from you.
Thanks,
Alan
#44
www.garagegames.com/mg/forums/result.thread.php?qt=37000
But no luck. What's really throwing me is that in the clean build even without this modification the mount/unmount works fine. I know it just has to have *something* to with my player selection/team selection scripting modifications, but what exactly it is has eluded me. Oh, well back to it. Again, any ideas would be appreciated.
12/29/2006 (8:46 pm)
Ok, I thought I'd figured it out when I stumbled across this thread:www.garagegames.com/mg/forums/result.thread.php?qt=37000
But no luck. What's really throwing me is that in the clean build even without this modification the mount/unmount works fine. I know it just has to have *something* to with my player selection/team selection scripting modifications, but what exactly it is has eluded me. Oh, well back to it. Again, any ideas would be appreciated.
#45
01/19/2007 (11:36 pm)
Thanks very!!!
#46
02/03/2007 (3:45 am)
Using tge 1.5 and VS 2005. Added both simplepoly's, both tanks into the engine. Made all the above changes, got it to zero errors recompiled. Replaced all the scripts it had and put in the shapes. When I load missions it still freezes after it loads and won't go into a mission. Any ideas?
#47
02/03/2007 (5:22 am)
Check your console log if you haven't already. If you are spawning in as the tank it sounds like the tank instance isn't instantiating for some reason. remember to run with the console log use the -console flag when starting the engine.
#48
02/03/2007 (12:48 pm)
Exactly how did you add the engine files? Did you copy the files into the torque source engine/games directory? How about the additional step of adding them the VS project file through the GUI? If you missed the second part you would get the same errors afaik you might check vc7/Torque Demo.vcproj to see if there are entries for the tankshape.cc and tankshape.h files.
#49
Edit: everything works! Thanks for the help.
02/03/2007 (1:11 pm)
I figured out why I screwed up the engine compile. Edit: everything works! Thanks for the help.
#50
02/04/2007 (12:20 pm)
Ok i have been workingon this for a bit now, i finally got it towork in the Debug mode, but not the normal mode. I had a issue with the unmount, but it works now. I see everyone compiling correctly, i have gotmine to finally compile with no errors as well. so while in Debug, my console shows no errors, in normal mode, my FX and DB has the Unable to instantiate non-conobject class TankShape. So where is my compiling going wrong, if it works in debug. I did have the mgenerateShadow error, but i fixed that with the commenting out the other rendershadowline. I tried the Bool fix but it gave me more errors then before and wouldnt compile. HAs anyone tried compiling the tank pack with AFX pack? but for now im more concerned with getting my Debug which works to function in normal mode. Any ideas.
#51
02/04/2007 (12:28 pm)
Has anyone here have an idea how to get stickywheels or something similar to that to work? Trying to get tanks to drive on walls/ceiling.
#52
02/04/2007 (12:44 pm)
That would be intersting to see, i imagine you might have to either turn off gravity when collided with the object in question. Using the physical effect change code. but of course that would mean you have to code "climbable areas". I have seen other mention doing other effects using that code, like applying impulse and decrease the weight of the player temporarly.
#53
I still havent been able to get my Tank to work usingthe normal .exe only in debug
02/08/2007 (2:08 pm)
Anyluck with that Christian?I still havent been able to get my Tank to work usingthe normal .exe only in debug
#54
02/08/2007 (4:45 pm)
Not yet.
#55
02/09/2007 (5:29 am)
And got my tank to fully compile in normal mode. i had to clean the solution and clean the buildand then rebuild solution. then it worked. shrug. NExt tank bug to work on is the terrain falling, i tried the one suggested on the other forum. I had it fall through yesterday when i was just sliding down a steep hill
#56
02/10/2007 (4:34 pm)
Check out the Stupid Vehicle Tricks resource!
#57
02/10/2007 (5:47 pm)
It works great for cars, but tankshape is different. I haven't spent much time on it trying to figure out how to bring that for tanks, but if I do i'll post it.
#58
Followed things here and Here.
I have the remaining errors of:
Any thoughts?
05/19/2007 (3:15 pm)
Trying to port to TGEA 1.01Followed things here and Here.
I have the remaining errors of:
Quote:
...\engine\game\vehicles\tankshape.cc(235) : error C2065: 'TypeTankCameraDataPtr' : undeclared identifier
...\engine\game\vehicles\tankshape.cc(236) : error C2065: 'TypeTankFxDataPtr' : undeclared identifier
...\engine\game\vehicles\tankshape.cc(237) : error C2065: 'TypeTankMiscDataPtr' : undeclared identifier
...\engine\game\vehicles\tankshape.cc(775) : error C2371: 'TypeTankCameraDataPtr' : redefinition; different basic types
...\engine\game\vehicles\tankshape.cc(866) : error C2371: 'TypeTankFxDataPtr' : redefinition; different basic types
...\engine\game\vehicles\tankshape.cc(1161) : error C2371: 'TypeTankMiscDataPtr' : redefinition; different basic types
...\engine\game\vehicles\tankshape.cc(1280) : error C2065: 'mGenerateShadow' : undeclared identifier
...\engine\collision\simplepolylist.cc(235) : error C2065: 'mPlaneList' : undeclared identifier
...\engine\collision\simplepolylist.cc(235) : error C2228: left of '.setFileAssociation' must have class/struct/union
type is ''unknown-type''
Any thoughts?
#59
11/11/2007 (8:58 pm)
Will the 1.4 fix at the top work for version 1.5.2?
#60
11/11/2007 (9:22 pm)
Yes, it works fine
Torque Owner Grim Moroe
Quantum Space Studios
Tim: I did move it up in the public class just not to the correct spot. I am trying to learn but have a very long way to go.
Thank you both for your help.