Ulysses

Ulysses Stuff => Releases => Topic started by: [ LittleBigBug_ ] on June 26, 2015, 11:56:41 AM

Title: Chat Cosmetics! Chat Tags | Connection Utilities | +More!
Post by: [ LittleBigBug_ ] on June 26, 2015, 11:56:41 AM
(http://i.imgur.com/kQHzCtp.png)

This is a very simple feature rich chat plugin for Garry's Mod.
This is my first addon for Garry's Mod and Please give feedback!

Facepunch Thread
http://facepunch.com/showthread.php?t=1472886&p=48054359#post48054359 (http://facepunch.com/showthread.php?t=1472886&p=48054359#post48054359)

Works for: (tested)

- ULX
- Maestro (http://facepunch.com/showthread.php?t=1481504 (http://facepunch.com/showthread.php?t=1481504))

If you need another admin mod supported please ask.


I have a github repo for this now. Please post your bugs there. Link (https://github.com/LittleBigBug/chat-cosmetics/issues)

Welp Here we go

THIS WAS MADE FOR AERO GAME SERVERS!
http://www.aerogameservers.com (http://www.aerogameservers.com)

Features:
 - Chat tags
 - Change the brackets/separators
 - Change the color for brackets for each group
 - Group Specific chat colors
 - Connect/Disconnect/First Spawn (When they load in) Messages (You can disable these)
 - Send Messages to admins/superadmins with disconnecting player's SteamID information
 - Player's Name color is their team color/darkrp job.
 - Multiple Gamemode Support (Tested on Deathrun and Darkrp)
 - Customize DarkRP Advert Chat color
 - -Dead- Tags for non-darkrp gamemodes
 - [Team] tags for Team Chat on non-darkrp gamemodes
 - Custom Custom Chat tag for specific Steam IDS (Won't Conflict with regular group tag) [Requested by Dark123 and CharbelK]
 - Suggest some more <3

Screenies:

Deathrun:
(http://i.imgur.com/gzrxXsI.png)

DarkRP:
(http://i.imgur.com/zjxD9Pk.png)
(http://i.imgur.com/z0wCe4M.png)

Config:

Code: [Select]

-- _PRIORITY = 9998
-- Chat Cosmetics Created and Developed by LittleBigBug
-- http://www.steamcommunity.com/id/littlebigbug
-- All Rights reserved
-- Specially developed for Aero Game Servers
-- Aerogameservers.com

-- _-----------------------------_
-- Chat Cosmetics Configuration
-- _-----------------------------_
-- --_________________--

CUConfig = {}
CUConfig.Tags = {}

CUConfig.Debug = false -- For testing - prints in console

local color_white = color_white

-- /\ DONT TOUCH ABOVE /\

-- Start Editing Below

CUConfig.MessagePrefix = nil -- Message prefix for the messages. Nil is default: [Server]
CUConfig.PrefixColor = Color(0, 255, 168)

CUConfig.EnableConnectMessage = true -- Enables "Player <playername> has connected to the server" in chat when anyone joins.
CUConfig.EnableFirstSpawnMessage = true -- Enables "Player <playername> has Spawned in the server" in chat when anyone finishes loading in the server.

CUConfig.EnableDisconnectMessage = true -- Enables "Player <playername> has disconnected from the server" in the chat when anyone leaves.

CUConfig.EnableAdminSteamDisconnect = true -- Enables "Player <playername> had the steamid of <SteamID>" in the chat to all admins and superadmins when the player disconnects
CUConfig.AdminSteamGroups = { -- Groups to show the disconnecting players steamid to

["superadmin"] = 0,
["admin"] = 1

}

CUConfig.CustomTag = { }
CUConfig.CustomTag.Enabled = false -- Enable the additional chat tags to only affect specific SteamIDS. Will be shown before the group tag.
CUConfig.CustomTag.Colour = Color( 48, 255, 162 ) -- Color of the tag (not the brackets)
CUConfig.CustomTag.Name = "Dev"
CUConfig.CustomTag.BracketsColour = color_white
CUConfig.CustomTag.BracketLeft = "["
CUConfig.CustomTag.BracketRight = "]"
CUConfig.CustomTag.SteamIDs = {

["STEAM_0:0:52985450"] = 1, -- LittleBigBug
["STEAM_0:1:7099"] = 2 -- Garry

}

-- Chat Tags
-- These do work with almost every gamemode.
-- Tested Gamemodes:
-- Deathrun, DarkRP
-- OOC, Advert, and PM work.
-- Ex:
-- CUConfig.Tags["group"] = { Color(255, 255, 255), "My Group", Color( 0, 0, 0), false }
--                            Group Name ||     Tag Color ||            Tag ||             Bracket Color || Chat Color
CUConfig.Tags["superadmin"] = { Color( 255, 0, 0 ), "SuperAdmin", color_white, Color( 255, 94, 94 ) }
CUConfig.Tags["admin"] = { Color( 255, 94, 94 ), "Admin", color_white, false }
CUConfig.Tags["user"] = { Color(138, 138, 138), "Guest", color_white, false }

CUConfig.BracketLeft = "[" -- the bracket on the right of the tag. You can leave this blank
CUConfig.BracketRight = "] " -- and this one like | as a seperator.

CUConfig.AdvertChatColor = Color( 0, 255, 238 ) -- Color For /advert chats (DarkRP only - just leave this alone if you don't use DarkRP)

Downloads:

GitHub! (https://github.com/LittleBigBug/chat-cosmetics)


Enjoy!
Title: Re: Chat Cosmetics! Chat Tags | Connection Utilities | +More!
Post by: gordon301 on July 04, 2015, 03:55:06 AM
Woah! Great work! I am currently using it on my Sandbox Build 'n' Kill, no issues as of yet!
Keep it up!
Title: Re: Chat Cosmetics! Chat Tags | Connection Utilities | +More!
Post by: Dark123 on July 06, 2015, 10:09:17 PM
Is there a way that I can set this up to steam id's?
Title: Re: Chat Cosmetics! Chat Tags | Connection Utilities | +More!
Post by: Janjakob2000 on July 07, 2015, 12:49:34 AM
Great addon! I would love to see more of these in the future, with more cosmetics and stuff, like atlaschat has, thanks sir, you deserve my compliments!
Title: Re: Chat Cosmetics! Chat Tags | Connection Utilities | +More!
Post by: [ LittleBigBug_ ] on July 07, 2015, 04:59:03 PM
Woah! Great work! I am currently using it on my Sandbox Build 'n' Kill, no issues as of yet!
Keep it up!

Sure! May I see this server? I am pretty curious to see how its working out on a different public server!
Title: Re: Chat Cosmetics! Chat Tags | Connection Utilities | +More!
Post by: [ LittleBigBug_ ] on July 07, 2015, 05:38:35 PM
Great addon! I would love to see more of these in the future, with more cosmetics and stuff, like atlaschat has, thanks sir, you deserve my compliments!

Yeah, Thanks! I don't like atlas chat, It does have alot of visual stuff- but not the core stuff- like handling chat messages efficiently.

I'll try to make text that changes color or something I dunno c:
Title: Re: Chat Cosmetics! Chat Tags | Connection Utilities | +More!
Post by: Radek on July 30, 2015, 03:21:09 AM
Cool stuff! You get my compliment. When you mentioned:

I'll try to make text that changes color or something I dunno c:

Speaking of that, maybe you could add the possibility to add multi-colors like here (http://images.akamai.steamusercontent.com/ugc/616154883269437941/D272AE6E894AE6CB17D2E7DEDB727540A828E5BD/)? Making the whole text change color over time is not possible to do without a custom chatbox afaik. Just incase you're curious, the rainbow text as seen in the image is not a lua script, it's an E2 that takes advantage of a custom E2 function called ChatPrint.
Title: Re: Chat Cosmetics! Chat Tags | Connection Utilities | +More!
Post by: AlliedForces on August 09, 2015, 12:49:47 PM
i put this into my addons folder and nothing worked. a little help please
Title: Re: Chat Cosmetics! Chat Tags | Connection Utilities | +More!
Post by: JamminR on August 09, 2015, 01:53:42 PM
i put this into my addons folder and nothing worked. a little help please
You have to configure the script before starting the server.
sh_config.lua shows the examples and prefixes of how to make it work.
Also, you installed in addons on your server, not your client, right?
Title: Re: Chat Cosmetics! Chat Tags | Connection Utilities | +More!
Post by: SuperAero_ on August 10, 2015, 03:05:00 PM
You might want to update that facepunch thread link.
Title: Re: Chat Cosmetics! Chat Tags | Connection Utilities | +More!
Post by: Naruu # Mr. Pink on August 21, 2015, 04:19:18 AM
i put this into my addons folder and nothing worked. a little help please
Change the file name to "chatcosmetics" ;)
Title: Re: Chat Cosmetics! Chat Tags | Connection Utilities | +More!
Post by: Naruu # Mr. Pink on August 21, 2015, 05:04:40 AM
I have a issue  :'(

On my server I installed the addon simple commands (http://forums.ulyssesmod.net/index.php/topic,8768.0.html), and when I write !commands in the chat, the tag does not work  :(
(http://image.noelshack.com/fichiers/2015/34/1440157892-2015-08-21-00002.jpg)
Code: [Select]
[ERROR] addons/chatcosmetics/lua/autorun/client/cl_chattags.lua:47: bad argument #1 to 'find' (string expected, got nil)
  1. find - [C]:-1
   2. fn - addons/chatcosmetics/lua/autorun/client/cl_chattags.lua:47
    3. unknown - addons/ulib/lua/ulib/shared/hook.lua:179

I tested else with other custom commands (example: !jail, !kick, !reportadmin) the tag works !

It's very annoying :(

You can work with Zmaster to fix this issue please  ::) ?
Title: Re: Chat Cosmetics! Chat Tags | Connection Utilities | +More!
Post by: [ LittleBigBug_ ] on August 22, 2015, 01:49:25 PM
I am very sorry for not responding.. I actually completely forgot I posted here *facepalm*

Well I would like everyone to post their issues on my github: www.github.com/LittleBigBug/chat-cosmetics (http://www.github.com/LittleBigBug/chat-cosmetics)

And @Naruu:
Hm. I can see how I can fix this problem. Give me a moment.

Edit:

Try now. I just updated my github repo.
www.github.com/LittleBigBug/chat-cosmetics (http://www.github.com/LittleBigBug/chat-cosmetics)
Title: Re: Chat Cosmetics! Chat Tags | Connection Utilities | +More!
Post by: [ LittleBigBug_ ] on August 22, 2015, 01:57:50 PM
Cool stuff! You get my compliment. When you mentioned:

Speaking of that, maybe you could add the possibility to add multi-colors like here (http://images.akamai.steamusercontent.com/ugc/616154883269437941/D272AE6E894AE6CB17D2E7DEDB727540A828E5BD/)? Making the whole text change color over time is not possible to do without a custom chatbox afaik. Just incase you're curious, the rainbow text as seen in the image is not a lua script, it's an E2 that takes advantage of a custom E2 function called ChatPrint.

I'll put that on my todo list
Title: Re: Chat Cosmetics! Chat Tags | Connection Utilities | +More!
Post by: sword134 on August 25, 2015, 07:02:35 AM
The chat doesnt work at all and i get this error:

Code: [Select]
[ERROR] addons/chat-cosmetics-master/lua/autorun/client/cl_chattags.lua:20: attempt to index global 'CUConfig' (a nil value)
  1. fn - addons/chat-cosmetics-master/lua/autorun/client/cl_chattags.lua:20
   2. Call - addons/ulib/lua/ulib/shared/hook.lua:179
    3. func - gamemodes/darkrp/gamemode/modules/chat/cl_chat.lua:28
     4. unknown - lua/includes/extensions/net.lua:32
Title: Re: Chat Cosmetics! Chat Tags | Connection Utilities | +More!
Post by: [ LittleBigBug_ ] on August 26, 2015, 04:21:47 PM
The chat doesnt work at all and i get this error:

Code: [Select]
[ERROR] addons/chat-cosmetics-master/lua/autorun/client/cl_chattags.lua:20: attempt to index global 'CUConfig' (a nil value)
  1. fn - addons/chat-cosmetics-master/lua/autorun/client/cl_chattags.lua:20
   2. Call - addons/ulib/lua/ulib/shared/hook.lua:179
    3. func - gamemodes/darkrp/gamemode/modules/chat/cl_chat.lua:28
     4. unknown - lua/includes/extensions/net.lua:32

Ok. Well like I said everyone should post their issues here:
https://github.com/littlebigbug/chat-cosmetics/issues.

Did you delete your config? Would you mind posting it here?
Title: Re: Chat Cosmetics! Chat Tags | Connection Utilities | +More!
Post by: sword134 on August 31, 2015, 09:38:03 AM
Ok. Well like I said everyone should post their issues here:
https://github.com/littlebigbug/chat-cosmetics/issues.

Did you delete your config? Would you mind posting it here?

Sorry for the late response. I added it now!
Title: Re: Chat Cosmetics! Chat Tags | Connection Utilities | +More!
Post by: Twist on February 09, 2019, 07:44:11 PM
You're fired.