What's new

Chatlog archiever

Status
Not open for further replies.

Spydah

Donator
Joined
Jan 21, 2016
Messages
144
Location
The Netherlands
I've tried a few but none of them seem to work at the end..
Can someone help me or show me how to properly set this up?
 

Manu

Retired Admin
Joined
Apr 7, 2013
Messages
5,142
Location
Flanders, Belgium
Code:
; Set the working directory to the SA-MP directory...
sampdir:=A_MyDocuments . "\GTA San Andreas User Files\SAMP\"
SetWorkingDir, %sampdir%
 
; If we're working in the wrong directory (ie you can't find the
; SA-MP config file) then return an error and exit.
IfNotExist, sa-mp.cfg
  MsgBox, Error: Could not find SA-MP directory. Expected location: %sampdir%
IfNotExist, sa-mp.cfg
  return
 
Loop {
  ; Wait until GTA:SA is launched by SA-MP.
  WinWait GTA:SA:MP
 
  ; Generate the filename based on the time SA-MP is launched.
  filename:="chatlog-" . A_YYYY . A_MM . A_DD . "-" . A_Hour . A_Min . A_Sec
 
  ; Now wait for it to close before continuing.
  WinWaitClose GTA:SA:MP
 
  ; Copy the chatlog to the separate directory with the filename we generated earlier.
  FileCopy, chatlog.txt, chatlogarchiver\%filename%.txt
 
  ; Check that the file was actually copied, and return the location if it worked. If not,
  ; return a generic error because I can't be bothered to code in methods of working out
  ; what went wrong.
  IfExist, chatlogarchiver\%filename%.txt
    MsgBox, Chatlog saved as %sampdir%\chatlogarchiver\%filename%.txt.
  IfNotExist, chatlogarchiver\%filename%.txt
    MsgBox, There was an error and your chatlog was NOT archived.
}
 
return
 

Connection

Donator
Joined
Oct 8, 2016
Messages
1,218
I personally use this one. It creates a folder called 'chatlogarchiver' in your 'GTA San Andreas User Files' folder. All you have to do is launch it before launching GTA:SA.
 

Spydah

Donator
Joined
Jan 21, 2016
Messages
144
Location
The Netherlands
Lee said:
>download lsrp+
>chatlog archiver
>enable
lsrp+ always stops working.. It freezes everytime :roll:

Connection said:
I personally use this one. It creates a folder called 'chatlogarchiver' in your 'GTA San Andreas User Files' folder. All you have to do is launch it before launching GTA:SA.
I run this as Administrator plus I manually created the folder inside the desired one but I keeps saying the message. "There was an error and your chatlog could NOT be archived."
 

TommyB

Owner
Joined
Dec 30, 2010
Messages
18,827
Location
Texas, USA.
I'd suggest using an edit I made to the chatlog archiver AHK script. When I started using it a few years ago, I noticed that it created a new .txt file per game session. My edit only creates a new .txt file per day, which should help keep your folder quite clean.

https://pastebin.com/vnimgCyS
 

Spydah

Donator
Joined
Jan 21, 2016
Messages
144
Location
The Netherlands
TommyB said:
I'd suggest using an edit I made to the chatlog archiver AHK script. When I started using it a few years ago, I noticed that it created a new .txt file per game session. My edit only creates a new .txt file per day, which should help keep your folder quite clean.

https://pastebin.com/vnimgCyS
Cool but where should I add that, don't really understand it ghehe
 
Status
Not open for further replies.
Top