Thread: [PI] Chat Problem

Results 1 to 4 of 4
  1. #1 [PI] Chat Problem 
    Registered Member

    Join Date
    Jun 2011
    Posts
    2,458
    Thanks given
    23
    Thanks received
    650
    Rep Power
    390
    Long story short;

    You can't see others messages, you can see them above the character but not in the chat box. Yell, clan chat etc. all work!

    I've looked through many files, compared with working servers / clients, I can't identify the problem myself.
    Reply With Quote  
     

  2. #2  
    Registered Member Ronbo's Avatar
    Join Date
    Feb 2013
    Age
    12
    Posts
    167
    Thanks given
    0
    Thanks received
    47
    Rep Power
    17
    Yell and clan-chat work because they use sendMessage(), while chat is packet based.

    Search for inputString in client.java (client-side) and take a look at where it's being read. I recommend using Sys.out.println(inputString) to see what exactly is being read. If the inputString seems to be correct, then it's probably an issue with pushMessage.

    Also, I'm not sure I'm correctly interpreting your question. The above solution is if you can't see your own text, but after re-reading your post I just realized that you might be talking about only other people (you can see your own chat, but not others).

    In that case, it probably has something to do with textSpoken (I think that's the right var name). Check to see where that's being read, and use sys.println again to see if it's correct. If so, you may be missing a pushMessage() somewhere, especially if you can see your own chat (since that would mean pushMessage() itself is functional).
    Did I help answer your question? Signs of appreciation are always, well, appreciated!!!


    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member
    TheChosenOne's Avatar
    Join Date
    Jan 2013
    Posts
    967
    Thanks given
    47
    Thanks received
    161
    Rep Power
    366
    Addition to what the person above said: you'll find it's one of the methods responsible for player updating: packet 81.
    It's the part with the update masks: 0x80 (hex), 128 (dec)

    This is what my part looks like:
    Code:
    player.textSpoken = chatMessage;
    player.textSpokenColour = chatMessageSettings >> 8;
    player.privelage = speakerRights;
    player.textSpokenEffect = chatMessageSettings & 0xff;
    player.textCyclesLeft = 150;
    if(speakerRights == 2 || speakerRights == 3)
        ChatEngine.pushMessage(chatMessage, 1, "@cr2@" + player.name);
    else if(speakerRights == 1)
        ChatEngine.pushMessage(chatMessage, 1, "@cr1@" + player.name);
    else
        ChatEngine.pushMessage(chatMessage, 2, player.name);
    Take a good look at the if-elses.
    My guess is it'll be something like
    Code:
    if(speakerRights == 4)
    if(speakerRights == 2 || speakerRights == 3)
        ChatEngine.pushMessage(chatMessage, 1, "@cr2@" + player.name);
    else if(speakerRights == 1)
        ChatEngine.pushMessage(chatMessage, 1, "@cr1@" + player.name);
    else
        ChatEngine.pushMessage(chatMessage, 2, player.name);
    Reply With Quote  
     

  5. Thankful user:


  6. #4  
    Registered Member

    Join Date
    Jun 2011
    Posts
    2,458
    Thanks given
    23
    Thanks received
    650
    Rep Power
    390
    Already fixed, thanks anyway guys.
    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: 9
    Last Post: 10-28-2012, 03:15 PM
  2. [PI] Clan Chat problem?
    By Killznodie in forum Help
    Replies: 0
    Last Post: 03-31-2012, 06:07 PM
  3. [PI] Clan Chat problem
    By Beanerrr in forum Help
    Replies: 14
    Last Post: 04-14-2011, 11:37 PM
  4. [PI] Clan chat problem
    By Sir Lethal in forum Help
    Replies: 3
    Last Post: 03-23-2011, 03:54 PM
  5. [PI] Clan chat problem!
    By Alexander in forum Help
    Replies: 8
    Last Post: 09-10-2010, 07:40 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
  •