Hi all, i recently bought dark light and i've been through the demos that came with it, but when i try and make my own lightmaps using dark lights i keep getting an error saying:
This application has requested the runtime to terminate it in an unusual way
rem dark lights
LM Start
LM Set Ambient Light 0.4,0.4,0.4
LM Set Ambient Occlusion On 100,20,1
LM Add Collision Object 1
LM Add Collision Object 12
LM Add Collision Object 13
LM Add Collision Object 15
LM Build collision Data
LM Add Light Map Object 1
LM Add Light Map Object 11
LM Add Light Map Object 12
LM Add Light Map Object 13
LM Add Light Map Object 15
LM add point light 0,70,15,4000,0.8,1,1
LM Build Light Maps thread 1024,4.0,1
load "kernel32.dll",1
rem get current status and display whilst running
while LM Get Complete()=0
rem make DBPro wait before trying again
call dll 1,"Sleep",100
cls
set cursor 0,0
print LM Get Status( );" ";int(LM Get Percent());"%"
endwhile
sync on
endtimer = timer()
LM reset
anyone know how to stop this from happening?