Vice City: Multiplayer

Off-Topic => Off-Topic General => Topic started by: MEGAMIND on Oct 16, 2020, 08:50 PM

Title: Server_log.txt
Post by: MEGAMIND on Oct 16, 2020, 08:50 PM
Ive noticed alot that server_log.txt only gets filled up when pressed ctrl+c other then this if u close it via close button or x button the logs arent created why?
Title: Re: Server_log.txt
Post by: DizzasTeR on Oct 17, 2020, 09:38 AM
Because the logs aren't flushed until CTRL + C is pressed which is the command to "Close the server normally"

The close button terminates it without actually signaling it to clean everything up so it doesn't flush to the file the log contents.

Thats what I think happens.
Title: Re: Server_log.txt
Post by: MEGAMIND on Oct 17, 2020, 10:33 AM
Quote from: DizzasTeR on Oct 17, 2020, 09:38 AMBecause the logs aren't flushed until CTRL + C is pressed which is the command to "Close the server normally"

The close button terminates it without actually signaling it to clean everything up so it doesn't flush to the file the log contents.

Thats what I think happens.
Your exactly right, i tried using a batch script to taskkill /im server.exe which terminates it directly, isnt there any other method to send somekeys like ctrl+c to close it gracefully and fetch the logs
Title: Re: Server_log.txt
Post by: habi on Oct 17, 2020, 01:53 PM
does ShutdownServer() works?
Title: Re: Server_log.txt
Post by: MEGAMIND on Oct 17, 2020, 02:07 PM
Quote from: habi on Oct 17, 2020, 01:53 PMdoes ShutdownServer() works?
yes but didint exported any logs out, btw i wanna try it out with a batch script or php of possible