Extracting LAN game data from Warcraft 3 (preferably c++)

This is a discussion on Extracting LAN game data from Warcraft 3 (preferably c++) within the Warcraft 3 Hacks, bots and tools board part of the Warcraft 3 forum category; Dear all, I have a question regarding visual c++ programming and Dota . The background for this question is the ...

Results 1 to 8 of 8
  1. #1
    robertg is offline Newbie
    Array
    Join Date
    Dec 2010
    Location
    The Netherlands
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    0

    Extracting LAN game data from Warcraft 3 (preferably c++)

    Dear all,

    I have a question regarding visual c++ programming and Dota. The background for this question is the project i'm currently busy with. Basically the project involves a microcontroller which has a graphics LCD and an USB connection with my PC. The ultimate goal is to show stats on that LCD during Dota matches. The USB communication with the hardware is already complete. I have also made a basic program in windows to toggle a led and read an ADC value from the microcontroller, so communication to the LCD from my computer is not a problem.

    So my question is: how do I get Dota-stats from my machine and be able to use them inside my visual c++ program (for example player names, hp,kills/deaths/assists etc.)? Will I be able to get live stats while i'm running this program? How do i extract things like player names from Warcraft? I would like to get it to work for LAN games.



    I have programming skills in mainly c and also a moderate amount of c++, maybe a little bit java/python (although it was a long time since i used it). Can someone point me in the right direction?
    Thank you in advance,

    Robert Grootjans

  2. #2
    Mads's Avatar
    Mads is offline Formerly Zo8

    Array
    Join Date
    Nov 2008
    Location
    Denmark
    Posts
    2,290
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    18
    Reputation
    1647
    Approved thread, sounds interesting, but unfortunately I can't help you. Let's hope there's someone here that can help you out.

  3. #3
    Daniel999's Avatar
    Daniel999 is offline bla

    Array
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    2,182
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    15
    Reputation
    1083
    You could try to get memory addresses with tools like Cheat Engine/Art money and read out the value. The value is the number that will be shown in your program.
    You would have to search for the base pointers.
    Someone else might know more detailed stuff about this.


  4. #4
    McPeon's Avatar
    McPeon is offline Da flying one

    Array
    Join Date
    May 2010
    Posts
    976
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    10
    Reputation
    437
    Try to contact the makers of GHost.
    GHost is a hostbot for Warcraft3 which saves stats of every gamer that gamed with it.
    It also can save DotA stats(wins/loses, kills/deaths/assists/...)
    I think it's open source not sure, and made in C++
    Their homepage is something like codelain.net to lazy to watch now^^

  5. #5
    Solidify's Avatar
    Solidify is offline Geek
    Array
    Join Date
    Feb 2010
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    8
    Reputation
    165

  6. #6
    McPeon's Avatar
    McPeon is offline Da flying one

    Array
    Join Date
    May 2010
    Posts
    976
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    10
    Reputation
    437
    GHost++ Version 17.1 Custom Build 3.6 <-- Sourcecode download :>

  7. #7
    robertg is offline Newbie
    Array
    Join Date
    Dec 2010
    Location
    The Netherlands
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    0
    Dear all,

    Thank you for your replies. First of all I have looked at ghost++, since i have been using it for over a year now. In my opinion this is very complicated to start with, maybe I'll use it to expand my project later on. The path I'm choosing is using the process memory (with the function ReadProcessMemory).

    Since Daniel999's post i have been trying cheat engine (great program), and i have been able to read the mana-pool value from the process memory in a make shift c++ console-app (I'll post some code once I've refined it). I've still got one problem though. How do I always get the right memory address, is there a way how I can calculate the offset of war3.exe in the memory?
    Regards,

    Robert

  8. #8
    YourName's Avatar
    YourName is offline THE ONE AND ONLY DARK KNIGHTY


    Array
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    1,553
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    16
    Reputation
    1088
    I advise you to take a tour to skillhackers.com - I'm pretty sure you'll get more decent help over there with your project.
    Providing you with foolish stuff since 2007.

Similar Threads

  1. [US East] Who is active @Azeroth..preferably TFT
    By dgarrett8 in forum Team Search
    Replies: 4
    Last Post: 07-18-2010, 03:49 PM
  2. World Of Warcraft:Whats your game(juno)
    By <GM>Bumblebee in forum Entertainment
    Replies: 0
    Last Post: 06-26-2010, 09:33 AM
  3. Replies: 1
    Last Post: 05-12-2010, 05:33 AM
  4. a game made after warcraft 2
    By jphix in forum Warcraft 3 forum
    Replies: 6
    Last Post: 06-03-2009, 07:28 PM
  5. DDO "Examine Game Data"
    By xgmx in forum Other Games
    Replies: 0
    Last Post: 09-13-2008, 07:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •