Currently the developers are putting their own money into JC2-MP to keep the servers online.

Please take a few seconds of your time and disable your AdBlock plugin for our website.

Ad revenue is not going to developers, it is used purely for covering our hosting costs.

 

You are also free to donate, which removes all ads from our website!

Patch 0.3 was just released! Full changelog here: https://t.co/4A50m6IKen

2 years ago

Advertisement
July 16, 2019, 10:27:38 pm

Author Topic: UTChat - Chat Replacement  (Read 9832 times)

ROODAY

  • Sr. Member
  • ****
  • Posts: 298
    • View Profile
Re: Unified Text Library (UText, UTLib, and UTChat -- Chat Replacement)
« Reply #15 on: January 04, 2014, 11:06:46 pm »
ok ill try and see what I can do (not much lol)

CamJGaming

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: Unified Text Library (UText, UTLib, and UTChat -- Chat Replacement)
« Reply #16 on: January 05, 2014, 05:45:21 am »
ZED told me just ask him :P then

Just ask him on the forums or steam chat, he'll give you the permission

SonicXVe

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: Unified Text Library (UText, UTLib, and UTChat -- Chat Replacement)
« Reply #17 on: January 05, 2014, 06:16:01 am »
When I get to it, I said.
I have a strictly vague schedule.

Update:
Assuming I have plenty of time tomorrow, I should be able to release Alpha 2. With that, I will start work on the ZED compatability.
I looked at the ZEDChat code more closely and realized just how it was multi-color, I didn't see it at first. There is no way to integrate it with UTChat without losing the multi-color formatting.

I need to experiment more with how I want UText's API to work before I can do anything with ZED. Idealistically, I will write the integrator to use what I call UText Factory -- building the UText objects using events. At the same time, I am going to experiment with UText Deployment, which should send a copy of the UText class to other modules so they can use UText internally.

The bottom line though is that this is going to take more time than I had hoped. I have spent time fixing various other things for Alpha 2 release, including fixing a ton of exploits and bugs in the Basic Tags. I'll have more info tomorrow.
« Last Edit: January 06, 2014, 04:49:02 am by SonicXVe »

ROODAY

  • Sr. Member
  • ****
  • Posts: 298
    • View Profile
Re: Unified Text Library (UText, UTLib, and UTChat -- Chat Replacement)
« Reply #18 on: January 07, 2014, 04:17:21 am »
Alright, can't wait! This looks really promising, I just can't give any real feedback as I don't want to give up ZED, my scripts are too invested in it by this point.

SonicXVe

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: Unified Text Library (UText, UTLib, and UTChat -- Chat Replacement)
« Reply #19 on: January 09, 2014, 09:24:56 am »
Almost to Alpha 2...
Alpha 2 is here
And that means one step closer to the external API.

Here is the complete changelog for Alpha 2:
  • Changed integrator installation scripts to public domain
  • Refactored and reorganized code
  • Changed the UText constructor
  • Fixed chat handler priority not doing anything
  • Fixed numerous bugs and infinite-loop exploits in the Basic Tags handler
  • Fixed a possible exploit if a user used Lua pattern magic characters in Basic Tags
  • Fixed a subtle bug when applying two formats around an unformatted character
  • Fixed chat handlers silently failing if the handler didn't return a UText object
  • Added Motion format
  • Added Fade format
  • Included Easing library, providing mathematical easing to Motion and Fade
  • Updated UTChat to use Motion and Fade. It's sweet!!
  • Added a Helper function to UTLib: TypeCheck, checks if a variable or table of variables are a certain type. (Easier to write than an assert)

The next few weeks are fuzzy, I don't know when I will have time to work on this -- I have a lot going on with school starting and a prospecting job, so stay tuned.

My goals for Alpha 3 moving towards Beta are:
  • External API: UTLib.Factory, providing event-based UText creation
                Ideal for small scripts that don't want to do the rendering, creates simple UTexts and handles all rendering
  • External API: UTLib.Deployment, sending the UText class to modules
                Should allow modules to produce their own UText objects, manipulate them to any extent, and render them
  • UText:Prioritize(table): To be run after optimization; iterates format blocks and prioritizes formats by name as they are provided in the table
« Last Edit: January 09, 2014, 11:30:34 am by SonicXVe »

Jman100

  • Sr. Member
  • ****
  • Posts: 325
    • View Profile
Re: UTChat - Chat Replacement
« Reply #20 on: January 27, 2014, 12:25:22 am »
This is a neat chat replacement.

SonicXVe

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: UTChat - Chat Replacement
« Reply #21 on: January 27, 2014, 04:13:55 am »
Alpha 3 has been released

Download Link

Changelog:
  • Removed Basic Tags
  • Added Color Tags (use Color Constants)
  • Added UText:InsertText(string, position)
  • Added UText:RemoveText(string, position)
  • Added UText:RemoveText(start, end)
  • Added Color copies to rectify some color reference problems
  • Removed UTLib
  • Removed dependency from Formats
  • Made loading of scripts independent
  • Added UText:ReplaceText(string, string)
  • Escaped text in RemoveText that could be problematic
  • Added Format class
  • Modified Formats to use the class template
  • UText.RegisterFormat now takes (Format object, string, string, ...) where Format object is the uninitialized format and string is the name, or multiple alternative names, of the format.
  • Added In-Console Installation process
  • Refactored utlEventMan into NetworkedEvent
  • Changed utlIntegrator into utcIntegration

Important Info

It's like info, but you need to read it okay?

UTChat v1-Alpha3 comes with a new built-in installer, read the original post to learn more about installing UTChat in the latest version.
Alpha 2 installations are not supported and may break in the future, please uninstall the utlIntegrator before attempting to install the new UTChat.

ROODAY

  • Sr. Member
  • ****
  • Posts: 298
    • View Profile
Re: UTChat - Chat Replacement
« Reply #22 on: February 01, 2014, 03:59:29 pm »
where did the zed patch go?

SonicXVe

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: UTChat - Chat Replacement
« Reply #23 on: February 01, 2014, 06:23:28 pm »
It's currently buried on the wiki somewhere, I may have accidentally removed it from the thread though... It will be in the next release so I'm not going to worry too much about it, but here is the old link to it

ROODAY

  • Sr. Member
  • ****
  • Posts: 298
    • View Profile
Re: UTChat - Chat Replacement
« Reply #24 on: February 01, 2014, 07:03:24 pm »
Thanks for the link! does it still work with the current version of utchat?

SonicXVe

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: UTChat - Chat Replacement
« Reply #25 on: February 01, 2014, 07:04:23 pm »
It should, I haven't tried though. Theres a slight possibility that it doesn't

ROODAY

  • Sr. Member
  • ****
  • Posts: 298
    • View Profile
Re: UTChat - Chat Replacement
« Reply #26 on: February 01, 2014, 07:19:09 pm »
alright ill try it and let you know

misterff1

  • Donator
  • Hero Member
  • *****
  • Posts: 582
    • View Profile
Re: UTChat - Chat Replacement
« Reply #27 on: July 19, 2014, 03:39:49 pm »
I know this thread is old, but I never tried this until now.

First of all, may I say that this script is absolutely awesome!
Second: I would not recommend it to anyone in its current state.

Why? Well, chat:broadcast does not work on this script somehow while chat:send does. and thats not the worst part. The worst thing is that if i do this:

Code: [Select]
Misterff1: This is (rainbow)rainbow text
then EVERYONE on the server will crash, since that is not a real color you can use. Therefore it is not recommended to use this right now and it probably is the reason you never see this one in action yet.

So Sonic, please come back and fix these things, then it will be perfect!

SonicXVe

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: UTChat - Chat Replacement
« Reply #28 on: January 05, 2015, 10:59:28 pm »
I appreciate the praise, and sorry for not responding in so long. I tried to keep wired in with e-mail notifications, but it looks like this one slipped by me. I've been quite busy with work and school. To get started, I want to verify that this crash is still occurring. I would appreciate it a ton if you logged all of the issues you're having to the Github repo. The fade issue is a good start. I may not be updating UTChat, but I'll be damned if I let any bugs get past me.

misterff1

  • Donator
  • Hero Member
  • *****
  • Posts: 582
    • View Profile
Re: UTChat - Chat Replacement
« Reply #29 on: January 05, 2015, 11:07:57 pm »
I appreciate the praise, and sorry for not responding in so long. I tried to keep wired in with e-mail notifications, but it looks like this one slipped by me. I've been quite busy with work and school. To get started, I want to verify that this crash is still occurring. I would appreciate it a ton if you logged all of the issues you're having to the Github repo. The fade issue is a good start. I may not be updating UTChat, but I'll be damned if I let any bugs get past me.

That's the spirit :-) . Welcome back(well, sort of at least)!
Yes, those issues above are still happening, but I have a workaround for one of them and removed the other as feature. I'll put all bugs (there are more) in the issue tracker for you.

Also, I sent you a friend request on steam. Makes it easier to share that workaround and stuff :)
« Last Edit: January 05, 2015, 11:10:51 pm by misterff1 »