free

News

collapse

User Info

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Recent Posts

NOTICE OF PARKING ENFORCEMENT CHANGES by Huntsman
[June 19, 2025, 05:22:50 pm]


Re: Stopping by by Sinister
[June 08, 2025, 01:58:04 pm]


Re: Stopping by by Ehks
[June 04, 2025, 12:25:17 am]


Re: Rest in peace by Stefanrsb
[June 02, 2025, 03:38:02 am]


Re: [SA:MP]House of Sforza | The Elite Power | Estd. 2006 | LS - LV by Stefanrsb
[June 02, 2025, 03:09:22 am]


Re: The Soprano Family | Royal Loyalty by Stefanrsb
[June 02, 2025, 03:00:31 am]


Re: The Gvardia Family || San Fierro's Main Power || Best criminal group of 09/10/11 by Stefanrsb
[June 02, 2025, 02:47:01 am]


Re: BALLAS | In memory of INFERNO 9 and NBA by Stefanrsb
[June 02, 2025, 02:31:29 am]


Re: Count to 1,000,000. by Stefanrsb
[June 02, 2025, 02:15:04 am]


Re: Stopping by by Traser
[June 01, 2025, 10:23:13 pm]


Re: Stopping by by Old Catzu
[May 18, 2025, 07:27:06 pm]


Re: Stopping by by TheRock
[May 18, 2025, 06:44:49 am]

* Who's Online

  • Dot Guests: 453
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Birthday Calender

June 2025
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 [26] 27 28
29 30

[TUTORIAL] How to save your chat logs automatically

Kaze · 2663

0 Members and 1 Guest are viewing this topic.

Offline KazeTopic starter

  • Hero
  • ****
    • Posts: 1849
  • 2008 - 2016
  • With us since: 10/11/2011
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
on: March 23, 2014, 12:54:54 am


Credits to: SantiagoEllis
As I'm sure you're aware, all the text that appears in the upper left of your window when playing SA:MP is saved to a file called "chatlog.txt" in "C:\Users\\Documents\GTA San Andreas User Files\SAMP". It's a good thing to refer to if there was an RP scenario you'd like to re-read, or an old PM you'd like to refer to or anything else.

But by default, chatlog.txt is overwritten every time you launch the game. You could make a mental note to move the file somewhere and rename it every time you leave the game, but that's boring and requires effort. And why bother when you can do it automagically with a AHK script!?

If you haven't already, download and install AutoHotkey.
http://www.autohotkey.com/



Navigate to your GTA San Andreas User Files folder (C:\Users\\Documents\GTA San Andreas User Files\SAMP").
Create a new folder here. Name it "Chatlog backups" (without the quote marks).
Now, go to your desktop. Right click > New > AutoHotkey Script.
Picture: http://i.imgur.com/OOQUE0g.png

Name it "Chatlog Archiver".
Picture: http://i.imgur.com/JBbDyUw.png

Right click on your file and click Edit Script.
Picture: http://i.imgur.com/X6RPvXj.png

The script should open up in Notepad, and you'll probably see a load of gibberish.
Picture: http://i.imgur.com/6hGK1Ku.png

Delete all of it - you don't need it.
So, now you should have a blank notepad window with the filename "Chatlog Archiver.ahk".
Picture: http://i.imgur.com/m5UwqHz.png



Now, copy and paste this into the file:

Code: [Select]
WinWait, GTA: San Andreas
WinWaitClose
FileMove, C:\Users\your username\Documents\GTA San Andreas User Files\SAMP\chatlog.txt, C:\Users\your username\Documents\GTA San Andreas User Files\SAMP\Chatlog backups\Chatlog %A_YYYY%-%A_MM%-%A_DD% %A_Hour%-%A_Min%-%A_Sec%.txt
Run Chatlog Archiver.ahk
return

Replace BOTH your username fields with your computer username. If you have Word Wrap switched off, you'll need to scroll to the right to see the second one.
For example, my computer username is Kaze, so for me it would look like this:

Code: [Select]
WinWait, GTA: San Andreas
WinWaitClose
FileMove, C:\Users\Kaze\Documents\GTA San Andreas User Files\SAMP\chatlog.txt, C:\Users\Kaze\Documents\GTA San Andreas User Files\SAMP\Chatlog backups\Chatlog %A_YYYY%-%A_MM%-%A_DD% %A_Hour%-%A_Min%-%A_Sec%.txt
Run Chatlog Archiver.ahk
return



Click File > Save (or Ctrl + S, whichever you prefer) to save the file.
Double click the "Chatlog Archiver.ahk" file.
Picture: http://i.imgur.com/aLOEst9.png

You should see an AutoHotkey icon appear in your system tray, and if you hover your mouse over it then it should show the name of the file.
Picture: http://i.imgur.com/4XqUjtT.png

And that's it - it's ready to go. As long as this script is running, whenever you close SA:MP (the game window, not the server browser/launcher) or even if it crashes, "chatlog.txt" will be moved to "Chatlog backups" and renamed to the current time and date. An example new file name would be "Chatlog 2013-03-28 11-27-32.txt" (Chatlog year-month-day hour-minute-second.txt).
Picture: http://i.imgur.com/Z5aQNlS.png



Requesting for this to be stickied!



Offline Luke

  • Hero
  • ****
    • Posts: 2117
    With us since: 22/11/2008
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
  • SA:MP: Lawrence King
Reply #1 on: March 23, 2014, 12:56:44 am
Nice one Kaze! Great Guide.



Offline KazeTopic starter

  • Hero
  • ****
    • Posts: 1849
  • 2008 - 2016
  • With us since: 10/11/2011
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Reply #2 on: March 23, 2014, 12:58:10 am
Nice one Kaze! Great Guide.

Not mine, I'm just taking this on from another community I thought I should share this with everyone! (I did mention the credits)




Offline Bruce.

  • Spike strips are fucking cancer!!!! Always blowing tires!!
  • Orc
  • *****
    • Posts: 3821
    With us since: 01/11/2012
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Reply #3 on: March 23, 2014, 01:33:22 am
Really amazing thing, it worked for me, this is really useful not only for me but it will be for everyone.

 :app:  :app:  :app:

I believe Argonath will be back as soon as the exams are over.
SA:MP server is currently in a decent state with a stable player base of around 20-25 people on a daily basis.


Offline Axison

  • Angels Of Death MC
  • Orc
  • *****
    • Posts: 1970
    With us since: 14/12/2011
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
  • SA:MP: =AV=Axis
Reply #4 on: March 23, 2014, 01:54:31 am
Good Job, works like a charm.


Angels of Death MC | Argonath Veterans| Music Enthusiast


Offline Slavik

  • Regular
  • **
    • Posts: 989
  • With us since: 27/07/2012
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
  • SA:MP: [WS]Slavik_Kolta.
Reply #5 on: March 23, 2014, 07:09:21 am
Very good  :app:

Slavik made 299 bans - [WS]Mikro


Offline Osamad

  • IV:MP COL Director
  • Regular
  • **
    • Posts: 727
  • IV:MP Advertisement Team Leader
  • With us since: 05/11/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
  • SA:MP: Osamad
  • IV:MP: Osamad
  • V:MP: Osamad
Reply #6 on: March 23, 2014, 07:15:30 am
Good Job :app: :app:


Former IV:MP Administrator , FBI special Agent , COL director , Advertisement team Leader , SSDS driving teacher , LCPD officer .
Free Palestine <3


Offline AryaN

  • To Serve and Protect
  • Regular
  • **
    • Posts: 495
    With us since: 22/04/2011
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
  • SA:MP: [WS]Dexter_Smith
  • Discord: Dexter#4252
Reply #7 on: March 23, 2014, 07:20:33 am
Really helpful. THanks for sharing this



Offline Marcel

  • Hero
  • ****
    • Posts: 0
  • With us since: 06/08/2007
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
  • SA:MP: Marcel
  • Discord: Marcel#4759

 


free
SimplePortal 2.3.7 © 2008-2025, SimplePortal