Author Topic: Chat Cosmetics! Chat Tags | Connection Utilities | +More!  (Read 17640 times)

0 Members and 1 Guest are viewing this topic.

Offline [ LittleBigBug_ ]

  • Newbie
  • *
  • Posts: 11
  • Karma: 5
    • My community
Chat Cosmetics! Chat Tags | Connection Utilities | +More!
« on: June 26, 2015, 11:56:41 AM »


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

Works for: (tested)

- ULX
- Maestro (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

Welp Here we go

THIS WAS MADE FOR AERO GAME SERVERS!
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:


DarkRP:



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!


Enjoy!
« Last Edit: June 02, 2017, 03:59:24 PM by [ LittleBigBug_ ] »

Offline gordon301

  • Newbie
  • *
  • Posts: 5
  • Karma: 1
Re: Chat Cosmetics! Chat Tags | Connection Utilities | +More!
« Reply #1 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!

Offline Dark123

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: Chat Cosmetics! Chat Tags | Connection Utilities | +More!
« Reply #2 on: July 06, 2015, 10:09:17 PM »
Is there a way that I can set this up to steam id's?

Offline Janjakob2000

  • Jr. Member
  • **
  • Posts: 65
  • Karma: 0
Re: Chat Cosmetics! Chat Tags | Connection Utilities | +More!
« Reply #3 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!

Offline [ LittleBigBug_ ]

  • Newbie
  • *
  • Posts: 11
  • Karma: 5
    • My community
Re: Chat Cosmetics! Chat Tags | Connection Utilities | +More!
« Reply #4 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!

Offline [ LittleBigBug_ ]

  • Newbie
  • *
  • Posts: 11
  • Karma: 5
    • My community
Re: Chat Cosmetics! Chat Tags | Connection Utilities | +More!
« Reply #5 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:

Offline Radek

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
  • Silent Users Masterrace. Oh wait...
    • Steam Profile
Re: Chat Cosmetics! Chat Tags | Connection Utilities | +More!
« Reply #6 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? 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.
« Last Edit: July 30, 2015, 01:44:48 PM by Radek »

Offline AlliedForces

  • Newbie
  • *
  • Posts: 6
  • Karma: -2
Re: Chat Cosmetics! Chat Tags | Connection Utilities | +More!
« Reply #7 on: August 09, 2015, 12:49:47 PM »
i put this into my addons folder and nothing worked. a little help please

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 7959
  • Karma: 373
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Chat Cosmetics! Chat Tags | Connection Utilities | +More!
« Reply #8 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?
The price one pays for pursuing any profession or calling is an intimate knowledge of its ugly side. - James Baldwin

Offline SuperAero_

  • Newbie
  • *
  • Posts: 13
  • Karma: 1
Re: Chat Cosmetics! Chat Tags | Connection Utilities | +More!
« Reply #9 on: August 10, 2015, 03:05:00 PM »
You might want to update that facepunch thread link.

Offline Naruu # Mr. Pink

  • Newbie
  • *
  • Posts: 3
  • Karma: 1
    • Website
Re: Chat Cosmetics! Chat Tags | Connection Utilities | +More!
« Reply #10 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" ;)
www.Game-State.com" style="border-style: none;

Offline Naruu # Mr. Pink

  • Newbie
  • *
  • Posts: 3
  • Karma: 1
    • Website
Re: Chat Cosmetics! Chat Tags | Connection Utilities | +More!
« Reply #11 on: August 21, 2015, 05:04:40 AM »
I have a issue  :'(

On my server I installed the addon simple commands, and when I write !commands in the chat, the tag does not work  :(

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  ::) ?
www.Game-State.com" style="border-style: none;

Offline [ LittleBigBug_ ]

  • Newbie
  • *
  • Posts: 11
  • Karma: 5
    • My community
Re: Chat Cosmetics! Chat Tags | Connection Utilities | +More!
« Reply #12 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

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
« Last Edit: August 22, 2015, 02:03:27 PM by [ LittleBigBug_ ] »

Offline [ LittleBigBug_ ]

  • Newbie
  • *
  • Posts: 11
  • Karma: 5
    • My community
Re: Chat Cosmetics! Chat Tags | Connection Utilities | +More!
« Reply #13 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? 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

Offline sword134

  • Newbie
  • *
  • Posts: 10
  • Karma: -1
Re: Chat Cosmetics! Chat Tags | Connection Utilities | +More!
« Reply #14 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