Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

MadKnIghT

Help! Game Engine Error

This topic is 6932 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi! i got a problem .... those who had tricks of windows game programming gurus i wanna know how to USE lamothe''s game engine that t3dlib1.h/cpp please... help me i always got an error! always... so for those who had this book please tell me how to use the engine... i mean how to compile not using THANKS!

Share this post


Link to post
Share on other sites
Advertisement
You gotta say a little bit more about your problem, saying "It doesnt'' work, why?" doesn''t give us enough info to help you. What compiler are you using? What errors are you getting? etc. Cheers!

Share this post


Link to post
Share on other sites
Do u know....i got a several of error and 60 WARnings
can u just tell me how do u use
how do u use it..
just tell me... how to compile in the right way... i mean
in your way

Share this post


Link to post
Share on other sites
Okay, I'll take it from the very beginning...assuming you're using VC++

First you want to go to file->new->project...pick win32 app and pick a project name.
Then hit ok
Then go to project->settings->link and add these files ddraw.lib dsound.lib winmm.lib dinput.lib

Also, you'll want to go to tools->options->directories and add the path to where your Directx SDK is installed that came with the book. Add the path to the libraries and to the headers in the appropriate places.

(You also have to move these paths up to the top of the list by hitting the up arrow, so that the compiler looks there first.)

Also, you have to include the t3dlib1.h/cpp files into the project by opening them and then right-clicking and select to include file in the project.

Hope that helps

Don't worry...it took me forever to get those programs to compile too



Edited by - Nazrix on 4/27/00 3:21:04 PM

Share this post


Link to post
Share on other sites
I have that same engine, and since im a natural born killer in terms of using a computer and file manipulation (hehe ), i just copied the library files directly to MSVC''s include directory, and it worked. If you don''t want to screw with that folder, then just copy the files from the CD to a HD directory, and add that directory to the include list (using Nazrix''s method). I hope you figure out how to get the files working. Please be a bit more specific in your question next time, also .

Share this post


Link to post
Share on other sites
quote:
Original post by Zipster

i just copied the library files directly to MSVC''s include directory, and it worked.


If you''re gonna copy files around (rather than just pointing the compiler to your DX SDK directory, which is simpler and more flexible) then you might want to ensure that you put the libraries in the libraries directory, rather than the include directory (which, scarily enough, is where you should copy the include files to)?

Share this post


Link to post
Share on other sites
So Do u want the specific RESULT from compiling the engine
here''s the result:
gengine.cpp
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(228) : warning C4553: ''=='' : operator has no effect; did you intend ''=''?
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(1291) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(1296) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(1302) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(1308) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(1316) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(1323) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(1332) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(1339) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(1348) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(1354) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(1363) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(1369) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(1412) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(1419) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(1428) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(1435) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(1444) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(1450) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(1459) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(1465) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(2547) : warning C4101: ''work_color'' : unreferenced local variable
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(3002) : warning C4018: ''<'' : signed/unsigned mismatch
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(3052) : warning C4244: ''='' : conversion from ''int'' to ''float'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(3170) : warning C4244: ''='' : conversion from ''int'' to ''float'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(3709) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(3710) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(3711) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(3790) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(3799) : warning C4244: ''='' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(3807) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(3808) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(3809) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(3810) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(3816) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(3817) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(3823) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(3824) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(4160) : warning C4244: ''='' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(4161) : warning C4244: ''='' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(4173) : warning C4244: ''='' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(4174) : warning C4244: ''='' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(4193) : warning C4244: ''initializing'' : conversion from ''double'' to ''float'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(4196) : warning C4244: ''='' : conversion from ''double'' to ''float'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(4197) : warning C4244: ''='' : conversion from ''double'' to ''float'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(4302) : warning C4244: ''argument'' : conversion from ''unsigned long'' to ''unsigned char'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(4302) : warning C4244: ''argument'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(4302) : warning C4244: ''argument'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(4302) : warning C4244: ''argument'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(4302) : warning C4244: ''argument'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(4313) : warning C4244: ''argument'' : conversion from ''unsigned long'' to ''unsigned char'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(4313) : warning C4244: ''argument'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(4313) : warning C4244: ''argument'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(4313) : warning C4244: ''argument'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(4313) : warning C4244: ''argument'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(4345) : warning C4244: ''argument'' : conversion from ''int'' to ''float'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(4345) : warning C4244: ''argument'' : conversion from ''int'' to ''float'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(4348) : warning C4244: ''initializing'' : conversion from ''int'' to ''float'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(4348) : warning C4244: ''initializing'' : conversion from ''int'' to ''float'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(4355) : warning C4244: ''='' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\shoot\gengine.cpp(4356) : warning C4244: ''='' : conversion from ''float'' to ''int'', possible loss of data
main.cpp
Linking...
gengine.obj : error LNK2001: unresolved external symbol "struct HWND__ * main_window_handle" (?main_window_handle@@3PAUHWND__@@A)
Debug/shoot.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

shoot.exe - 2 error(s), 61 warning(s)

ok....that;s it
please help!

Share this post


Link to post
Share on other sites
No, the program is seriously messed up Did you alter the code, MadKnIghT? Are you compiling with all the right headers, etc?

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!