SRB2 Message Board  

Go Back   SRB2 Message Board > Archived > Outdated Releases (2.1.X) > Mods (2.1.X)

Thread Tools
SRB2Chat - Somewhat revamped chat system & more Details »»
SRB2Chat - Somewhat revamped chat system & more
Version: 2.1, by Lat' (Absolute territory where) Lat' is online now
Developer Last Online: Dec 2020

Category: Version: SRB2 Rating:
Released: 04-19-2018 Last Update: 06-13-2018 Favourites: 0
Re-Useable Content Code Changes

Does anyone remember chatmanager? No? Well whatever!

Introducing SRB2Chat, an exe mod that attempts to make your netgame experience better by giving you a slightly better chat
So what does it do?
Spoiler: cool features

-Chat system is now separate from the console!
-Press the talk key to open the Chat Log, you can then press UP or DOWN arrow keys to scroll up or down recent messages.
-New /pm<node> command for the chat! Use that to send saytos without using the console.
-Capslock now actually works, because it didn't before for whatever reason (this also applies to the console.)
-You can use left and right arrow keys to go back and edit some stuff you've typed rather than deleting the entire thing, just like the console!
-Also like the console, you can now paste stuff into the chat! (selection and copy aren't avaiable since they aren't really useful in this context.)

-A bunch of cool cvars accessible from GAME OPTIONS.../CHAT OPTIONS...
chatwidth <64-150>: allows to change the width of the chat box.
chatheight <6-24>: allows to change the amount of lines that can be displayed on the log.
chatnotifications <On/Off>: change if you want to hear or not the chat beep when you recieve a message.
chatspamprotection <On/Off>: EXPERIMENTAL: Blocks messages from a node if they are sent too quickly. This may also happen because of lag spikes, hence the ability to turn it off.
chatbacktint <On/Off>: Adds the console background to messages on minimized chat to allow you to see better. Off by default.
consolechat <On/Off>: Revert everything back to the old chat system. Mostly exists so that playing with Terminal and the likes of it doesn't look too weird.

-Some cool Lua support:
chatprint(string): Prints something in the chat. Or in the console if the chat is disabled or if you're not in a netgame.
chatprintf(player_t, string): Does the same, but only for the specified player. (Think CONS_Printf)
PlayerMsg hook small update: It can now have a 5th argument which is a boolean that is set to true if the message was meant to be deleted because of spam. (The Hook takes priority over spam deletion)

All of the above can allow you to modify your PlayerMsg hooks to support this exe if you want to!

And stuff that has nothing to do with chatting:
-Ping on scoreboard! Now you can be reminded that I have 800 ping in every netgame I'm in by simply holding Tab!
-Scoreboard goes compact if there's 20 or more players so they can all be displayed. You can force this behavior by using compactscoreboard On or setting it On from the GAME OPTIONS... menu.
-master branch OpenGL. If somehow you haven't updated it, it makes openGL treat HUDs like software.

Spoiler: screenshots

This EXE is experimental, and I'm a newbie to source code modding, so report any error/crash by sending the eip found in the RPT file for the latter.

Also included with the download is a dll file. It is required to run the EXE if you don't have it already. Drop it in your SRB2 folder.
And because rules are rules, here's the source code!

Download Now

File Type: rar srb2chat.rar (1.08 MB, 671 views)


Click image for larger version

Name:	srb20257.png
Views:	6720
Size:	190.9 KB
ID:	12564   Click image for larger version

Name:	srb20271.jpg
Views:	6457
Size:	161.9 KB
ID:	12565   Click image for larger version

Name:	srb20141.gif
Views:	1292
Size:	142.4 KB
ID:	12566  

Supporters / CoAuthors

Show Your Support

  • The author of this addon has given explicit permission for its content to be re-used and/or reproduced.

Old 05-06-2018   #2
Prime 2.0
Permanently Banned

Welcome to Releases!

Chatspamprotection did not appear to work during testing.
Prime 2.0 is offline  
Old 05-06-2018   #3
Elyos03's Avatar

This needs to be in 2.2.

Seriously, this looks awesome!
"We're friends now."
"But I want to kill Goku."
"Most of my friends did."
DO NOT look into my oldest posts. They now make me cringe like and YouTuber watching its very first video.
Elyos03 is offline  
Old 05-06-2018   #4

Look at that Scoreboard, Fantastic, love it, Just needs token indicator to tell if a player got a token in current stage and we're set.
Also known as "RTB" on Discord
RomioTheBadass is offline  
Old 05-16-2018   #5
Ingame name is Lolour
Biielz's Avatar

you should add some commands like if you dont wanna someone messages appears just for you
Cheese's god is not yellow, but it is green

(Biielz received a warning for this post: Use correct grammar and spelling.)

Last edited by Biielz; 05-20-2018 at 11:43 AM.
Biielz is offline  
Old 06-12-2018   #6
Absolute territory where
Lat''s Avatar

SRB2Chat has been updated!
  • Added a /pm<node> command to the chat! This is used to send saytos without using the console. Just type, for example, "/pm0 Hi!" to PM "Hi" to the server! (compatible even with vanilla SRB2!). A list of players will show up and gradually empty as you type /pm and specify the number, so that you know who you're messaging.
  • Fixed autoscrolling sometimes being wonky.
  • Fixed not being able to see PMs you sent.
  • Updated OpenGL to match master branch. Yes I like OpenGL, fight me.
Originally Posted by MADVAL2 View Post
glad there is no Zero Two in this pack,i really get mad everytime i see Zero Two
Lat' is online now  
Old 06-12-2018   #7
Mid tier pixel artist
Twins'R'Awesome's Avatar

I don't use sayto all that much, but I'm sure that's going to be useful for admins and mods of dedicated servers.

But even then, SRB2CHAT is great! A streamlined chat system needs to be one of the features in 2.2. This is fantastic!

Now if only it works for Terminal and Utils' chat system...
Twins'R'Awesome is offline  
Old 06-13-2018   #8
Absolute territory where
Lat''s Avatar

I'm terribly sorry but it seems last minute changes went wrong in the last update (who would've guessed)
  • Fixed sending normal messages (yes I managed to break that.)
  • Can no longer use /pm in say-team (this will error and not send anything)
Originally Posted by MADVAL2 View Post
glad there is no Zero Two in this pack,i really get mad everytime i see Zero Two
Lat' is online now  
Old 08-17-2018   #9
NAR the Fox
Self-taught Lua Amateur
NAR the Fox's Avatar

For some reason, the dll was not included. Can you explain what happened? I am missing (as far as I know) libmingwex-0.dll.
You can just call me "NARbluebear"
My YouTube Channel
NAR the Fox is offline  
Old 08-19-2018   #10
Game Developer in Training

The dll file wasn't included when I downloaded the file. And I downloaded twice. So I'm currently unable to experience this modification. Can you double check that the zip file properly contains the dll file?
Zwataketa is offline  
Old 08-19-2018   #11
Absolute territory where
Lat''s Avatar

SRB2Chat has been updated once again.
  • The chat position has been changed from top right to bottom left, as most games do it anyway.
  • A new console command has been added, chatbacktint (also accessible from the CHAT OPTIONS... submenu) will add the console tint to the back of messages when it is minimized, allowing you to see them better if turned on.
  • Entierely killed the chat box for resolutions lower than 640x400, it's a pain to maintain and it's not practical anyway.
  • PlayerMsg has been disabled temporarily because the likes of Terminal and Utility are annoying to deal with when using this EXE. (this change shouldn't affect multiplayer at all with those WADs uness there's a poor handling of things on their end.)
  • Fixed issues where word wrapping would sometimes skip lines in the middle of the box / leave full empty lines on occasion.
  • Fixed capslock affecting non-letter characters.
  • This time the dll file is in the rar (not that you couldn't Google it in 10 seconds before.)
Originally Posted by MADVAL2 View Post
glad there is no Zero Two in this pack,i really get mad everytime i see Zero Two
Lat' is online now  
Old 12-08-2018   #12
Xelork is Happy to see you.
Xelork's Avatar

Prob' youre already making the suport to the 2.1.21 version of srb2, right?
Xelork Made this.
Xelork is offline  
Old 12-08-2018   #13
Raito2.0's Avatar

Can you update this so we can use it in version 2.1.21?
Raito2.0 is offline  
Old 12-13-2018   #14
spike tf
spike tf's Avatar

Awesome wow now it will be much easier to talk in multiplayer!
spike tf is offline  
Old 12-13-2018   #15
(Glidro) The #1 Gliscor!
GliderTheGliscor's Avatar

Except it only works in V2.1.20, currently. We're waiting to see if Lat will update this to be compatible with the latest version.
Secondcolor for 2.2.x WHEN?
GliderTheGliscor is offline  

Thread Tools

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. The time now is 07:26 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.