Game Development Community

TorqueMotion in TGEA 1.7.0

by Andrew Edmonds · in Torque Game Engine Advanced · 04/24/2008 (8:21 am) · 2 replies

Hi all,

I'm porting TorqueMotion over to 1.7.0 and all is going fine up until the 'climb' section. This was working fine in 1.0.3 but now I am getting an error from the line

Con::executef(mDataBlock, 3, "onStartClimb", scriptThis(), Con::getIntArg(rInfo.object->getId()));

The output says:

1>c:\torque\tgea_1_7_0\engine\source\t3d\player.cpp(3198) : error C2665: 'Con::executef' : none of the 20 overloads could convert all the argument types
1>        c:\torque\tgea_1_7_0\engine\source\console\console.h(533): could be 'const char *Con::executef(const char *,const char *,const char *,const char *,const char *)'
1>        c:\torque\tgea_1_7_0\engine\source\console\console.h(561): or       'const char *Con::executef(SimObject *,const char *,const char *,const char *,const char *)'
1>        while trying to match the argument list '(PlayerData *, int, const char [13], const char *, char *)'

The code seems to be based on this resource.

Any thoughts?

Thanks....

About the author

Formed in 2005, EiKON Games is an indie games development project based in the UK working on the tactical first person shooter "Epoch: Incursion". See the Join Us or Contact Us pages at http://www.eikon-games.com/


#1
04/24/2008 (8:45 am)
Remove the number 3 because in 1.7.0 it now automaticly detects the number of arguments.
#2
04/24/2008 (9:20 am)
Ah - that's it! Thanks Thomas.