Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

THW Chat Client

Discussion in 'Computer Tech' started by TriggerHappy, Oct 28, 2013.

  1. TriggerHappy

    TriggerHappy

    Code Moderator

    Joined:
    Jun 23, 2007
    Messages:
    3,793
    Resources:
    22
    Spells:
    11
    Tutorials:
    2
    JASS:
    9
    Resources:
    22
    GitHub - source code

    This program can be used as an alternative way to connect to the chatroom. Typically it should use less memory than your browser so it's useful if you want to idle in the chat while playing games or something. It can also be minimized to the system tray to keep it hidden if having a browser open bothers you.

    The following features have been implemented.
    1. Chat logging.
    2. Private messaging
    3. Change chat icons or colors.
    4. Style configurable + theme support.
    5. In-client option configuration.
    6. Statuses
    If you want to create a custom icon place it in the themes icon folder (extension .png) with a username as the filename. For example:

    "themes\default\icons\people\TriggerHappy.png"
    "themes\default\icons\user.png"
    "themes\default\icons\moderator.png"

    To make a custom theme copy the "default" folder under the "themes" directory and rename default.css to whatever you renamed the copied folder. Then in the main directory edit "config.ini" and change the "STYLE" parameter.
    I realize this is a lot of work but these things will be supported in the client later on.

    If the program doesn't run try downloading .NET Framework 2.0 (x86, x64)

    Changelog - Latest (11/29/2013)
     

    Attached Files:

    Last edited: Dec 2, 2013
  2. Daffa

    Daffa

    Joined:
    Jan 30, 2013
    Messages:
    8,201
    Resources:
    31
    Packs:
    1
    Maps:
    9
    Spells:
    18
    Tutorials:
    3
    Resources:
    31
    Great Job!:thumbs_up:
     
  3. chobibo

    chobibo

    Joined:
    Sep 24, 2005
    Messages:
    2,707
    Resources:
    0
    Resources:
    0
    Cool!
     
  4. Rheiko

    Rheiko

    Joined:
    Aug 27, 2013
    Messages:
    2,926
    Resources:
    7
    Icons:
    2
    Spells:
    3
    Tutorials:
    2
    Resources:
    7
    awesome... nice work!
     
  5. TheBigFiend

    TheBigFiend

    Joined:
    Oct 23, 2013
    Messages:
    13
    Resources:
    0
    Resources:
    0
    cool dude!
     
  6. TriggerHappy

    TriggerHappy

    Code Moderator

    Joined:
    Jun 23, 2007
    Messages:
    3,793
    Resources:
    22
    Spells:
    11
    Tutorials:
    2
    JASS:
    9
    Resources:
    22
    Thank you all for the feedback.

    Download - Screenshot

    Update - 10/29/2013

    -Mods at top of lobby.
    -Messages now sent in new thread (lag fix).
    -Your own messages are shown as a different color.
    -Statuses can be removed now.
    -Autoscroll is on (still needs some improvement).
    -Various code improvements.

    Update - 10/28/2013

    -Password now hashed with MD5 for security.
    -Commands implemented.
    Whisper (/w)
    Change Status (/@)
     
    Last edited: Nov 1, 2013
  7. For the First time, I'm there!
    Thank you TriggerHappy for makingthis tool! :D
     
  8. Orcnet

    Orcnet

    Joined:
    Jul 31, 2010
    Messages:
    3,855
    Resources:
    4
    Maps:
    3
    Tutorials:
    1
    Resources:
    4
    This is incredible, very much useful for an upcoming future! say Triggy do you already told this to Ralle?
     
  9. Blood Raven

    Blood Raven

    Joined:
    Aug 1, 2010
    Messages:
    1,203
    Resources:
    214
    Models:
    141
    Icons:
    44
    Packs:
    7
    Skins:
    7
    Maps:
    13
    Template:
    1
    Tutorials:
    1
    Resources:
    214
    This tool has a lot of potential, but still needs a bit of work.
    Here's what i "discovered" from my little time using it:

    Suggestions:
    -Be able to change only your own chat icon, and see the custom chat icons of the others using this program.
    -Be able to change the color of your text (like a color code in the settings.ini file)
    -Be able to change the width and/or heigth of the chat panel, widen the users panel or the input panel (where you write)
    -Be able to use emoticons (basic emoticons) and make them changeable by the used theme.
    -Make a few basic themes for future themes to be based on (or request some from a texture maker)
    -Put a warcraft 3 sound when someone chats and the window is not open (and make it changeable by the theme)
    -Make a setting "Window always stays in taskbar".

    Bugs:
    -You can open multiple chats with the same account, but nothing really happens, you just have multiple hive chats in your taskbar.
    -Icons for names which include a space (like Blood Raven) are not working.

    It really doesn't offer much more than what the original offers. Make it worth downloading :)
    Looking forward to it.
     
  10. TriggerHappy

    TriggerHappy

    Code Moderator

    Joined:
    Jun 23, 2007
    Messages:
    3,793
    Resources:
    22
    Spells:
    11
    Tutorials:
    2
    JASS:
    9
    Resources:
    22
    I'm not sure he will care, I mean he did create the original chat which is more impressive than this tool, so far. :p
    He may want the ability to define user icons and colors gone, though.

    It's already possible?

    You can edit the theme for this.

    Currently it's not user friendly, but I will add in client configuration soon.

    Will be available later.

    Low priority, feel free to make your own theme.

    I can make those options.

    1. Not a bug at all.
    2. Nice find, I will fix that.
     
  11. Grey Nightmare

    Grey Nightmare

    Joined:
    Feb 24, 2009
    Messages:
    2,852
    Resources:
    0
    Resources:
    0
    Fantastic work!
    My only gripe is with md5 - it's supposed to be (relatively) easy to brute-force, due to its fast computation, is it not?
     
  12. TriggerHappy

    TriggerHappy

    Code Moderator

    Joined:
    Jun 23, 2007
    Messages:
    3,793
    Resources:
    22
    Spells:
    11
    Tutorials:
    2
    JASS:
    9
    Resources:
    22
    That doesn't really matter, I just didn't want the users password to be in plain text in the config file.

    Also, THWs forum software can only read md5 and text (without some external plugin).
     
    Last edited: Oct 31, 2013
  13. TriggerHappy

    TriggerHappy

    Code Moderator

    Joined:
    Jun 23, 2007
    Messages:
    3,793
    Resources:
    22
    Spells:
    11
    Tutorials:
    2
    JASS:
    9
    Resources:
    22
    Here's a minor update.
    • Can now change chat color
    • Autoscroll improved
    • Links can be clicked
    • Icons with spaces should work (may have to replace " " with "%20")

    EDIT - Hotfix
    Custom icons actually working now.
     
    Last edited: Oct 31, 2013
  14. Chaosy

    Chaosy

    Tutorial Reviewer

    Joined:
    Jun 9, 2011
    Messages:
    11,064
    Resources:
    18
    Icons:
    1
    Maps:
    1
    Spells:
    10
    Tutorials:
    6
    Resources:
    18
    im glad there is a client for this now, I didnt want to go to the site to chat. Thats why I never went there.
     
  15. Blood Raven

    Blood Raven

    Joined:
    Aug 1, 2010
    Messages:
    1,203
    Resources:
    214
    Models:
    141
    Icons:
    44
    Packs:
    7
    Skins:
    7
    Maps:
    13
    Template:
    1
    Tutorials:
    1
    Resources:
    214
    Hmm, while chatting with you (lol), i discovered some new issues:
    -When someone says your name, it won't be highlighted as it normally would.
    -Clicking on people's names won't place them in your chat window (actually the people's names are just text, no links or effect on clicking them whatsoever)
    -Clicking on links opens them in Internet Explorer (argh!) instead of your default browser.
    -After a few minimizes and maximizes of the window, my text panel (where you enter your text) disappeared o_O
    -When someone joins it displays <b>Name</b> has joined (BB code fail :D)

    Also consider the possibility that my framework is bugged and not functioning properly (though it is a small chance)
    Keep up the good work :)
     
  16. TriggerHappy

    TriggerHappy

    Code Moderator

    Joined:
    Jun 23, 2007
    Messages:
    3,793
    Resources:
    22
    Spells:
    11
    Tutorials:
    2
    JASS:
    9
    Resources:
    22
    Will be coming soon.

    Most features I haven't "forgot", I just haven't gotten around to them yet.

    I know, I don't understand why.
    Try clicking a members icon, it will open your default browser. I'm using the same method for links too but it opens in IE..
     
    Last edited: Oct 31, 2013
  17. TriggerHappy

    TriggerHappy

    Code Moderator

    Joined:
    Jun 23, 2007
    Messages:
    3,793
    Resources:
    22
    Spells:
    11
    Tutorials:
    2
    JASS:
    9
    Resources:
    22
    Another update.

    Download - Screenshot

    Update - 11/1/2013

    - Added a settings menu where you can configure a few things for the client including user chat colors.
    - Links now parse correctly and are opened in the default browser.
    - Debugging log added.
     
  18. Blood Raven

    Blood Raven

    Joined:
    Aug 1, 2010
    Messages:
    1,203
    Resources:
    214
    Models:
    141
    Icons:
    44
    Packs:
    7
    Skins:
    7
    Maps:
    13
    Template:
    1
    Tutorials:
    1
    Resources:
    214
    There is something weird in the new update.
    Every time i click on settings or write a name in the settings it displays me a longass error and asks me if i wish to continue. If i click continue nothing really happens.
    Also the colors seem to have stopped working.
    Error Report
    [​IMG]
    Details:
    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.

    ************** Exception Text **************
    System.IndexOutOfRangeException: Index was outside the bounds of the array.
    at THWC.SettingsForm.SettingsForm_Load(Object sender, EventArgs e)
    at System.Windows.Forms.Form.OnLoad(EventArgs e)
    at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
    at System.Windows.Forms.Control.CreateControl()
    at System.Windows.Forms.Control.WmShowWindow(Message& m)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


    ************** Loaded Assemblies **************
    mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
    ----------------------------------------
    THWC
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///D:/Games/Warcraft%20III/THW%20Chat/THWC.exe
    ----------------------------------------
    System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    Microsoft.mshtml
    Assembly Version: 7.0.3300.0
    Win32 Version: 7.0.3300.0
    CodeBase: file:///C:/Windows/assembly/GAC/Microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3a/Microsoft.mshtml.dll
    ----------------------------------------
    System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    ----------------------------------------
    System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    System.Web
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_64/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
    ----------------------------------------

    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.

    For example:

    <configuration>
    <system.windows.forms jitDebugging="true" />
    </configuration>

    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.


    EDIT: Ignore what i just said. Did it on a clean install and it works like a charm :)
     
  19. Gilles

    Gilles

    Joined:
    Sep 6, 2006
    Messages:
    8,464
    Resources:
    0
    Resources:
    0
    purplepoot made a chat client once. Someone may have it still if you wanted to compare them. Maybe get some ideas.
     
  20. TriggerHappy

    TriggerHappy

    Code Moderator

    Joined:
    Jun 23, 2007
    Messages:
    3,793
    Resources:
    22
    Spells:
    11
    Tutorials:
    2
    JASS:
    9
    Resources:
    22
    Yeah I remember, I used to use it.

    It was for the old chatroom though so it wouldn't be compatible.