Raised This Month: $ Target: $400
 0% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
whiteskypony
Member
Join Date: Jun 2015
Location: vsh_crevice_b5
Old 07-21-2020 , 23:16   Re: [CS:GO/ANY?] Discord - Map Notifications
Reply With Quote #31




How should i edit the plugin to target tf2 related map images on gametracker?

Quote:
Format(sThumb, sizeof(sThumb), "https://image.gametracker.com/images/maps/160x120/csgo/%s.jpg", sMap);
To?
Quote:
Format(sThumb, sizeof(sThumb), "https://image.gametracker.com/images/maps/160x120/tf2/%s.jpg", sMap);
__________________
Steam | Servers | Discord: Maximo#5396



Last edited by whiteskypony; 07-21-2020 at 23:22.
whiteskypony is offline
Bara
AlliedModders Donor
Join Date: Apr 2012
Location: Germany
Old 07-22-2020 , 05:38   Re: [CS:GO/ANY?] Discord - Map Notifications
Reply With Quote #32

Quote:
Originally Posted by whiteskypony View Post



How should i edit the plugin to target tf2 related map images on gametracker?


To?
Correct, as example: https://image.gametracker.com/images.../ctf_2fort.jpg

I'll add a cvar to change the game
__________________
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 07-22-2020 , 06:44   Re: [CS:GO/ANY?] Discord - Map Notifications
Reply With Quote #33

@Bara could you make the plugin update the map image you send in Discord if the map image is changed in GameTracker?

There are some that even having the map image in GameTracker the plugin sends the message without an image.

Last edited by paulo_crash; 07-22-2020 at 06:45.
paulo_crash is offline
DoPe^
Veteran Member
Join Date: Jul 2008
Location: Denmark / Copenhagen
Old 08-07-2020 , 09:27   Re: [CS:GO/ANY?] Discord - Map Notifications
Reply With Quote #34

Hey @Bara, is it possible so if you use a workshop map to make it strip the folder and workshop id from the name?
Right now it looks like this
__________________
DoPe^ is offline
Bara
AlliedModders Donor
Join Date: Apr 2012
Location: Germany
Old 08-07-2020 , 13:40   Re: [CS:GO/ANY?] Discord - Map Notifications
Reply With Quote #35

Quote:
Originally Posted by DoPe^ View Post
Hey @Bara, is it possible so if you use a workshop map to make it strip the folder and workshop id from the name?
Right now it looks like this
Done.
__________________
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 08-07-2020 , 14:26   Re: [CS:GO/ANY?] Discord - Map Notifications
Reply With Quote #36

Could you explain how this cvar works:

PHP Code:
// Which language (as 2 or 3 digit code) for discord messages?
// Here's a list of some/all languages codes:
// [url]https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes[/url]
discord_map_notification_language_code "en" 
Even leaving default messages are sent in my language, "pt", but if you put PT in the cvar it does not send the messages in the discord.

Last edited by paulo_crash; 08-07-2020 at 14:27.
paulo_crash is offline
DoPe^
Veteran Member
Join Date: Jul 2008
Location: Denmark / Copenhagen
Old 08-07-2020 , 20:45   Re: [CS:GO/ANY?] Discord - Map Notifications
Reply With Quote #37

Quote:
Originally Posted by Bara View Post
Done.
Awesome! thank you so much
__________________
DoPe^ is offline
loko15
Junior Member
Join Date: Oct 2020
Old 11-24-2020 , 13:50   Re: [CS:GO/ANY?] Discord - Map Notifications
Reply With Quote #38

no errors but doesnt doesnt work, help?
loko15 is offline
Bara
AlliedModders Donor
Join Date: Apr 2012
Location: Germany
Old 01-05-2021 , 19:02   Re: [CS:GO/ANY?] Discord - Map Notifications
Reply With Quote #39

I've uploaded now the discord_api.smx as well, since it makes a lot of errors with older discord_api versions.
__________________
Discord (Bara#5006) | My Plugins (GitHub)
You like my work? Support is not a crime.
Bara is offline
Blur11602
New Member
Join Date: Jan 2021
Old 01-11-2021 , 11:08   Re: [CS:GO/ANY?] Discord - Map Notifications
Reply With Quote #40

Hi Bara, i was wondering how to install Steamworks and smjansson, as there are no instructions for smjansson and (for steamworks) i do not know what files to extract and where.
Any help would be greatly appreciated

BLUR
Blur11602 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 11:19.


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