I`m tring to use Dark Lights in my project which i have a map already built, the objects are betwen 6-69 but every time when i start i get a error when it gets around 95% (Calculating Objects and Saving Textures)
Here is the error
'WordQuest.exe': Loaded 'C:WINDOWSsystem32d3dx9_31.dll'
First-chance exception at 0x00511dd8 in WordQuest.exe: 0xC0000005: Access violation reading location 0x0000005c.
Unhandled exception at 0x00511dd8 in WordQuest.exe: 0xC0000005: Access violation reading location 0x0000005c.
Here is my code:
for(int i=6;i<69; i++)
{
if(dbObjectExist(i)==1)
{
LMAddCollisionObject ( i );
}
}
LMBuildCollisionData ( );
for(int i=6;i<69; i++)
{
if(dbObjectExist(i)==1)
{
LMAddLightMapObject ( i );
}
}
LMSetBlendMode ( 5 );
LMBoostCurvedSurfaceQuality ( -1,2.0 );
LMAddPointLight(907,110,617,400,30,15,80);
dbMakeObjectSphere(900,1);
dbPositionObject(900,907,110,617);
LMBuildLightMapsThread(256,4.0,1);
while ( LMGetComplete ( ) == 0 )
{
dbSetCursor ( 0, 0 );
dbPrint ( LMGetStatus ( ) );
dbPrintC ( LMGetPercent ( ) );
dbPrint ( "%" );
dbSync ( );
dbSleep ( 100 );
}
LMReset ( );