Game Development Community

need help with a compiling error

by Kendall Davis · in Technical Issues · 09/06/2002 (8:05 pm) · 2 replies

Compiling...
game.cc
C:\Documents and Settings\kendall\Desktop\torque2\torque\engine\game\game.cc(235) : error C2039: 'dumpLoadedResources' : is not a member of 'ResManager'
c:\documents and settings\kendall\desktop\torque2\torque\engine\core\resmanager.h(245) : see declaration of 'ResManager'
Error executing cl.exe.

hi I am wondering if anyone can help me with this error I am trying to install a character select screen everything seems to go fine up to this point. the cod eline it is refering too looks like this
ResourceManager->dumpLoadedResources();

if i change resourcemanager to resmanager it gives me a error like this
Compiling...
game.cc
C:\Documents and Settings\kendall\Desktop\torque2\torque\engine\game\game.cc(235) : error C2143: syntax error : missing ';' before '->'
C:\Documents and Settings\kendall\Desktop\torque2\torque\engine\game\game.cc(235) : error C2143: syntax error : missing ';' before '->'
Error executing cl.exe.


if i add the ; it still gives the same error....is i comment the whole line out it will compile. but when i run the game and click the button to enter the character select screen i get a strange popup error and the game crashes....the code im using can be found here
http://thesoulnomads.de/tork/tutorials/preview_gui/preview_gui.html


If anyone can help me with this or knows of another way to get a character select screen working i would greatly appreciate it

Thank you
Kendall Davis

#1
09/07/2002 (1:52 am)
Hi,
well, I wrote that tutorial and it clearly states in Step 3 that you should be careful with the resManager files as you need different files for different versions of Torque...
Quote:
STEP 3:
Backup your resManager.cc & resManager.h files and replace these two with the ones provided here
(they should work with the Release_1_1_1 and the GG HEAD before 04/2002 - if you're using a newer HEAD, use these [~ HEAD 06/2002].)
So you should check that you're using the right files - what Torque version are you running?
And if you're using a recent HEAD version, chances are that the resManager has changed again and none of the files provided will work anymore... last time I tried with a HEAD was in June...
#2
09/07/2002 (12:31 pm)
I went back to 1_1_1_1 itll compile perfect now no errors or warning but i when i go to try it out i get a strange error which i have posted a screenshot of on my website

http://www.dk-multimedia.com/error.jpg

sorry to be asking so many questions
thank you much
Kendall Davis