Game Development Community

AO Resource Error for TGEA 1.8.1

by SqHd · in Torque Game Engine Advanced · 10/10/2009 (9:22 pm) · 2 replies

I've run into an error trying to get Ryan Mounts AO resource working in TGEA 1.8.1.
Original resource: www.garagegames.com/community/blog/view/15080/

Here's the error (in the scenelighting.cpp):

Error 1738 error C2143: syntax error : missing ';' before '->' c:Program FilesGarage GamesTGEA_1_8_1enginesourcelightingSystemcommonsceneLighting.cpp 687

And here's the line of code it references:
ResourceManager->getCrc(Con::getVariable("$Client::MissionFile"), currMissionCRC);

If anyone has a simple fix, that would be great. I'd love to have this working on interiors.

Thanks,
Kerry

#1
10/11/2009 (6:26 am)
All references to ResourceManager will have to be changed to gResourceManager.

(ResourceManager now refers to the new resource manager class and gResourceManager refers to the old (1.7x style) ResManager class)
#2
10/11/2009 (5:28 pm)
Thanks! I really appreciate it.
I love it when things are simple.

For anyone who wants to add this resource I posted the fix on page 3 of the comments:
www.garagegames.com/community/blogs/view/15080