Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SM] [1] Line 12, materialadmin/database.sp::MAConnectDB #110

Open
butaford opened this issue Aug 28, 2020 · 2 comments
Open

[SM] [1] Line 12, materialadmin/database.sp::MAConnectDB #110

butaford opened this issue Aug 28, 2020 · 2 comments

Comments

@butaford
Copy link

Если в момент запуска база данных не доступна, происходит след ошибка:

[L 08/28/2020 - 06:29:40: SourceMod error session started
L 08/28/2020 - 06:29:40: Info (map "de_dust2") (file "/servers/css/1020/cstrike/addons/sourcemod/logs/errors_20200828.log")
L 08/28/2020 - 06:29:40: [SM] Exception reported: Script execution timed out
L 08/28/2020 - 06:29:40: [SM] Blaming: materialadmin.smx
L 08/28/2020 - 06:29:40: [SM] Call stack trace:
L 08/28/2020 - 06:29:40: [SM]   [1] Line 12, materialadmin/database.sp::MAConnectDB
L 08/28/2020 - 06:29:40: [SM]   [2] Line 284, materialadmin.sp::OnPluginStart
L 08/28/2020 - 06:29:40: [SM] Unable to load plugin "materialadmin.smx": Error detected in plugin startup (see error logs)
L 08/28/2020 - 06:29:52: [SM] Unable to load plugin "ma_checker.smx": Could not find required plugin "materialadmin"]

Errors:

materialadmin.smx (Material Admin): Error detected in plugin startup (see error logs)
ma_checker.smx (Material Admin Checker): Could not find required plugin "materialadmin"

При попытке ручной загрузки:

L 08/28/2020 - 08:38:03: [SM] Exception reported: Native is not bound
L 08/28/2020 - 08:38:03: [SM] Blaming: ma_adminmenu.smx
L 08/28/2020 - 08:38:03: [SM] Call stack trace:
L 08/28/2020 - 08:38:03: [SM]   [0] MAGetConfigSetting
L 08/28/2020 - 08:38:03: [SM]   [1] Line 90, ma_adminmenu.sp::MAOnConfigSetting
L 08/28/2020 - 08:38:03: [SM]   [3] Call_Finish
L 08/28/2020 - 08:38:03: [SM]   [4] Line 486, materialadmin/native.sp::FireOnConfigSetting
L 08/28/2020 - 08:38:03: [SM]   [5] Line 1346, materialadmin/function.sp::VerifyServerID
L 08/28/2020 - 08:38:03: [SM]   [6] Line 88, materialadmin/config.sp::ReadConfig
L 08/28/2020 - 08:38:03: [SM]   [7] Line 283, materialadmin.sp::OnPluginStart
[SM] Loaded plugin materialadmin.smx successfully.

Плагин не работает и соответственно админки тоже. Возможно ли сделать загрузку плагина, при не доступной БД, но с записью ошибки в лог и после восстановления соединения, закрывать этот лог?

@MAGNAT2645
Copy link

MAGNAT2645 commented Aug 28, 2020

Native is not bound говорит о том, что в materialadmin.smx нет натива MAGetConfigSetting. Попробуй в этом репозитории взять последнюю версию materialadmin.sp и скомпилируй.

@butaford
Copy link
Author

butaford commented Aug 28, 2020

Да я забыл указать что я и взял последнюю скомпилировал на SM-1.10-6492
На сервере, такой же SM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants