Vice City: Multiplayer

Server Development => Community Plugins => Topic started by: habi on Oct 19, 2020, 02:48 PM

Title: logfile maker
Post by: habi on Oct 19, 2020, 02:48 PM
Hi guys, vc-mp server already makes logfile named server_log.txt. But in some cases, like closing server via x button it is reported that log files are not written.

So this plugin will write 'whatever is on screen' to 'logfile.txt'

Platform: Windows       Language: Squirrel

Just call the function 'export' followed by paranthesis. eg. export()  and you can see a new logfile in your folder.

Each time you call the function, the logfiles are fresh written.

Downloads

logfile32.dll (https://www.mediafire.com/file/l387gnotp46b5fy/logfile32.dll/file)
logfile64.dll (https://www.mediafire.com/file/6vwtnuymmua9spw/logfile64.dll/file)

(https://i.imgur.com/th5ayIi.jpg)

(https://i.imgur.com/mmnkA00.png)

Source code c++
SQFuncs.cpp (https://github.com/habi498/logfile-maker/blob/main/SQFuncs.cpp)
Title: Re: logfile maker
Post by: SHy^ on Oct 19, 2020, 04:23 PM
@MEGAMIND :D
Title: Re: logfile maker
Post by: habi on Oct 19, 2020, 05:00 PM
Update:

WIll automatically write the logs. ( at regular intervals )

Source
SQMain.cpp (https://github.com/habi498/logfile-maker/blob/main/SQMain.cpp) the function foo
Title: Re: logfile maker
Post by: MEGAMIND on Oct 19, 2020, 05:03 PM
Quote from: habi on Oct 19, 2020, 05:00 PMUpdate:
logfile32.dll (https://drive.google.com/file/d/1HG1rvED4G2__Ao8eY2dRXTiCFmGPYOhW/view?usp=sharing)
logfile64.dll (https://drive.google.com/file/d/1ns1WHhi23mxIcn9c_9kjngbj8jveCY2o/view?usp=sharing)

WIll automatically write the logs. ( at regular intervals )
awsome oye
Title: Re: logfile maker
Post by: Inferno on Oct 19, 2020, 06:36 PM
Great work man.
Just the thing i was looking for.
Title: Re: logfile maker
Post by: Anish87 on Oct 21, 2020, 02:33 AM
Nice work! Amazing people like always, but can you make one for Linux as well?
Title: Re: logfile maker
Post by: habi on Oct 21, 2020, 02:18 PM
fixed server crashing when more than 2000 print lines on console.

Quote from: Anish87 on Oct 21, 2020, 02:33 AMNice work! Amazing people like always, but can you make one for Linux as well?

mm. let us see
Title: Re: logfile maker
Post by: Ridwan Rz on Sep 25, 2023, 03:37 AM
Seems the plugin doesn't work anymore. Code 126 ERROR.
Title: Re: logfile maker
Post by: PSL on Sep 26, 2023, 09:18 AM
My computer browser has been unable to open drive.google.com, can you fix this problem, I want to try this plug-in.
Title: Re: logfile maker
Post by: habi on Sep 26, 2023, 01:26 PM
Updated to mediafire
Title: Re: logfile maker
Post by: PSL on Sep 27, 2023, 08:29 AM
It is ready to download, but there are 126 errors when loading
Title: Re: logfile maker
Post by: habi on Sep 27, 2023, 09:59 AM
Updated to standalone dll ( removed dependency on vcruntime, msvcp etc )
Title: Re: logfile maker
Post by: PSL on Sep 27, 2023, 03:05 PM
Well done, now the log generation is perfect, thank you very much for making this plugin.