Game Development Community

Compiling probelm

by Dootuz · in Torque Game Engine · 10/09/2006 (6:48 pm) · 9 replies

Hi,

I have made a beta and i want to briing it to school but it wont complie right. i've tryed Compiling useing DEV C++ and Microsoft Visual C++ but nether of them work. I cant get DEV to work at all. :( but i can get Microsfot C++ to work a little. I followed http://tdn.garagegames.com/wiki/Torque/vs2k5#New_Directions that tutorial. But when it comes to this part


Next, choose "Release" from the "Configuration" drop down at the top left. Put in ../example in the "Working Directory" property here also.


there is no "Release". I cant find it. and aftet hat it dosen't work. I build it and it shows the same thing as on the tutorial but then i run it. It loads the title screen. but when i hit start it loads up to the Loading Objects. then it errors and says

---------------------------
Fatal: (c:\torque\sdk\engine\dgl\gbitmap.cc @ 132)
---------------------------
GBitmap::GBitmap: in order to extrude miplevels, bitmap w/h must be pow2
---------------------------
Retry Cancel
---------------------------

I dont know what that means and i can't figure this out. If anyone can Please help me with this. im jstu trying to make an .EXE so i can give it to people that do not have torque. (my freinds) .

Please help.


Dustin

#1
10/10/2006 (5:38 am)
The directions on vs2K5 seem to be correct but confusing:
Quote:
4) Now right-click on Torque Demo in the Solution Explorer and choose "Properties" (at the bottom). Under "Configuration Properties" on the left click on "Debugging". On the right put in ../example in the "Working Directory" property. Next, choose "Release" from the "Configuration" drop down at the top left. Put in ../example in the "Working Directory" property here also.
A more detailed step would be:
4) Right-click on Torque Demo in the Solution Explorer. This will bring up a sub memu
4a) Select "Properties" (at the bottom). This will bring up the Torque Demo Property Pages window
4b) Ensure the "Configuration:" drop down box has "Debug" set
4c) Ensure "Configuration Properties" is expanded in the Tree View on the left side of the window.
4d) Left click on "Debugging" in the Tree View
4e) On the right put in ../example in the "Working Directory" property which is in the settings to the Right of the Tree View.
4b) Ensure the "Configuration:" drop down box has "Release" set
4c) Ensure "Configuration Properties" is expanded in the Tree View on the left side of the window.
4d) Left click on "Debugging" in the Tree View
4e) On the right put in ../example in the "Working Directory" property which is in the settings to the Right of the Tree View.
4f) Select "Ok" to close the "Torque Demo Property Pages"

But that isn't your run time issue of:
Quote:
GBitmap::GBitmap: in order to extrude miplevels, bitmap w/h must be pow2

Are all of your textures a power of 2? That a width and height of 2,4, 128...512... etc. So 128x512 would work, but 128x513 wouldn't.

Torque requires that and the error message you are getting sounds like its pointing to that issue.

Hope that helps,

Edit - Spelling errors and to clarification
#2
10/10/2006 (7:23 pm)
I fixed all of the texures I made them all even but what do you mean by pwoer of 2?

please help


Dustin
#3
10/10/2006 (7:51 pm)
Power of 2 is 8 x 8, 16 x 16, 32 x 32, 64 x 64, 128 x 128, 256 x 256, 128 x 256, etc.
#4
10/10/2006 (8:04 pm)
So how come with like

quote
8 x 8, 16 x 16, 32 x 32, 64 x 64, 128 x 128, 256 x 256,

those are all the same like 8 x 8

bu thtne it gets to

quote
128 x 256, etc.

there difffremt numbers
dose that mean it can be the same number OR the first one = the sonnecd one dived by 2?


(sorry for spelling :) )

pleas respond


DUstin
#5
10/11/2006 (9:50 am)
In mathematics, a power of two is any of the nonnegative integer powers of the number two;
in other words, two times itself a certain number of times. Note that one is a power (
the zeroth power) of two. Written in binary, a power of two always has the form 10000...0,
just like a power of ten in the decimal system.

Power of 2, basic is double it self as goes up. As long as it power of 2 you can mismatch them. 128 x 256.

96 x 96 would not be power of 2.

I hopefull someone will come by explain it better.
#6
10/11/2006 (4:24 pm)
I fixed it :) YAY but now how do i have it so other people can use it. or was that all i had to do? so now can i jsut bring the game to school and play it or do i need to do somehting more?

plrease respond


Dustin


(ps yes i fiqured out the post i posted here a a while ago and dlelted it and psot this and if i ever dullbe post its just my intert unless its somehting diffentnt ;) )




EDIT

Nevermind i got it
#7
10/11/2006 (6:00 pm)
All you need to do is burn the example folder to disc. That folder should everything in it unless you took something out. TGE will run from a disc, I am always burn my game to a disc to test it on different computer so far I have not had any disc that would not run. I backup the entire Torque folder to disc when I make a major change and that will run from disc to.
#8
10/11/2006 (6:30 pm)
Thanks for all the help its working great now

thanks



Dustin :)
#9
10/11/2006 (7:03 pm)
You very welcome!