We crown ourselves

Royal Para Regiment

Console Text Capture

More
6 years 5 months ago - 6 years 5 months 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 !
Last edit: 6 years 5 months ago by Stern.

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

More
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.
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.

More
6 years 4 months ago - 6 years 4 months 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 !
Last edit: 6 years 4 months ago by Stern.

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

More
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.

More
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.
The following user(s) said Thank You: snowman

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

More
6 years 4 months 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.

  • Pozytywnefloow in 5 days
  • Zbyl in 5 days
  • Matheo in 6 days
Powered by Kunena Forum
The RPR Clan gaming community has long been known to fans of action battles and online battles. Fans of dynamic games gather here to share their experiences, participate in competitions, and enjoy the atmosphere of teamwork. Every evening, players from different countries can be found on the server, which makes the process even more interesting and unpredictable. Interestingly, gaming often intersects with other areas of entertainment. For example, in the world of casinos, special attention is paid not only to the thrill of gambling, but also to the design of the venues, where every detail creates a unique atmosphere. In this regard, it is worth paying attention to the article on how the world's most impressive casinos are created and what elements allow them to make such a strong impression on visitors — ahouseinthehills.com. The article reveals architectural solutions, gaming spaces, and aesthetic approaches that can surprise even those who are far from the gambling industry. Thus, both the esports community and the casino world share a common idea: to create a space where people can fully immerse themselves in the atmosphere, feel the thrill, and experience vivid emotions. RPR Clan gives this to its players through online battles, and the world's best casinos do so through their unique design and atmosphere.