Thread: Chat Window

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 Chat Window 
    Registered Member
    Join Date
    Feb 2009
    Posts
    109
    Thanks given
    1
    Thanks received
    19
    Rep Power
    30
    I want to make a Chat.bat file for my server so whenever my server is on and I click Chat.bat, a separate window opens and all of the chat in game prints into that window so I can read it while I'm not on the game, but I can close and reopen the box anytime I want to view the chat. I've been looking at my run method and trying to figure out how the run method is connected to my run.bat which will run my server and I can't figure out how they connect to make it all work. I know how to make chat appear in my main server window, but I don't want it there because of all the extra stuff like when a player logs on and logs off, does a command, etc. How would I do this?
    Reply With Quote  
     

  2. #2  
    Welcome To The Rodeo

    Zro.'s Avatar
    Join Date
    May 2009
    Posts
    4,376
    Thanks given
    94
    Thanks received
    241
    Rep Power
    714
    Never heard of a chat.bat but you could make some Chat logs

    Example of chat logs on my server
    luis -> Souph boy: love the server man
    souph_boy -> Luis: ty
    luis -> Souph boy:
    g_dragon -> D pur3: ik ik.
    d_pur3 -> G dragon: you know what you went to the wrong spot
    g_dragon -> D pur3: lol
    d_pur3 -> G dragon: duel arena noob
    g_dragon -> D pur3: sick server
    d_pur3 -> G dragon: i know right
    g_dragon -> D pur3: lol
    g_dragon -> D pur3: ima do jad. o:
    g_dragon -> D pur3: k yo it works..ima do jad.
    g_dragon -> D pur3: jad is7 waves. (:
    Attached image
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Feb 2009
    Posts
    109
    Thanks given
    1
    Thanks received
    19
    Rep Power
    30
    I have chat logs. Even made 'em save like this:

    Code:
    Date: 10/05/2009 | Time: 05:37:30 PM | Mod lea: i won't =]
    
    Date: 10/05/2009 | Time: 05:37:54 PM | Dillon: lea follow marco
    
    Date: 10/05/2009 | Time: 05:38:02 PM | Bill: should work now.. don't update yet though i'm gonna fix one more thing
    
    Date: 10/05/2009 | Time: 05:38:03 PM | Dillon: lol 
    
    Date: 10/05/2009 | Time: 05:38:06 PM | Dillon: look bill 
    
    Date: 10/05/2009 | Time: 05:38:07 PM | Mod lea: lol!
    But that's inefficient compared to what I want. When I load the chat logs, it takes a while to load and it's not like it's instantly updating unless I close and reopen it. I want a window to pop up that displays it instantly for me for the time that my servers on.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Feb 2009
    Posts
    109
    Thanks given
    1
    Thanks received
    19
    Rep Power
    30
    Anyone else have any bright ideas?
    Reply With Quote  
     

  5. #5  
    ⚓Manic-Owner⚓


    Join Date
    Nov 2007
    Posts
    2,711
    Thanks given
    47
    Thanks received
    9
    Rep Power
    650
    I think I may be able to do this. Let's work somthing out. Add [email protected]
    Reply With Quote  
     

  6. #6  
    Registered Member
    Mister Maggot's Avatar
    Join Date
    Dec 2008
    Posts
    7,227
    Thanks given
    3,283
    Thanks received
    2,875
    Rep Power
    5000
    Irc?
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Feb 2009
    Posts
    109
    Thanks given
    1
    Thanks received
    19
    Rep Power
    30
    Quote Originally Posted by Jdog View Post
    I think I may be able to do this. Let's work somthing out. Add [email protected]
    Added

    Quote Originally Posted by i r maggot View Post
    Irc?
    No, just a simple cmd window or .bat window that when I open it, it'll simply say something like [client-1-Bill]: Hi. Then I can close it and reopen it and it will be blank again and continue to capture any chat said.
    Reply With Quote  
     

  8. #8  
    Registered Member

    Join Date
    Oct 2009
    Age
    28
    Posts
    391
    Thanks given
    19
    Thanks received
    4
    Rep Power
    159
    It should be easy.. Create a new class and make Chat.bat execute it, and each time a player says something the class (e.g Chat.java) uses
    Code:
    System.out.print("");
    to print the message in Chat.bat...
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Feb 2009
    Posts
    109
    Thanks given
    1
    Thanks received
    19
    Rep Power
    30
    Alright. I made a Chat.bat and in it contains this:

    Code:
    @echo off
    color 0E
    echo ~UniversalScape~ In-Game Chat
    echo Starting up...
    java Chat
    pause
    I then made a Chat.java and imported all the stuff into my server class:

    Code:
    public static Chat Chat = null;
    Chat = new Chat();
    In my Chat.java, I have this so far:

    Code:
    import java.io.*;
    
    public class Chat implements Runnable {
    		System.out.println("Finished!");
    		println_debug("Text [" + chatTextEffects + "," + chatTextColor + "]: "+ misc.textUnpack(chatText, packetSize - 2));
    	}
    I was NEVER expecting that to compile correctly. I was just throwing random codes in there from the chat methods. I have no clue what to put in Chat.java to make it grab methods and stuff from my client.java so I can make the chat appear. And I've been trying.
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Feb 2009
    Posts
    109
    Thanks given
    1
    Thanks received
    19
    Rep Power
    30
    Ughhh... Come on...
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •