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
[MSI] Creator
Member
Join Date: Jul 2009
Location: Bulgaria
Old 03-27-2010 , 10:27   Re: Module: Orpheu2.3
Reply With Quote #321

Exelent Work !!!
__________________
Sorry for my bad english
[MSI] Creator is offline
Send a message via Skype™ to [MSI] Creator
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 03-28-2010 , 20:56   Re: Module: Orpheu2.3
Reply With Quote #322

I'm just starting to use Orpheu and trying to hook the following:

Code:
CTFRpgRocket::RadiusDamage(entvars_s *, entvars_s *, float, int, int)
I've created a file called "RadiusDamage" in "orpheu/functions/CTFRpgRocket". In this file I added the following:

Code:
{
    "name" : "RadiusDamage",
    "class" : "CTFRpgRocket",
    "library" : "mod",
    "arguments" :
    [
        {
            "type" : "entvars_s *"
        },
        {
            "type" : "entvars_s *"
        },
        {
            "type" : "float"
        },
        {
            "type" : "short"
        },
        {
            "type" : "short"
        }
    ],
    "identifiers":
    [
        {
            "os" : "linux",
            "mod" : "tfc",
            "value" : "RadiusDamage__12CTFRpgRocketP9entvars_sT1fii"
        }
    ]
}
I'm not really sure the value identifier is correct, I was thinking it is.

Now in a plugin I have:
PHP Code:
public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);
    
    new 
OrpheuFunction:RadiusDamage OrpheuGetFunction("RadiusDamage""CTFRpgRocket");
    
OrpheuRegisterHook(RadiusDamage"hook_RadiusDamage");
}

public 
hook_RadiusDamage(entvars_s1entvars_s2Float:flFloatiInt1iInt2)
{
    
client_print(0print_chat"hook_RadiusDamage");

When using this plugin on the server I get the following error:
Quote:
[ORPHEU] Function "CTFRpgRocket::RadiusDamage" not found
Anyone know what I did wrong?
hlstriker is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-28-2010 , 21:00   Re: Module: Orpheu2.3
Reply With Quote #323

How do you know which signatures go where?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 03-28-2010 , 21:10   Re: Module: Orpheu2.3
Reply With Quote #324

Quote:
Originally Posted by hlstriker View Post
I'm just starting to use Orpheu and trying to hook the following:

Code:
CTFRpgRocket::RadiusDamage(entvars_s *, entvars_s *, float, int, int)
I've created a file called "RadiusDamage" in "orpheu/functions/CTFRpgRocket". In this file I added the following:

Code:
{
    "name" : "RadiusDamage",
    "class" : "CTFRpgRocket",
    "library" : "mod",
    "arguments" :
    [
        {
            "type" : "entvars_s *"
        },
        {
            "type" : "entvars_s *"
        },
        {
            "type" : "float"
        },
        {
            "type" : "short"
        },
        {
            "type" : "short"
        }
    ],
    "identifiers":
    [
        {
            "os" : "linux",
            "mod" : "tfc",
            "value" : "RadiusDamage__12CTFRpgRocketP9entvars_sT1fii"
        }
    ]
}
I'm not really sure the value identifier is correct, I was thinking it is.

Now in a plugin I have:
PHP Code:
public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);
    
    new 
OrpheuFunction:RadiusDamage OrpheuGetFunction("RadiusDamage""CTFRpgRocket");
    
OrpheuRegisterHook(RadiusDamage"hook_RadiusDamage");
}

public 
hook_RadiusDamage(entvars_s1entvars_s2Float:flFloatiInt1iInt2)
{
    
client_print(0print_chat"hook_RadiusDamage");

When using this plugin on the server I get the following error:


Anyone know what I did wrong?
Everything seems ok. Can you check the server log at server init? Anyway, I will try it myself once I get my linux installed again.

Quote:
Originally Posted by Exolent[jNr] View Post
How do you know which signatures go where?
You mean where files go in the folders at "configs/orpheu"?
__________________
joaquimandrade is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-28-2010 , 21:16   Re: Module: Orpheu2.3
Reply With Quote #325

Quote:
Originally Posted by joaquimandrade View Post
You mean where files go in the folders at "configs/orpheu"?
Yes.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 03-28-2010 , 21:18   Re: Module: Orpheu2.3
Reply With Quote #326

Quote:
Originally Posted by Exolent[jNr] View Post
Yes.
It depends on what the file content represents. Show me your file.
__________________
joaquimandrade is offline
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 03-28-2010 , 21:35   Re: Module: Orpheu2.3
Reply With Quote #327

Quote:
Originally Posted by joaquimandrade View Post
Everything seems ok. Can you check the server log at server init?
Code:
Parsing functions started.
	Parsing folder "CTFRpgRocket" started
		Parsing file "RadiusDamage" started
			Class type not registered
			FAILED
		Parsing file "RadiusDamage" ended
	Parsing folder "CTFRpgRocket" ended
Parsing functions ended.
hlstriker is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 03-28-2010 , 21:40   Re: Module: Orpheu2.3
Reply With Quote #328

Quote:
Originally Posted by hlstriker View Post
Code:
Parsing functions started.
    Parsing folder "CTFRpgRocket" started
        Parsing file "RadiusDamage" started
            Class type not registered
            FAILED
        Parsing file "RadiusDamage" ended
    Parsing folder "CTFRpgRocket" ended
Parsing functions ended.
Ah ok. It's just that CTFRpgRocket doesn't ship as a default name for a type.
Go to

"configs\orpheu\types\CBaseEntity\aliases "

and create a file named CTFRpgRocket with the content

PHP Code:
[
    
"CTFRpgRocket *"

Like the others in there.
__________________
joaquimandrade is offline
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 03-28-2010 , 21:43   Re: Module: Orpheu2.3
Reply With Quote #329

Awesome, it works now thanks !
hlstriker is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-28-2010 , 22:45   Re: Module: Orpheu2.3
Reply With Quote #330

Quote:
Originally Posted by joaquimandrade View Post
It depends on what the file content represents. Show me your file.
I figured it out now.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 14:40.


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