Raised This Month: $ Target: $400
 0% 

Module: Orpheu (v2.6.3)


Post New Thread Reply   
 
Thread Tools Display Modes
Destro-
Veteran Member
Join Date: Jun 2010
Location: $me->location();
Old 03-16-2012 , 01:46   Re: Module: Orpheu2.3a
Reply With Quote #881

what is wrong?
Code:
{
    "name" : "GetPlace",
    "class" : "CNavAreaGrid",
    "library" : "mod",
    "return" : 
    {
        "type" : "int"
    },
    "identifiers":
    [
        {
            "os" : "windows",
            "mod"   : "cstrike",
            "value" : "?GetPlace@CNavAreaGrid@@QAEXXZ"
        }
    ]
}
__________________
Destro- is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-16-2012 , 05:43   Re: Module: Orpheu2.3a
Reply With Quote #882

The signature is unique for each functions. You can't just duplicate an existing one and replacing by others functions name...

You need to look in IDA for example and seeing if the symbol name exist like for CGrenade::Think, if not making a signature. For CNavAreaGrid::GetPlace, you need a signature.

Also, you forget it passes a Vector* argument.
Do you know what is the return ? Because you say int, but it could be a pointer or a string.
__________________
Arkshine is offline
Destro-
Veteran Member
Join Date: Jun 2010
Location: $me->location();
Old 03-16-2012 , 11:57   Re: Module: Orpheu2.3a
Reply With Quote #883

Quote:
Originally Posted by Arkshine View Post
The signature is unique for each functions. You can't just duplicate an existing one and replacing by others functions name...

You need to look in IDA for example and seeing if the symbol name exist like for CGrenade::Think, if not making a signature. For CNavAreaGrid::GetPlace, you need a signature.
I have understood.

Quote:
Originally Posted by Arkshine View Post
Also, you forget it passes a Vector* argument.
Do you know what is the return ? Because you say int, but it could be a pointer or a string.
what?


Thanks .
__________________
Destro- is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-16-2012 , 12:29   Re: Module: Orpheu2.3a
Reply With Quote #884

What what ? It seems you don't know what you're doing.

The header is : (?) CNavAreaGrid::GetPlace(const Vector *)

Where is Vector* is your file ?

About the return I'm asking you if you know what is the return of this function, because I don't know. It could be a string, or pointer of struct, or a simple int.

Anyway try yourself :
Code:
[0x8B,0x44,"*","*",0x6A,0x01,0x50,0xE8,"*","*","*","*",0x85]
__________________
Arkshine is offline
Destro-
Veteran Member
Join Date: Jun 2010
Location: $me->location();
Old 03-16-2012 , 13:31   Re: Module: Orpheu2.3a
Reply With Quote #885

hlds crash :S.

Code:
{
    "name" : "GetPlace",
    "library" : "mod",
    "identifiers":
    [
        {
            "os" : "windows",
            "mod"   : "cstrike",
            "value" : [0x8B,0x44,"*","*",0x6A,0x01,0x50,0xE8,"*","*","*","*",0x85]
        }
    ]
}
PHP Code:
public plugin_precache()
{
    
OrpheuRegisterHook(OrpheuGetFunction("UTIL_IsGame"), "UTIL_IsGame")
    
OrpheuRegisterHook(OrpheuGetFunction("GetPlace"), "CNavAreaGrid_GetPlace"OrpheuHookPre)
}

public 
OrpheuHookReturn:CNavAreaGrid_GetPlace()
{
    
log_to_file("debug.log""CNavAreaGrid_GetPlace()")
    return 
OrpheuSupercede
}

public 
OrpheuHookReturn:UTIL_IsGame(mod[])
{
    
log_to_file("debug.log""UTIL_IsGame()")
    
OrpheuSetReturn(1)
    return 
OrpheuSupercede

Code:
L 03/16/2012 - 14:17:26: UTIL_IsGame()
L 03/16/2012 - 14:17:26: UTIL_IsGame()
L 03/16/2012 - 14:17:26: UTIL_IsGame()
L 03/16/2012 - 14:17:27: UTIL_IsGame()
L 03/16/2012 - 14:17:27: UTIL_IsGame()
L 03/16/2012 - 14:17:27: UTIL_IsGame()
L 03/16/2012 - 14:18:27: UTIL_IsGame()
L 03/16/2012 - 14:18:27: CNavAreaGrid_GetPlace()
crash
crahs in client_putinserver :\.

pd:No think me can help, it is illegal ?.
pd2:sorry for my bad English :$.
__________________

Last edited by Destro-; 03-16-2012 at 13:33.
Destro- is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-16-2012 , 13:39   Re: Module: Orpheu2.3a
Reply With Quote #886

I told you you did not add the argument and now you don't even put the return : really, what are you doing ?
__________________

Last edited by Arkshine; 03-16-2012 at 13:39.
Arkshine is offline
Garufa
Junior Member
Join Date: Sep 2011
Location: home/Garufa/
Old 03-29-2012 , 15:13   Re: Module: Orpheu2.3a
Reply With Quote #887

Hi, I found a possible bug in the line 373 on `function.cpp'. This looks like this:

Code:
long Function::addHook(AMX* amx,char* functionName,OrpheuHookPhase phase)
{
	doPatch();

	long hookID = this->currentHookID[OrpheuHookPre]++; // LINE 373

        // ...
I think it should be like this:

Code:
long Function::addHook(AMX* amx,char* functionName,OrpheuHookPhase phase)
{
	doPatch();

	long hookID = this->currentHookID[phase]++; // LINE 373

        // ...
Excellent module
Garufa is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 03-29-2012 , 21:54   Re: Module: Orpheu2.3a
Reply With Quote #888

Quote:
Originally Posted by Garufa View Post
Hi, I found a possible bug in the line 373 on `function.cpp'. This looks like this:

Code:
long Function::addHook(AMX* amx,char* functionName,OrpheuHookPhase phase)
{
    doPatch();

    long hookID = this->currentHookID[OrpheuHookPre]++; // LINE 373

        // ...
I think it should be like this:

Code:
long Function::addHook(AMX* amx,char* functionName,OrpheuHookPhase phase)
{
    doPatch();

    long hookID = this->currentHookID[phase]++; // LINE 373

        // ...
Excellent module

Thanks for spotting that. It's a stupid bug but in the end makes all the difference.
I won't update orpheu because I think it should be used now just for fast testing and everything should be moved to Rage.
joaquimandrade is offline
CryWolf
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 05-01-2012 , 10:07   Re: Module: Orpheu2.3a
Reply With Quote #889

I have a Zombie Mod server and i use Orpheu for Ladder fixes and cvars unlocker i can say it's a verry powerefull module, is there a way to change rain color using this module, seems like i cannot recreate the rain message because i don't have enought knowlege of AMXX Scripting, im guessing that with this module shall be easier

Thanks, whaiting for an answer
__________________
I dont walk trough this world with fear in my heart.
www.dark-arena.com L4D, CS1.6, CZ Servers
CryWolf is offline
Send a message via MSN to CryWolf Send a message via Yahoo to CryWolf
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-01-2012 , 11:32   Re: Module: Orpheu2.3a
Reply With Quote #890

It's fully handled client-side and is not customizable.
__________________
Arkshine is offline
Reply



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 09:26.


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