Этот раздел, как вы могли заметить по названию, предназначен для решения вопросов по поводу уже существующих модов и плагинов. Пожалуйста, если у вас проблема с написанием плагина, не путайте этот раздел с разделом по скриптингу. Для поиска плагинов и модов существует соответствующий раздел.
Название темы должно соответствовать содержанию. Темы с названием типа "Помогите", "Вопрос", "парни подскажите..." - будут удалены. Все темы, не относящиеся к "Вопросам по модам и плагинам", будут удалены или перемещены в соответствующий раздел.
Правила оформления темы: 1. Помимо заголовка не забудьте верно сформулировать свой вопрос. 2. Выложите исходник (в тег кода + ) или ссылку на плагин который вызывает у вас вопросы. 3. Выложите лог с ошибками (если имеется) под спойлер
Сервер кс 1.6 Билд сервер 5787 Всё запускается и работает на домашнем компе (windows) а на вдс хостинге под линукс сам мод cssbWar3ftMod.amxx не хочет запускатся и выдаёт ошибки
logs
L 08/29/2016 - 21:18:16: Invalid multi-lingual line (file "cstrike/addons/amxmodx/data/lang/adminhelp.txt" line 1) L 08/29/2016 - 21:18:16: [cssbWar3ftMod.amxx][ERROR] '[HAMSANDWICH] Failed to retrieve vtable for "player", hook for "EVENT_TakeDamage" not active.' '10' '1' 'Run time error 10: native error (native "RegisterHam")' L 08/29/2016 - 21:18:17: [cssbWar3ftMod.amxx] [ERROR] 'Invalid CVAR pointer' '10' '1' 'Run time error 10: native error (native "get_pcvar_num")' L 08/29/2016 - 21:14:56: Invalid CVAR pointer L 08/29/2016 - 21:14:56: [AMXX]Displaying debug trace (plugin "cssbWar3ftMod.amxx") L 08/29/2016 - 21:14:56: [AMXX] Run time error 10: native error (native "log_amx") L 08/29/2016 - 21:14:56: [AMXX] [0] events.inl::EVENT_NewRound (line 428) L 08/29/2016 - 21:18:16: Start of error session. L 08/29/2016 - 21:18:16: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20160829.log") L 08/29/2016 - 21:18:16: [HAMSANDWICH] Failed to retrieve vtable for "weaponbox", hook for "HamSpawn_Weaponbox_Post" not active.
i
Уведомление: Неверный раздел, тщательно выбирайте раздел для новых тем, перенёс.
new const WC3NAME[] = "Warcraft 3 Frozen Throne"; new const WC3AUTHOR[] = "CSSB"; new const WC3VERSION[] = "1.5 Public"; new const WC3DATE[] = __DATE__;
// Let AMX X know that we NEED these modules (as of amx x 1.75) #pragma reqclass xstats #pragma reqlib engine #pragma reqlib fun #pragma reqlib fakemeta #pragma reqlib cstrike #pragma loadlib sqlite #pragma loadlib mysql
public client_putinserver( id ) { if ( !WC3_Check() ) { return; }
// Check for steam ID pending static szPlayerID[32]; get_user_authid( id, szPlayerID, 31 );
// Then the player doesn't have a steam id, lets make them reconnect if ( equal(szPlayerID, "STEAM_ID_PENDING") ) { client_cmd( id, "reconnect" ); }
// Get the user's ID! DB_FetchUniqueID( id );
p_data_b[id][PB_ISCONNECTED] = true;
if ( g_MOD == GAME_CSTRIKE || g_MOD == GAME_CZERO ) { // Check user's cvar if the user isn't a bot and if we're not running a 64-bit server if ( !is_user_bot( id ) && !is_amd64_server() ) { query_client_cvar( id, "cl_minmodels", "_CS_CheckMinModelsValue" ); }
if ( g_MOD == GAME_CZERO ) { // Only want to run this if: mod is CZ (zbot not supported), client is a bot, // these are CZ bots (bot_quota), and the ham has not been registed yet. if ( (pev(id, pev_flags) & FL_FAKECLIENT) && get_pcvar_num(CVAR_bot_quota) > 0 && !g_bCZBotRegisterHam ) { // Delay for private data to initialize set_task( 0.1, "CZ_BotHookHam", id ) } } }
return; }
public client_connect( id ) { if ( !WC3_Check() ) { return; }
// Reset xp assist for ( new i = 0; i < MAXPLAYERS; i++ ) { g_iDamageDealt[id][i] = 0; }
// Save the user's XP if we have XP to save if ( get_pcvar_num( CVAR_wc3_save_xp ) && !is_user_bot(id) && p_data[id][P_RACE] && p_data[id][P_XP] ) { DB_SaveXP( id, true ); }
if ( get_pcvar_num( CVAR_wc3_psychostats ) ) { static szWeapon[64];
static szTeam[16], szName[32], szAuthid[32]; new iWeap, iUserid = get_user_userid( id );
public client_PreThink( id ) { if ( !WC3_Check() ) { return; }
if ( p_data_b[id][PB_ISCONNECTED] ) { if ( is_user_alive( id ) ) {
// Counter-Strike or Condition Zero if ( g_MOD == GAME_CSTRIKE || g_MOD == GAME_CZERO ) {
// This is used so we can't hear the undead's footsteps at level 3 if ( SM_GetSkillLevel( id, SKILL_UNHOLYAURA ) > 0 && !p_data_b[id][PB_STUNNED] && !p_data_b[id][PB_SLOWED] ) { new Float:vel[3]; entity_get_vector( id, EV_VEC_velocity, vel );
// When this is true, the user is walking... lets hope :P if ( vector_length( vel ) < 180.0 ) { entity_set_int( id, EV_INT_flTimeStepSound, 999 ); }
// Otherwise if we just set it on the previous tick we need to set it back else if ( entity_get_int(id, EV_INT_flTimeStepSound) > 500 ) { entity_set_int( id, EV_INT_flTimeStepSound, 200 ); } } }
// Amulet of the Cat if ( ITEM_Has( id, ITEM_AMULET ) > ITEM_NONE ) { entity_set_int( id, EV_INT_flTimeStepSound, 999 ); } }
// User is dead else {
// Check to see if spectated player has changed new iTarget = entity_get_int( id, EV_INT_iuser2 );
new Float:fTime = halflife_time();
// Then we are looking at a new player or the last hud message has disappeared if ( g_iSpectatingID[id] != iTarget || g_fLastSpecDisplay[id] <= fTime ) {
// We have a valid target!! if ( SHARED_ValidPlayer( iTarget ) && iTarget != id ) { WC3_ShowSpecInfo( id, iTarget );
//L 12/27/2006 - 16:48:08: [war3ft.amxx] [ERROR] '[CSTRIKE] Invalid player 5' '10' '1' 'Run time error 10: native error (native "cs_set_user_money")'
// We want to ignore invalid player messages that are generated by cstrike! - they're annoying + don't actually matter all that much... /*if ( error_code == AMX_ERR_NATIVE ) { if ( containi( message, "" ) ) { } }*/ }
public module_filter( const module[] ) { // We don't need to display a message, we'll display it later if we need to (when the DB is set up if XP Saving is on) if ( equal( module, "dbi" ) || equal( module, "sqlx" ) ) { return PLUGIN_HANDLED; } // Dammit plugin can't load now :/ - technically we should never get here unless the module doesn't exist in the modules folder else { WC3_Log( true, "Please enable the '%s' module in your modules.ini file", module );
return PLUGIN_CONTINUE; }
return PLUGIN_HANDLED; }
public native_filter( const name[], index, trap ) { if ( !trap ) { return PLUGIN_HANDLED; }
Конечно стоит. На домашнем компе виндоус всё работает замечательно, а на линуксе не хочет
Модули под Linux имеют расширение .so, а модули под win имеют расширение .dll. Исходя из моих минимальных знаний английского, я могу сделать вывод, что у тебя просто отсутствует модуль. Если ты просто скопировал сервер с WIN-а и запустил его на линуксе, понятное дело, что он не будет работать. Модуль для сервера нужно скачать отдельно, желательно с проверенного источника. Надеюсь ты понимаешь, что просто переименовывание файла тут не поможет
WAR3FT Пивка для Рывка 202 lvl
Поблагодарили 0 раз Поблагодарили 0 раз
Legaal
29.8.2016, 21:02
Сообщение
Стаж: 11 лет
Сообщений: 58
Благодарностей: 37
Полезность: 356
Affl, закономерно , что у человека не работало бы и все остальное
Affl, Боже, не неси бред если не знаешь как помочь. Модуль уже обновлял, в папке имеется. Он hamdata.ini есть
Поблагодарили 0 раз Поблагодарили 0 раз
HOUSE
30.8.2016, 2:08
Сообщение
Стаж: 9 лет 8 месяцев Город: Обухов
Сообщений: 53
Благодарностей: 16
Полезность: 52
VenigreT, вместо хамства мог бы сказать человеку спасибо, что он пытается тебе помочь, он в отличия от тебя много полезного сделал людям, благодарностей просто так не кто не ставит, если ты такой умный то и нечего было тему здесь на форуме создавать, разбирайся сам со своей бедой.
VenigreT, информации по серверу = 0, кроме Билда и мода ничего не известно. Каким образом мы должны тебе помочь? Я гадать не умею, как и все остальные тоже. Хотя бы приложи meta list и amxx modules для начала, а потом уж проси о помощи. Иголку в стоге сена, долго искать будем.
Берешь линукс версию сборки где она у тебя там на vds, закачиваешь все свои файлы с винды кроме dll файлов и пробуешь запустить, и попробуй запихнуть один мод без карт и прочее к ним файлов.
Перешел на билд 6153 Всё работает кроме расс, они тупо не запускаются.. Код:
//Автор модификации мода SMaster //Официальный сайт perfect-soft.su //Все вопросы по данной версии 2.2.3 задать можно здесь
/* Новые версии и обновления вы можете найти в данном разделе "CSSB War3FT MOD Private и обновления" ссылка на раздел
Также можете приобрести новую версию мода! ссылка на мод новой версии
Контакты с автором SMaster: ICQ: 607-786-179 Skype: xonahead */
#pragma tabsize 0 //#pragma semicolon 1
new const WC3NAME[] = "Warcraft 3 Frozen Throne"; new const WC3AUTHOR[] = "CSSB"; new const WC3VERSION[] = "CSSB 2.2.3"; new const WC3DATE[] = __DATE__;
//Подключение файлов BEGIN } // Let AMX X know that we NEED these modules (as of amx x 1.75) #pragma reqclass xstats #pragma reqlib engine #pragma reqlib fun #pragma reqlib fakemeta #pragma reqlib cstrike #pragma loadlib sqlite #pragma loadlib mysql
public client_putinserver( id ) { if ( !WC3_Check() ) { return; }
// Check for steam ID pending static szPlayerID[32]; get_user_authid( id, szPlayerID, 31 );
// Then the player doesn't have a steam id, lets make them reconnect if ( equal(szPlayerID, "STEAM_ID_PENDING") ) { client_cmd( id, "reconnect" ); }
// Get the user's ID! DB_FetchUniqueID( id );
p_data_b[id][PB_ISCONNECTED] = true;
if ( g_MOD == GAME_CSTRIKE || g_MOD == GAME_CZERO ) { // Check user's cvar if the user isn't a bot and if we're not running a 64-bit server if ( !is_user_bot( id ) && !is_amd64_server() ) { query_client_cvar( id, "cl_minmodels", "_CS_CheckMinModelsValue" ); }
if ( g_MOD == GAME_CZERO ) { // Only want to run this if: mod is CZ (zbot not supported), client is a bot, // these are CZ bots (bot_quota), and the ham has not been registed yet. if ( (pev(id, pev_flags) & FL_FAKECLIENT) && get_pcvar_num(CVAR_bot_quota) > 0 && !g_bCZBotRegisterHam ) { // Delay for private data to initialize set_task( 0.1, "CZ_BotHookHam", id ) } } }
return; }
public client_connect( id ) { if ( !WC3_Check() ) { return; }
// User should have no items on connect... g_iShopMenuItems[id][ITEM_SLOT_ONE] = ITEM_NONE; g_iShopMenuItems[id][ITEM_SLOT_TWO] = ITEM_NONE; g_iShopMenuItems[id][ITEM_SLOT_THREE] = ITEM_NONE;
//Для авто-закупки предметов abi_ClientConnect(id);
// Automatically set their XP if it's enabled if ( get_pcvar_num( CVAR_wc3_xp_auto_average ) && !get_pcvar_num( CVAR_wc3_save_xp ) ) { new iTotalXP; new iNum, i; for( i = 1; i <= MAXPLAYERS; i++ ) { if ( p_data[i][P_XP] > 0 ) { iNum++; iTotalXP += p_data[i][P_XP]; } } if ( iNum > 0 && iTotalXP > 0 ) { p_data[id][P_XP] = iTotalXP/iNum; } }
// Reset xp assist for ( new i = 0; i < MAXPLAYERS; i++ ) { g_iDamageDealt[id][i] = 0; }
// Save the user's XP if we have XP to save if ( get_pcvar_num( CVAR_wc3_save_xp ) && !is_user_bot(id) && p_data[id][P_RACE] && p_data[id][P_XP] ) { DB_SaveXP( id, true ); }
if ( get_pcvar_num( CVAR_wc3_psychostats ) ) { static szWeapon[64];
static szTeam[16], szName[32], szAuthid[32]; new iWeap, iUserid = get_user_userid( id );
public client_PreThink( id ) { if ( !WC3_Check() ) { return; }
if ( p_data_b[id][PB_ISCONNECTED] ) { if ( is_user_alive( id ) ) {
// Counter-Strike or Condition Zero if ( g_MOD == GAME_CSTRIKE || g_MOD == GAME_CZERO ) {
// This is used so we can't hear the undead's footsteps at level 3 if ( SM_GetSkillLevel( id, SKILL_UNHOLYAURA ) > 0 && !p_data_b[id][PB_STUNNED] && !p_data_b[id][PB_SLOWED] ) { new Float:vel[3]; entity_get_vector( id, EV_VEC_velocity, vel );
// When this is true, the user is walking... lets hope :P if ( vector_length( vel ) < 180.0 ) { entity_set_int( id, EV_INT_flTimeStepSound, 999 ); }
// Otherwise if we just set it on the previous tick we need to set it back else if ( entity_get_int(id, EV_INT_flTimeStepSound) > 500 ) { entity_set_int( id, EV_INT_flTimeStepSound, 200 ); } } }
// Amulet of the Cat if ( ITEM_Has( id, ITEM_AMULET ) > ITEM_NONE ) { entity_set_int( id, EV_INT_flTimeStepSound, 999 ); }
// Check to see if spectated player has changed new iTarget = entity_get_int( id, EV_INT_iuser2 );
new Float:fTime = halflife_time();
// Then we are looking at a new player or the last hud message has disappeared if ( g_iSpectatingID[id] != iTarget || g_fLastSpecDisplay[id] <= fTime ) {
// We have a valid target!! if ( SHARED_ValidPlayer( iTarget ) && iTarget != id ) { WC3_ShowSpecInfo( id, iTarget );
//L 12/27/2006 - 16:48:08: [war3ft.amxx] [ERROR] '[CSTRIKE] Invalid player 5' '10' '1' 'Run time error 10: native error (native "cs_set_user_money")'
// We want to ignore invalid player messages that are generated by cstrike! - they're annoying + don't actually matter all that much... /*if ( error_code == AMX_ERR_NATIVE ) { if ( containi( message, "" ) ) { } }*/ }
public module_filter( const module[] ) { // We don't need to display a message, we'll display it later if we need to (when the DB is set up if XP Saving is on) if ( equal( module, "dbi" ) || equal( module, "sqlx" ) ) { return PLUGIN_HANDLED; } // Dammit plugin can't load now :/ - technically we should never get here unless the module doesn't exist in the modules folder else { WC3_Log( true, "Please enable the '%s' module in your modules.ini file", module );
return PLUGIN_CONTINUE; }
return PLUGIN_HANDLED; }
public native_filter( const name[], index, trap ) { if ( !trap ) { return PLUGIN_HANDLED; }
return PLUGIN_CONTINUE; }
Логи: L 09/17/2016 - 23:45:35: [cssbWar3ftMod.amxx] Total Spawns Talisman: 60 | Map: de_inferno L 09/17/2016 - 23:45:36: [cssbWar3ftMod.amxx] [SQLITE] Error in querying database, location: 2 L 09/17/2016 - 23:45:36: [cssbWar3ftMod.amxx] [SQLITE] Message: database disk image is malformed (11) L 09/17/2016 - 23:45:36: [cssbWar3ftMod.amxx] [SQLITE] Query statement: PRAGMA integrity_check