Read ingame chat.

This is a discussion on Read ingame chat. within the DotA 2 Hacks board part of the DotA 2 category; Hey, i want to make a program which translates the chat via google for the players. My problem is that ...

Page 1 of 3 123 LastLast
Results 1 to 10 of 24
  1. #1
    Trojan13's Avatar
    Trojan13 is offline Member
    Array
    Join Date
    Aug 2011
    Location
    Germany
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    7
    Reputation
    33

    Read ingame chat.

    Hey, i want to make a program which translates the chat via google for the players.
    My problem is that im not that good with memory reading. Is there an adress or a pointer or something which includes the last chat message?


  2. #2
    Tracky's Avatar
    Tracky is offline Administrator

    Array
    Join Date
    Dec 2007
    Location
    Germany
    Posts
    9,855
    Mentioned
    158 Post(s)
    Tagged
    2 Thread(s)
    Rep Power
    42
    Reputation
    5607
    Wait, what?
    You want to write an external problem that reads the very last chat message in DotA 2, then exports those information to translate.google.com, reads it our from there afterwards and prints it into a console application or whatever?
    If so, good luck o_O

  3. #3
    Darchrow's Avatar
    Darchrow is offline Life's good.



    Array
    Join Date
    Jan 2011
    Location
    Germany
    Posts
    1,855
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    13
    Reputation
    1246
    You don't need a translator for DotA 2. You just need to learn russian.


  4. The Following 5 Users Say Thank You to Darchrow For This Useful Post:


  5. #4
    Jussp's Avatar
    Jussp is offline Gangster Mod


    Array
    Join Date
    Feb 2010
    Location
    Sweden
    Posts
    665
    Mentioned
    37 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    10
    Reputation
    491
    Quote Originally Posted by Darchrow View Post
    You don't need a translator for DotA 2. You just need to learn russian.
    The truth hurts...


  6. #5
    zinkkyz is offline Newbie
    Array
    Join Date
    Dec 2009
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    0
    Just play on other channels.

  7. #6
    Darchrow's Avatar
    Darchrow is offline Life's good.



    Array
    Join Date
    Jan 2011
    Location
    Germany
    Posts
    1,855
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    13
    Reputation
    1246
    Quote Originally Posted by zinkkyz View Post
    Just play on other channels.
    Yep, I've picked Europe West, US East&West and still get games with full of russians. They should play on their own realm or on China servers or maybe Europe East. But honestly, the matchmaking in DotA2 is terrible anyway.

    BTT: Your idea sounds quite impossible.


  8. #7
    Trojan13's Avatar
    Trojan13 is offline Member
    Array
    Join Date
    Aug 2011
    Location
    Germany
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    7
    Reputation
    33
    Why do u guys think thats impossible?

    It isn't if you can read out the last message and I tried a bit a round with packets and ofc there is a packet with the chat messages.
    The only problem is that I dont know how to read that packet without wireshark.

  9. #8
    juvlarN's Avatar
    juvlarN is offline Newbie
    Array
    Join Date
    Feb 2013
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    5
    Reputation
    4
    its obviously not impossible, but a lot of things to do when you want to do it right...

    i'll give you some ideas:
    backtrace the "chatMessageReceived" function by analyzing what function calls something like "printToChat" or "appendToChatLog"
    then hook that function, pass the chat message to your own function that checks whether the chat message needs to be translated and if so pass it to a function that translates it from "detect language" to english. then manipulate the received message to point to your translated message and let the game render it. alternatively you could just translate every message into english or your native language of course... but for both variants keep in mind google translator won't understand dota-slang so you will have a hard time to decide whether the received message should be translated or not.
    also keep threading in mind as fetching the translated data will take quite some time and freeze the game if you don't.

    it's a lot of stuff you need to know and do and when you don't know how to reverse the functions yourself or how you would implement parts of this, this project is too far off your knowledge to be honest.

  10. The Following User Says Thank You to juvlarN For This Useful Post:


  11. #9
    Blacky372's Avatar
    Blacky372 is offline Guru
    Array
    Join Date
    Apr 2012
    Location
    Hamburg, Germany
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    6
    Reputation
    53
    I would make a menue that lists all players and you can check the russians so it only translates those.
    Because when my friend writes fast "fasdt cometo me i needd yo help pls thewn we can ganmk top" i dont want this to be interpreted as brazilian or whatever and translated into shit.
    You could filter out common dota words too so google dont messes it all up.

  12. #10
    fernmndez is offline Newbie
    Array
    Join Date
    Jan 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    0
    if you dont know how to get the addresses then why are you bothering ?

Page 1 of 3 123 LastLast

Similar Threads

  1. Read before post on general chat
    By Kaskame in forum Entertainment
    Replies: 2
    Last Post: 11-26-2010, 07:54 PM
  2. Chat box! ADMINS READ!
    By coldfire17 in forum D3scene related
    Replies: 2
    Last Post: 02-09-2010, 10:00 PM
  3. Chat box! ADMINS READ!
    By coldfire17 in forum Entertainment
    Replies: 1
    Last Post: 02-09-2010, 09:54 PM
  4. A hack ingame chat
    By Nblufire12 in forum Warcraft 3 forum
    Replies: 6
    Last Post: 07-15-2007, 04:49 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
  •