|
AMX Mod X Plugin Approver
|

10-25-2014
, 15:37
Re: [ OKAPI ] Getting a treemap
|
#1
|
But the address you got can be an address retrieved from linux binary, or a windows one but different version. That's why this can't work if you don't match the right binary. To get such address, you need to use for example IDA, and depending where is your server (to type these commands), you need to check the right one (mp.dll, cs.so, etc.).
Example. I have HLDS on my computer with czero.
Code:
version
Protocol version 48
Exe version 1.0.0.3 (czero)
Exe build: 13:13:29 Aug 29 2013 (6153)
So with IDA, I open mp.dll and find InstallGameRules (since there is no symbol on windows, you need to find function by string (meaning containing), here, you can search "exec game.cfg")
Then, by clicking on it, you will see "sub_something" (i have already renamed in my capture).
That's your function. Click on it:
And what you need is the highlighted offset.
Then in the console:
Code:
okapi desc 0x80C90
######### OKAPI #########
--------------------
Function: 0x80c90
Symbol:
Library: mod
Treemap: "[TG.;nC'.pbG.sXQ.J=g(.;OS'.ueA.1/.*K}.`/F'. 8u{.s9s{.Ohi(.,lm{.s9s{.2/#&.*0J.lE>'.1`}&.-]}&.vMa(.zp='.<cN'.=j12"
Map values {6,4,0,0,5,0,5,7,5,0,5,5,5,5,5,0,5,0,4,4,5,4,6,0,0,4,0,0,5,6,0,0,0,0,7,5,5,5,4,4,4,0,6,6,5,0,0,0,5,0,0,5,0,0,0,4,0,5,5,5,4,4,4,4,4,4,0,4,4,0,4,4,0,4,0,5,5,6,4,0,4,5,3,4,0,4,4,0,4,4,4,4,4,6,5,4,4,5,4,5,5,0,6,5,5,5,4,5,5,5,5,5,5,4,0,4,4,5,5,4,6,0,4,4,
4,6,4,5,4,4,4,5,0,6,5,6,6,5,4,5,0,4,2}
--------------------
#########################
You will notice this treemap is well the same you can see on Okapi thread.
__________________
Last edited by Arkshine; 10-25-2014 at 16:20.
|
|