Laser Lights on guns..
by RedCore · in Torque Game Engine · 11/02/2003 (11:58 am) · 5 replies
I'm trying to add laser lights onto my weapon image..
i get the following error messages when i try to compile..
C:\Documents and Settings\Rick Swan\Desktop\Gaming Project\torque\engine\game\shapeImage.cc(577) : error C2664: 'bool __thiscall Stream::read(class ColorI *)' : cannot convert parameter 1 from 'bool' to 'class ColorI *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
C:\Documents and Settings\Rick Swan\Desktop\Gaming Project\torque\engine\game\shapeImage.cc(711) : error C2065: 'getMuzzleVector' : undeclared identifier
C:\Documents and Settings\Rick Swan\Desktop\Gaming Project\torque\engine\game\shapeImage.cc(711) : error C2065: 'i' : undeclared identifier
C:\Documents and Settings\Rick Swan\Desktop\Gaming Project\torque\engine\game\shapeImage.cc(712) : error C2065: 'getMuzzlePoint' : undeclared identifier
C:\Documents and Settings\Rick Swan\Desktop\Gaming Project\torque\engine\game\shapeImage.cc(714) : error C2065: 'muzzlePoint' : undeclared identifier
C:\Documents and Settings\Rick Swan\Desktop\Gaming Project\torque\engine\game\shapeImage.cc(715) : error C2065: 'muzzleVector' : undeclared identifier
C:\Documents and Settings\Rick Swan\Desktop\Gaming Project\torque\engine\game\shapeImage.cc(717) : error C2440: 'initializing' : cannot convert from 'float *' to 'class Point3F' No constructor could take the source type, or constructor overload resolution was ambiguous
Source files located here..
http://www.hdcwargame.com/personal/redcore/
i get the following error messages when i try to compile..
C:\Documents and Settings\Rick Swan\Desktop\Gaming Project\torque\engine\game\shapeImage.cc(577) : error C2664: 'bool __thiscall Stream::read(class ColorI *)' : cannot convert parameter 1 from 'bool' to 'class ColorI *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
C:\Documents and Settings\Rick Swan\Desktop\Gaming Project\torque\engine\game\shapeImage.cc(711) : error C2065: 'getMuzzleVector' : undeclared identifier
C:\Documents and Settings\Rick Swan\Desktop\Gaming Project\torque\engine\game\shapeImage.cc(711) : error C2065: 'i' : undeclared identifier
C:\Documents and Settings\Rick Swan\Desktop\Gaming Project\torque\engine\game\shapeImage.cc(712) : error C2065: 'getMuzzlePoint' : undeclared identifier
C:\Documents and Settings\Rick Swan\Desktop\Gaming Project\torque\engine\game\shapeImage.cc(714) : error C2065: 'muzzlePoint' : undeclared identifier
C:\Documents and Settings\Rick Swan\Desktop\Gaming Project\torque\engine\game\shapeImage.cc(715) : error C2065: 'muzzleVector' : undeclared identifier
C:\Documents and Settings\Rick Swan\Desktop\Gaming Project\torque\engine\game\shapeImage.cc(717) : error C2440: 'initializing' : cannot convert from 'float *' to 'class Point3F' No constructor could take the source type, or constructor overload resolution was ambiguous
Source files located here..
http://www.hdcwargame.com/personal/redcore/
About the author
#2
hem
the link to the source has been updated..
Most of the code to the laser is located under
//----------------------------------------------------
// My laser light
//----------------------------------------------------
11/02/2003 (2:39 pm)
Fixed the compile errors.. But not weapons that have "laserLight" set to true.. dont work.. they mount but wont work at all..hem
the link to the source has been updated..
Most of the code to the laser is located under
//----------------------------------------------------
// My laser light
//----------------------------------------------------
#3
Sit down and think what you're doing through. Learn about C++ so you can intelligently write code to solve your problems. You seem to be missing a lot of fundamentals, and I don't think you're going to get anywhere until you learn them.
Sure, we could write and debug your code for you, but that's not what this community is about. It's about sharing experience, helping people out, and making games. Support through the journey, not solutions on a plate.
11/02/2003 (4:18 pm)
Like I said before, you need to think about what you're doing. You don't seem to be thinking the problem through, and based on your comments here and elsewhere, I don't see any evidence that you're really putting any effort into solving your problems beyond making a lot of noise asking for help.Sit down and think what you're doing through. Learn about C++ so you can intelligently write code to solve your problems. You seem to be missing a lot of fundamentals, and I don't think you're going to get anywhere until you learn them.
Sure, we could write and debug your code for you, but that's not what this community is about. It's about sharing experience, helping people out, and making games. Support through the journey, not solutions on a plate.
#4
:)
Heh, no need to hang on IRC to remember RedCore... :)
Edit: Too late, I only wrote 2 lines and had a typo, sigh.
11/02/2003 (11:02 pm)
@Ben: *me cries* Lovely words Ben, lovely.:)
Heh, no need to hang on IRC to remember RedCore... :)
Edit: Too late, I only wrote 2 lines and had a typo, sigh.
#5
Torque Flashlight & Laser Sighting
Torque Laser Beams
this can help you :)
11/03/2003 (5:44 pm)
Check resources :Torque Flashlight & Laser Sighting
Torque Laser Beams
this can help you :)
Associate Ben Garney
You're missing a lot of small little details and therefore your code isn't working. If you just take the time to think through what you're doing, and look closely at the system you're working with, you'll probably be able to solve your own problem.