1zc / SM-Discord-Chat

Simple SourceMod plugin that logs chats to Discord via webhooks, with two styles: one that looks slightly pretty, and a super simple style that suits logging.
GNU General Public License v3.0
5 stars 5 forks source link

failed to load: Required extension "SMJansson" not running #6

Open wfahnestock opened 5 months ago

wfahnestock commented 5 months ago

When trying to load the plugin, it says this: [SM] Plugin Infra-DiscordChat.smx failed to load: Required extension "SMJansson" file("smjansson.ext") not running.

Even though SMJansson is running:

] rcon sm exts load SMJansson
[SM] Loaded extension SMJansson.ext.dll successfully.
] sm exts 11
 "SMJansson" (2.6.0/1) by Thrawn2: JSON parser/writer

SourceMod version if it helps:

] sm version
SourceMod 1.11.0.6968, by AlliedModders LLC
To see running plugins, type "sm plugins"
To see credits, type "sm credits"
Visit https://www.sourcemod.net/
wfahnestock commented 5 months ago

UPDATE:

After messing around with the extensions, I got it loaded successfully. However now I get these errors upon a chat being sent in-game:

L 06/29/2024 - 13:34:09: [SM] Exception reported: Could not create <Object> handle.
L 06/29/2024 - 13:34:09: [SM] Blaming: Infra-DiscordChat.smx
L 06/29/2024 - 13:34:09: [SM] Call stack trace:
L 06/29/2024 - 13:34:09: [SM]   [0] json_object
L 06/29/2024 - 13:34:09: [SM]   [1] Line 3, D:\Games\GFLClan\Dev\sourcemod\scripting\include\discord/webhook.inc::DiscordWebHook.DiscordWebHook
L 06/29/2024 - 13:34:09: [SM]   [2] Line 170, d:\Games\GFLClan\Dev\SM Plugins\SM-Discord-Chat\addons\sourcemod\scripting\Infra-DiscordChat.sp::sendSimpleWebhook
L 06/29/2024 - 13:34:09: [SM]   [3] Line 92, d:\Games\GFLClan\Dev\SM Plugins\SM-Discord-Chat\addons\sourcemod\scripting\Infra-DiscordChat.sp::OnClientSayCommand_Post

Webhook and Steam API URLs are configured in Infra-DiscordChat.cfg