This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Module: Orpheu (v2.6.3)


Post New Thread Reply   
 
Thread Tools Display Modes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-03-2012 , 13:44   Re: Module: Orpheu2.3a
Reply With Quote #831

Well, you can try https://forums.alliedmods.net/showpo...1&postcount=53 ; though I don't know if it would still work.
__________________
Arkshine is offline
linkz
New Member
Join Date: Jan 2012
Old 01-03-2012 , 15:37   Re: Module: Orpheu2.3a
Reply With Quote #832

yea, it not working. server crashes after first Mapchange and start logging when "orpheu memory structures search" was due to start (only with enabled plugin).
__________________
linkz is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-03-2012 , 17:42   Re: Module: Orpheu2.3a
Reply With Quote #833

Don't remember why I've done that, when I look for such structure in IDA, any references go to CBasePlayer::CanAfford*() functions, which are used for Tutor. Money are hardcoded into the Buy*() functions. It's weird I've released that since I always test before posting. Weird. Maybe changes have been applied. Anyway, will redo the plugin.
__________________
Arkshine is offline
shinoda
Spanish Moderator
Join Date: Nov 2009
Location: ag_crossfire
Old 01-03-2012 , 23:38   Re: Module: Orpheu2.3a
Reply With Quote #834

How do I install it in others mods, for ex Adrenaline Gamer ? (is a mod for Half-Life), because my server crashes after first changelevel.
__________________
Oh hell no this shit is awesome !!!
shinoda is offline
Send a message via MSN to shinoda Send a message via Skype™ to shinoda
linkz
New Member
Join Date: Jan 2012
Old 01-04-2012 , 01:26   Re: Module: Orpheu2.3a
Reply With Quote #835

I'm looking forward. also would love to see the inclusion of grenades in this plugin. thx
__________________
linkz is offline
Old 01-04-2012, 03:35
hellokit9713
This message has been deleted by xPaw. Reason: Spam
shinoda
Spanish Moderator
Join Date: Nov 2009
Location: ag_crossfire
Old 01-06-2012 , 09:11   Re: Module: Orpheu2.3a
Reply With Quote #836

Quote:
Originally Posted by hellokit9713 View Post
but the module can be used for both windows and linux and for any mod.
Yea, i spoke about the module itself.
__________________
Oh hell no this shit is awesome !!!
shinoda is offline
Send a message via MSN to shinoda Send a message via Skype™ to shinoda
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-06-2012 , 09:19   Re: Module: Orpheu2.3a
Reply With Quote #837

You're answering a bot, you know. lol

About your problem, try to add a file named "ag" inside orpheu/mods/ with content :

Code:
{
	"name" : "ag",
	"pev" :
	{
		"windows" : 4,
		"linux" : 0
	}
}
__________________
Arkshine is offline
shinoda
Spanish Moderator
Join Date: Nov 2009
Location: ag_crossfire
Old 01-07-2012 , 21:14   Re: Module: Orpheu2.3a
Reply With Quote #838

Quote:
Originally Posted by Arkshine View Post
You're answering a bot, you know. lol

About your problem, try to add a file named "ag" inside orpheu/mods/ with content :

Code:
{
	"name" : "ag",
	"pev" :
	{
		"windows" : 4,
		"linux" : 0
	}
}

Oke oke, it works thanks
__________________
Oh hell no this shit is awesome !!!
shinoda is offline
Send a message via MSN to shinoda Send a message via Skype™ to shinoda
KORD_12.7
Senior Member
Join Date: Aug 2009
Location: Russia, Vladivostok
Old 01-10-2012 , 21:08   Re: Module: Orpheu2.3a
Reply With Quote #839

I want to hook ItemPostFrame for "weapon_crowbar" with orpheu. My code is:
PHP Code:
public plugin_precache() 
{
    
OrpheuRegisterHook(OrpheuGetFunctionFromClass("weapon_crowbar""ItemPostFrame""CBasePlayerWeapon"), "Weapon_ItemPostFrame"OrpheuHookPre)
}

public 
OrpheuHookReturnWeapon_ItemPostFrame(iItem)
{
    static 
szClassname[32]
    
pev(iItempev_classnameszClassnamecharsmax(szClassname))
    
    
server_print("* Weapon_ItemPostFrame: %s"szClassname)

    return 
OrpheuIgnored

Sig:
PHP Code:
{
    
"name" "ItemPostFrame",
    
"class" "CBasePlayerWeapon",
    
"library" "mod",
    
"indexes" 
    [
        {
            
"os" "windows",
            
"mod" "valve",
            
"value" 67
        
},
        {
            
"os" "linux",
            
"mod" "valve",
            
"value" 69
        
}
    ]

But i have a problem, Weapon_ItemPostFrame called for all weapons, not only weapon_crowbar. What is wrong?

UPD
Someone, help me to find signature for Q_strstr. I tried, but failed. Here is my incorrect sig:
PHP Code:
{
    
"name" "Q_strstr",
    
"library" "engine",
    
"arguments" :
    [
        {
            
"type" "char *"
        
},
        {
            
"type" "char *"
        
}
    ],
    
"return" 
    {
        
"type" "int"
    
},
    
"identifiers":
    [
        {
            
"os" "windows",
            
"value" : [0x55,0x8B,"*",0xB8,"*","*","*","*",0xE8,"*","*","*","*",0x8B,0x4D,"*",0x8D,0x45,"*",0x50,0x51,0x8D,0x95,"*","*","*","*",0x68,"*","*","*","*",0x52,0xE8,"*","*","*","*",0x8D,0x85,"*","*","*","*",0x50]
        },
        {
            
"os" "linux",
            
"value" "Q_strstr"
        
}
    ]

Please, help to fix it
__________________

Vi Veri Veniversum Vivus Vici
Russian Half-Life and Adrenaline Gamer community

Last edited by KORD_12.7; 01-11-2012 at 03:45.
KORD_12.7 is offline
Send a message via ICQ to KORD_12.7
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-11-2012 , 06:28   Re: Module: Orpheu2.3a
Reply With Quote #840

Any specific reason to use orpheu instead of Ham which would be more convenient and easy to use ? (Ham_Item_PostFrame)
Your code seems right. I don't know why it happens, I've tested also. It would be weird we find such major bug only now, especially I remember it's working fine under cstrike. I guess it would be require more testing to figure out the problem. But for now, use Ham, it should be ok.

About Q_strstr, I'm wondering if you have really take the right function.
Anyway, such function Q_ calls generally another, so the code is short and hard to make an unique signature since there are identical kind of functions. Like Q_strstr calls strstr in the steam library.
Therefore, more appropriate to make a signature from strstr for windows.

Code:
{ 
    "name"      : "Q_strstr", 
    "library"   : "engine", 
    "arguments" : 
    [ 
        { 
            "type" : "char *" 
        }, 
        { 
            "type" : "char *" 
        } 
    ], 
    "return" :  
    { 
        "type" : "int" 
    }, 
    "identifiers": 
    [ 
        { 
            "os"    : "windows", 
            "value" : [0x8B,0x4C,"*","*",0x57,0x53,0x56,0x8A,"*",0x8B,"*","*","*",0x84]
        }, 
        { 
            "os"    : "linux", 
            "value" : "Q_strstr" 
        } 
    ] 
}
__________________

Last edited by Arkshine; 01-11-2012 at 06:29.
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 11:33.


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