AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=58)
-   -   Bad loads plugins game.data (https://forums.alliedmods.net/showthread.php?t=318816)

szogun 09-22-2019 08:46

Bad loads plugins game.data
 
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 


asherkin 09-22-2019 14:36

Re: Bad loads plugins game.data
 
Your SourceMod version is too old.

szogun 09-22-2019 15:32

Re: Bad loads plugins game.data
 
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/


szogun 09-27-2019 11:59

Fix gamedata v2
 
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


Maxximou5 09-27-2019 15:15

Re: Fix gamedata v2
 
Quote:

Originally Posted by szogun (Post 2668203)
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.

szogun 09-27-2019 17:57

Re: Fix gamedata v2
 
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

asherkin 09-28-2019 08:21

Re: Fix gamedata v2
 
The GameData methodmap (which is what the "GameData.GameData" native is from) is only in SM 1.10.

szogun 09-28-2019 11:48

Re: Bad loads plugins game.data
 
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;
}

Ilusion9 09-28-2019 12:05

Re: Bad loads plugins game.data
 
Maybe you are compiling the plugin on sm 1.10, but your server is using sm 1.9

asherkin 09-28-2019 12:08

Re: Bad loads plugins game.data
 
The error message you've provided is not from that plugin.


All times are GMT -4. The time now is 21:33.

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