CIT Forum Index

Support => Tutorials and Guides => General Guides => Topic started by: Amman on 24 08, 2017, 03:34:40 pm

Title: [TUT] How to count your /sup (J>Support) hits
Post by: Amman on 24 08, 2017, 03:34:40 pm
Planning to apply for supporter but no idea how to calculate your support hits? Don't worry, just follow my instructions.

Collecting logs of just one day:

Go here (https://notepad-plus-plus.org/download/v7.5.1.html) and download Notepad++.

Go to your MTA Directory for example; E:\MTA San Andreas 1.5 then go to MTA Folder and then open the logs folder and there you will find a bunch of .txt files. The file that contains your MTA in-game logs start with console.txt
(https://image.prntscr.com/image/uT8BTd2eRK6mKgokZyYRJw.png)

The date on next column show when was the file created, for example. If you started playing on 18th of August from 11:15 PM to 1:00 AM then it will save it as 19th of August not as 18th August, so basically if you are trying to collect all the logs of 18, you will have to copy the logs of 18th August from the file, if you want to recognize the data in the logs then it will be like that;

[2017-08-24 15:15:27] [Output] : Ti|Amman logged in this is an MTA log, the red text in that line shows when did the log appeared, in following log it says 24th of August. You can recognize the data and time in that way.

Now let's get back to the main point, you want to collect the logs of 23rd August, follow my instructions.
Go to your logs folder, and look for the files that were created on 23rd August, in my case the last three files were created on 23rd of August.
Open any of the log files that were created on the 23rd of August, press CTRL + A to select all then press CTRL + C to copy all and after that, paste all of it in Notepad++. Do the same for the rest of the files that were created on the 23rd of August. After you have copied and pasted all the logs in Notepad++, press CTRL + F to open the find tab, type following text in that; (support) (Your Name): for myself, I will have to enter this (support) Ti|Amman: then click on "Count" and it will give you a number like this
After entering your name like the way I did, after that click on "Count" and it will give you the number of Support hits you have in following amount of time/logs.

A small video tutorial by @Shanu credits to him for the video.

http://www.youtube.com/watch?v=NqXrsh23C5U


If you want to collect logs of for example of 2 months then you must copy all the recent MTA logs found in the logs folder in a separate notepad file, when you want to apply, you can just count and see if you meet the requirements for the supporter rank or you don't.

NOTE: MTA doesn't save all the logs, it just can save 6 logins means can only create 6 log files. If you want to collect logs for long period then do as I said above.
Title: Re: How to collect your Support hits(Line count)
Post by: MakO on 24 08, 2017, 06:50:10 pm
I Designed such script from 2 months using C++ but forgot to make guide, but of course not like yours, keep it up.
Edit: @Tetoo  I think you were searching for this.
Title: Re: How to collect your Support hits(Line count)
Post by: Amman on 24 08, 2017, 07:58:03 pm
I Designed such script from 2 months using C++ but forgot to make guide, but of course not like yours, keep it up.
Edit: @Tetoo  I think you were searching for this.
Thank you :) I will try to record a video and post it here, I guess it will be much easier to understand.
Title: Re: How to collect your Support hits(Line count)
Post by: Shanu on 24 08, 2017, 10:04:32 pm
https://www.youtube.com/watch?v=NqXrsh23C5U
Title: Re: How to collect your Support hits(Line count)
Post by: Amman on 24 08, 2017, 10:12:58 pm
Show content
https://www.youtube.com/watch?v=NqXrsh23C5U

Added this to the main post, thank you. :)
Title: Re: How to collect your Support hits(Line count)
Post by: Dredd on 13 09, 2017, 12:25:21 pm
So we only have logs for the last 5 days ?
Title: Re: How to collect your Support hits(Line count)
Post by: Amman on 13 09, 2017, 01:23:05 pm
So we only have logs for the last 5 days ?
MTA saves the .txt files according the number of times you opened your MTA for example, you opened your MTA played for a while and then closed MTA, it will create new console.txt file instead of storing the logs in previous console.txt file and so on, it only saves 5-6 files. It won't store more than 6 console.txt files.
Title: Re: How to collect your Support hits(Line count)
Post by: BabY on 13 09, 2017, 01:40:00 pm
I Designed such script from 2 months using C++ but forgot to make guide, but of course not like yours, keep it up.
Edit: @Tetoo  I think you were searching for this.
Great idea to program while bored xd
Will try doing something like this, with an additional idea in mind
Title: Re: How to collect your Support hits(Line count)
Post by: iShadow on 17 09, 2017, 09:02:24 pm
On of the most amazing programms for CIT that I ever seen. Thank you buddy, it will be really helpfull, especially for me  <_3
Title: Re: How to collect your Support hits(Line count)
Post by: Amman on 18 09, 2017, 04:29:09 pm
Thank you, looking forward to add more guides that are not posted here. :)
Title: Re: How to collect your Support hits(Line count)
Post by: Madex. on 13 10, 2017, 09:06:03 pm
Thanks man, this guide helped me to get some logs. :)
Title: Re: How to collect your Support hits(Line count)
Post by: Amman on 15 10, 2017, 01:24:44 pm
Thanks man, this guide helped me to get some logs. :)
Glad it helped.
Title: Re: How to collect your Support hits(Line count)
Post by: Amman on 17 10, 2017, 10:15:00 pm
I was using Notepad++ for a long time and didn't see that 'count' feature once, I just tested it and it works fine, thanks for this guide once again Amman :)
Yeah, it's always better to count total lines. Glad it helped. :)
Title: Re: How to collect your Support hits(Line count)
Post by: TheHacker on 10 11, 2017, 09:38:22 am
The link you gave to download Notepad++ is not working, change it to this: https://notepad-plus-plus.org/download/v7.5.1.html
Title: Re: How to collect your Support hits(Line count)
Post by: Amman on 10 11, 2017, 05:16:56 pm
The link you gave to download Notepad++ is not working, change it to this: https://notepad-plus-plus.org/download/v7.5.1.html
Updated, thanks for informing.