AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [ OKAPI ] Getting a treemap (https://forums.alliedmods.net/showthread.php?t=250479)

HamletEagle 10-25-2014 13:26

[ OKAPI ] Getting a treemap
 
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 ?

Arkshine 10-25-2014 14:05

Re: [ OKAPI ] Getting a treemap
 
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.

HamletEagle 10-25-2014 14:35

Re: [ OKAPI ] Getting a treemap
 
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.

Arkshine 10-25-2014 14:55

Re: [ OKAPI ] Getting a treemap
 
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?

HamletEagle 10-25-2014 14:59

Re: [ OKAPI ] Getting a treemap
 
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 :(

Arkshine 10-25-2014 15:37

Re: [ OKAPI ] Getting a treemap
 
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")

http://i.imgur.com/0LEWasP.png

Then, by clicking on it, you will see "sub_something" (i have already renamed in my capture).

http://i.imgur.com/BooWzZa.png

That's your function. Click on it:

http://i.imgur.com/HdqQAGJ.png

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.

HamletEagle 10-26-2014 05:51

Re: [ OKAPI ] Getting a treemap
 
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 ?

Arkshine 10-26-2014 08:00

Re: [ OKAPI ] Getting a treemap
 
No idea. Your server under windows is a dedicated one installed with steamcmd, right? And you type these commands in the server console?

HamletEagle 10-26-2014 08:06

Re: [ OKAPI ] Getting a treemap
 
Quote:

Originally Posted by Arkshine (Post 2215880)
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 10-26-2014 10:17

Re: [ OKAPI ] Getting a treemap
 
Just installed a CS + CZ server( with steamcmd), same thing.


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

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