Results 1 to 3 of 3

Thread: Save Debug to file?

  1. #1
    Join Date
    Dec 2007
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Save Debug to file?

    can you do this?

  2. #2
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Yes you can.... wait a sec let me find my function....

    EDIT: From my Rune Mysteries Runner...
    SCAR Code:
    procedure SaveDebugToFile;
    var
      DebugText: string; DebugFile: Integer;
    begin
      DebugFile := RewriteFile(ScriptPath + 'Zephyr''s Rune Mysteries Quest Runner Progress Report' + '.txt', False);   //Name and location of file
      DebugText := GetDebugText;   //Gets the text in the debug box
      WriteFileString(DebugFile, DebugText);  //Writes it to a file
      Writeln('Saved debug to file: ' + ScriptPath + 'Zephyr''s Rune Mysteries Quest Runner Progress Report' + '.txt');
      CloseFile(DebugFile);
    end;

  3. #3
    Join Date
    Dec 2007
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    sweet thanks!

    EDIT: what happened?

    ok yes i keep editing the post sorry... i just get it to work then something weird happens..

    so i get it to run and finish... where does it save the file? whats wrong with this?

    procedure SaveDebugToFile;
    var
    DebugText: string; DebugFile: Integer;
    begin
    DebugFile := RewriteFile('C:\Program Files\SCAR 3.12\Scripts' + 'bob' + '.txt', True); //Name and location of file
    DebugText := GetDebugText; //Gets the text in the debug box
    WriteFileString(DebugFile, DebugText); //Writes it to a file
    Writeln('Saved debug to file: ' + 'C:\Program Files\Scar 3.12\Scripts' + 'Zephyr''s Rune Mysteries Quest Runner Progress Report' + '.txt');
    CloseFile(DebugFile);
    end;
    begin
    end.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Read and save txt files
    By ReyMen in forum OSR Help
    Replies: 8
    Last Post: 10-17-2008, 04:42 AM
  2. Man Superglues Condom to Penis to Save on Schmex!
    By Lee Lok Hin in forum The Bashing Club / BBQ Pit
    Replies: 15
    Last Post: 06-04-2008, 08:05 PM
  3. Save and Open commands.
    By jhildy in forum OSR Advanced Scripting Tutorials
    Replies: 10
    Last Post: 12-29-2007, 08:08 PM
  4. How to Use SRL succesfully and where to save it
    By Sdcit in forum Outdated Tutorials
    Replies: 30
    Last Post: 09-06-2007, 12:54 AM

Posting Permissions

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