Console Text Capture

3 months 2 weeks ago - 3 months 2 weeks ago #25 by Stern
Replied by Stern on topic Console Text Capture
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).

The one who hesitates is lost !

Please Log in or Create an account to join the conversation.

3 months 1 week ago - 3 months 1 week ago #26 by toadlife
Replied by toadlife on topic Console Text Capture
I've had it running for three days on my server and it's worked without a hitch so far!

Thanks for providing the source. I'll have my son take a look at it and see if he can help me out.
The following user(s) said Thank You: Stern

Please Log in or Create an account to join the conversation.

3 months 1 week ago - 3 months 1 week ago #27 by Stern
Replied by Stern on topic Console Text Capture
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 :P ).
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).

The one who hesitates is lost !

Please Log in or Create an account to join the conversation.

3 months 2 days ago #28 by toadlife
Replied by toadlife on topic Console Text Capture
It seems to be working fine but it seems to always be one line behind when writing to the file - so the latest line is never written to the file.

Please Log in or Create an account to join the conversation.

3 months 2 days ago #29 by toadlife
Replied by toadlife on topic Console Text Capture
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.
The following user(s) said Thank You: snowman

Please Log in or Create an account to join the conversation.

3 months 2 days ago #30 by Stern
Replied by Stern on topic Console Text Capture
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?

The one who hesitates is lost !
The following user(s) said Thank You: snowman

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum

Next birthdays

  • hanskirst birthday is today (23)
  • John [CZ] birthday is in 1 day (27)
  • Rssabrefinn birthday is in 1 day (1)
  • Kot Matro$$kin birthday is in 4 days (23)
 
 
 
Cookies make it easier for us to provide you with our services. With the usage of our services you permit us to use cookies.
Ok Decline