Posted 17 February 2013 - 02:28 AM
Hey =D
im making a crasher program, which prints a BSOD when an error appears in a function. but
when im trying to save the log when the log should be: "crashlogs/cLog2" then the screen just turns black, and returns back to the command prompt.
Why?
(no errors. its just not working as suspected)
(full code at pastebin) – no comments :(/> ( i dont have the time to do that. )
(part of the code, which i think is the problem)
Thanks in advance!
im making a crasher program, which prints a BSOD when an error appears in a function. but
when im trying to save the log when the log should be: "crashlogs/cLog2" then the screen just turns black, and returns back to the command prompt.
Why?
(no errors. its just not working as suspected)
(full code at pastebin) – no comments :(/> ( i dont have the time to do that. )
(part of the code, which i think is the problem)
Spoiler
count = 0 -- This code just checks if there exists previous crashlogs. but right now it only works when the crashlogs folder is empty.
while run do
fLNum = ("crashlogs/cLog" .. count)-- locate the folder
if not fs.exists(fLNum) then -- checks if there doesnt exist a previous file in that name.
fLNum = ("crashlogs/cLog" .. count) -- if true then it should return back to the rest of the program, but doesnt.
run = false -- stop the loop.
else -- if the file exists.
count = count + 1 -- tell the count variable to be added 1.
fLNum = ("crashlogs/cLog" .. count) -- the folder path is now "crashlogs/cLog2"
run = true -- but it seems like it doesnt do this*: run = true :* but i dont know why.
end
sleep(0)
end
Thanks in advance!