Trouble porting Torquemotions to TGEA
by Michael Branin · in Torque Game Engine Advanced · 06/20/2008 (6:25 am) · 7 replies
Ok, I am porting Torque motions over to TGEA and I am at the part where I am adding in climable objects. The docs say to do this
6. Then open the file "engine\game\main.cc" with your C++ ide and go to about line 298 under
engine\game\main.cc
Add
After applying, the code should look like this.
My problem is that TGEA no longer has this code listed under
"engine\game\main.cc"
Nor is it in "Stronghold\source\main.cpp
6. Then open the file "engine\game\main.cc" with your C++ ide and go to about line 298 under
engine\game\main.cc
bool initGame(int argc, const char **argv
}
.
.
. Con::setIntVariable("$TypeMasks::DamagableItem ObjectType", DamagableItemObjectType);
Con::setIntVariable("$TypeMasks::InteriorMap ObjectType", InteriorMapObjectType);
.
.Add
Con::setIntVariable("$TypeMasks::ClimableItemObject Type", ClimableItemObjectType);After applying, the code should look like this.
bool initGame(int argc, const char **argv
}
.
.
. Con::setIntVariable("$TypeMasks::DamagableItem ObjectType", DamagableItemObjectType);
Con::setIntVariable("$TypeMasks::InteriorMap ObjectType", InteriorMapObjectType);
//TM : Basic Motion Pack Con::setIntVariable("$TypeMasks::ClimableItem ObjectType", ClimableItemObjectType);
#ifdef TORQUE_GATHER_METRICS
.
.My problem is that TGEA no longer has this code listed under
"engine\game\main.cc"
Nor is it in "Stronghold\source\main.cpp
#2
Aun.
06/20/2008 (6:40 am)
You should be able to located in "T3D\source Files\engine\T3D\gameFunctions.cpp" at line 479. Good luck.Aun.
#3
...Is there a trick to getting swimming working in TGEA? Up to 1.7.0 I haven't been able to get swimming working at all. I should probably post this in another thread but I'm hoping that you've still got an eye on this one!
Thanks,
Andy
EDIT: PS - Sorry to hijack your thread, Michael but I think your problem should be solved now!
06/20/2008 (6:44 am)
Ah - Aun.. Since you're lurking in here :o)...Is there a trick to getting swimming working in TGEA? Up to 1.7.0 I haven't been able to get swimming working at all. I should probably post this in another thread but I'm hoping that you've still got an eye on this one!
Thanks,
Andy
EDIT: PS - Sorry to hijack your thread, Michael but I think your problem should be solved now!
#4
06/20/2008 (8:04 am)
Ok quick question since I am obviously doing it wrong but how do I add code blocks in my post correctly?
#5
06/20/2008 (8:08 am)
Use [ code ] and [ /code ] (without the spaces obviously)
#6
06/20/2008 (9:05 am)
@Eikon Games: What is missing for the swimming code in TGEA is the water coverage calculation. There was a fix for this posted by Stefan "Beffy" Moses, but I don't have the exact link. Search his posts and you should find it.
#7
Thanks Mark
06/20/2008 (9:07 am)
Yeah I thought as much. I'd just started looking at it again this afternoon - I'll look for the post.Thanks Mark
Torque Owner Andrew Edmonds
EiKON Games
I'm about to implement TorqueMotion in 1.7.1 myself (I used to have in it 1.0.3 but have started afresh). I just did a quick search for the line above the addition:
Con::setIntVariable("$TypeMasks::DamagableItemObjectType", DamagableItemObjectType);and found it in T3D\gameFunctions.cpp so I'd add the additional line there. I haven't tried it myself yet (might get round to it this afternoon) but that would be my first guess.
Andy