Ошибка в MM zBot

Статус
В этой теме нельзя размещать новые ответы.
Сообщения
486
Реакции
89
Помог
5 раз(а)
Ошибка
L 08/23/2023 - 21:37:42: Start of error session.
L 08/23/2023 - 21:37:42: Info (map "de_inferno") (file "addons/amxmodx/logs/error_20230823.log")
L 08/23/2023 - 21:37:42: Invalid CVAR pointer
L 08/23/2023 - 21:37:42: [AMXX] Run time error 10 (plugin "map_manager_zbot.amxx") (native "set_pcvar_num") - debug not enabled!
L 08/23/2023 - 21:37:42: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 08/23/2023 - 21:37:51: Invalid CVAR pointer
L 08/23/2023 - 21:37:51: [AMXX] Run time error 10 (plugin "map_manager_zbot.amxx") (native "get_pcvar_num") - debug not enabled!
L 08/23/2023 - 21:37:51: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
ОС
Linux
Amx Mod X
Amx Mod X 1.9.0
Билд
ReHLDS version: 3.13.0.788-dev
ReGamedll
ReGameDLL version: 5.22.0.593-dev
Версия Metamod
Metamod-r v1.3.0.131, API (5:13)
Список метамодулей
[ 1] Reunion          RUN   -    reunion_mm_i386.so          v0.1.92d         ini  Start Never
[ 2] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 3] Rechecker RUN - rechecker_mm_i386.so v2.7 ini Chlvl ANY
[ 4] VoiceTranscoder RUN - VoiceTranscoder.so v2017RC5 ini ANY ANY
[ 5] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9 ini Chlvl ANY
[ 6] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5294 ini Start ANY
[ 7] WHBlocker RUN - whblocker_mm_i386.so v1.5.697 ini Chlvl ANY
[ 8] HitBox Fix RUN - hitbox_fix_mm_i386.so v1.1.2 ini Start ANY
[ 9] MySQL RUN - mysql_amxx_i386.so v1.9.0.5294 pl6 ANY ANY
[10] SQLite RUN - sqlite_amxx_i386.so v1.9.0.5294 pl6 ANY ANY
[11] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl6 ANY Never
[12] Admins Kit RUN - adminskit_amxx_i386.so v2.1.0 pl6 ANY ANY
[13] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5294 pl6 ANY ANY
[14] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5294 pl6 ANY ANY
[15] Engine RUN - engine_amxx_i386.so v1.9.0.5294 pl6 ANY ANY
[16] ReAPI RUN - reapi_amxx_i386.so v5.22.0.254-dev pl6 ANY Never
[17] Fun RUN - fun_amxx_i386.so v1.9.0.5294 pl6 ANY ANY
[18] CSX RUN - csx_amxx_i386.so v1.9.0.5294 pl6 ANY ANY
[19] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5294 pl6 ANY ANY
Список плагинов
[  1] Plugins Core            1.4.0       Radius            plugins_core.am  running  
[ 2] Unreal Demo Plugin 1.53 karaulov unreal_demo_plu running
[ 3] Lite Bans 2.2 neygomon lite_bans_off.a running
[ 4] Admin Loader 3.4.7 neygomon | Radiu admin_loader.am running
[ 5] Night VIPs 1.1.1 szawesome night_vips.amxx running
[ 6] Players Menu 1.7 neugomon players_menu.am running
[ 7] Ping Checker 26.0.1 RC1 h1k3 ping_checker.am running
[ 8] Bad Camper 1.4 beta Brad Jones bad_camper.amxx running
[ 9] [ReAMX] Ultimate Gag 17.12.22BE SKAJIbnEJIb ultimate_gag.am running
[ 10] Advert Messages 1.22 neygomon adverts.amxx running
[ 11] Admin Commands 1.9.0.5294 AMXX Dev Team admincmd.amxx running
[ 12] Menus Front-End 1.5 neugomon menufront_end.a running
[ 13] Team Control 1.8.5 Radius team_control.am running
[ 14] Players Menu 1.9.0.5294 AMXX Dev Team plmenu.amxx running
[ 15] Maps Menu 1.9.0.5294 AMXX Dev Team mapsmenu.amxx running
[ 16] Admin Chat 1.9.0.5294 AMXX Dev Team adminchat.amxx running
[ 17] Admin Votes 1.9.0.5294 AMXX Dev Team adminvote.amxx running
[ 18] [190] Kill Assist RBS 20.06.06 SKAJIbnEJIb & Di killassist_rbs. running
[ 19] Stats Configuration 20.06.06 SKAJIbnEJIb & AM statscfg_rbs.am running
[ 20] [190] StatsX RBS 21.03.23 SKAJIbnEJIb & AM statsx_rbs.amxx running
[ 21] [ReAMX] CsStats MySQL 22.11.15 SKAJIbnEJIb csstats_mysql.a running
[ 22] [ReAMX] Skill ELO 22.11.15 SKAJIbnEJIb skill_elo.amxx running
[ 23] ReChecker Logging 1.0 custom rc_logging.amxx running
[ 24] C4 Timer on roundtime 0.3.3a neygomon c4timer.amxx running
[ 25] [DD] Quick defuse 1.0 Deadly|Darkness dd_qdefuse.amxx running
[ 26] Screen Maker 1.2 neygomon screen_maker.am running
[ 27] AFK Control 1.0.3 Emma Jule reapi_afk.amxx running
[ 28] Bomb Taker 0.0.2b Vaqtincha bomb_taker.amxx running
[ 29] Items Restrict 1.1 s1lent items_restrict. running
[ 30] Awp Block New 3.5 b0t. AwpBlock.amxx running
[ 31] [ReAPI] Block Fire in 3.1.0 F@nt0M reapi_block_fit running
[ 32] Reset score 1.0 Dev-CS Team reset_score.amx running
[ 33] [ReAPI] Vampire 1.0 F@nt0M reapi_vampire.a running
[ 34] [ReAPI] Knife Duel 1.2a neygomon reapi_knife_due running
[ 35] [ReAPI] Game Name Chan 1.0 neygomon reapi_game_name running
[ 36] [ReAPI] Bonus 1.0 CG reapi_bonus.amx running
[ 37] [ReAPI] Weapons System 2.2r pUzzlik & CG reapi_weapons_s running
[ 38] Custom Weapon: Deagle 1.1 Dev-CS Team custom_weapon_d running
[ 39] Custom Weapon: FAMAS 1.1 Dev-CS Team custom_weapon_f running
[ 40] Custom Weapon: M4A1 1.1 Dev-CS Team custom_weapon_m running
[ 41] Custom Weapon: AK-47 1.1 Dev-CS Team custom_weapon_a running
[ 42] [ReAPI] Kill Counter 0.3 serfreeman1337 reapi_kill_coun running
[ 43] [ReAPI] Slay Loosers 1.1 neugomon reapi_slay_loos running
[ 44] [ReAPI] No Team Flash 0.0.3 Vaqtincha no_team_flash.a running
[ 45] Custom Smoke 1.09 bionext custom_smoke.am running
[ 46] [ReAPI] Parachute 1.1 ReHLDS Team parachute.amxx running
[ 47] [VipM] Items Controlle 5.0.0-beta ArKaNeMaN VipM-ItemsContr running
[ 48] [VipM][I] Default 5.0.0-beta ArKaNeMaN VipM-I-Default. running
[ 49] Random Weapons WarmUP 3.2.0 neugomon/h1k3/Ar random_weapons_ running
[ 50] Remove water transpare Sergey Sho 1.0.0 fix_smoke_in_wa running
[ 51] [ReAPI:AMXX] Buy Nades 0.0.4 steelzorrr amxx_buy_nades_ running
[ 52] [190] Blind RBS 20.06.06 SKAJIbnEJIb blind_rbs.amxx running
[ 53] Simple Damager 2.1.0r fl0wer simple_damager. running
[ 54] Demo Recorder 2.4.1 F@nt0M demo_recorder.a running
[ 55] [190] C4 Destroyer 21.03.23 SKAJIbnEJIb c4_destroyer.am running
[ 56] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 57] Hpp Hack Detector 1.0.5 Karaulov hpp_hack_detect running
[ 58] Bot Features 0.9 Vaqtincha BotFeatures.amx running
[ 59] DHUD info 1.0 Dev-CS dhud_info.amxx running
[ 60] Night Mode 1.5.1 Radius night_mode.amxx running
[ 61] unknown unknown unknown restart_classic paused
[ 62] Bot Quota Fix 1.2.0 Radius bot_quota_fix.a running
[ 63] wCD Check 0.1 6u3oH wcd_plugin.amxx running
[ 64] Menu 1.0 CG menu.amxx running
[ 65] Custom Player Models A 0.2.1 F@nt0M & BlackSi custom_player_m debug
[ 66] Custom Player Models C 0.2.2 BlackSignature custom_player_m debug
[ 67] Custom Player Models T 0.2.1 BlackSignature custom_player_m debug
[ 68] Map Manager: Core 3.2.1 Mistrick map_manager_cor running
[ 69] Map Manager: Scheduler 0.2.1 Mistrick map_manager_sch running
[ 70] Map Manager: Rtv 0.1.5 Mistrick map_manager_rtv running
[ 71] Map Manager: Nominatio 0.3.5 Mistrick map_manager_nom running
[ 72] Map Manager: BlockList 0.0.4 Mistrick map_manager_blo running
[ 73] Map Manager: Effects 0.1.3 Mistrick map_manager_eff running
[ 74] Map Manager: Informer 0.0.5 Mistrick map_manager_inf running
[ 75] Map Manager: Sounds 0.0.3 Mistrick map_manager_sou running
[ 76] [190] Chat RBS 20.06.06 SKAJIbnEJIb chat_rbs.amxx running
Автор плагина
CHEL74
Версия плагина
1.0
Исходный код
#include <amxmodx>
#include <map_manager>

#define MAX_MAPNAME_LENGTH 32

new g_pCvarBotStop, g_pCvarTimeBeforeRemoveBotStop, g_pCvarChangeType

public plugin_init() {
register_plugin("Map Manager: zBot", "1.0", "CHEL74")
}

public OnConfigsExecuted() {
g_pCvarBotStop = get_cvar_pointer("bot_stop")
g_pCvarTimeBeforeRemoveBotStop = register_cvar("mapm_time_before_remove_bot_stop", "0.35")
g_pCvarChangeType - get_cvar_pointer("mapm_change_type")
}

public mapm_prepare_votelist() {
set_pcvar_num(g_pCvarBotStop, 1)
}

public mapm_vote_canceled() {
set_task(get_pcvar_float(g_pCvarTimeBeforeRemoveBotStop), "RemoveBotStop")
}

public mapm_vote_finished(const szNewMap[]) {
if(!get_pcvar_num(g_pCvarChangeType)) {
new szCurrentMap[MAX_MAPNAME_LENGTH]
get_mapname(szCurrentMap, charsmax(szCurrentMap))

if(!equal(szNewMap, szCurrentMap)) {
return
}
}

set_task(get_pcvar_float(g_pCvarTimeBeforeRemoveBotStop), "RemoveBotStop")
}

public RemoveBotStop() {
set_pcvar_num(g_pCvarBotStop, 0)
}
Добрый вечер. Не пойму в чем проблема ошибки, есть предположения, что плагин не видит квары, т.к. они занесены в game.cfg
 
В этой теме было размещено решение! Перейти к решению.
Сообщения
3,582
Реакции
1,569
Помог
137 раз(а)
WILL_BE, дебаг включи на плагин, потом скинь логи
 
Сообщения
486
Реакции
89
Помог
5 раз(а)
Код:
L 08/24/2023 - 20:40:51: [AMXX] Run time error 10 (plugin "reaimdetector.amxx") (native "write_file") - debug not enabled!
L 08/24/2023 - 20:40:51: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 08/24/2023 - 21:04:20: Start of error session.
L 08/24/2023 - 21:04:20: Info (map "de_inferno") (file "addons/amxmodx/logs/error_20230824.log")
L 08/24/2023 - 21:04:20: Invalid CVAR pointer
L 08/24/2023 - 21:04:20: [AMXX] Displaying debug trace (plugin "map_manager_zbot.amxx", version "1.0")
L 08/24/2023 - 21:04:20: [AMXX] Run time error 10: native error (native "set_pcvar_num")
L 08/24/2023 - 21:04:20: [AMXX]    [0] map_manager_zbot.sma::mapm_prepare_votelist (line 19)
L 08/24/2023 - 21:04:28: Invalid CVAR pointer
L 08/24/2023 - 21:04:28: [AMXX] Displaying debug trace (plugin "map_manager_zbot.amxx", version "1.0")
L 08/24/2023 - 21:04:28: [AMXX] Run time error 10: native error (native "get_pcvar_num")
L 08/24/2023 - 21:04:28: [AMXX]    [0] map_manager_zbot.sma::mapm_vote_finished (line 27)
 
Последнее редактирование модератором:
Сообщения
201
Реакции
20
Помог
5 раз(а)
указанный параметр не существует, Убедитесь, что боты включены.
 
Сообщения
486
Реакции
89
Помог
5 раз(а)
Всё так же валят ошибки (сервер естественно был перезапущен):

Код:
L 08/25/2023 - 17:45:18: Start of error session.
L 08/25/2023 - 17:45:18: Info (map "de_nuke") (file "addons/amxmodx/logs/error_20230825.log")
L 08/25/2023 - 17:45:18: Invalid CVAR pointer
L 08/25/2023 - 17:45:18: [AMXX] Displaying debug trace (plugin "map_manager_zbot.amxx", version "1.0")
L 08/25/2023 - 17:45:18: [AMXX] Run time error 10: native error (native "set_pcvar_num")
L 08/25/2023 - 17:45:18: [AMXX]    [0] map_manager_zbot.sma::mapm_prepare_votelist (line 19)
L 08/25/2023 - 17:45:26: Invalid CVAR pointer
L 08/25/2023 - 17:45:26: [AMXX] Displaying debug trace (plugin "map_manager_zbot.amxx", version "1.0")
L 08/25/2023 - 17:45:26: [AMXX] Run time error 10: native error (native "get_pcvar_num")
L 08/25/2023 - 17:45:26: [AMXX]    [0] map_manager_zbot.sma::mapm_vote_finished (line 27)
 
Последнее редактирование модератором:
Сообщения
20
Реакции
11
cvarlist bot_
В консоль, выдает bot_stop?
 
Сообщения
3,582
Реакции
1,569
Помог
137 раз(а)
Значит, остаётся один вариант: опять какой-то из скальпелевских плагин ломает OnConfigsExecuted. (причина)
Решение - вызывать самому. Пример.
 
Сообщения
486
Реакции
89
Помог
5 раз(а)
Возможно проще квары в сам MM прописать и никаких проблем, да и Mistrick сообщить для дальнейшего обновления, чтобы вшил для БОТов freeze
 
Сообщения
584
Реакции
1,006
Помог
18 раз(а)
WILL_BE, проблемного плагина нет в списке плагинов.
Код:
#include <amxmodx>
#include <map_manager>

#define MAX_MAPNAME_LENGTH 32

new g_pCvarBotStop, g_pCvarTimeBeforeRemoveBotStop, g_pCvarChangeType

public plugin_init() {
    register_plugin("Map Manager: zBot", "1.0", "CHEL74")
    g_pCvarTimeBeforeRemoveBotStop = register_cvar("mapm_time_before_remove_bot_stop", "0.35")
}

public plugin_cfg() {
    g_pCvarBotStop = get_cvar_pointer("bot_stop")
    g_pCvarChangeType = get_cvar_pointer("mapm_change_type")
}

public mapm_prepare_votelist() {
    set_pcvar_num(g_pCvarBotStop, 1)
}

public mapm_vote_canceled() {
    set_task(get_pcvar_float(g_pCvarTimeBeforeRemoveBotStop), "RemoveBotStop")
}

public mapm_vote_finished(const szNewMap[]) {
    if(!get_pcvar_num(g_pCvarChangeType)) {
        new szCurrentMap[MAX_MAPNAME_LENGTH]
        get_mapname(szCurrentMap, charsmax(szCurrentMap))
      
        if(!equal(szNewMap, szCurrentMap)) {
            return
        }
    }
 
    set_task(get_pcvar_float(g_pCvarTimeBeforeRemoveBotStop), "RemoveBotStop")
}

public RemoveBotStop() {
    set_pcvar_num(g_pCvarBotStop, 0)
}
 
Статус
В этой теме нельзя размещать новые ответы.

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу