Results 1 to 10 of 10

Thread: How to make a log of everything that appears in the debug screen

  1. #1
    Join Date
    Aug 2011
    Posts
    69
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default How to make a log of everything that appears in the debug screen

    hello,

    in order to tell me were something little is going wrong,
    i would like to save everything which appears in the debug screeen.
    But i really have no idea how i can recall the debug info.

    thanks

  2. #2
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    You could use addToSRLLog('We did not the find the tree!');

    and that will save it in the srl log in the simba folder somewhere

  3. #3
    Join Date
    Aug 2011
    Posts
    69
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    but then i have to add this for every writeLn line, i'm more looking for something that just copies the debug and save it or just save the debug

  4. #4
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I think addtosrllog also prints to the debug, try it. make a script, and do addtosrllog('Hello'); If it prints to the debug aswell, just replace every writeln with AddToSRLLog.
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

  5. #5
    Join Date
    Aug 2011
    Posts
    69
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    yeah it prints to the debug, but i'm more looking for a command to just copy the entire debug screen and save it instead of replacing all the writeln's by AddToSRLLog

  6. #6
    Join Date
    Jan 2009
    Location
    Turlock/LA, California
    Posts
    1,494
    Mentioned
    3 Post(s)
    Quoted
    66 Post(s)

    Default

    Code:
    program new;
    var
    debugString:array of string;
    
    procedure writelnEx(str:String);
    begin
      writeln(str);
      setArrayLength(debugString,length(debugString)+1);
      debugString[high(debugString)] := str;
    end;
    
    begin
      writelnEx('hi ');
      writelnEx('how are you ');
      writelnEx('doing today ');
      writeln(debugString);
    end.

  7. #7
    Join Date
    Jul 2012
    Posts
    251
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Ah this is of my interests.

    Pre-scripting runescape, i would want to make a motion sensor with my webcam using simba.
    Then write motion detects to a log file ofcourse.
    Activity
    Going asian on University College Ghent.
    No time for anything atm.

  8. #8
    Join Date
    Jan 2009
    Location
    Turlock/LA, California
    Posts
    1,494
    Mentioned
    3 Post(s)
    Quoted
    66 Post(s)

    Default

    Quote Originally Posted by satkan View Post
    Ah this is of my interests.

    Pre-scripting runescape, i would want to make a motion sensor with my webcam using simba.
    Then write motion detects to a log file ofcourse.
    well this just depends on how simplistic u want it to be. if you have a way of viewing your cam's video then all you have to do (for a very very simplistic motion sensor) is use averagePixelShift to see if anything has moved infront of the cam. then use theTime variable and record that

  9. #9
    Join Date
    Jul 2012
    Posts
    251
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by x[Warrior]x3500 View Post
    well this just depends on how simplistic u want it to be. if you have a way of viewing your cam's video then all you have to do (for a very very simplistic motion sensor) is use averagePixelShift to see if anything has moved infront of the cam. then use theTime variable and record that
    Yeah, that's the plan to start with.
    Then I'll look more into skin color or something commonly human.
    Maybe thereafter screenshot support etc.

    It's just a way to learn pascal really. ^^ Anyways, thanks for letting me know the method i should call to.
    (well, in java it would be a method, i don't know about pascal.)


    [E] Would i be able to play a sound file with Simba (Like in make the script open File/Sounds/Sound.midi)? Just wondering if it could.
    Last edited by satkan; 08-14-2012 at 08:10 PM. Reason: Prettying it up.
    Activity
    Going asian on University College Ghent.
    No time for anything atm.

  10. #10
    Join Date
    Aug 2011
    Posts
    69
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    it's not really what i'm looking for
    i do not want to replace the writeln lines, i'm just looking for a way to copy the debug screen, something like print screen, but instead it does not take a bitmap, but a text file

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •