Raised This Month: $32 Target: $400
 8% 

[CS:GO/ANY?] Discord - Map Notifications


Post New Thread Reply   
 
Thread Tools Display Modes
Oylsister
Senior Member
Join Date: Aug 2019
Location: KhonKaen, Thailand
Old 05-14-2021 , 23:39   Re: [CS:GO/ANY?] Discord - Map Notifications
Reply With Quote #41

got the error

Code:
L 05/15/2021 - 03:38:51: [SM] Exception reported: Invalid <Object> handle 0 (error 4)
L 05/15/2021 - 03:38:51: [SM] Blaming: discord_api.smx
L 05/15/2021 - 03:38:51: [SM] Call stack trace:
L 05/15/2021 - 03:38:51: [SM] [0] json_object_get
L 05/15/2021 - 03:38:51: [SM] [1] Line 37, D:\CSGO compile\sourcemod-1.10.0-git6459-windows\scripting\include\discord/stocks.inc::JsonObjectGetBool
L 05/15/2021 - 03:38:51: [SM] [2] Line 7, discord/SendWebHook.sp::SendWebHook
L 05/15/2021 - 03:38:51: [SM] [3] Line 73, discord/SendWebHook.sp::SendWebHookDelayed
__________________
Oylsister is offline
zwetch
Senior Member
Join Date: Aug 2015
Location: South Africa
Old 07-27-2021 , 13:06   Re: [CS:GO/ANY?] Discord - Map Notifications
Reply With Quote #42

Would be nice if you could add a cvar for a single logo image instead of map images or a option to choose between using a logo or map images.
__________________
https://forums.alliedmods.net/signaturepics/sigpic262740_1.gif

Last edited by zwetch; 07-27-2021 at 13:06.
zwetch is offline
Bara
AlliedModders Donor
Join Date: Apr 2012
Location: Germany
Old 07-27-2021 , 15:26   Re: [CS:GO/ANY?] Discord - Map Notifications
Reply With Quote #43

Quote:
Originally Posted by zwetch View Post
Would be nice if you could add a cvar for a single logo image instead of map images or a option to choose between using a logo or map images.
Added.
__________________
Discord (Bara#5006) | My Plugins (GitHub)
You like my work? Support is not a crime.
Bara is offline
zwetch
Senior Member
Join Date: Aug 2015
Location: South Africa
Old 07-28-2021 , 02:09   Re: [CS:GO/ANY?] Discord - Map Notifications
Reply With Quote #44

Quote:
Originally Posted by Bara View Post
Added.
WOW, that was fast.. Thanks.
__________________
https://forums.alliedmods.net/signaturepics/sigpic262740_1.gif
zwetch is offline
YoNer
Member
Join Date: Jul 2014
Old 01-23-2023 , 19:58   Re: [CS:GO/ANY?] Discord - Map Notifications
Reply With Quote #45

I'm having issues with Workshop maps, the map name is just posted empty, do you know what the cause could be?
YoNer is offline
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 04-30-2023 , 17:08   Re: [CS:GO/ANY?] Discord - Map Notifications
Reply With Quote #46

Recently, map notifications on discord are no longer displaying the gametracker map image.



Is anyone else facing this problem? Any fixes?

Last edited by paulo_crash; 04-30-2023 at 17:08.
paulo_crash is offline
Bara
AlliedModders Donor
Join Date: Apr 2012
Location: Germany
Old 05-01-2023 , 09:57   Re: [CS:GO/ANY?] Discord - Map Notifications
Reply With Quote #47

Hey, I updated the plugin and removed the dependencies of DiscordAPI, SMJansson and SteamWorks.

The new (and only) dependency is RIPExt. Attention I must rename "discord_map_notification_color" to "discord_map_notification_colors" because of the discord changes with colors as decimal code.
__________________
Discord (Bara#5006) | My Plugins (GitHub)
You like my work? Support is not a crime.
Bara is offline
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 05-01-2023 , 10:25   Re: [CS:GO/ANY?] Discord - Map Notifications
Reply With Quote #48

Quote:
Originally Posted by Bara View Post
Hey, I updated the plugin and removed the dependencies of DiscordAPI, SMJansson and SteamWorks.

The new (and only) dependency is RIPExt. Attention I must rename "discord_map_notification_color" to "discord_map_notification_colors" because of the discord changes with colors as decimal code.
I tested it here and it doesn't work, I get the following message in the server's error log:

Code:
L 05/01/2023 - 11:20:29: [SM] Exception reported: Handle 65701724 is invalid (error 3)
L 05/01/2023 - 11:20:29: [SM] Blaming: discord_MapNotification.smx
L 05/01/2023 - 11:20:29: [SM] Call stack trace:
L 05/01/2023 - 11:20:29: [SM]   [0] CloseHandle
L 05/01/2023 - 11:20:29: [SM]   [1] Line 155, D:\ZK Servidores™\Servidores CSGO\Editar Plugins\addons\sourcemod\scripting\discord_MapNotification.sp::Timer_SendMessage
L 05/01/2023 - 11:20:48: Error log file session closed.

L 05/01/2023 - 11:34:11: [SM] Exception reported: Handle c2701767 is invalid (error 3)
L 05/01/2023 - 11:34:11: [SM] Blaming: discord_MapNotification.smx
L 05/01/2023 - 11:34:11: [SM] Call stack trace:
L 05/01/2023 - 11:34:11: [SM]   [0] CloseHandle
L 05/01/2023 - 11:34:11: [SM]   [1] Line 155, D:\ZK Servidores™\Servidores CSGO\Editar Plugins\addons\sourcemod\scripting\discord_MapNotification.sp::Timer_SendMessage

Last edited by paulo_crash; 05-01-2023 at 10:36.
paulo_crash is offline
Bara
AlliedModders Donor
Join Date: Apr 2012
Location: Germany
Old 05-02-2023 , 11:02   Re: [CS:GO/ANY?] Discord - Map Notifications
Reply With Quote #49

Quote:
Originally Posted by paulo_crash View Post
Code:
L 05/01/2023 - 11:20:29: [SM] Exception reported: Handle 65701724 is invalid (error 3)
L 05/01/2023 - 11:20:29: [SM] Blaming: discord_MapNotification.smx
L 05/01/2023 - 11:20:29: [SM] Call stack trace:
L 05/01/2023 - 11:20:29: [SM]   [0] CloseHandle
L 05/01/2023 - 11:20:29: [SM]   [1] Line 155, D:\ZK Servidores™\Servidores CSGO\Editar Plugins\addons\sourcemod\scripting\discord_MapNotification.sp::Timer_SendMessage
Hu, try it now. EmbedField don't need to be deleted.
__________________
Discord (Bara#5006) | My Plugins (GitHub)
You like my work? Support is not a crime.
Bara is offline
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 05-02-2023 , 19:39   Re: [CS:GO/ANY?] Discord - Map Notifications
Reply With Quote #50

Quote:
Originally Posted by Bara View Post
Hu, try it now. EmbedField don't need to be deleted.
Now it started sending the messages again, but no image of the maps in the embed.



Could it be something in the GameTracker itself?
paulo_crash 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:43.


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