Is this error only if the program is launched on Desktop ?
It might be some settings that prevent folders created on Desktop.
But if you create this folder manually, then what happens ? (Youll get file access error?)
Try to launch it in non-critical area, outside Windows, ProgramFiles, User folders, Desktop.
(If i set it up into ProgramFiles i get the same Errors).
I will have a look if there some way to set up privileges from code or maybe use some free Installer, that sets up privileges by itself...
Link updated (Error handling changed).
Did you try to filter out some text ?
Left and Right filter has a reason:
If the filter has just overall search and its set to search "Enemy" to discard any line that contains "Enemy", then if player uses name "Enemy" it will be filtered out.
So you can select from where the search begins.
And It can still miss some lines if they come in very fast, if you kill 10 enemy at once...
I also did a test and run a server (without enemy scripts, try it ! its fun ).
Collecting all data doesnt take up much space, so the filter might not be so useful.
*I added a option to open Log file into memo box (downld link is the same).
I've not tried the filtering, but I probably will to get rid of the "killed" messages. It would be easier to parse if the output file was comma separated. I would simply make the file "YYYY-MM-DD hh:mm:ss ,message" I can deal with it how it is now though just fine.
It being a line behind is the only real issue for now.
This shift is caused by APPEND function, I use it because its fast (it holds the file open and adds lines),
and line gets saved if next one comes in.
If i just make it to read all data and save all data+new line it would be slow and get slower as more lines get saved.
If the TimerInterval is set to 100ms it has to do it 10x in on second and it will just get stuck and probably use more CPU.
Is the last line lost if Console is the first that get shut down?