Jump to content




[not printing... crashlog] Help


  • You cannot reply to this topic
2 replies to this topic

#1 Goof

  • Members
  • 751 posts

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)

Spoiler





Thanks in advance!

#2 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 17 February 2013 - 02:36 AM

BSoD from my tutorial by any chance? :P
this should work
local count = 0
local run = true
while run do
  run = fs.exists("crashlogs/cLog"..count)
  count = count + 1
  sleep(0)
end

EDIT: Just added sleep, incase its a large folder, forgot to add it until i looked at OP again :P

Edited by TheOriginalBIT, 17 February 2013 - 02:37 AM.


#3 Goof

  • Members
  • 751 posts

Posted 17 February 2013 - 02:44 AM

from your tutorial?
Yes :D its a really good tutorial xD ( but i did know that there exists a BSOD before i read your tutorial xD )

Thanks for the help, but still not doing anything, just black screen with the shell... :(

code: http://pastebin.com/9kUNccqF
edit lawl... i forgot to add the path to the rest of the code xD no problem.. Thanks :D





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users