Jump to content

Recommended Posts

Posted

How would one read a games memory(chat log)?

I have a few friends I play a online game with (WarCraft III) but they don't all speak in English :

so I want to use a translator on every new line (or when I hit a hotkey+# it'll read the last that # of messages sent )

(I'll probly just use Google's)

then I'll have the translated text splash (or use a text to voice program) on the screen.

So how does one go about reading a games chat log?

I'm not asking for a hand out just some pointers.

I'm a newbie.Sorry if I don't reposed to your replays very fast.

Posted

First, locate the log.

After that it's pretty easy; read in the file, chop it up into lines (into an array of lines, perhaps) and then process them.

But first, you need to find the log!

;o)

(or

nothing is foolproof to the sufficiently talented fool..

Posted

I have a good ideal how to do everything but getting the log. Maybe someone can help me out on that?

I'm a newbie.Sorry if I don't reposed to your replays very fast.

Posted

It's a chat log, right? So play a game, and, in chat, say "ZUDOERJEJUDXTY".

Then quit the game, and run a full-text search for the word, ""ZUDOERJEJUDXTY".

The file you find it in will probably be your chat log.

It will probably be in the game's folder.

;o)

(or

nothing is foolproof to the sufficiently talented fool..

Posted

I can't seem to find the chat log that way. I've searched for both words used and user names.

I believe it only saves the chat log in replays of the game (after the game is over).

I'm a newbie.Sorry if I don't reposed to your replays very fast.

Posted

Your going to have to read the memory, which for chat logs is usually difficult, I'd recommend getting a memory searcher to find certain snippets of the text and trying to figure out exactly how WC3 does it. I'm going to warn you, you might get caught by Warden (Warcrafts hack detection)

Posted

I only play custom games so Wardens not a issue. (and thanks for your help)

I've never used a memory reader/editors before but I think I found it.

I found (Started on address 0A83006C)

  Quote

E:\Drive1\temp\buildwar3x\engine\Source\Frame\CTextArea.cpp 8 ¿mo[Allies] |CFFFED312Fishdo:|R First line of text 8 ¿mo[Allies] |CFFFED312Fishdo:|R 2nd line of test 8 ¿mo[Allies] |CFFFED312Fishdo:|R 3rd line of text

On the editor it looks a little different some of the symbols didn't copy and past right.

Would it address change ever game? b/c in the next game the address was 13BF006C.

and I'm at a lost of what to do now.

I'm a newbie.Sorry if I don't reposed to your replays very fast.

Posted

You will need to find that address as Text type, and you should find out what memory writes it so you make a pointer and a offset and store it(so you don't lose the address). But anyhow i don't think chatlog are saved in WC III.

Posted

Sorry for being a newbie but how do I find out what memory writes it?

and I got no clue what a pointer and a offset is.

I'm a newbie.Sorry if I don't reposed to your replays very fast.

  • 4 months later...
Posted (edited)

Dead-Post-Bump-Ish (I haven't had much free time)

Ok so I got the pointer (or pointers I keep getting 4 of them guess I'll have to test one by one) and the offset is 00.

What should be my next step? I'll take any bit of help even just a link to a topic/tutorial.

Into then I'll keep googleing.

Edit* I started playing around with the WinAPI stuff but I can't seem to access war3.exe with it.

"_WinAPI_OpenProcess:Standard: Access is denied."

Edited by Orgins

I'm a newbie.Sorry if I don't reposed to your replays very fast.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...