Results 1 to 10 of 10

Thread: Saving chat to log file?

  1. #1
    Join Date
    Sep 2007
    Location
    Bikini Bottom
    Posts
    50
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Saving chat to log file?

    Hi everyone,

    I have this questions about saving the chat to a chat log file:
    1.How do you actually do it?
    2.Can you change the file to save to? If yes, how? If no, where is that file?
    3.Excactly WHAT does it save? (Like, for example, the whole box?)

    Hope you can answer this

  2. #2
    Join Date
    Jan 2007
    Location
    Tennessee
    Posts
    642
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    There is a procedure in SRL that saves it so take a look at it.
    You will see the file it saves it to and you can change it.
    Im not sure exactly what it saves though because i use my own procedures.

  3. #3
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by almost View Post
    There is a procedure in SRL that saves it so take a look at it.
    You will see the file it saves it to and you can change it.
    Im not sure exactly what it saves though because i use my own procedures.
    Whats this procedure then?. Your own procedures? Yea.. sure

    Try
    SCAR Code:
    SaveToChatLog:=True;

    Then look at ChatLog.txt in the SCAR folder.

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  4. #4
    Join Date
    Oct 2006
    Location
    Ontario,Canada
    Posts
    1,718
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    doesnt it automatically do it?

  5. #5
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I think it does, but it gets cleared doesn't it?

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  6. #6
    Join Date
    Jan 2007
    Location
    Tennessee
    Posts
    642
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Ehh that's not a procedure, that's a boolean variable.
    Yes i have my own procedure i use for saving chat.

  7. #7
    Join Date
    Jul 2007
    Location
    St. Louis, Missouri, USA.
    Posts
    575
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by rogeruk View Post
    I think it does, but it gets cleared doesn't it?
    Sorry for the kinda gravedig but does anyone know why it gets cleared and how I could... stop it from doing that? lol.
    -You can call me Mick-



  8. #8
    Join Date
    Oct 2006
    Location
    Ontario,Canada
    Posts
    1,718
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    you would have to make a proc that saves the text thats already there. then rewrite the file put the stuff back then add the rest.

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

    Default

    could you share with everyone on how to do that???

  10. #10
    Join Date
    Oct 2006
    Location
    Ontario,Canada
    Posts
    1,718
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    nice bump. ill find where i posted before and edit this.
    SCAR Code:
    AFile:=OpenFile(Path, false)
      ReadFileString(AFile, AString, FileSize(Path))
      CloseFile(AFile)
      AFile:=RewriteFile(Path, false)
      WriteFileString(Path, AString + 'whatever')
      closefile(AFile)

    something like that... expand on it. i didnt test it so it may not work.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 10-11-2008, 03:48 AM
  2. File Saving Help??
    By Timer in forum OSR Help
    Replies: 4
    Last Post: 01-08-2008, 12:58 PM
  3. Saving something to a file
    By Maninblack144 in forum OSR Help
    Replies: 14
    Last Post: 12-17-2007, 08:25 AM
  4. Saving to file
    By rivon in forum OSR Help
    Replies: 12
    Last Post: 09-22-2007, 06:45 PM

Posting Permissions

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