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

Solved CSGO Paintball problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ShD3luxe
Member
Join Date: Aug 2019
Location: Localhost
Old 08-08-2019 , 10:47   CSGO Paintball problem
Reply With Quote #1

Hi , I tried to use this plugin https://github.com/MitchDizzle/Extended-PaintBall for paintball but the I get this error even if I have the paintball.games.txt in gamedata.
Code:
[paintball.smx] [PaintBall] Unable to load ReloadOrSwitchWeapons offset
[paintball.smx] [PaintBall] Unable to load Reload offset
Anyone knows how to solve this ?
This is where the error is thrown .
Code:
public void loadOffsets() {
	Handle hGameConf = LoadGameConfigFile("paintball.games");
	
	StartPrepSDKCall(SDKCall_Entity);
	PrepSDKCall_SetFromConf(hGameConf, SDKConf_Virtual, "ReloadOrSwitchWeapons");
	if ((hReloadOrSwitchWeapons = EndPrepSDKCall()) == null) { // dunno why the Handler is null here
		LogError("[PaintBall] Unable to load ReloadOrSwitchWeapons offset");
	}
	StartPrepSDKCall(SDKCall_Entity);
	PrepSDKCall_SetFromConf(hGameConf, SDKConf_Virtual, "Reload");
	if ((hReload = EndPrepSDKCall()) == null) {
		LogError("[PaintBall] Unable to load Reload offset");
	}
}

Last edited by ShD3luxe; 08-08-2019 at 12:54. Reason: Solved
ShD3luxe is offline
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 08-08-2019 , 11:27   Re: CSGO Paintball problem
Reply With Quote #2

The plugin according to github hasn't been modified in 4 years, so there'll be problems with the offsets obviously caused by the continuous updates that may or may not change the different vtables, you'll have to modify the offsets, try these in paintball.games.txt:
PHP Code:
"Games"
{
    
"csgo"
    
{
        
"Offsets"
        
{
            
"ReloadOrSwitchWeapons"
            
{
                
"windows"    "296"
                "linux"        "302"
            
}
            
"Reload"
            
{
                
"windows"    "310"
                "linux"        "316"
            
}
        }
    }


Last edited by TheDS1337; 08-08-2019 at 11:30.
TheDS1337 is offline
ShD3luxe
Member
Join Date: Aug 2019
Location: Localhost
Old 08-08-2019 , 12:52   Re: CSGO Paintball problem
Reply With Quote #3

Thank you sir , is working.
ShD3luxe is offline
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 08:27.


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