Raised This Month: $52 Target: $400
 13% 

Bad loads plugins game.data


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
szogun
Senior Member
Join Date: Apr 2016
Old 09-22-2019 , 09:46   Bad loads plugins game.data
Reply With Quote #1

Hello
I have a tiny problem with plugins when I want to run them on the server

PHP Code:
failed to loadNative "Game Data.Game Data" was not found 
szogun is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 09-22-2019 , 15:36   Re: Bad loads plugins game.data
Reply With Quote #2

Your SourceMod version is too old.
__________________
asherkin is offline
szogun
Senior Member
Join Date: Apr 2016
Old 09-22-2019 , 16:32   Re: Bad loads plugins game.data
Reply With Quote #3

hmm....
HTML Code:
 SourceMod Version Information:
    SourceMod Version: 1.9.0.6281
    SourcePawn Engine: 1.9.0.6281, jit-x86 (build 1.9.0.6281)
    SourcePawn API: v1 = 4, v2 = 12
    Compiled on: May 14 2019 16:03:05
    Built from: https://github.com/alliedmodders/sourcemod/commit/c5efe48
    Build ID: 6281:c5efe48
    http://www.sourcemod.net/
Edit

HTML Code:
Metamod:Source version 1.10.7-dev
Built from: https://github.com/alliedmodders/metamod-source/commit/63da1c3
Build ID: 970:63da1c3
Loaded As: Valve Server Plugin
Compiled on: Mar 28 2019
Plugin interface version: 15:14
SourceHook version: 5:5
http://www.metamodsource.net/

Last edited by szogun; 09-22-2019 at 16:47.
szogun is offline
szogun
Senior Member
Join Date: Apr 2016
Old 09-27-2019 , 12:59   Fix gamedata v2
Reply With Quote #4

Hey, I need professional help because it's already annoying
The problem is that not which plugins I want to run show an error

Code:
abh.smx (AutoBunnyHop): Native "GameData.GameData" was not found
Please don't tell me I have an old sourcemod because it's not a problem

sm version
HTML Code:
SourceMod Version Information:
    SourceMod Version: 1.9.0.6281
    SourcePawn Engine: 1.9.0.6281, jit-x86 (build 1.9.0.6281)
    SourcePawn API: v1 = 4, v2 = 12
    Compiled on: May 14 2019 16:03:05
    Built from: https://github.com/alliedmodders/sourcemod/commit/c5efe48
    Build ID: 6281:c5efe48
    http://www.sourcemod.net/
HTML Code:
meta version
Metamod:Source version 1.10.7-dev
Built from: https://github.com/alliedmodders/metamod-source/commit/63da1c3
Build ID: 970:63da1c3
Loaded As: Valve Server Plugin
Compiled on: Mar 28 2019
Plugin interface version: 15:14
SourceHook version: 5:5
http://www.metamodsource.net/
sm exts list

[SM] Displaying 17 extensions:

HTML Code:
[01] Automatic Updater (1.9.0.6280): Updates SourceMod gamedata files
[02] Webternet (1.9.0.6280): Extension for interacting with URLs
[03] Accelerator (2.4.3): SRCDS Crash Handler
[04] CS Tools (1.9.0.6280): CS extended functionality
[05] BinTools (1.9.0.6280): Low-level C/C++ Calling API
[06] SDK Tools (1.9.0.6280): Source SDK Tools
[07] Top Menus (1.9.0.6280): Creates sorted nested menus
[08] Client Preferences (1.9.0.6280): Saves client preference settings
[09] SQLite (1.9.0.6280): SQLite Driver
[10] <OPTIONAL> file "store_sm.ext.so": /home/servers/users/srv58839/CS_GO/csgo/addons/sourcemod/extensions/store_sm.ext.so: cannot open shared object file: No such file or directory
[11] SDK Hooks (1.9.0.6280): Source SDK Hooks
[12] SteamWorks Extension (1.2.2): Exposes SteamWorks functions to Developers
[13] GeoIP (1.9.0.6280): Geographical IP information
[14] Regex (1.9.0.6280): Provides regex natives for plugins
[15] DHooks (2.2.0): Dynamic Hooks
[16] PTaH (1.1.0): Additional CS:GO Hooks and Natives
[17] MySQL-DBI (1.9.0.6280): MySQL driver implementation for DBI

Last edited by szogun; 09-27-2019 at 13:00.
szogun is offline
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 09-27-2019 , 16:15   Re: Fix gamedata v2
Reply With Quote #5

Quote:
Originally Posted by szogun View Post
Please don't tell me I have an old sourcemod because it's not a problem
How do you know it's not the problem? You also aren't using the latest Metamod either.
__________________
Maxximou5 is offline
szogun
Senior Member
Join Date: Apr 2016
Old 09-27-2019 , 18:57   Re: Fix gamedata v2
Reply With Quote #6

when the post is published, it may not be the latest but I have recently downloaded the latest releases and it does not solve this problem
szogun is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 09-28-2019 , 09:21   Re: Fix gamedata v2
Reply With Quote #7

The GameData methodmap (which is what the "GameData.GameData" native is from) is only in SM 1.10.
__________________
asherkin is offline
szogun
Senior Member
Join Date: Apr 2016
Old 09-28-2019 , 12:48   Re: Bad loads plugins game.data
Reply With Quote #8

Okay, but why does the indicated plugin inform about the lack game data
If it works correctly on one of my servers, but it doesn't work on a clean one because of this error

Quote:
#include <sourcemod>
#include <cstrike>
#include <sdktools>

#pragma semicolon 1
#pragma newdecls required

public Plugin myinfo =
{
name = "[CS:GO] VIP",
author = "xBonio & Avgariat & Vasto_Lorde",
description = "VIP Generator by cs-plugin.com",
version = "1.0",
url = "http://cs-plugin.com"
};


int offsetFlash;
int offsetHealth;
int g_fLastButtons[MAXPLAYERS+1], g_fLastFlags[MAXPLAYERS+1], g_iJumps[MAXPLAYERS+1];

public void OnPluginStart()
{
HookEvent("player_spawn", PlayerSpawn);
HookEvent("player_death", PlayerDeath);
}

public void OnMapStart()
{

int entindex;

entindex = CreateEntityByName("weapon_flashbang");
DispatchSpawn(entindex);
offsetFlash = GetEntProp(entindex, Prop_Send, "m_iPrimaryAmmoType");
AcceptEntityInput(entindex, "Kill");

entindex = CreateEntityByName("weapon_healthshot");
DispatchSpawn(entindex);
offsetHealth = GetEntProp(entindex, Prop_Send, "m_iPrimaryAmmoType");
AcceptEntityInput(entindex, "Kill");

}

public Action PlayerSpawn(Event event, const char[] name, bool dontBroadcast)
{
int client = GetClientOfUserId(GetEventInt(event, "userid"));
if(IsValidPlayer(client) && IsPlayerVIP(client))
{
if(IsPlayerAlive(client))
{
CreateTimer(0.1, GiveEquipment, GetEventInt(event, "userid"), TIMER_FLAG_NO_MAPCHANGE);
}
}
}
public Action GiveEquipment(Handle timer, any userid) {
int client = GetClientOfUserId(userid);

if(!IsPlayerAlive(client) || !IsValidPlayer(client)) return;

if(GetTeamScore(CS_TEAM_CT) + GetTeamScore(CS_TEAM_T) != 0 && GetTeamScore(CS_TEAM_CT) + GetTeamScore(CS_TEAM_T) != 15)
{
SetEntProp(client, Prop_Send, "m_ArmorValue", 100);
SetEntProp(client, Prop_Send, "m_bHasHelmet", 1);
SetEntityHealth(client, GetEntProp(client, Prop_Send, "m_iHealth") + 5);

if(GetEntProp(client, Prop_Send, "m_iAmmo", _, offsetFlash) < 1)
GivePlayerItem(client, "weapon_flashbang");
if(GetEntProp(client, Prop_Send, "m_iAmmo", _, offsetHealth) < 1)
GivePlayerItem(client, "weapon_healthshot");
if(GetClientTeam(client) == CS_TEAM_CT)
if(GetClientTeam(client) == CS_TEAM_CT)
if (GetEntProp(client, Prop_Send, "m_bHasDefuser") == 0)
GivePlayerItem(client, "item_defuser");
}
}
public Action PlayerDeath(Handle event, const char[] name, bool dontBroadcast) {
if(GetTeamScore(CS_TEAM_CT) + GetTeamScore(CS_TEAM_T) != 0 && GetTeamScore(CS_TEAM_CT) + GetTeamScore(CS_TEAM_T) != 15)
{
int attacker = GetClientOfUserId(GetEventInt(event, "attacker"));
if(!IsValidPlayer(attacker) || !IsPlayerVIP(attacker)) return;
int health = GetClientHealth(attacker);
SetEntityHealth(attacker, health+1);
//int money = GetEntProp(attacker, Prop_Send, "m_iAccount");
//SetEntProp(attacker, Prop_Send, "m_iAccount", money+100);
bool headshot = GetEventBool(event, "headshot", false);
if(headshot)
{
health = GetClientHealth(attacker);
SetEntityHealth(attacker, health+2);
//money = GetEntProp(attacker, Prop_Send, "m_iAccount");
//SetEntProp(attacker, Prop_Send, "m_iAccount", money+100);
}
if(GetClientHealth(attacker) > 105)
SetEntityHealth(attacker, 105);
}
}

public Action OnPlayerRunCmd(int client, int &buttons, int &impulse, float vel[3], float angles[3], int &weapon)
{
if (IsValidPlayer(client) && IsPlayerVIP(client))
{
int fCurFlags = GetEntityFlags(client);
int fCurButtons = GetClientButtons(client);

if (g_fLastFlags[client] & FL_ONGROUND)
{
if (!(fCurFlags & FL_ONGROUND) &&!(g_fLastButtons[client] & IN_JUMP) && fCurButtons & IN_JUMP)
{
g_iJumps[client]++;
}
}
else if (fCurFlags & FL_ONGROUND)
{
g_iJumps[client] = 0;
}
else if (!(g_fLastButtons[client] & IN_JUMP) && fCurButtons & IN_JUMP)
{
if ( 1 <= g_iJumps[client] < 2)
{
g_iJumps[client]++;
float vVel[3];
GetEntPropVector(client, Prop_Data, "m_vecVelocity", vVel);

vVel[2] = 250.0;
TeleportEntity(client, NULL_VECTOR, NULL_VECTOR, vVel);
}
}
g_fLastFlags[client] = fCurFlags;
g_fLastButtons[client] = fCurButtons;
}
}

stock bool IsValidPlayer(int client)
{
if(client >= 1 && client <= MaxClients && IsClientInGame(client) && IsClientConnected(client) && !IsFakeClient(client) && !IsClientReplay(client) && !IsClientSourceTV(client))
return true;
return false;
}

stock bool IsPlayerVIP(int client)
{
if(GetUserFlagBits(client) & ADMFLAG_CUSTOM1)
return true;
return false;
}
szogun is offline
Ilusion9
Senior Member
Join Date: Jun 2018
Location: Romania
Old 09-28-2019 , 13:05   Re: Bad loads plugins game.data
Reply With Quote #9

Maybe you are compiling the plugin on sm 1.10, but your server is using sm 1.9
__________________
Ilusion9 is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 09-28-2019 , 13:08   Re: Bad loads plugins game.data
Reply With Quote #10

The error message you've provided is not from that plugin.
__________________
asherkin 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 02:22.


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