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

Server Crashed damn wtf


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nG_getwreck
Senior Member
Join Date: Oct 2020
Location: Philippines from South K
Old 01-20-2021 , 05:25   Server Crashed damn wtf
Reply With Quote #1

PHP Code:
Host_ErrorWriteDest_Parmnot a client
L 01
/20/2021 18:17:38: [METAiniBegin re-reading plugins list: c:/users/aesthetic/desktop/zombie escape test sv/cstrike/addons/metamod/plugins.ini
L 01
/20/2021 18:17:38: [METAiniRead plugin config for: AMX Mod X
L 01
/20/2021 18:17:38: [METAiniRead plugin config for: NoSeeVar
L 01
/20/2021 18:17:38: [METAiniFinished reading plugins list: /desktop/zombie escape test sv/cstrike/addons/metamod/plugins.iniFound 3 plugins
L 01
/20/2021 18:17:38: [METAdllUpdating plugins...
L 01/20/2021 18:17:38: [METAdllFinished updating 11 pluginskept 3loaded 0unloaded 0reloaded 0delayed 0
L 01
/20/2021 18:17:38: [METAdllBegin scan to collect callback fix data...
L 01/20/2021 18:17:38: [METAdllRebuilding callbacks...
L 01/20/2021 18:17:38: [METAdllBegin callbacks fixing...
L 01/20/2021 18:17:38: [METAdllCallbacks rebuilded.
L 01/20/2021 18:17:38Server shutdown
L 01
/20/2021 18:17:38Log file closed
L 01
/20/2021 18:17:39FATAL ERROR (shutting down): Host_ErrorWriteDest_Parmnot a client 
__________________
My Steam:
nG_getwreck is offline
nG_getwreck
Senior Member
Join Date: Oct 2020
Location: Philippines from South K
Old 01-20-2021 , 05:26   Re: Server Crashed damn wtf
Reply With Quote #2

What is this error? I mean, this is my first time to encounter this problem. I'm not sure if this related in plugin or not.
__________________
My Steam:
nG_getwreck is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-20-2021 , 23:55   Re: Server Crashed damn wtf
Reply With Quote #3

Looks like it happened while MetaMod was loading its plugins. Disable the metamod plugins to find which one is causing it. If it happens with only AMX Mod X configured then start disabling AMX Mod X plugins.
__________________

Last edited by fysiks; 01-20-2021 at 23:58.
fysiks is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-21-2021 , 07:27   Re: Server Crashed damn wtf
Reply With Quote #4

Likely a plugin using message_begin() with invalid arguments.
__________________


Dear admins. If somehow you managed to read this, plz fix.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
nG_getwreck
Senior Member
Join Date: Oct 2020
Location: Philippines from South K
Old 01-21-2021 , 12:39   Re: Server Crashed damn wtf
Reply With Quote #5

Quote:
Originally Posted by OciXCrom View Post
Likely a plugin using message_begin() with invalid arguments.
Well, I do some trouble shoots and the problem was the main menu plugin. I'm not sure what's problem on code.

PHP Code:
/*================================================================================
    
    ----------------------
    -*- [ZP] Main Menu -*-
    ----------------------
    
    This plugin is part of Zombie Plague Mod and is distributed under the
    terms of the GNU General Public License. Check ZP_ReadMe.txt for details.
    
================================================================================*/

#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#define LIBRARY_BUYMENUS "zp50_buy_menus"
#include <zp50_buy_menus>
#define LIBRARY_ZOMBIECLASSES "zp50_class_zombie"
#include <zp50_class_zombie>
#define LIBRARY_HUMANCLASSES "zp50_class_human"
#include <zp50_class_human>
#define LIBRARY_ITEMS "zp50_items"
#include <zp50_items>
#define LIBRARY_ADMIN_MENU "zp50_admin_menu"
#include <zp50_admin_menu>
#define LIBRARY_RANDOMSPAWN "zp50_random_spawn"
#include <zp50_random_spawn>
#include <zp50_colorchat>
#include <zp50_core>

#define TASK_WELCOMEMSG 100

native show_menu_vip(id)

// CS Player PData Offsets (win32)
const OFFSET_CSMENUCODE 205

// Menu keys
const KEYSMENU MENU_KEY_1|MENU_KEY_2|MENU_KEY_3|MENU_KEY_4|MENU_KEY_5|MENU_KEY_6|MENU_KEY_7|MENU_KEY_8|MENU_KEY_9|MENU_KEY_0

//Define flags needed to be considered an admin
const AdminFlags = (ADMIN_BAN);
#define IsAdmin(%1)    ((get_user_flags(%1)&AdminFlags)==AdminFlags)

#define flag_get(%1,%2) (%1 & (1 << (%2 & 31)))
#define flag_get_boolean(%1,%2) (flag_get(%1,%2) ? true : false)
#define flag_set(%1,%2) %1 |= (1 << (%2 & 31))
#define flag_unset(%1,%2) %1 &= ~(1 << (%2 & 31))

new g_ChooseTeamOverrideActive

new cvar_buy_custom_primarycvar_buy_custom_secondarycvar_buy_custom_grenades
new cvar_random_spawning

public plugin_init()
{
    
register_plugin("[ZP] Main Menu"ZP_VERSION_STRING"ZP Dev Team")
    
    
register_event("HLTV""event_round_start""a""1=0""2=0")
    
    
register_clcmd("chooseteam""clcmd_chooseteam")
    
    
register_clcmd("say /zpmenu""clcmd_zpmenu")
    
register_clcmd("say zpmenu""clcmd_zpmenu")
    
    
// Menus
    
register_menu("Main Menu"KEYSMENU"menu_main")
}

public 
plugin_natives()
{
    
set_module_filter("module_filter")
    
set_native_filter("native_filter")
}
public 
module_filter(const module[])
{
    if (
equal(moduleLIBRARY_BUYMENUS) || equal(moduleLIBRARY_ZOMBIECLASSES) || equal(moduleLIBRARY_HUMANCLASSES) || equal(moduleLIBRARY_ITEMS) || equal(moduleLIBRARY_ADMIN_MENU) || equal(moduleLIBRARY_RANDOMSPAWN))
        return 
PLUGIN_HANDLED;
    
    return 
PLUGIN_CONTINUE;
}
public 
native_filter(const name[], indextrap)
{
    if (!
trap)
        return 
PLUGIN_HANDLED;
    
    return 
PLUGIN_CONTINUE;
}

public 
plugin_cfg()
{
    
cvar_buy_custom_primary get_cvar_pointer("zp_buy_custom_primary")
    
cvar_buy_custom_secondary get_cvar_pointer("zp_buy_custom_secondary")
    
cvar_buy_custom_grenades get_cvar_pointer("zp_buy_custom_grenades")
    
cvar_random_spawning get_cvar_pointer("zp_random_spawning_csdm")
}

// Event Round Start
public event_round_start()
{
    
// Show main menu message
    
remove_task(TASK_WELCOMEMSG)
    
set_task(2.0"task_welcome_msg"TASK_WELCOMEMSG)
}

// Welcome Message Task
public task_welcome_msg()
{
    
client_printcolored(0"!g====[ !tWelcome to =SG= ZP !g]====")
    
zp_colored_print(0"%L"LANG_PLAYER"NOTICE_INFO1")
}

public 
clcmd_chooseteam(id)
{
    if (
flag_get(g_ChooseTeamOverrideActiveid))
    {
        
show_menu_main(id)
        return 
PLUGIN_HANDLED;
    }
    
    
flag_set(g_ChooseTeamOverrideActiveid)
    return 
PLUGIN_CONTINUE;
}

public 
clcmd_zpmenu(id)
{
    
show_menu_main(id)
}

public 
client_putinserver(id)
{
    
flag_set(g_ChooseTeamOverrideActiveid)
}

// Main Menu
show_menu_main(id)
{
    static 
menu[250]
    new 
len
    
    
// Title
    
len += formatex(menu[len], charsmax(menu) - len"\yZP 6.6.4^n^n")
    
    
// 1. Buy menu
    
if (LibraryExists(LIBRARY_BUYMENUSLibType_Library) && (get_pcvar_num(cvar_buy_custom_primary)
    || 
get_pcvar_num(cvar_buy_custom_secondary) || get_pcvar_num(cvar_buy_custom_grenades)) && is_user_alive(id))
        
len += formatex(menu[len], charsmax(menu) - len"\r1.\w %L^n"id"MENU_BUY")
    else
        
len += formatex(menu[len], charsmax(menu) - len"\d1. %L^n"id"MENU_BUY")
    
    
// 2. Extra Items
    
if (LibraryExists(LIBRARY_ITEMSLibType_Library) && is_user_alive(id))
        
len += formatex(menu[len], charsmax(menu) - len"\r2\w %L^n"id"MENU_EXTRABUY")
    else
        
len += formatex(menu[len], charsmax(menu) - len"\d2 %L^n"id"MENU_EXTRABUY")
    
    
// 3. Zombie class
    
if (LibraryExists(LIBRARY_ZOMBIECLASSESLibType_Library) && zp_class_zombie_get_count() > 1)
        
len += formatex(menu[len], charsmax(menu) - len"\r3\w %L^n"id"MENU_ZCLASS")
    else
        
len += formatex(menu[len], charsmax(menu) - len"\d3 %L^n"id"MENU_ZCLASS")
    
    
// 4. Unstuck
    
if (LibraryExists(LIBRARY_RANDOMSPAWNLibType_Library) && is_user_alive(id))
        
len += formatex(menu[len], charsmax(menu) - len"\r4\w %L^n"id"MENU_UNSTUCK")
    else
        
len += formatex(menu[len], charsmax(menu) - len"\d4 %L^n"id"MENU_UNSTUCK")
    
    
// 5. Knife Menu
    
len += formatex(menu[len], charsmax(menu) - len"\r5\w Knife Menu^n^n")
    
    
// 6. VIP Extra items
    
if((get_user_flags(id) & ADMIN_RESERVATION))
        
len += formatex(menu[len], charsmax(menu) - len"\r6.\w VIP Extra Items^n^n")
    else
        
len += formatex(menu[len], charsmax(menu) - len"\d6. VIP Extra Items^n^n")
    
    
// 7. Admin menu
    
if (LibraryExists(LIBRARY_ADMIN_MENULibType_Library) && is_user_admin(id))
        
len += formatex(menu[len], charsmax(menu) - len"\r7.\w %L"id"MENU_ADMIN")
    else
        
len += formatex(menu[len], charsmax(menu) - len"\d7. %L"id"MENU_ADMIN")
    
    
// 0. Exit
    
len += formatex(menu[len], charsmax(menu) - len"^n^n\r0\.w %L"id"MENU_EXIT")
    
    
// Fix for AMXX custom menus
    
set_pdata_int(idOFFSET_CSMENUCODE0)
    
show_menu(idKEYSMENUmenu, -1"Main Menu")
}

// Main Menu
public menu_main(idkey)
{
    
// Player disconnected?
    
if (!is_user_connected(id))
        return 
PLUGIN_HANDLED;
    
    switch (
key)
    {
        case 
0// Buy Menu
        
{
            
// Custom buy menus enabled?
            
if (LibraryExists(LIBRARY_BUYMENUSLibType_Library) && (get_pcvar_num(cvar_buy_custom_primary)
            || 
get_pcvar_num(cvar_buy_custom_secondary) || get_pcvar_num(cvar_buy_custom_grenades)))
            {
                
// Check whether the player is able to buy anything
                
if (is_user_alive(id))
                    
zp_buy_menus_show(id)
                else
                    
zp_colored_print(id"%L"id"CANT_BUY_WEAPONS_DEAD")
            }
            else
                
zp_colored_print(id"%L"id"CUSTOM_BUY_DISABLED")
        }
        case 
1// Extra Items
        
{
            
// Items enabled?
            
if (LibraryExists(LIBRARY_ITEMSLibType_Library))
            {
                
// Check whether the player is able to buy anything
                
if (is_user_alive(id))
                    
zp_items_show_menu(id)
                else
                    
zp_colored_print(id"%L"id"CANT_BUY_ITEMS_DEAD")
            }
            else
                
zp_colored_print(id"%L"id"CMD_NOT_EXTRAS")
        }
        case 
2// Zombie Classes
        
{
            if (
LibraryExists(LIBRARY_ZOMBIECLASSESLibType_Library) && zp_class_zombie_get_count() > 1)
                
zp_class_zombie_show_menu(id)
            else
                
zp_colored_print(id"%L"id"CMD_NOT_ZCLASSES")
        }
        case 
3:
        {
            
// Check if player is stuck
            
if (LibraryExists(LIBRARY_RANDOMSPAWNLibType_Library) && is_user_alive(id))
            {
                if (
is_player_stuck(id))
                {
                    
// Move to an initial spawn
                    
if (get_pcvar_num(cvar_random_spawning))
                        
zp_random_spawn_do(idtrue// random spawn (including CSDM)
                    
else
                        
zp_random_spawn_do(idfalse// regular spawn
                
}
                else
                    
zp_colored_print(id"%L"id"CMD_NOT_STUCK")
            }
            else
                
zp_colored_print(id"%L"id"CMD_NOT")
        }
        
        case 
4// Knife Menu 
        
{
            
client_cmd(id"say /knife")
        }
        
        case 
5// VIP Extra Items
        
if((get_user_flags) & ADMIN_RESERVATION))
        {
            
show_menu_vip(id)
        else
            
client_printcolored(id"[=SG=] You are not a VIP member")
        }
        case 
6// Menu override
        
{
            
flag_unset(g_ChooseTeamOverrideActiveid)
            
client_cmd(id"chooseteam")
        }
        
        case 
7// Admin Menu
        
{
            if (
LibraryExists(LIBRARY_ADMIN_MENULibType_Library) && is_user_admin(id))
                
zp_admin_menu_show(id)
            else
                
zp_colored_print(id"%L"id"NO_ADMIN_MENU")
        }
    }
    
    return 
PLUGIN_HANDLED;
}

// Check if a player is stuck (credits to VEN)
stock is_player_stuck(id)
{
    static 
Float:originF[3]
    
pev(idpev_originoriginF)
    
    
engfunc(EngFunc_TraceHulloriginForiginF0, (pev(idpev_flags) & FL_DUCKING) ? HULL_HEAD HULL_HUMANid0)
    
    if (
get_tr2(0TR_StartSolid) || get_tr2(0TR_AllSolid) || !get_tr2(0TR_InOpen))
        return 
true;
    
    return 
false;
}

// Colour Chat
client_printcolored(index, const text[], any:...)
{
    new 
szMsg[128];
    
vformat(szMsgsizeof(szMsg) - 1text3);
    
    
replace_all(szMsgsizeof(szMsg) - 1"!g""^x04");
    
replace_all(szMsgsizeof(szMsg) - 1"!n""^x01");
    
replace_all(szMsgsizeof(szMsg) - 1"!t""^x03");
    
    
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _index);
    
write_byte(index);
    
write_string(szMsg);
    
message_end();

__________________
My Steam:

Last edited by nG_getwreck; 01-21-2021 at 12:41.
nG_getwreck is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-21-2021 , 13:45   Re: Server Crashed damn wtf
Reply With Quote #6

By disabling the main plugin, a ton of other connected plugins get disabled as well, so you can't really be sure that the problem is from that plugin, especially if you didn't modify anything.
__________________


Dear admins. If somehow you managed to read this, plz fix.

Last edited by OciXCrom; 01-21-2021 at 13:45.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
nG_getwreck
Senior Member
Join Date: Oct 2020
Location: Philippines from South K
Old 01-21-2021 , 14:50   Re: Server Crashed damn wtf
Reply With Quote #7

Problem Solved

Reason:
Probably this part of code. Cause errors
PHP Code:
// Welcome Message Task
public task_welcome_msg()
{
    
client_printcolored(0"Welcome to Carl's jr.")
    
zp_colored_print(0"%L"LANG_PLAYER"NOTICE_INFO1")

Well, i use zp_colored_print instead of my own print colored stock

- >>

PHP Code:
// Welcome Message Task
public task_welcome_msg()
{
    
zp_colored_print(0"%L"LANG_PLAYER"NOTICE_WELCOME")
    
zp_colored_print(0"%L"LANG_PLAYER"NOTICE_INFO1")

And after few minutes of using sv_restart 1 it doesn't crash now
__________________
My Steam:

Last edited by nG_getwreck; 01-21-2021 at 14:51.
nG_getwreck 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 03:06.


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