Thread: Adding chat symbols to pi client?

Results 1 to 3 of 3
  1. #1 Adding chat symbols to pi client? 
    Extreme Donator

    Chex's Avatar
    Join Date
    Jul 2010
    Age
    24
    Posts
    207
    Thanks given
    114
    Thanks received
    107
    Rep Power
    231
    Hey guys I really been trying to add more chat symbols like <>^`~{}|/\ to my client. I looked everywere on google and stuff like that too. I also been looking in my client and i cant find anything. If no one wants to tell me exactly i could really use some hints for this :\


    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  2. #2  
    Client Developer

    Pb600's Avatar
    Join Date
    Dec 2008
    Posts
    2,184
    Thanks given
    306
    Thanks received
    489
    Rep Power
    925
    When your client pack your text into bytes to be sent to server, it exclude bytes of unknown characters, the server does the same when receiving the data(If you unpack it before send to everyone).
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  3. #3  
    Extreme Donator

    Chex's Avatar
    Join Date
    Jul 2010
    Age
    24
    Posts
    207
    Thanks given
    114
    Thanks received
    107
    Rep Power
    231
    Quote Originally Posted by Pb600 View Post
    When your click pack your text into bytes to be sent to server, it exclude bytes of unknown characters, the server does the same when receiving the data(If you unpack it before send to everyone).
    Thanks for the hint but i found out TextInput.processText(inputString) is what i needed. I added a few symbols except for |{}_~ and i wanted those too. Also it doesnt show up in the chat box except for a couple. And for the hint i was expecting something like "Its in the TextInput class" or something like that

    EDIT: I FOUND IT!!!!!!
    it has something to do with this:
    if (j >= 32 && j <= 122 && inputString.length() < 80) {
    inputString += (char) j;
    inputTaken = true;
    }
    j >= 32 && j <= 122 is the char id's you can type! thanks now i can have some fun with this


    [Only registered and activated users can see links. ]
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 87
    Last Post: 09-14-2015, 04:04 PM
  2. Adding symbols[rel](released because saw in showoff)
    By wowfreakjoking in forum Tutorials
    Replies: 37
    Last Post: 05-26-2011, 07:49 AM
  3. adding chat applet to client?
    By Viper in forum Help
    Replies: 0
    Last Post: 05-12-2010, 07:09 AM
  4. Adding IRC chat to your server/client
    By Cup-o-cino in forum Tutorials
    Replies: 32
    Last Post: 06-24-2009, 03:31 PM
  5. Adding > & < to chat
    By 35518 in forum Help
    Replies: 5
    Last Post: 05-19-2009, 06:48 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •