Raised This Month: $12 Target: $400
 3% 

[Any] New Discord Accelerator (1.0, 2022-06-12)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Johnoclock
Member
Join Date: Oct 2014
Location: denmark
Plugin ID:
8316
Plugin Version:
1.0
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
Servers with this Plugin:
 
Plugin Description:
Sends discord message when server crashed
Old 12-06-2022 , 02:33   [Any] New Discord Accelerator (1.0, 2022-06-12)
Reply With Quote #1

Hello first time post a plugin so here we go. If I missed something in the post let me know

this is a rewrite of [Discord] Server crash (Accelerator)
as it didnt work with newer verison of accelerator



  • Plans
  • add convar for embed color
  • add conbar for webhook username
  • add so it print last 20 line of console

  • Convars
    Quote:
    //your webhook
    discord_webhook_crashlogger "youawsomewebhook"





Quote:

2022-12-12 (v1.1)

* Fixing a index out-of-bounds issue.

2022-06-12 (v1.0)

* Initial release.
  • contact
    Johnoclock#0730
Attached Files
File Type: sp Get Plugin or Get Source (discord_accelerator.sp - 72 views - 2.8 KB)
File Type: smx discord_accelerator.smx (5.6 KB, 62 views)

Last edited by Johnoclock; 12-16-2022 at 15:18.
Johnoclock is offline
whiteskypony
Member
Join Date: Jun 2015
Location: vsh_crevice_b5
Old 12-06-2022 , 20:03   Re: [Any] New Discord Accelerator (1.0, 2022-06-12)
Reply With Quote #2

Code:
sm plugins reload discord/discord_accelerator.smx
[SM] Plugin Discord Accelerator reloaded successfully.
exec <filename>: execute a script file
L 12/06/2022 - 22:02:31: [SM] Exception reported: Array index out-of-bounds (index -1, limit 64)
L 12/06/2022 - 22:02:31: [SM] Blaming: discord/discord_accelerator.smx
L 12/06/2022 - 22:02:31: [SM] Call stack trace:
L 12/06/2022 - 22:02:31: [SM]   [1] Line 57, C:\Users\john\Desktop\SourcePawn\Johnoclock\discord_accelerator.sp::OnConfigsExecuted
Not sure if this causes any problem, but just letting you know.
__________________
Steam | Vidya Servers | Discord: Maximo#5396 / kitsumy.


whiteskypony is offline
Johnoclock
Member
Join Date: Oct 2014
Location: denmark
Old 12-07-2022 , 03:41   Re: [Any] New Discord Accelerator (1.0, 2022-06-12)
Reply With Quote #3

Quote:
Originally Posted by whiteskypony View Post
Code:
sm plugins reload discord/discord_accelerator.smx
[SM] Plugin Discord Accelerator reloaded successfully.
exec <filename>: execute a script file
L 12/06/2022 - 22:02:31: [SM] Exception reported: Array index out-of-bounds (index -1, limit 64)
L 12/06/2022 - 22:02:31: [SM] Blaming: discord/discord_accelerator.smx
L 12/06/2022 - 22:02:31: [SM] Call stack trace:
L 12/06/2022 - 22:02:31: [SM]   [1] Line 57, C:\Users\john\Desktop\SourcePawn\Johnoclock\discord_accelerator.sp::OnConfigsExecuted
Not sure if this causes any problem, but just letting you know.
ahh thanks ill try get this fixed by next update i think the issue is you not having anything in accelerator.log file
Johnoclock is offline
whiteskypony
Member
Join Date: Jun 2015
Location: vsh_crevice_b5
Old 12-18-2022 , 19:13   Re: [Any] New Discord Accelerator (1.0, 2022-06-12)
Reply With Quote #4

Code:
[SM] Plugin discord/discord_accelerator.smx failed to reload: Could not find required plugin "discord-api".
Cant seem to get it to work, im using the lasted version of the discord api.

--------------------------------------------------------------------------------

I was using and older version first and that one allowed me to load the plugin, tho the crash report never reached the discord channel.

Code:
we sendt something to discord
src/common/httpclient.cpp (796) : pHost && *pHost
src/common/httpclient.cpp (796) : pHost && *pHost
assert_20221218210831_14.dmp[76]: Uploading dump (out-of-process)
/tmp/dumps/assert_20221218210831_14.dmp
assert_20221218210831_14.dmp[76]: Uploading dump (out-of-process)
/tmp/dumps/assert_20221218210831_14.dmp

L 12/18/2022 - 21:08:31: [discord/discord_api.smx] [DISCORD] Couldn't Send Webhook - Fail 0 0
assert_20221218210831_14.dmp[76]: Finished uploading minidump (out-of-process): success = yes
assert_20221218210831_14.dmp[76]: Finished uploading minidump (out-of-process): success = yes

assert_20221218210831_14.dmp[76]: response: Discarded=1
assert_20221218210831_14.dmp[76]: response: Discarded=1

assert_20221218210831_14.dmp[76]: file ''/tmp/dumps/assert_20221218210831_14.dmp'', upload yes: ''Discarded=1''
assert_20221218210831_14.dmp[76]: file ''/tmp/dumps/assert_20221218210831_14.dmp'', upload yes: ''Discarded=1''
__________________
Steam | Vidya Servers | Discord: Maximo#5396 / kitsumy.


whiteskypony 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 07:16.


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