Game Development Community

Need help with Compiling

by Glenn Bermingham · in Technical Issues · 07/31/2007 (10:41 pm) · 9 replies

This has happens every time I try to add some thing new or change any thing, I load up Microsoft Visual C++ 2005 Express Edition and open the Torque SDK Project file and rebuild the project and it works all great and fine but when ever I edit the original project once it gives me 1 Failed and the .exe doesn't appear in the example folder. I'm not sure what I am doing wrong or I haven't done to make it work properly. Is there any info on how to add/replace/change files in a project? Also if possible can some one explain how I can get the exe file allot smaller, I noticed the torquedemo.exe is only about 1.6MB and mine is 7.6.MB.

I'm not very good a scripting or Programming so if you could explain it simply, I have a small understanding of scripts so no need for basic basic stuff.

About the author

Spent couple of years studying at a 3D Game Art school, spend half my time working on random game projects of my own and loving it.


#1
07/31/2007 (11:53 pm)
Hi Glenn,

Can you provide more details about what you are trying to do and what error messages you get?

Here is a link that describe why and how you can get your .exe smaller by using (UPX).
www.garagegames.com/mg/forums/result.thread.php?qt=21483

Regards,
Christopher.
#2
08/01/2007 (12:12 am)
I was trying to install some thing simple rather then try some thing very complex:
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=11502
I tired replacing/removing/changing the files around all I got the same problem
Here's the build console:
http://www.mediafire.com/?3hcedhjrznl (I'm not posting 100kb page of info)
It may be that its not compatible with .2, but I'm not sure.

Thanks for the link as well =)
#3
08/01/2007 (1:58 am)
Glenn,

There are a few compile errors that you must fix. I have not implemented this resource but from a quick look I'll try to guide you.

c:\users\berminghan\desktop\climbresource\engine\game\player.cc(133) : error C2078: too many initializers

Make sure that have updated the player.h according to the resource, you probably is missing the "ClimbAnim" in the enum on line 153 (in player.h)

c:\users\berminghan\desktop\climbresource\engine\game\main.cc(135) : error C2065: 'constructNewFont' : undeclared identifier

I don't know if you really need this for the resource.. the identifier "constructNewFont" is not declared anywhere.. And I can't see it in the resource files provided either.. Try to use the original TGE code on line 135 in main.cc
ResourceManager->registerExtension(".uft", constructFont);
and remove the line with "constructNewFont"

c:\users\berminghan\desktop\climbresource\engine\game\main.cc(298) : error C2065: 'ClimableItemObjectType' : undeclared identifier

Make sure to update "objectTypes.h" according to the resource, you are probably missing "ClimableItemObjectType = BIT(29)" on line 70.

For more information about the compile errors and why they occur please find this links:
C2078
msdn2.microsoft.com/en-us/library/663y2htx(vs.71).aspx
C2065
msdn2.microsoft.com/en-us/library/ewcf0002(VS.80).aspx

Hope it helps,
Christopher.
#4
08/04/2007 (9:20 am)
"I noticed the torquedemo.exe is only about 1.6MB and mine is 7.6.MB."

Most likely you are compiling a debug build. When you switch to a Release configuration, it will be considerable smaller in size.

-kornman00
#5
08/05/2007 (5:57 am)
Thanks Marcel, UPX didn't work for me so this helps allot.
#6
08/05/2007 (6:06 am)
The "release configuration" will also be significantly faster too.
#7
08/05/2007 (11:20 pm)
Ok I need just a little bit more help, I'm trying to put http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=9617 into the Torque Build but I get these Errors, I know its trying to use some old lighting system that isn't being used any more.
guiObjectView.cc
..\engine\gui\controls\guiObjectView.cc(290) : error C2039: 'setMaxGLLights' : is not a member of 'LightManager'
        ../engine\lightingSystem/sgLightManager.h(103) : see declaration of 'LightManager'
..\engine\gui\controls\guiObjectView.cc(291) : error C2039: 'addLight' : is not a member of 'LightManager'
        ../engine\lightingSystem/sgLightManager.h(103) : see declaration of 'LightManager'
..\engine\gui\controls\guiObjectView.cc(292) : error C2039: 'installGLLights' : is not a member of 'LightManager'
        ../engine\lightingSystem/sgLightManager.h(103) : see declaration of 'LightManager'
..\engine\gui\controls\guiObjectView.cc(330) : error C2039: 'uninstallGLLights' : is not a member of 'LightManager'
        ../engine\lightingSystem/sgLightManager.h(103) : see declaration of 'LightManager'
..\engine\gui\controls\guiObjectView.cc(331) : error C2039: 'removeLight' : is not a member of 'LightManager'
        ../engine\lightingSystem/sgLightManager.h(103) : see declaration of 'LightManager'
I'm not sure what I should replace them with, I tried deleting those lines of code and the- re-build worked but the lighting in-game was well sorta broken but it worked.
#8
08/06/2007 (12:52 am)
Ok I need just a little bit more help, I'm trying to put http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=9617 into the Torque Build but I get these Errors, I know its trying to use some old lighting system that isn't being used any more.
guiObjectView.cc
..\engine\gui\controls\guiObjectView.cc(290) : error C2039: 'setMaxGLLights' : is not a member of 'LightManager'
        ../engine\lightingSystem/sgLightManager.h(103) : see declaration of 'LightManager'
..\engine\gui\controls\guiObjectView.cc(291) : error C2039: 'addLight' : is not a member of 'LightManager'
        ../engine\lightingSystem/sgLightManager.h(103) : see declaration of 'LightManager'
..\engine\gui\controls\guiObjectView.cc(292) : error C2039: 'installGLLights' : is not a member of 'LightManager'
        ../engine\lightingSystem/sgLightManager.h(103) : see declaration of 'LightManager'
..\engine\gui\controls\guiObjectView.cc(330) : error C2039: 'uninstallGLLights' : is not a member of 'LightManager'
        ../engine\lightingSystem/sgLightManager.h(103) : see declaration of 'LightManager'
..\engine\gui\controls\guiObjectView.cc(331) : error C2039: 'removeLight' : is not a member of 'LightManager'
        ../engine\lightingSystem/sgLightManager.h(103) : see declaration of 'LightManager'
I'm not sure what I should replace them with, I tried deleting those lines of code and the- re-build worked but the lighting in-game was well sorta broken but it worked.
#9
08/12/2007 (11:38 am)
There is a resource "TGE 1.5.x - Bonus Resource Bundle",
that might help you with the old lightning system.
I have not tried it myself but it might solve your problem.

www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=11518

/Christopher.