TF2 Kill-counter through an Arduino

I made a program in VB that reads TF2’s console log and tracks kills, deaths, and suicides by me. It’s main function is to count the number of kills I make in each life and send that number to the Arduino. I hooked up five LED’s to the Arduino and they display that number (roughly realtime) in binary.

It’s nothing too spectacular, but I just thought someone would get get a kick out of it.

——
Source code :: http://www.filefront.com/15246085/ICF-Arduino-Kill-Counter.rar/
——

Holy crap, apparently this was on Hack-a-Day. I feel special, haha

Duration : 0:1:26


[youtube d7Pft-GPQWU]


Posted

in

by

Comments

19 responses to “TF2 Kill-counter through an Arduino”

  1. Nopp3 Avatar
    Nopp3

    with a little …
    with a little reworking, i got it working on an old coil gauge (from analog voltmeters and such)

    pretty much just mapping the serial value to 0-255 and pwm that to the gauge (adjusted to 5v with a pot).

    if i get a hold of a camera ill see if can make a video response once i make some adjustments.

    good stuff freezie

  2. ObiTrev Avatar
    ObiTrev

    @IceColdFreezie I …
    @IceColdFreezie I did not mean to vote you down, I was trying to click into blank space to override another window. YOU NEWTUBE!

  3. chrisdelvalleisgreat Avatar
    chrisdelvalleisgreat

    AWESOME!
    AWESOME!

  4. Nopp3 Avatar
    Nopp3

    hey icecodfreezie, …
    hey icecodfreezie, i saw this on hackaday some time ago and i thought it was pretty cool.

    now im in the process of making a 6 7segment glowtube display.
    i was thinking of giving a kill/death counter try after im done

    i’ve downloaded your source and if i get it running i’ll try to get a video response up

  5. 01100010 Avatar
    01100010

    learn how to spell.
    learn how to spell.

  6. karupt420 Avatar
    karupt420

    your a …
    your a faggot

  7. HUEGLIEKXBAWKS Avatar
    HUEGLIEKXBAWKS

    That is a sweet …
    That is a sweet keyboard. I love old IBMs, they’re practically indestructible.

    Nice hack, by the way!

  8. IceColdFreezie Avatar
    IceColdFreezie

    @jaimeshm
    Thanks!

    @jaimeshm
    Thanks!
    If you right click on TF2, click Properties, click Advanced Launch Options, and type in -condebug, it will be written to C:\Program Files\Steam\steamapps\*username*\team fortress 2\tf\console.log

  9. jaimeshm Avatar
    jaimeshm

    honestly, this is …
    honestly, this is so cool. im going to try setting this up when i have some time. just one question. where is the TF2 console log file located?

  10. timg810 Avatar
    timg810

    @LandoHungus

    shut …
    @LandoHungus

    shut up

  11. kirbyfan95 Avatar
    kirbyfan95

    I am going to use …
    I am going to use you as inspiration for my newfound soldering skills.

  12. IceColdFreezie Avatar
    IceColdFreezie

    @LandoHungus

    @LandoHungus
    camera has no autofocus when it’s taking a video, it’s pretty old, i was leaning over my desk at an awkward angle to see if it would capture the program.
    Sorry for ruining your day and your life, I shall go wash my mouth with soap and ground myself for the next two weeks.

  13. LandoHungus Avatar
    LandoHungus

    shake the camera …
    shake the camera more, that should help you focus on the screen. then apologise, but do nothing to correct your crappy video.

  14. UserIDofDoom Avatar
    UserIDofDoom

    Electrical …
    Electrical engineering for the win.

  15. IceColdFreezie Avatar
    IceColdFreezie

    @igob8a
    Ooooooh, I …

    @igob8a
    Ooooooh, I forgot about that. Right now it just logs everything you kill, be it man or machine.

  16. igob8a Avatar
    igob8a

    Does it …
    Does it differentiate between player and building kills? AFAIK killing a dispenser is logged as the engineer dying in the console.
    Very cool though

  17. IceColdFreezie Avatar
    IceColdFreezie

    @cuno32
    The VB …

    @cuno32
    The VB program reads TF2’s console log file and checks for my name. If I kill/die it adds 1 to the appropriate counter and uses serialport.write to send that number to the Arduino via the USB cable. The Arduino uses serial.read to get the number, converts it to binary, and displays that through the LEDs.
    Just fixed the filefront link too, thanks.

  18. cuno32 Avatar
    cuno32

    Very neat- it would …
    Very neat- it would probably be a small step from that simple set up to a 7 segment display or two. How does the software speak to the microcontroller, SCI? What arduino setup is that? Also, your filefront link seems to be down.

  19. kbbanimator Avatar
    kbbanimator

    noice!
    noice!

Leave a Reply