SmashD

  • Increase font size
  • Default font size
  • Decrease font size

TF2stats G15 plugin

Print
(69 votes, average 4.80 out of 5)

v0.486 beta - active development stopped until further notice

Pics

Your help is needed!

Click here to read why...


Info

tf2stats_explanation.gif

- player class (I)
- server ip (II)
- map name (III)
- kills/frags (IV)
- point captures (V)
- suicides (VI)
- deaths caused by others (VII)
- kill/death ratio (VIII)
- deaths (like dieing from fall damage) (IX)
- number of kills in a row (X)
(suicides or other deaths wont reset this, only getting killed by somebody does)
- current time and time spent on current map (XI)
- number of times you've been killed the last time and its name (XII)
- button 4: reset statistics (manual reset, automatic reset is made on every map change) (XIII)
- button 3: (not shown in the image above yet) switch between main and stats graphs screen
- button 1: save current LCD output to tf2stats.png

Compatible with: Logitech G15 Gaming Keyboard (1st and 2nd edition) and Logitech G10 2.0 Speakers!

---
Version 0.486 - hotfix for a situation where the "awaiting stats" screen won't disappear when "Bypass TF2 process" was set to true.

Version 0.485 contains a huge -and I am saying this again- HUGE performance upgrade. TF2stats will use about 85% less CPU time now, because I have spent some time at optimizing functions, timing and so on. I did not have the time to test every situation you may come across but it should work quite stable (well, disabling TF2stats by clicking the systray icon became some kind of obsolete now, but I won't remove that option, of course).

Version 0.48 may include old bugs, because I have lost my current source code and had to switch to an older backup.
I have re-implemented the systemtray function "Temporarily disable TF2stats" so it won't eat up CPU when not used (it is at about 1% on my X2 4400 but some people (esp. Vista users) may want to use this feature).
There is a check for the function "Insert TF2stats events into player class config files" so you won't add the commands twice. Also, if TF2stats wont find your TF2 directory, it won't crash anymore but giving you hints what to do next.
Furthermore I have moved the TF2stats version info into the "Awaiting stats" screen and removed it from the LCD Manager title, so you won't end up in having several TF2stats entries there.

Version 0.47 includes a better exception handling when starting TF2stats but not configuring it before. Furthermore I have added the main configuration variables from the INI file to the tray icon menu, so you are not forced to edit the INI file by hand for the most cases.
There is a "Temporarily disable TF2stats" mode in there now, too. No CPU usage without the need to exit and restart TF2stats.

If an error about LogLCD.dll is showing up or if you get a message about Visual Basic - install the DLL package, too.

If you get an error about a wrong path please edit the TF2stats.ini file (same path as TF2stats.exe) according the information given there. This should work for Vista, too!

If something is still going wrong, please post a screenshot and reconstructable description of your problem at the "Support, Bugs" section in the board/forum at smashd.de

You might want to try setting Bypass_TF2_Check=true in the TF2stats.ini file. This will bypass the checkup if the TF2 process is running.

Furthermore you might disable the Screenshot functionality by setting Bypass_Screenshot=true (this is a must if you get a GDI+ error!).

From 0.43 and above you might want to disable the animations by setting Disable_Animations to true in the tf2stats.ini file.

From 0.42 and above you may want to execute the tray menu command "Insert Choose Class events to player class config files. This will show your chosen class on your LCD instantly after selecting it rather than after the first kill. This will NOT overwrite your current config's! The information will be appended, so none of your configurations get lost.
In other words: It is safe! (Note: you have to run this function only once, if the appropriate strings are present in the cfg files there is no need to add them again)

As being reported by user Corhen this includes the need of running TF2stats in Administrator Mode.


If there is a major demand reverting this back to the state of 0.4's behaviour (although it is not approved that this version ran fine in user mode and dividing one tool into seperate modules is not my intention actually).

From 0.39 and above there is an option in the INI for disabling button 4 (reset stats).

From 0.397 and above there is an INI setting to completely bypass registry reading and configure the nickname and TF2 path only by INI settings. Helpful especially
for people with 64bit OS and/or with 2 or more Steam accounts.

You might want to disable the rather CPU load intensive transitions between screens by setting Disable_FX=true.

If you don't want the tray icon visible set the corresponding INI value (although it is quite useful to exit tf2stats.exe without using the taskmanager, e.g. when updating to a newer version).

Almost half of the images got cleaned up by Serge, who (thanks alot!) also donated some money by using the paypal form on the left.

If you keep ketting the error "path not found" and are using 2 or more Steam accounts:
Either change your "modinstallpath" registry entry to point to your Steam path where TF2 is on or wait for the next release of TF2stats - there will be an option to disable registry parsing and using only INI settings. This won't be automatically in this case, of course. (Done!)

I have included a startup command "debug". It will tell you every important step when tf2stats is starting. Usage:

tf2stats.exe debug

Please take a look here, too.

Usage

Press the appropriate button near your G15 LCD to show up the TF2stats plugin.
Start TF2 with the -condebug flag (e.g. edit your desktop shortcut to start
steam.exe -applaunch 440 -novid -console).

Start the game and join or start a server.

From 0.42 and above you may want to execute the tray menu command "Insert Choose Class events to player class config files. This will show your chosen class on your LCD instantly after selecting it rather than after the first kill. This will NOT overwrite your current config's!
The information will be appended, so none of your configurations get lost.
In other words: It is safe! (Note: you have to run this function only once, if the appropriate strings are present in the cfg files there is no need to add them again)
Furthermore this required the usage of one more system file called comdlg32.ocx. If you get an error about this, please install the new DLL package v1.1. Furthermore this includes the need to run tf2stats.exe in administrator mode, because it (who guessed it? Wink ) needs file access to the .cfg files of the player classes.

HowTo


Be aware of the fact that it can work ONLY when your console.log saves ENGLISH logs like "x killed y with z" and so on.

Image
Click the image for a quick How-To.

Vista Tips

Thanks to Arcdeo, who posted this into the comments.

Hey guys,
After much trial and error, I have comiled bits of info from other post to finally solve problem with my Vista 64bit install. Maybe thiis will help others:
Append "-applaunch 440 -novid -condebug" to desktop shortcut
Add "-condebug" to Steam additional launch options
Place TF2stat.exe and
TF2stat.ini (my need change file/folder viewing options to see file)
into "C:\Program Files\Logitech\GamePanel Software\LCD Manager\Applets"

Most important:
Change props of both TF2stat files in previous post to "Run as Administrator"
Change props of TF2stat.exe to compat mode for windows xp sp2.
Change props for TF2 desktop shortcut to "Run as Admin" and
Change props for TF2 desktop shortcut to Compat Mode : "Windows XP SP2"
After doing this Lauch TF2 from desktop and play a game.
Oh disable Registry lookup and install dll kit. this is also a must (Note by SmashD: Registry Lookup uses a Win XP SP2 DLL hook to determine if TF2 is running, but this DLL call is terribly slow when using it in Vista and I don't know a compatible Vista alternative)


Another step-by-step-guide by Farenheit (thanks alot!):

Complete *Working* Vista 64bit Instructions

These instructions assume you've installed Steam, Team Fortress 2, and Logitech GamePanel Software in their default paths. These are the exact steps I did to get TFStats working for me.

1. Download TF2Stats plugin zip file.

2. Download TF2Stats DLL package exe file and run it.

3. Extract TF2Stats plugin zip file to:
C:\Program Files\Logitech\GamePanel Software\LCD Manager\Applets

4. Edit the TF2stats.ini file to have the following information:
Steam_TF2_Path=C:\Program Files (x86)\Steam\steamapps\\team fortress 2\tf\
Steam_Nick_Name=xxxxx
Bypass_TF2_Check=true
(replace the xxxxx with your information)
**NOTE: you may have to make a copy of TFstats.ini on your desktop to make the changes, then copy the edited file to the Applets folder, since Vista doesn't let you edit files there most times.

5. Change "Steam.exe" to run as Administrator (right-click "C:\Program Files (x86)\Steam\Steam.exe" and click Properties. Click the "Compatibility" tab. Check "Run this program as an administrator." Then click OK.)

6. Change Team Fortress 2 "hl.exe" to run as administrator (right-click "C:\Program Files (x86)\Steam\steamapps\\team fortress 2\hl.exe" and click Properties. Click the "Compatibility" tab. Check "Run this program as an administrator." Then click OK.)

7. Run Steam.

8. Click the "My games" tab.

9. Right-click Team Fortress 2 and click Properties.

10. Click the "Set launch options" button.

11. Paste in this line: -condebug -novid

12. Create a shortcut on your desktop for Team Fortress 2. Make sure the path looks like this:
"C:\Program Files (x86)\Steam\Steam.exe" -applaunch 440 -condebug -novid

13. Right-click the Team Fortress 2 shortcut on your desktop, and click Properties.

14. Click the "Compatibility" tab. Check "Run this program as an administrator." Then click OK.

15. Create a shortcut on your desktop for TF2 Stats. Make sure the path looks like this:
"C:\Program Files\Logitech\GamePanel Software\LCD Manager\Applets\TF2stats.exe"

16. Right-click the TF2 Stats shortcut on your desktop, and click Properties.

17. Click the "Compatibility" tab. Check "Run this program as an administrator" and run the program in Windows XP compatibility mode. Then click OK.

18. Run the Team Fortress 2 icon on your desktop, load the game, then quit.

19. Verify that it created a "console.log" file here:
C:\Program Files (x86)\Steam\steamapps\farenhe1t\team fortress 2\tf\

20. If that file exists, run your TF2 Stats shortcut.

21. Run the Logitech GamePanel Manager program, and click the "Programs" button on the left.

22. You should see "TF2stats (c) smashd.de" as one of the programs. Make sure both of it's checkmarks are checked. (Note by SmashD: that would be "allow program to show up on LCD" and "autostart this program at windows startup" which would male 25. obsolete)

23. Close the GamePanel Manager program.

24. Now if TF2 Stats is running, launch TF2 from your shortcut on the desktop, and you should see animations on your LCD. Once you kill someone, you should see stats show up.

25. From now on, run TF2 Stats from the shortcut on your desktop, then launch TF2.

 

Please note that the only reason why you have to mess around with "run as admin" settings in Vista is, that no other user right than the said admin is allowed to write files.

All contributions by the named tf2stats users are highly appreciated! Thanks very much.

Q&A


Does that show your stats for just that life? Or the whole time your in the server?
It shows the stats for the current map. If you wish to you might press the most
right button (4) on your G15 to instantly reset the shown stats, so they show
the stats from the moment you've pressed the button until the map changes.


Could you re-paint some images? They are ugly!
Get yourself a try doing neat images in black and white only at a 39x43 pixel space.
If yours looks better I'll include it in the next release...maybe.

Why do I have to run TF2stats in "Administrator Mode"?
TF2stats needs file access to inject some echo commands into the player class's config files that TF2 runs if you select a specific player in-game. This enables TF2stats to show you the chosen player class instantly rather than after the first kill.

Why is TF2stats eating up so much CPU power (>3% when being idle)?
This happens on Vista systems sometimes, because I am using a direct DLL call to determine if TF2stats is running or not. Please set Bypass_TF2_check to TRUE in the tf2stats.ini.

In very rare situations TF2stats exits with "Zugriff verweigert" (german error message, never being reported by any other user though). Why?
This happens if TF2stats tries to read the console.log and TF2 denies to allow it. Of course TF2stats tries it several times, but if unsuccessful it just throws an critical error and stops running. At the moment I am unable to fix that.

Is TF2stats VAC-proof?
In my opinion it is 100% safe, no case is known yet. In addition TF2stats only parses console.log messages - no (RAM) memory reading/saving or any manipulation to game files at all.

The G15 LCD is crambled, all pixels wobble around in a strange way and/or I cannot see a clear image!
The so-called wrapper needs your desktop colour bit depth to be at 32bit and your resolution set to 96dpi (default).


Suggestions are, as well as a donation , very welcome:
please drop a message in the "Suggestions, New Features" section at the
board/forum at smashd.de


Notes


Please bear in mind that this is in early development. To reduce CPU usage
(parsing the file every x seconds is not that fast as I would like it to be)
this plugin will clear out the log's information every time it exceeds 50kb of size.
This is not necessary for any game function, but if you would like to keep your
console.log file you might consider if you want to use my plugin.

Downloads

If you keep getting a message about "Session not validated" and are not allowed to download, please try again in some minutes. Thanks!

Stand-Alone-Version

Download

 

TF2stats DLL package (install if you are getting runtime errors)

This DLL package should fix any DLL and/or ActiveX error you might get.
Please press "Ignore" if any error comes up during the installation.
Why? Because I don't want to overwrite existing or appropriate installed
files, the copy process will fail at those. Smile

This package only contains the DLLs needed to run TF2stats.
To install TF2stats itself please obtain the newest copy from above.

Download

Opinions

  • Outstanding job and great app!
  • Once again great work and thanks for your efforts.
  • Damn it. I was going to buy a G15 but figured I wouldn't have any real use for the screen. Then I see this thread after buying a different keyboard. Grr.
  • SmashD... you've done a smashing job if you ask me
  • keep up the great work
  • Many thanks for making and sharing this app. Have a cookie
  • Works perfectly

    That is extremely cool, awesome job. Now if only I had one of these keyboards so I could use this (although that would require money...).
  • I'm just happy to get this working. I love the plugin. I had posted it over in the clan forums where I belong (...) Thanks for all your hard work on the plugin, it's awesome.
  • Awesome plugin! This one alone makes my G15 worth every penny I spent!

Repository

This location is being prepared for the 2 volunteers, who want to continue the work on TF2stats. You may download published files (by them) in the following directory listing:

currently disabled, formerly interested coders seem to have dropped the project as well

You ran across an error? You want to complain about something or have any other things to say? Please drop a message in the forums, NOT the comments (when asking for help). Thanks!


(c) 2008 smashd.de

Names and other trademarks are the property of the respective trademark holders.
None of the trademark holders are affiliated with smashd.de.

 
You may send a trackback for this article by using the following Trackback link
Comments (12)
New Weapons?
12 Thursday, 07 January 2010 23:59
Cerbrus
Heya!
I'm absolutely loving this app, great work on it, but there's 1 tiny problem:
The App does not recognise new weapons yet. Is it possible for those to get implemented, or perhaps, to obtain a copy of the source-code, so I can have a look at is myself? Razz

Thanks a lot for this grea app!

Cerbrus.
You may send a trackback for this article by using the following Trackback link
New weapons...
11 Thursday, 07 January 2010 21:01
Cerbrus
Heya, first of all, I would like to thank you guys a LOT for this app, It works like a charm! But there's 1 little bug:
The program does not recognise new weapons (Yet?), and sometimes your class, because of that.
Could it be possible to implement that? Or perhaps, could it be possible for me to help you with that?

Still, huge thanks!

-Cerbrus
You may send a trackback for this article by using the following Trackback link
Need a hand
10 Thursday, 27 August 2009 05:37
sonu
Hey i just got my G15 less then a week ago and i need a hand...

i installed LCD 2.0 and i downloaded the tf2 stat display from this website..

i just need help in putting it all together... like where do i install what and click on who.. for dummies...

any help is really appreciated

---
Development and support did stop a while ago but you might want to try the steps shown in the HowTo-Image (4th tab above) again, please take your time to understand what you are doing. Good luck, I am sure you will get it. Regards!
You may send a trackback for this article by using the following Trackback link
tf2 stats Cant get the stats to work
9 Sunday, 09 August 2009 18:51
Jabba
i cant get the stats to work they just say 0 , the character thing changes but the stats dont
---
If the character changes but your stats do not you have to double-check that your nickname is written in the exact same way in the config as in TF2.
You may send a trackback for this article by using the following Trackback link
Can't seem to get it to work
8 Saturday, 01 August 2009 20:57
MichaelVash7886
Got a G15 in yesterday. I tried installing this, runtime error. I ran the DLL installer and tried again. Got the console logs not found. I ran the game with the launch options mentioned and I got it somewhat working, do I have to keep the launch options the same? I accidentally ran TF2 with the same launch options and TF2 Stats crashed. I then tried to run TF2 stats again after exiting the game and it said console log not found. So do I need to re-do the console debug then take the launch option out? Or is there something more going on?
---
The -condebug flag has to be set in order to be able for tf2stats to run properly. Further required settings are your exact in-game nickname and the path to the console.log. If you still get the "console.log not found" message when starting tf2stats afjust your settings.
You may send a trackback for this article by using the following Trackback link
Re: TF2stats plugin
7 Thursday, 30 July 2009 17:40
SupSuper
Hey, thanks for the help, your idea tipped me off to the real problem. I have Large Fonts (120dpi) set on my display settings, so I switched it back to Normal Fonts (96dpi) and that fixed it, I guess your plugin uses that to render the LCD, doesn't happen with any other LCD plugin.

I read that development has stopped so you won't be fixing this, so I'll just leave this comment here for anyone else that runs into the same problem. Smile

---
Thanks for the reply and solution to your problem. Development is slowly progressing by someone I gave my source code to. Wink Anyway, there is no way to fix this problem on my end, because the wrapper class was not written by me - in short: i am only *cough* collecting data and preparing it graphically for the output. This is the point where the wrapper gets involved and exactly the source of the 16bit and not-96dpi problem. That being said, I want to thank you again for posting feedback.
You may send a trackback for this article by using the following Trackback link
Re: TF2stats plugin
6 Thursday, 30 July 2009 16:11
SupSuper
Still got the same problem.

---
Changing the desktop bit depth to 16 was the only situation I came across your problem of messed up graphics on the G15 LCD, so this was my only advice. A quick Google search did not came up with another possible solution either. I am sorry. Sad
You may send a trackback for this article by using the following Trackback link
TF2stats plugin
5 Wednesday, 29 July 2009 22:44
SupSuper
Hi. I just got a G15 keyboard and your program looks great for playing in TF2!

However I've followed all the instructions and configurations but the only thing that shows up on the LCD is a garbled mess of pixels. Sad I'm on Vista 64-bit, followed all the specific Vista instructions and nothing fixes it. I can't see anyone else having this problem, maybe you know why?

---
Try setting your desktop color depth to 32bit instead of 16bit. That should do the trick.
You may send a trackback for this article by using the following Trackback link
RE: TF2 Stats Plugin
4 Friday, 05 June 2009 19:09
Alteran Ancient
This sounds like promising news; I've always wanted to take a crack at building one or two apps, especially in colour for this awesome G19. I even had a bit of a brainwave to introduce recording statistics such as double-kills, multi-kills, and generally taking advantage of the majority of servers that use HLStats and/or "Quake Sounds", because they can actually output some very useful information to the console!

I just need to suss-out how to properly interface between VB.NET and the LCD. I can do "Hello World" and other text, but so far, images and bitmaps are beyond me.

---
Maybe the "Hobbits LCD Wrapper" is something you may find useful: http://g15forums.com/forum/showthread.php?t=3626 External link
You may send a trackback for this article by using the following Trackback link
TF2 Stats Plugin
3 Friday, 05 June 2009 15:09
Alteran Ancient
Hey there! I was a loyal user of your TF2 Stats app for the G15, but have now upgraded to the Logitech G19, and would very much like to see an updated version to support the G19 and it's glorious Colour LCD screen.

Many thanks!

---
Hello. Your comment is very much appreciated and in fact I am discussing further development with 2 users at the moment. They asked me if there would be a way to get the source and closing the current gap between TF2stats and newer possibilities (achievements) in TF2. G19 colour LCD support is being thinked about, too.
You may send a trackback for this article by using the following Trackback link
TF2 Stats Plugin
2 Wednesday, 03 June 2009 07:06
patbol1
Hi!

Thanks for your answer !
I think you understand it now : i own a G19 and i use the TF2 Stat plugin on it. It works well (except for the new weapons). If you don't mind i want to upgrade your plugin to the G19 with the new items and with color graphism.

You can contact me by mail for easier contact.

Thanks, patbol1
You may send a trackback for this article by using the following Trackback link
TF2 stats plugin
1 Tuesday, 02 June 2009 17:15
patbol1
Hello !

I'm french and i want to know if you are working on a G19 version of your TF2 stat plugin ?

Thanks by advance for your answer

---
I am sorry, but development of the TF2stats plugin stopped. This means no G19 version either.
You may send a trackback for this article by using the following Trackback link

Add your comment

BoldItalicUnderlineStrikethroughSubscriptSuperscriptEmailImageHyperlinkOrdered listUnordered listQuoteCodeHyperlink to the Article by its id
Very HappySmileWinkSadSurprisedShockedConfusedCoolLaughingMadRazzEmbarrassedCrying or Very SadEvil or Very MadTwisted EvilRolling EyesExclamationQuestionIdeaArrowNeutralMr. GreenGeekUber Geek
Your name:
Your email:
Subject:
Comment:

Main Menu


Donate using PayPal
Amount:

Reason or appointment:
Your name that will show up:
  • List containing 5 donations for all time.
  • DateAmountCurrencyName
    12:56:07 Oct 15, 2009 PDT5.00EUR
    11:17:21 Oct 15, 2009 PDT30.00EUR
    02:09:44 Aug 09, 2009 PDT5.00EURanonymous
    03:30:18 Jul 12, 2009 PDT10.00EURF089
    17.06.200920.00EURF089

    This website is worth

    What is your website worth?

    Google Pagerank, SEO tools



    English French German Italian Portuguese Russian Spanish

    Now Online

    Now online:
    • 5 guests