Raised This Month: $32 Target: $400
 8% 

Module: Orpheu (v2.6.3)


Post New Thread Reply   
 
Thread Tools Display Modes
Prastie
Junior Member
Join Date: Apr 2013
Old 06-16-2015 , 13:03   Re: Module: Orpheu (v2.6.3)
Reply With Quote #1411

This orpheu version fix this error : *** glibc detected *** ./hlds_linux: corrupted double-linked list: 0x0a7d50f8 *** ?
Or how i can fix it?
Prastie is offline
Nax0ne
Senior Member
Join Date: Jul 2011
Location: Chile
Old 07-28-2015 , 03:38   Re: Module: Orpheu (v2.6.3)
Reply With Quote #1412

This doesn't work with the new version D:


L 07/28/2015 - 031:46: [ORPHEU] Function "InstallGameRules" not found
L 07/28/2015 - 031:46: [AMXX] Displaying debug trace (plugin "round_terminator.amxx")
L 07/28/2015 - 031:46: [AMXX] Run time error 10: native error (native "OrpheuGetFunction")
L 07/28/2015 - 031:46: [AMXX] [0] round_terminator.sma::plugin_precache (line 253
__________________
Nax0ne is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 07-28-2015 , 03:40   Re: Module: Orpheu (v2.6.3)
Reply With Quote #1413

Post the signature and also your server version + os.
__________________
HamletEagle is offline
Phant
Veteran Member
Join Date: Sep 2009
Location: New Jersey
Old 08-27-2015 , 09:30   Re: Module: Orpheu (v2.6.3)
Reply With Quote #1414

Just tested weapon_cost_changer on Windows listen-server:
Code:
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
Exe build: 13:14:12 Aug 29 2013 (6153)
And on Windows HLDS:
Code:
Protocol version 48
Exe version 1.1.2.7 (cstrike)
Exe build: 17:46:18 Apr 25 2013 (6027)
And both do not work. It's my mistake or something like "old/wrong" signatures?

I exec:
Code:
] cost_p228 1
] cost_glock 1
] cost_scout 1
] cost_mx1014 1
] cost_mac10 1
] cost_aug 1
] cost_elites 1
] cost_fiveseven 1
] cost_ump45 1
] cost_sg550 1
] cost_galil 1
] cost_famas 1
] cost_usp 1
] cost_awp 1
] cost_mp5 1
] cost_m249 1
] cost_m3 1
] cost_m4a1 1
] cost_tmp 1
] cost_g3sg1 1
] cost_deagle 1
] cost_sg552 1
] cost_ak47 1
] cost_p90 1
] restart
L 08/28/2015 - 02:11:00: -------- Mapchange to de_dust2 --------
] weapcost
      ZID      Cost     ACost  maxClip1 maxClip2 maxBpAmmo Weight
       1        1       50       13       13       52        9
       2      400       20       30       20      120        1
      17        1       20       30       20      120        1
       3     2750       80       30       10       90        4
       5     3000       65        8        7       32        0
       7     1400       25       12       30      100        5
       8        1       60       30       30       90        2
      10        1       20       30       30      120        1
      11      750       50       50       20      100        8
      12     1700       25       12       25      100        5
      13        1       60       30       30       90        2
      14        1       60       30       35       90        2
      15        1       60       30       25       90        2
      16        1       25       12       12      100        5
      18        1      125       10       10       30        7
      19        1       20       30       30      120        1
      20     5750       60       30      100      200        3
      21        1       65        8        8       32        0
      22     3100       60       30       30       90        2
      23        1       20       30       30      120        1
      24        1       80       30       20       90        4
      26        1       40        7        7       35        6
      27        1       60       30       30       90        2
      28        1       80       30       30       90        4
      30     2350       50       50       50      100        8
And buy every weapon == each (all) have deafult costs.

Last edited by Phant; 08-27-2015 at 10:12.
Phant is offline
Send a message via ICQ to Phant
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-27-2015 , 10:39   Re: Module: Orpheu (v2.6.3)
Reply With Quote #1415

This global array in CS is actually used only from an alias command. Don't remember exactly but I think alias is used only when you're using VGUI buy menu (and manually in console of course).

A better way is to hook directly CBasePlayer::AddAccount().

As side note, just for information, for AMXX 1.8.3-dev+, I've added a forward to change an item's price on buy: https://github.com/alliedmodders/amxmodx/pull/278 (not merged yet).
__________________
Arkshine is offline
Old 08-27-2015, 10:49
Arkshine
This message has been deleted by Arkshine. Reason: nvm
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-27-2015 , 12:03   Re: Module: Orpheu (v2.6.3)
Reply With Quote #1416

In case you need a signature for this function(I was bored, so I did it )
Code:
{
	"name"        : "AddAccount",
	"class"       : "CBasePlayer",
	"library"     : "mod",
	"arguments" : 
	[
		{
			"type" : "int",
			"info" : "ammount"
		},
		{
			"type" : "bool",
			"info" : "bTrackChange.If 1, the amount of money added will be displayed"
		}
	],
	"identifiers" :
	[
		{
			"os"    : "windows",
			"mod"   : "cstrike",
			"value" : [0x8B,"*","*","*",0x56,0x8B,"*",0x8B,"*","*","*","*","*",0x03,"*",0x89,"*","*","*","*","*",0x8B,"*",0x79]
		},
		{
			"os"    : "linux",
			"mod"   : "cstrike",
			"value" : "_ZN11CBasePlayer10AddAccountEib"
		}
	]
}
When you buy something, CS call this function with a negative value(for example -200, so it actually substract the money from the player). What you can do is either to alter the param on the fly or to simply supercede and set your own ammount.

Example(change from -200 to 500):
PHP Code:
#include <amxmodx>
#include <orpheu>

public plugin_init()
{
    
OrpheuRegisterHook(OrpheuGetFunction("AddAccount""CBasePlayer"), "CBasePlayer_AddAccount"OrpheuHookPre)
}

public 
CBasePlayer_AddAccount(idammountbool:bTrackChange)
{
    if(
ammount == -200)
    {
            
OrpheuSetParam(2500)
    }

Enjoy
__________________
HamletEagle is offline
ViBE
Member
Join Date: Jul 2011
Location: Somewhere over the...
Old 12-04-2015 , 22:49   Re: Module: Orpheu (v2.6.3)
Reply With Quote #1417

looks like Orpheu does not want to run on my server. which version works with AMXX 1.8.2? cause 2.6.1-2.6.2-2.6.3 does not want to load and i did not get any error messages. i'm using v6027 with metamod 1.21p37 and AMXX 1.8.2.

Last edited by ViBE; 12-04-2015 at 22:49.
ViBE is offline
Send a message via ICQ to ViBE
addicted2sex
Senior Member
Join Date: May 2009
Location: localhost
Old 12-05-2015 , 14:05   Re: Module: Orpheu (v2.6.3)
Reply With Quote #1418

Quote:
Originally Posted by ViBE View Post
looks like Orpheu does not want to run on my server. which version works with AMXX 1.8.2? cause 2.6.1-2.6.2-2.6.3 does not want to load and i did not get any error messages. i'm using v6027 with metamod 1.21p37 and AMXX 1.8.2.
What do you mean by "not want to run on my server". Post the output from the following commands:

version
meta list
amxx modules
__________________
Let 7he gr0ovE r3Lease y0ur m!nd
addicted2sex is offline
ViBE
Member
Join Date: Jul 2011
Location: Somewhere over the...
Old 12-05-2015 , 15:33   Re: Module: Orpheu (v2.6.3)
Reply With Quote #1419

Quote:
Originally Posted by addicted2sex View Post
What do you mean by "not want to run on my server". Post the output from the following commands:

version
meta list
amxx modules
i guess you mean "amx_modules" and as I said it runs v6027. here is the output:
Code:
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
Exe build: 17:45:07 Apr 25 2013 (6027)

Currently loaded plugins:
      description      stat pend  file              vers      src   load  unlod
 [ 1] AMX Mod X        RUN   -    amxmodx_mm_i386.  v1.8.2    ini   Start ANY  
 [ 2] POD-Bot mm       RUN   -    podbot_mm_i386.s  vV3B22c   ini   Chlvl ANY  
 [ 3] Engine           RUN   -    engine_amxx_i386  v1.8.2    pl3   ANY   ANY  
 [ 4] CSX              RUN   -    csx_amxx_i386.so  v1.8.2    pl3   ANY   ANY  
 [ 5] CStrike          RUN   -    cstrike_amxx_i38  v1.8.2    pl3   ANY   ANY  
 [ 6] FakeMeta         RUN   -    fakemeta_amxx_i3  v1.8.2    pl3   ANY   ANY  
 [ 7] Ham Sandwich (u  RUN   -    hamsandwich_amxx  v1.4      pl3   ANY   ANY  
 [ 8] Orpheu           RUN   -    orpheu_amxx_i386  v2.6.3    pl3   ANY   ANY  
 [ 9] Fun              RUN   -    fun_amxx_i386.so  v1.8.2    pl3   ANY   ANY  
 [10] CSDM2            RUN   -    csdm_amxx_i386.s  v2.1.3c-  pl3   ANY   ANY  
10 plugins, 10 running

Jelenleg betöltött modulok:
név                    verzió     készítő           állapot   
Engine                  1.8.2       AMX Mod X Dev Team   running    
CSX                     1.8.2       AMX Mod X Dev Team   running    
CStrike                 1.8.2       AMX Mod X Dev Team   running    
FakeMeta                1.8.2       AMX Mod X Dev Team   running    
Ham Sandwich (updated)  1.4         AMX Mod X Dev Team   running    
GeoIP                   1.8.2       AMX Mod X Dev Team   running    
Orpheu                  2.6.3       joaquimandrade & Ar  running    
Fun                     1.8.2       AMX Mod X Dev Team   running    
CSDM2                   2.1.3c-KWo  CSDM Team            running    
RegEx                   1.8.2       AMX Mod X Dev Team   running    
Sockets                 1.8.2       HLSW Dev Team        running    
11 modul
it's a fresh output and what is really strange that Orpheu is now running well and i don't even know how is it possible, cause i wasted hours at last night to figure out why not saw on the list. my basic problem is Invisible Spectator. i would like to install this plugin. most versions fails. ConnorMcLeod said this usually caused by outdated Orpheu. so I tried a few version. I don't check a long time what modules works so I thought the old version was also run well. and then i checked the plugin with each Orpheu releases. every time i checked the meta list Orpheu was not on the list and the server usually crashed at map change if i switched on the plugin before change. i don't know is this related with Orpheu or not but when the plugin run Orpheu just disappeared from the list.
ViBE is offline
Send a message via ICQ to ViBE
souvikdas95
Senior Member
Join Date: Mar 2012
Old 12-06-2015 , 05:58   Re: Module: Orpheu (v2.6.3)
Reply With Quote #1420

Quote:
Originally Posted by Arkshine View Post
This global array in CS is actually used only from an alias command. Don't remember exactly but I think alias is used only when you're using VGUI buy menu (and manually in console of course).

A better way is to hook directly CBasePlayer::AddAccount().

As side note, just for information, for AMXX 1.8.3-dev+, I've added a forward to change an item's price on buy: https://github.com/alliedmodders/amxmodx/pull/278 (not merged yet).
Guys it has been a long time ( 1 year ) since I last visited alliedmods. Have got a small vacation going on and nothing to do. So, can any of you explain to me what are the new changes that has happened in orpheu if any? also, @Arkshine, can you please brief me about the changes in 1.8.3-d ( especially the gamedata stuff ). Also, I seem to have caught a small problem in working of orpheu with the 1.8.3-d ( build 4962 ). What happens is, the function "SV_DropClient" that I had the signatures of, is no longer getting detected. A plugin that used to use it failing now. I don't know how exactly I would debug this issue. It's like the basic signatures that it would need is not getting detected.

Last edited by souvikdas95; 12-06-2015 at 06:28.
souvikdas95 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 21:35.


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