Raised This Month: $12 Target: $400
 3% 

Regamedll_CS, Reverse-engineered mod CS


Post New Thread Reply   
 
Thread Tools Display Modes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-27-2016 , 17:14   Re: Regamedll_CS, Reverse-engineered mod CS
Reply With Quote #21

Please don't spam thread. Use the edit button next time.
__________________
Arkshine is offline
Vit_amin
Senior Member
Join Date: Dec 2015
Location: Russian Federation
Old 01-28-2016 , 09:31   Re: Regamedll_CS, Reverse-engineered mod CS
Reply With Quote #22

Who is complete for signature ReHLDS? Put them please
Vit_amin is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-30-2016 , 20:23   Re: Regamedll_CS, Reverse-engineered mod CS
Reply With Quote #23

You can try that. Unzip in data/.

cs_create_entity() won't work though because could not find CREATE_NAMED_ENTITY, likely because it's inline after optimization and function with no refs are deleted. It can be sorted by modifying AMXX using others functions, but for now, you will have to deal with it.

You will get also a crash using create_cvar/bind_* natives because of optimization Cvar_DirectSet can't be hooked/called normally. Really annoying. You better remove Cvar_DirectSet from common.games/custom/functions.engine.txt.
Attached Files
File Type: zip gamedata_rehlds_regamedll.zip (3.9 KB, 809 views)
__________________

Last edited by Arkshine; 01-30-2016 at 20:25.
Arkshine is offline
Vit_amin
Senior Member
Join Date: Dec 2015
Location: Russian Federation
Old 01-31-2016 , 06:58   Re: Regamedll_CS, Reverse-engineered mod CS
Reply With Quote #24

Install Gamedata
Remove Cvar_DirectSet from common.games/custom/functions.engine.txt.
But in Console:
Code:
Binding/Hooking cvars have been disabled - check your gamedata files.
What is alternative Function hook_cvar_change ?

Last edited by Vit_amin; 01-31-2016 at 07:06.
Vit_amin is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-31-2016 , 07:34   Re: Regamedll_CS, Reverse-engineered mod CS
Reply With Quote #25

The only immediate alternative is to try to recompile reHLDS without some optimisations flags, so functions can be hooked/called normally. I've no idea what flags.

Another way is to modified AMXX, but I'm not going to do that, at least not now.
__________________
Arkshine is offline
Vit_amin
Senior Member
Join Date: Dec 2015
Location: Russian Federation
Old 01-31-2016 , 16:01   Re: Regamedll_CS, Reverse-engineered mod CS
Reply With Quote #26

It's a pity.
Vit_amin is offline
Netsys
Senior Member
Join Date: Feb 2010
Old 02-10-2016 , 21:45   Re: Regamedll_CS, Reverse-engineered mod CS
Reply With Quote #27

How i can check if it is installed correctly? I try getting the value of the cvars mp_maxmoney and mp_round_infinite but dont work.

version:
PHP Code:
Protocol version 48
Exe version 1.1.2.7
/Stdio (cstrike)
Exe build18:24:56 Feb 10 2016 (669)
ReHLDS API version 2.8 
I replace the dlls/cs.so with the regamedlls_cs cs.so

Last edited by Netsys; 02-10-2016 at 22:12.
Netsys is offline
Mistrick
Senior Member
Join Date: Aug 2012
Location: Russia
Old 02-10-2016 , 22:38   Re: Regamedll_CS, Reverse-engineered mod CS
Reply With Quote #28

Quote:
Originally Posted by Netsys View Post
How i can check if it is installed correctly? I try getting the value of the cvars mp_maxmoney and mp_round_infinite but dont work.
"game version" show regamedll info
"meta game" check dll pathname
Mistrick is offline
Netsys
Senior Member
Join Date: Feb 2010
Old 02-11-2016 , 07:49   Re: Regamedll_CS, Reverse-engineered mod CS
Reply With Quote #29

PHP Code:
Protocol version 48
Exe version 1.1.2.7
/Stdio (cstrike)
Exe build18:24:49 Feb 10 2016 (669)
Server IP address 190.0.164.230:27015
   
   Metamod version 1.21p37 Copyright 
(c2001-2013 Will Day
     Patch
Metamod-(mm-pv37 Copyright (c2004-2013 Jussi Kivilinna
   Metamod comes with ABSOLUTELY NO WARRANTY
; for details type `meta gpl'.
   This is free software, and you are welcome to redistribute it
   under certain conditions; type 
`meta gpl' for details.
   

   AMX Mod X version 1.8.3-dev+5014 Copyright (c) 2004-2015 AMX Mod X Development Team 
   AMX Mod X comes with ABSOLUTELY NO WARRANTY; for details type `amxx gpl'
.
   
This is free software and you are welcome to redistribute it under 
   certain conditions
type 'amxx gpl' for details.
  
L 02/11/2016 09:37:48Binding/Hooking cvars have been disabled check your gamedata files.
L 02/11/2016 09:37:48client_disconnected forward has been disabled check your gamedata files.
POD-Bot mmplugin attaching
ReGameDLL build
17:44:56 Feb  4 2016 (0.2.61)
ReGameDLL API version 1.0
L 02
/11/2016 09:37:48: -------- Mapchange to de_dust2 --------
L 02/11/2016 09:37:48: [CSTRIKEBuyGunAmmo is not available
L 02
/11/2016 09:37:48: [CSTRIKESome functions are not available forwards CS_OnBuy[Attempthave been disabled
L 02
/11/2016 09:37:48: [CSTRIKEsvs global variable is not available
L 02
/11/2016 09:37:48: [CSTRIKEsv global variable is not available 
With the lastes version of ReHLDS and ReGameDLL_CS bugfix version.

Updated signatures for linux bugfix version:

File: gamedata/modules.games/game.cstrike.txt
Code:
"BuyGunAmmo" // bool BuyGunAmmo(CBasePlayer *player, CBasePlayerItem *weapon, bool bBlinkMoney)
{
	"library"   "server"
	"windows"   "\x56\x57\x8B\x2A\x2A\x2A\x6A\x2A\x8B\x2A\xE8\x2A\x2A\x2A\x2A\x84\x2A\x0F"
	"linux"     "@_Z10BuyGunAmmoR11CBasePlayerR15CBasePlayerItemb"
	"mac"       "@_Z10BuyGunAmmoR11CBasePlayerR15CBasePlayerItemb"
}
to
Code:
"BuyGunAmmo" // bool BuyGunAmmo(CBasePlayer *player, CBasePlayerItem *weapon, bool bBlinkMoney)
{
	"library"   "server"
	"windows"   "\x56\x57\x8B\x2A\x2A\x2A\x6A\x2A\x8B\x2A\xE8\x2A\x2A\x2A\x2A\x84\x2A\x0F"
	"linux"     "@_Z10BuyGunAmmoP11CBasePlayerP15CBasePlayerItemb"
	"mac"       "@_Z10BuyGunAmmoP11CBasePlayerP15CBasePlayerItemb"
}
File: gamedata/common.games/functions.engine.txt
Code:
"SV_DropClient" // void SV_DropClient(client_t *cl, qboolean crash, const char *fmt, ...);
{
	"library"   "engine"
	"windows"   "\x55\x8B\x2A\x81\x2A\x2A\x2A\x2A\x2A\x8B\x2A\x2A\x53\x56\x8D"
	"linux"     "@SV_DropClient"
	"mac"       "@SV_DropClient"
}
"Cvar_DirectSet" // void Cvar_DirectSet(struct cvar_s *var, char *value);
{
	"library"   "engine"
	"windows"   "\x55\x8B\x2A\x81\x2A\x2A\x2A\x2A\x2A\x56\x8B\x2A\x2A\x57\x8B\x2A\x2A\x85"
	"linux"     "@Cvar_DirectSet"
	"mac"       "@Cvar_DirectSet"
}
to
Code:
"SV_DropClient" // void SV_DropClient(client_t *cl, qboolean crash, const char *fmt, ...);
{
	"library"   "engine"
	"windows"   "\x55\x8B\x2A\x81\x2A\x2A\x2A\x2A\x2A\x8B\x2A\x2A\x53\x56\x8D"
	"linux"     "@_Z13SV_DropClientP8client_siPKcz"
	"mac"       "@_Z13SV_DropClientP8client_siPKcz"
}
"Cvar_DirectSet" // void Cvar_DirectSet(struct cvar_s *var, char *value);
{
	"library"   "engine"
	"windows"   "\x55\x8B\x2A\x81\x2A\x2A\x2A\x2A\x2A\x56\x8B\x2A\x2A\x57\x8B\x2A\x2A\x85"
	"linux"     "@_Z17PF_Cvar_DirectSetP6cvar_sPKc"
	"mac"       "@_Z17PF_Cvar_DirectSetP6cvar_sPKc"
}
File: gamedata/common.games/globalvars.engine.txt
Code:
"Signatures"
{
   "svs"    // server_static_t svs
   {
      "library"   "engine"
      "linux"     "@svs"
      "mac"       "@svs"
   }

   "sv"    // server_t sv
   {
      "library"   "engine"
      "windows"   "\x8B\x2A\x2A\x2A\x2A\x2A\x8D\x2A\x2A\x2A\x2A\x2A\x53\x33\x2A\x89"  // SVC_PlayerInfo()
      "linux"     "@sv"
      "mac"       "@sv"
   }
to
Code:
"Signatures"
{
   "svs"    // server_static_t svs
   {
      "library"   "engine"
      "linux"     "@g_psvs"
      "mac"       "@g_psvs"
   }

   "sv"    // server_t sv
   {
      "library"   "engine"
      "windows"   "\x8B\x2A\x2A\x2A\x2A\x2A\x8D\x2A\x2A\x2A\x2A\x2A\x53\x33\x2A\x89"  // SVC_PlayerInfo()
      "linux"     "@g_psv"
      "mac"       "@g_psv"
   }

Last edited by Netsys; 02-11-2016 at 09:57.
Netsys is offline
milutinke
AlliedModders Donor
Join Date: Jun 2012
Location: Serbia
Old 03-04-2016 , 06:29   Re: Regamedll_CS, Reverse-engineered mod CS
Reply With Quote #30

I have question
If I change:
PHP Code:
 #define MAX_CLIENTS 32 
To example:
PHP Code:
 #define MAX_CLIENTS 36 
Server is going to have 36 slots or not?

Basicaly I want to increase slot number
Where is code for slot limitation is located
milutinke is offline
Send a message via Skype™ to milutinke
Reply


Thread Tools
Display Modes

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 05:40.


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