AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:GO] Team Logo Manager 1.4.2 [2016.04.09] (https://forums.alliedmods.net/showthread.php?t=258206)

Neuro Toxin 02-14-2015 20:25

[CS:GO] Team Logo Manager 1.4.2 [2016.04.09]
 
1 Attachment(s)
[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+

asherkin 02-14-2015 21:37

Re: [CS:GO] Random Team Icons 1.0
 
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).

Neuro Toxin 02-14-2015 22:29

Re: [CS:GO] Random Team Icons 1.0
 
Quote:

Originally Posted by asherkin (Post 2262381)
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.

Chesterfield 02-14-2015 22:43

Re: [CS:GO] Random Team Icons 1.0
 
Team icons? what is that? screenshot pls?

Neuro Toxin 02-14-2015 22:47

Re: [CS:GO] Random Team Icons 1.0
 
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?

Neuro Toxin 02-14-2015 22:53

Re: [CS:GO] Random Team Icons 1.0
 
Quote:

Originally Posted by Chesterfield (Post 2262396)
Team icons? what is that? screenshot pls?

http://prntscr.com/659s3chttp://prntscr.com/659s3c
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


http://prntscr.com/659s3c

Neuro Toxin 02-15-2015 00:46

Re: [CS:GO] Team Logo Manager 1.1
 
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.

Kokarn 02-15-2015 15:31

Re: [CS:GO] Team Logo Manager 1.1
 
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!

Neuro Toxin 02-15-2015 17:31

Re: [CS:GO] Team Logo Manager 1.1
 
They look like all of the Valve default team logos :)

Kokarn 02-16-2015 02:15

Re: [CS:GO] Team Logo Manager 1.1
 
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 :)


All times are GMT -4. The time now is 18:58.

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