Raised This Month: $ Target: $400
 0% 

[ OKAPI ] Getting a treemap


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-25-2014 , 13:26   [ OKAPI ] Getting a treemap
Reply With Quote #1

I have a problem with okapi, I can't get the treemap and I can't get the func adress by using a treemap. When I write the command server freeze for some seconds and it show nothing, sometime it doesn't freeze but it still show only
Code:
######### OKAPI #########


#########################
For example:
Code:
] okapi desc 0x550F0

######### OKAPI #########


#########################
Or
Code:
okapi search "jp='.BU*&.B8u{.N#,#.Q'Z$.z=F'.uYU{.#dJ$. 2I$.T\F'.-)V{.Mp/$.RXS{.00}&.;WU{.!eu{.u~V{.UP_(.c:B.+5 &. 8u{.7,V{.*+w&.j+w&...&~3"
Here the server freeze( too many calculation I think ) and after that it still show as above.

Do you have some clue about what I'm doing wrong ?
__________________

Last edited by HamletEagle; 10-25-2014 at 13:27.
HamletEagle is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-25-2014 , 14:05   Re: [ OKAPI ] Getting a treemap
Reply With Quote #2

What function? What OS? What game version? More concrete informations please.

It could happen when there is no reference call.

About the treemap, this works for me under windows. It finds some addresses in engine.
__________________

Last edited by Arkshine; 10-25-2014 at 14:06.
Arkshine is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-25-2014 , 14:35   Re: [ OKAPI ] Getting a treemap
Reply With Quote #3

OS: Windows 7 Ultimate
HLDS VERSION:
Code:
Protocol version 48
Exe version 1.1.2.7 (cstrike)
Exe build: 17:46:18 Apr 25 2013 (6027)
CS 1.6 obvious.

Function: InstallGameRules.

Again:
Code:
] okapi search "jp='.BU*&.B8u{.N#,#.Q'Z$.z=F'.uYU{.#dJ$. 2I$.T\F'.-)V{.Mp/$.RXS{.00}&.;WU{.!eu{.u~V{.UP_(.c:B.+5 &. 8u{.7,V{.*+w&.j+w&...&~3"

######### OKAPI #########


#########################
But the server freeze as it was searching for it.
__________________

Last edited by HamletEagle; 10-25-2014 at 14:36.
HamletEagle is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-25-2014 , 14:55   Re: [ OKAPI ] Getting a treemap
Reply With Quote #4

It takes times so if it freezes, it's normal, it depends of your hardware. So you should wait.

Where did you get this address? From where did you type these commands?
__________________

Last edited by Arkshine; 10-25-2014 at 14:55.
Arkshine is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-25-2014 , 14:59   Re: [ OKAPI ] Getting a treemap
Reply With Quote #5

I type this commands in the server console, the adress are from okapi main topic. My hardware is pretty good, but this is not the problem, I don't care if it's freeze, I want to get it to work
__________________

Last edited by HamletEagle; 10-25-2014 at 15:00.
HamletEagle is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-25-2014 , 15:37   Re: [ OKAPI ] Getting a treemap
Reply With Quote #6

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.
Arkshine is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-26-2014 , 05:51   Re: [ OKAPI ] Getting a treemap
Reply With Quote #7

Ok, I've did the same steps as you and I found the same offset, but:
Code:
] okapi desc 0x80C90

######### OKAPI #########


#########################
Code:
] okapi search "[TG.;nC'.pbG.sXQ.J=g(.;OS'.ueA.1/.*K}.`/F'. 8u{.s9s{.Ohi(.,lm{.s9s{.2/#&.*0J.lE>'.1`}&.-]}&.vMa(.zp='.<cN'.=j12"

######### OKAPI #########


#########################
Maybe it's a problem with the module ? Did you recompiled it ?
__________________

Last edited by HamletEagle; 10-26-2014 at 05:53.
HamletEagle is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-26-2014 , 08:00   Re: [ OKAPI ] Getting a treemap
Reply With Quote #8

No idea. Your server under windows is a dedicated one installed with steamcmd, right? And you type these commands in the server console?
__________________
Arkshine is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-26-2014 , 08:06   Re: [ OKAPI ] Getting a treemap
Reply With Quote #9

Quote:
Originally Posted by Arkshine View Post
No idea. Your server under windows is a dedicated one installed with steamcmd, right? And you type these commands in the server console?
Yes and yes.
__________________
HamletEagle is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-26-2014 , 10:17   Re: [ OKAPI ] Getting a treemap
Reply With Quote #10

Just installed a CS + CZ server( with steamcmd), same thing.
__________________
HamletEagle is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:40.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode