Making a minecraft mod like Improved Chat

Discussion in 'Miscellaneous' started by d1223m, Mar 11, 2012.

Thread Status:
Not open for further replies.
  1. Excellent!

    I thought OptiFine might just work because Im changing the same classes as ImprovedChat does. ImprovedChat however has some special code for Rei's minimap so I wasnt sure if that would work out of the box.

    (Woot! 2 users! (not including me))
  2. May I make a suggestion?

    A way to toggle it closes automatically after you type the text or not.
  3. Yes! I forgot to make that an option. Next on my list after copy and paste.
  4. * paste text from the clipboard with control+v
    * copy text from the chat history with control+c - then use up/down to select the line you want to copy and press enter
    * new variable `prompt_auto_close` - set to `true` to make the prompt automatically close after sending a message (the default ) - set to false to keep the prompt open.

    What do you think of the copy method? I think its quite nice. Is copying from the input box ever usefull? - I dont think it is...

    Attached Files:

  5. I often use the copy/paste feature when I am in two fast conversations, I enter a /tell convo with one, and use copy/paste '/tell [playername]' to handle the second convo. I think it is a very useful feature.
  6. Hrm ok - I can see the use there... Tho why dont you just hit the up key to goto the last message, jump to the start and type /tell player [the text from before].

    I think if I do this ill need to add two shortcut keys - one to copy the input text and one to copy from the chat history... How does that sound?
  7. Is Java coding like normal computer software coding. If so i could help a little bit depending on my scheduel.
  8. If you would like the source Id be happy to send it to you. As a first step tho I suggest getting MCP and making sure you can decompile and recompile the source code for MC.
  9. For the Tab Design I normally handled my Tabs like that

    Tab 1 Global: All Global Chats such as Trade (Our town chat) Also it showed /tells since if you chat in global chat you often switch to /tell

    Tab2 Say: This was the tab for chats such as Guild Chat, Local chat such as our /ch l whisper and all that kind.

    Another option since we dont have so many chats to make a Global Chat Tab with /ch l included and open up a tap for every /tell conversation. The tab name is the conversation partner. So you have like:

    General | Player x | Player y

    General wouldnt contain /tell then this way it doesnt get spammed away. You could also do this with /ch l since it kind of suxxs too if it gets spammed away. But then the general tab is pretty much useless in wilderness.

    Using tabs should always include a highlighting if new messages appear. So you dont miss them.

    I hope that helps :D
  10. I like the second option where everything is in one tab apart from tells. I will make this scriptable anyway... probably something like:
    Code:
    ~on -start "T " sendToTab General
    ~on -regexp "^From (.*?):" sendToTab \$1
    
    Or in english:
    * send every chat message starting with T followed by space to the General tab
    * send every chat message starting with "From" followed by a name to the tab named with the player name

    What Im also struggling with is how to draw these tabs onto the screen in a nice way
  11. Hmm yeah you will have to do a pane or sth. dunno ur part ^^
  12. Installed, Love the copying idea.
    d1223m likes this.
  13. There is nowhere good to draw tabs! :mad:

    Options:
    * move the chat history up a line and draw them there
    * draw down the left edge of the screen (rotated)
    * draw them at the very top of the screen
    * dont draw them - give up, make another bulleted list about my favourite cheese
    * something else...?
  14. Maybe make it so if it's /tell it will stick for 10 seconds or so before moving.
  15. I got an idea you hold key X for Y seconds and it list every online in the EmpireMinecraft website and everyone online in the servers.
  16. Jeanz, I don't think that's possible. You could always just do /p jeanzl2000
  17. Yea sorry Jeanz thats not really possible from just a chat mod :)
  18. it would be like an addon to the TAB
  19. it can be possible because it would be a client mod
  20. I heard this really cool shortcut key, you hold down TAB and it shows everyone online in the current server you are connected to. ;)
    margaritte, Joshposh70 and MR2R2M like this.
Thread Status:
Not open for further replies.