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?
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.
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
does ShutdownServer() works?
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