★ UTChat 20 ★ [updated 3/12/2021]

Search, find and discuss about Mutators!
User avatar
Que
Adept
Posts: 419
Joined: Mon Dec 09, 2019 5:49 am
Personal rank: ...

★ UTChat 20 ★ [updated 3/12/2021]

Post by Que » Wed Jan 20, 2021 11:02 pm

Image
Nexgen (like) Chat Hud minus the Controller.
Image

Code: Select all

UTChat by ProAsm and no0ne - 2021
Compatible with 436, 451 and 469.

Installation
------------

Add UTChat<version>.u to your UTServer/System folder.
Open your Server.ini file and add under:

[Engine.GameEngine]
ServerPackages=UTChat<version>

Add to the command line:
?Mutators=UTChat<version>.UTChat
NB: This needs to be the last mutator in the command line.

Configurations
--------------

bShowChatMessages (Default True) Also in Menu.
Setting this to False will disable the Mutator.

bBotsInServerChat (Default False) Also in Menu.
When set to True, the Chatbox on a server game will also show Bot messages.

ChatsTextColor=(R=200,G=180,B=2,A=0)
This the admin can configure and is the color of the text in the top chat box.

OtherTextColor=(R=50,G=250,B=250,A=0)
This the all the text below the chatbox.

The configuration .ini file also holds the last 200 chat lines by the players.
This can be viewed in a window by typing in the console:

Mutate UTChat ShowChatLog
or !Chat as a chat message.

If logged in as an Admin, a Clear Chat Log option will be available to clear all chats.

If the last 2 characters in a chat line are for instance :) then an emoji will appear in it's place.
Current emoji's
[

:) = smile
:( = grin
:^ = eyes
:+ = thumb up
:- = thumb down
:o = lol
:f = fist
:k = ok hand
:t = thinking
:b = bomb
:c = cool
:u = point up
:p = tongue out
:s = poop
:w = wave
:q = question mark
:z = zZz

If :? is in the Say then a list of abbreviations will be shown.

If you wish to use UTChat instead of Nexgen's chat:
In Nexgen.ini set useNexgenHUD=False.

To Open Chat Window in game;
Console: Mutate UTChat ShowChatLog
you may bind to a key ie;

Code: Select all

set input <key> Mutate UTChat ShowChatLog
or type !Chat as a chat message.

Known Bugs:
ChangeLog
Show
UTChat Changelog
----------------
v17c
Fixed several access nones.
Added Admin message to Players.

v17b
Removed GUI scaling.

v17
Added auto scaling to menus.
Fixed 436/451 GPF crashes.

v16f
Fixed black text color at startup.

v16e
Added * prefix to player in menu if muted.

v16
[UTChat16.UTChatSvrAdds]
ServerAddsSymbol="-"
ServerAddsColor=(R=255,G=255,B=0,A=0)

The ServerAddsSymbol= is the first 1, 2 or 3 symbol characters you need to add infront of your serveradds.
For instance all lines need to be something like -=< This is the line >=-
Now you would have ServerAddsSymbol="-="
This is so the code can recognize a ServerAdds message & Change the Color of the ServerAdds to your Custom Color.

v15
Added private messaging window.
Private message 100 save option.
Removed configs from chat windows.
Added Config Tab for all configs.
Fixed !Cmds not being passed.
Added 8 new banner emojis.
Adjust emoji position to size.
Added Admin options to disable emojis.
Added Admin options to disable private messages.
Fixed other lines text length.
Added help labels in Configs.
Added banner names to display.
Re-aligned logon logo.
Removed banners and emojis if bNoEmoticons.

v14
Emojis no longer case sensitive.
Add DM/LMS Player single color option.
Reduced Smallfont vertical emoji size.
Spaced lines for better emoji display.
Added option for number of chat lines.
Added option for number of other lines.
Added logo image with option.
Added Transparent option.
Added Chatlog Keybind.
Added UTBots compatibility option.
Fixed Spectator using !chat.

v13
Small improvements on utchats disable.
Added several new emojis.
Set SmallFonts as default.
Fixed Spectator message double names.
Added Spectator message text always silver.
Added logon intro.

v12
Fixed original hud for newnet and nexgen.
Reduced chatbox border thickness.
Added enable client emojis in menu.
Added use client smaller fonts in menu.
Added client chatlog save in menu.
Added enable client chat in menu.
Added spectator mutate for menu.
You do not have the required permissions to view the files attached to this post.
Last edited by Que on Sat Dec 04, 2021 6:31 am, edited 43 times in total.
*Join our Discord Here.*

User avatar
asosed
Experienced
Posts: 95
Joined: Fri May 15, 2020 2:36 pm
Location: Russia

Re: ★ UTChat 11 ★

Post by asosed » Wed Jan 20, 2021 11:24 pm

The first thing I noticed after testing.
1. Chat kills HUD NewNet (timer and anti-gravity boots)
2. Can you make it so that can highlight and copy (Ctrl-C) messages from the chat window?
3. Can you make the emoji's always appear, regardless of the end of the sentence and so that they can be turned off (bemoji=True/False)?
4. Can you make links clickable in the chat window?
Image
Image

ProAsm
Skilled
Posts: 198
Joined: Sun Sep 29, 2013 7:12 am

Re: ★ UTChat 11 ★

Post by ProAsm » Fri Jan 22, 2021 7:33 pm

Hi asosed, well in answer to your questions.
1. Has been fixed.
2. A HUD does not recognize keystrokes etc so I added a save option in the menu so you can save the whole of the chatlog on your pc.
4. I will look into this but I doubt it.
3. This can be done but would be very time consuming as the code would have to check every character in a message instead of just the last 2.
Also the placing of the image midstream would be difficult because when the lines scroll up, it would be difficult to see where these inline images need to go.
Currently we'll skip this but I will fiddle with it and see if I can find a shortcut somewhere :)

User avatar
Que
Adept
Posts: 419
Joined: Mon Dec 09, 2019 5:49 am
Personal rank: ...

Re: ★ UTChat 15 ★ [updated 26/02/2021]

Post by Que » Fri Feb 26, 2021 9:54 am

//UPDATED 16F//

Code: Select all

v16f
Fixed black text color at startup.

v16e
Added * prefix to player  in menu if muted.

v16
[UTChat16.UTChatSvrAdds]
ServerAddsSymbol="-"
ServerAddsColor=(R=255,G=255,B=0,A=0)

The ServerAddsSymbol= is the first 1, 2 or 3 symbol characters you need to add infront of your serveradds.
For instance all lines need to be something like -=< This is the line >=-
Now you would have ServerAddsSymbol="-="
This is so the code can recognize a ServerAdds message  & Change the Color of the ServerAdds to your Custom Color.
//UPDATED 16G//

Code: Select all

v16g
Fixed possible local GPF crashes.
*Join our Discord Here.*

User avatar
Que
Adept
Posts: 419
Joined: Mon Dec 09, 2019 5:49 am
Personal rank: ...

Re: ★ UTChat 17b ★ [updated 06/06/2021]

Post by Que » Sun Jun 06, 2021 4:55 am

//UPDATED//

Code: Select all

v17b
Removed GUI scaling.

v17
Added auto scaling to menus.
Fixed 436/451 GPF crashes.
NOTE: earlier versions of this mod may cause users running 436/451 D3DDrv Renderer to Crash.
*Join our Discord Here.*

User avatar
Que
Adept
Posts: 419
Joined: Mon Dec 09, 2019 5:49 am
Personal rank: ...

Re: ★ UTChat 17c ★ [updated 30/06/2021]

Post by Que » Wed Jun 30, 2021 2:47 am

//minor update//

Code: Select all

v17c
Fixed several access nones.
Added Admin message to Players.
*Join our Discord Here.*

User avatar
esnesi
Inhuman
Posts: 880
Joined: Mon Aug 31, 2015 12:58 pm
Personal rank: Dialed in.

Re: ★ UTChat 17c ★ [updated 30/06/2021]

Post by esnesi » Sun Oct 03, 2021 4:40 pm

I've set UTChat as an ServerActor recently instead of a mutator in my 63 gametype configs.
All works fine, but i noticed on gametypes where i run SmartSB, UTChat gets replaced by it.
This results into the normal chathud in game, although !chat menu can be loaded.

Could there something be done about this you think ?
When i run this as extra mutator, the HUD is replaced correctly, only its loaded 2 times cause of the actor ofcourse.
If it's better to run as Mutator only i'll just reverse to that.

Code: Select all

HudType = SmartSB102s.SmartSBHudTeam | OldHud = UTChat17c.UTChatHudTM | ScoreBoard = SmartSB102s.SmartSBScoreBoard | MaxPlayers = 32 | ServerInfo = SmartSB102s.SmartSBServerInfo
UTChat: OriginalHUDClass = CTF4.CTF4HUD | Current HUD = UTChat17c.UTChatHudTM | ServerInfo = Botpack.ServerInfoTeam | bShowChatMessages = True

HudType = SmartSB102s.SmartSBHudTeam | OldHud = UTChat17c.UTChatHudTM | ScoreBoard = SmartSB102s.SmartSBScoreBoard | MaxPlayers = 32 | ServerInfo = SmartSB102s.SmartSBServerInfo

ProAsm
Skilled
Posts: 198
Joined: Sun Sep 29, 2013 7:12 am

Re: ★ UTChat 17c ★ [updated 30/06/2021]

Post by ProAsm » Wed Oct 20, 2021 9:37 am

Oops, sorry for the late reply but been a bit busy with 102t which has a massive update :)
I found running as a Mutator works best and I too have found strange things happen with UTChat.
However, I found it depends a lot in where you load UTChat.
I run my test server as follows.
Mutator=SmartSB102s.SmartSB,UTCmds7.UTCmds,UTChat17c.UTChat

User avatar
esnesi
Inhuman
Posts: 880
Joined: Mon Aug 31, 2015 12:58 pm
Personal rank: Dialed in.

Re: ★ UTChat 17c ★ [updated 30/06/2021]

Post by esnesi » Wed Oct 20, 2021 3:47 pm

ProAsm wrote:
Wed Oct 20, 2021 9:37 am
Oops, sorry for the late reply but been a bit busy with 102t which has a massive update :)
I found running as a Mutator works best and I too have found strange things happen with UTChat.
However, I found it depends a lot in where you load UTChat.
I run my test server as follows.
Mutator=SmartSB102s.SmartSB,UTCmds7.UTCmds,UTChat17c.UTChat
Yeah, i also got it at the end of the mutatorstring.
No issues when it's there, but indeed only when it's ran as ServerActor on a gametype where SmartSB is active.
The result is that the HUD ain't visible, but UTChat is active when running !chat.
Somehow only when it's set as actor it's getting replaced by SmartSB. (Actor is also set as last)

ProAsm
Skilled
Posts: 198
Joined: Sun Sep 29, 2013 7:12 am

Re: ★ UTChat 17c ★ [updated 30/06/2021]

Post by ProAsm » Tue Nov 16, 2021 9:53 pm

The result is that the HUD ain't visible, but UTChat is active when running !chat.
Somehow only when it's set as actor it's getting replaced by SmartSB. (Actor is also set as last)
In UTChat18 I have added a ServerActor class which seems to have solved your problem.

ServerActors=UTChat18.UTChatActor

User avatar
esnesi
Inhuman
Posts: 880
Joined: Mon Aug 31, 2015 12:58 pm
Personal rank: Dialed in.

Re: ★ UTChat 17c ★ [updated 30/06/2021]

Post by esnesi » Tue Nov 16, 2021 10:45 pm

ProAsm wrote:
Tue Nov 16, 2021 9:53 pm
The result is that the HUD ain't visible, but UTChat is active when running !chat.
Somehow only when it's set as actor it's getting replaced by SmartSB. (Actor is also set as last)
In UTChat18 I have added a ServerActor class which seems to have solved your problem.

ServerActors=UTChat18.UTChatActor
Great news, thanks in advance.
If it won't bother you;

Would it be possible to have these variables set server-sided as well?;
bNoEmoticons
bSmallFonts

(Or maybe all the variables on the config window)
Motivation for the request is that my preference would be no emoticons disabled, with smallfonts by default.
Experience learns it's the first thing players do, personally not a fan of them, but that's personal ofcourse :)

User avatar
Que
Adept
Posts: 419
Joined: Mon Dec 09, 2019 5:49 am
Personal rank: ...

Re: ★ UTChat 17c ★ [updated 30/06/2021]

Post by Que » Wed Nov 17, 2021 1:56 am

esnesi wrote:
Tue Nov 16, 2021 10:45 pm

bNoEmoticons
bSmallFonts
Personal?. Open UTChat and disable them by saying !chat
Image
Done.
*Join our Discord Here.*

User avatar
esnesi
Inhuman
Posts: 880
Joined: Mon Aug 31, 2015 12:58 pm
Personal rank: Dialed in.

Re: ★ UTChat 17c ★ [updated 30/06/2021]

Post by esnesi » Wed Nov 17, 2021 10:19 am

Que wrote:
Wed Nov 17, 2021 1:56 am
esnesi wrote:
Tue Nov 16, 2021 10:45 pm

bNoEmoticons
bSmallFonts
Personal?. Open UTChat and disable them by saying !chat
[img]
Done.
esnesi wrote:
Tue Nov 16, 2021 10:45 pm
Would it be possible to have these variables set server-sided as well?;
bNoEmoticons
bSmallFonts
Server-sided is the request > simplified > Meaning the ability to set them true/false by default for all players.

ProAsm
Skilled
Posts: 198
Joined: Sun Sep 29, 2013 7:12 am

Re: ★ UTChat 17c ★ [updated 30/06/2021]

Post by ProAsm » Thu Nov 18, 2021 12:41 pm

Server-sided is the request > simplified > Meaning the ability to set them true/false by default for all players.
This could be a problem as most the settings are clientside as the options are personal.
If I make the options serverside then I must remove them from the client.
Surely its the players choice what he wants to see and not the admin to tell him what to do.
Currently bNoEmoticons are serverside and I have made the bSmallFonts=True as default.

User avatar
esnesi
Inhuman
Posts: 880
Joined: Mon Aug 31, 2015 12:58 pm
Personal rank: Dialed in.

Re: ★ UTChat 17c ★ [updated 30/06/2021]

Post by esnesi » Thu Nov 18, 2021 8:19 pm

ProAsm wrote:
Thu Nov 18, 2021 12:41 pm
Server-sided is the request > simplified > Meaning the ability to set them true/false by default for all players.
This could be a problem as most the settings are clientside as the options are personal.
If I make the options serverside then I must remove them from the client.
Surely its the players choice what he wants to see and not the admin to tell him what to do.
Currently bNoEmoticons are serverside and I have made the bSmallFonts=True as default.
Ah i see, that's unfortunate.
If it's not possible to keep client- and serversided, the player should keep their freedom of setting it by them selfs indeed.
Experience learned that alot of players asked to change to smallfonts, and disable the emoticons.
My thinking was to prevent this, by changing the default values.