AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Solved CSGO Paintball problem (https://forums.alliedmods.net/showthread.php?t=317996)

ShD3luxe 08-08-2019 10:47

CSGO Paintball problem
 
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");
        }
}


TheDS1337 08-08-2019 11:27

Re: CSGO Paintball problem
 
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"
            
}
        }
    }



ShD3luxe 08-08-2019 12:52

Re: CSGO Paintball problem
 
Thank you sir , is working.


All times are GMT -4. The time now is 11:56.

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