Raised This Month: $222 Target: $400
 55% 

[CS:GO] Team Logo Manager 1.4.2 [2016.04.09]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Plugin ID:
4522
Plugin Version:
1.4.2
Plugin Category:
Fun Stuff
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 02-14-2015 , 20:25   [CS:GO] Team Logo Manager 1.4.2 [2016.04.09]
    Reply With Quote #1

    [CS:GO] Team Logo Manager 1.4.2
    Quote:
    Originally Posted by CSGO has been updated to version 1.34.7.1
    [TOURNAMENT SUPPORT]
    - Added the ability to specify team logos just like we specify team names or flags (via convars mp_teamlogo_1 and mp_teamlogo_2 using team's shorthand image name).
    -- Team logos now show in the spectator scoreboard, the win panel and the player scoreboard.
    - Added a new win panel string that shows the team name if they win the round
    This plugin adds the team logo files stored in 'csgo/resource/flash/econ/tournaments/teams/' to your servers download table. The main purpose of this plugin is to remove the requirement for a download table manager plugin if you want to use the new team logo features.


    Quote:
    Logo file names cant be any longer 5 chars (excluding extension). If file names are longer, when you set the mp_teamlogo_* cvars, the logo wont display on clients.
    Features
    - Adds logo files to the servers download table automatically.
    - (optional) Random logo selection at the start of each map.
    - (optional) Add default Valve team logos to random selection.
    - (optional) Automatically set team names based on the logo selection.
    - (optional) Use team player group names to auto select team logo (by decowboy).
    - Teamnames and logos automatically switch at half time.
    Installation instructions
    1. Copy the .smx file to your sourcemod plugins folder.
    2. Add your team icon's files to 'csgo/resource/flash/econ/tournaments/teams/'.
    3. Be sure to also add your icon files to your fastdl server.
    4. Set cvars mp_teamlogo_1 and mp_teamlogo_2 in your servers configs.
    Enabling Random Selection Mode
    1. Set convar 'teamlogo_randomlogos' to 1 in your server configs.
    2. Set convar 'teamlogo_defaultlogos' to 1 if you want to also include the default Valve team logos.
    Extra Logos and Team Name Configs
    Kokarn has taken the time and effort to give us some custom team logos and a website to download them from.

    - Kokarn's download repository.
    - Kokarn's entire logo set and configs (FastDL)
    * You add additional logo and config files in '/csgo/resource/flash/econ/tournaments/teams/'.
    * Don't forget to add your .png files to your fastdl server (.cfg files only need to be stored on your game sever).

    Default Valve Logo Names
    Configuring Team Names
    1. Set convar 'teamlogo_teamnames' to 1 in your server configs.

    Team names are loaded from .cfg files which share the same filename as the logo file. The .cfg file contains the straight text of the team name. An example would be: if a logo file name is 'austg.png', the cfg file would be named 'austg1.cfg'. If the config file contained 'Toxic Gamers', the teams name would display as 'Toxic Gamers' in game.
    If you also have 'teamlogo_defaultlogos' set to 1. Find the default logo teamname configs here.
    Please see the 'Extra Logos and Team Name Configs' section for examples.
    Convars
    teamlogo_randomlogos :: Enables selection of random team logos on map load.
    1 - Enabled
    0 - Disabled (default)
    teamlogo_defaultlogos :: Adds the Valve default logos to the team logo list if 'teamlogo_randomlogos' is set to 1.
    1 - Enabled
    0 - Disabled (default)
    teamlogo_teamnames :: Team names will be loaded from .cfg files with the same name and location as the logo file.
    1 - Enabled
    0 - Disabled (default)
    teamlogo_halftime_teamswitch :: Plugin will switch team logo's and names at half time.
    1 - Enabled
    0 - Disabled (default)
    teamlogo_autologos :: Plugin will auto-select team logos based on player clan tags.
    1 - Enabled
    0 - Disabled (default)
    Update notes
    Version 1.1
    - Changed default plugin settings to enable plugin to act as a download manager for your team logos.
    -- Added convar 'teamlogo_randomlogos'.
    -
    Renamed cvars, plugin and script globals to reflect 'logo' instead of 'icon'.
    - Optimised plugin based on asherkin's advise (thanking you).
    Version 1.2
    - Fixed some team logos no displaying properly.
    - Added team name functionality (see features for more information).
    - Added team name and logo switching at announce_phase_end (halftime).
    - Added error logging to Sourcemod's error logs.

    Version 1.3
    - Changed code to new transitional syntax.
    - Added cvar 'teamlogo_halftime_teamswitch' to enable/disable team logo/name switching at half time.

    Version 1.3.1
    - Compiled using Sourcemod 1.7.1 compiler
    Other notes
    The team logo files are stored @ 'csgo/resource/flash/econ/tournaments/teams/' and are in .png format and must be 64x64.
    Known Issues
    Quote:
    Please be aware that I have identified that the logo file names cant be any longer 5 chars (excluding extension). If filenames are longer, when you set the mp_teamlogo_* cvars, the logo wont display on clients.

    I have raised this issue on the CSGO mailing list. However I'm not holding my breath on valve allowing more then 5 chars for the mp_teamlogo_* cvars.
    Latest Download - Version 1.4.2
    Github Repository

    Previous download count: 2000+
    __________________

    Last edited by Neuro Toxin; 04-10-2016 at 19:29. Reason: release 1.5.3 pushed
    Neuro Toxin is offline
    asherkin
    SourceMod Developer
    Join Date: Aug 2009
    Location: OnGameFrame()
    Old 02-14-2015 , 21:37   Re: [CS:GO] Random Team Icons 1.0
    Reply With Quote #2

    You should use PLATFORM_MAX_PATH rather than picking arbitrary sizes for path buffers.
    filename[strlen(filename) - 3] = '\0' is a slightly quicker hack than copying to a new buffer.
    While it doesn't really matter, might want to cache the mp_teamlogo_* handles in OnPluginStart().
    Not hardcoding the default logos would be better (SM's filesystem functions can read inside the VPK).
    __________________
    asherkin is offline
    Neuro Toxin
    Veteran Member
    Join Date: Oct 2013
    Location: { closing the void; }
    Old 02-14-2015 , 22:29   Re: [CS:GO] Random Team Icons 1.0
    Reply With Quote #3

    Quote:
    Originally Posted by asherkin View Post
    You should use PLATFORM_MAX_PATH rather than picking arbitrary sizes for path buffers.
    filename[strlen(filename) - 3] = '\0' is a slightly quicker hack than copying to a new buffer.
    While it doesn't really matter, might want to cache the mp_teamlogo_* handles in OnPluginStart().
    Not hardcoding the default logos would be better (SM's filesystem functions can read inside the VPK).
    Agreed, I'll do your suggestions now.
    __________________
    Neuro Toxin is offline
    Chesterfield
    Senior Member
    Join Date: Apr 2013
    Old 02-14-2015 , 22:43   Re: [CS:GO] Random Team Icons 1.0
    Reply With Quote #4

    Team icons? what is that? screenshot pls?
    Chesterfield is offline
    Neuro Toxin
    Veteran Member
    Join Date: Oct 2013
    Location: { closing the void; }
    Old 02-14-2015 , 22:47   Re: [CS:GO] Random Team Icons 1.0
    Reply With Quote #5

    Ok asherkin*, I've done your suggestions besides the reading of the VPK.

    I've had a good look in the Wiki and google searched, however, I cant seem to find info on how to read files from a directory within a vpk.

    I have confirmed with GCFScape the team icon files are in the servers pack.

    Could you please provide a example for me?
    __________________

    Last edited by Neuro Toxin; 02-14-2015 at 23:02.
    Neuro Toxin is offline
    Neuro Toxin
    Veteran Member
    Join Date: Oct 2013
    Location: { closing the void; }
    Old 02-14-2015 , 22:53   Re: [CS:GO] Random Team Icons 1.0
    Reply With Quote #6

    Quote:
    Originally Posted by Chesterfield View Post
    Team icons? what is that? screenshot pls?
    Quote:
    Originally Posted by Update News
    [TOURNAMENT SUPPORT]
    - Added server setting sv_reliableavatardata: when enabled player avatars are reliably exchanged between all players and casters on the game server, reliably delivered to GOTV spectators, and recorded in demo files.
    - Added the ability to specify team logos just like we specify team names or flags (via convars mp_teamlogo_1 and mp_teamlogo_2 using team's shorthand image name).
    -- Team logos now show in the spectator scoreboard, the win panel and the player scoreboard.
    - Added a new win panel string that shows the team name if they win the round.
    Below is a screen shot of the Aus-TG logo's added to one of my servers.

    http://prntscr.com/659sjm


    __________________
    Neuro Toxin is offline
    Neuro Toxin
    Veteran Member
    Join Date: Oct 2013
    Location: { closing the void; }
    Old 02-15-2015 , 00:46   Re: [CS:GO] Team Logo Manager 1.1
    Reply With Quote #7

    Update Pushed:

    Version 1.1
    - Changed default plugin settings to enable plugin to act as a download manager for your team logos.
    -- Added convar 'teamlogo_randomlogos'.
    -
    Renamed cvars, plugin and script globals to reflect 'logo' instead of 'icon'.
    - Optimised plugin based on asherkin's advise (thanking you).

    The purpose of this update is to make the default setup of this plugin to act as a download table manager for the team logo files you place in 'csgo/resource/flash/econ/tournaments/teams/'.

    I also renamed the plugin to reflect this while maintaining cvars to allow the random logo selection as per the first release of this plugin.
    __________________

    Last edited by Neuro Toxin; 02-15-2015 at 17:33.
    Neuro Toxin is offline
    Kokarn
    Junior Member
    Join Date: Feb 2015
    Old 02-15-2015 , 15:31   Re: [CS:GO] Team Logo Manager 1.1
    Reply With Quote #8

    Hey!

    Really like this mod!

    I had to collect teamlogos and other things for a lot of teams for another project recently, would that be of use?
    Some way the mod could load the logo files directly from the repo instead of every single person having to collect them all on their own server.

    If that's possible there is an open source repo with all the data located here.
    https://github.com/kokarn/csgo-teams

    Thanks!
    Kokarn is offline
    Neuro Toxin
    Veteran Member
    Join Date: Oct 2013
    Location: { closing the void; }
    Old 02-15-2015 , 17:31   Re: [CS:GO] Team Logo Manager 1.1
    Reply With Quote #9

    They look like all of the Valve default team logos
    __________________

    Last edited by Neuro Toxin; 02-15-2015 at 17:32.
    Neuro Toxin is offline
    Kokarn
    Junior Member
    Join Date: Feb 2015
    Old 02-16-2015 , 02:15   Re: [CS:GO] Team Logo Manager 1.1
    Reply With Quote #10

    Yeah I needed them all for my project so they are all there but i added all the notable ones missing.

    Every team from the ESL One Qualifier and some other exceptions like EnVyUs and Team SoloMid.

    I'm also very open to any community suggestion and/or addition. People who run local tournaments or just play with friends could easily just upload a logo
    Kokarn 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 20:17.


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