Forum Thread Not Found, Sorry.

Game Development Community

Laser beam

by Ironbelly Studios · in General Discussion · 10/14/2008 (5:27 am) · 4 replies

Hello All,

I downloaded the TGEA from the garagegames site.I want to add laser gun functionality in my game.I am using resource www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=4436, but i am getting error.Can anybody give idea....

#1
10/14/2008 (6:38 am)
Usually helps if you post what the error is....
#2
10/14/2008 (7:17 am)
I tried the resource [URL] http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=8006 [/URL] in tge 1.4.I compiled it successfully but when i am running the game , i am getting the fatal error
in bitstream.h line no: 246 " OUT OF RANGE ".How will i remove this error.
#3
10/14/2008 (8:12 am)
Void LaserData::packData(BitStream* stream)
{
Parent::packData(stream);

stream->writeFloat(beamStartRadius/20.0, 8);
stream->writeFloat(beamEndRadius/20.0, 8);
stream->writeString(materialList);
stream->writeInt(interval, 32);
}

void LaserData::unpackData(BitStream* stream)
{
Parent::unpackData(stream);

beamStartRadius = stream->readFloat(8) * 10;
beamEndRadius = stream->readFloat(8)* 10;
materialList = StringTable->insert(stream->readSTString());
interval = stream->readInt(32);
}
#4
10/14/2008 (9:43 am)
Did you make all the changes? double check with the resource you may have missed something.