Page 1 of 1

Exporting draft rankings - Memory Reading

Posted: Wed Mar 27, 2019 2:42 am
by Gabisonfire
Hi all,

As some of you may know, one of the longest task in online leagues is to rewrite the ISS rankings.
I've tried a couple of times to read this data from the ram and could get some of it out but nothing consistent unfortunately due to my little knowledge of memory reading.

I've contacted garfild multiple times (creator of EHM Assistant) but he seems to be gone (Last active:Tue Mar 07, 2017 3:43 pm)
If we can find a way to extract data consistently like EHM Assistant, I'd make it as an API to provide easy access to game data making it possible to create league website easily etc etc.

I'd just like to know if anyone has any idea's on how to work it out, I'm ready to work with anyone willing to give it a try, and make all our work open source. Was thinking to use C# and/or Python.
I've played around with MemorySharp and CheatEngine.

Best bet is to reach me on Discord
Gabisonfire #1766

Exporting draft rankings - Memory Reading

Posted: Fri Apr 05, 2019 10:31 pm
by archibalduk
It's really difficult because it is likely to be a lot of unreadable hexadecimal as the game uses a relational database. The section of memory which stores the ISS ranking might well contain a Staff ID (a 32-bit integer) and ISS ranking (perhaps an 8-bit or 16-bit integer). You will need to find the Staff IDs of a sample of players (which you can find by loading the saved game in the EHM Editor) and then try to find a pattern in the memory where these Staff ID values appear and narrow down to where they appear near integers which correlate with their ISS ranking.

A further complication is that the game might well use some sort of points system to calculate the rankings. If that's the case, the points might be stored in some table and then the game just shows a list of players sorted by points but with the points hidden. If that's the case then it may be near impossible to figure out.

You're probably best off looking at the saved game itself. Open the saved game in the EHM Editor and click on File -> Unpack. Then you can have a dig around the various extracted files. You might find something that way. If you can then it might help with then locating the same data in the RAM whilst the game is loaded.