- Posts: 746
- Thank you received: 569
Console Text Capture
- Stern
-
Topic Author
- Offline
Less
More
6 years 5 months ago - 6 years 5 months ago #25
by Stern
The one who hesitates is lost !
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).
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 !
Last edit: 6 years 5 months ago by Stern.
Please Log in or Create an account to join the conversation.
- toadlife
-
- Offline
6 years 4 months ago - 6 years 4 months 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.
Thanks for providing the source. I'll have my son take a look at it and see if he can help me out.
Last edit: 6 years 4 months ago by toadlife.
The following user(s) said Thank You: Stern
Please Log in or Create an account to join the conversation.
- Stern
-
Topic Author
- Offline
Less
More
- Posts: 746
- Thank you received: 569
6 years 4 months ago - 6 years 4 months ago #27
by Stern
The one who hesitates is lost !
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
).
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).
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).
The one who hesitates is lost !
Last edit: 6 years 4 months ago by Stern.
Please Log in or Create an account to join the conversation.
- toadlife
-
- Offline
6 years 4 months 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.
- toadlife
-
- Offline
6 years 4 months 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.

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.
- Stern
-
Topic Author
- Offline
Less
More
- Posts: 746
- Thank you received: 569
6 years 4 months ago #30
by Stern
The one who hesitates is lost !
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?
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.
Birthdays
- Pozytywnefloow in 5 days
- Zbyl in 5 days
- Matheo in 6 days