Desktop Client for the Chao Island Chatbox

Talk about things not related to Sonic or Chao. Talk about other stuff!
Warning! This topic is 11 years and 10 months old! Please consider opening a new topic rather that bumping up this very old post.
Locked
User avatar
Alo
Quester Chao
Quester Chao
Posts: 194
Joined: Fri May 08, 2009 5:52 am
Location: in the gardens
Contact:

Desktop Client for the Chao Island Chatbox

Post by Alo »

I am working on a desktop chat client program in Java that works with Chao Island's chatbox.

I have uploaded the GUI version so far! It is by no means finished. There are lots of things missing and/or broken. However, it has enough features to be usable.
Also I uploaded the source code if anyone is interested. You can do whatever you want to with it.

If you have any trouble, just ask!

Screenshots:
Image
This screenshot is updated enough to be the main one for now.

Image
This is the login screen.

Image
The first preview shot I took. As you can see there is a lot missing. There wasn't even an online list yet.

Downloads:
Java Jar Download <-- With the GUI -- Download this one!
Source Code This is the source code for client. You can do what ever you want to with it.

Old Java Jar Download (old and obsolete) This was before the GUI.
Original Python Script Download (old and obsolete) This was my first attempt to connect to the chatbox. It is very messy.

How to run:
First make sure you have Java installed. You probably do, but if not you can download it here.
Then download the Jar with the download link above.
Then double click the jar file and you should be greeted with the login screen!

Todo list:
In the library code:
- the /query command
- the /who command
- multi-channel support
- ignoring
- detecting when you try to private message a non existent user
In the user interface code:
- make the preferences pane
- make hyperlinks clickable
- make messages line wrap
- add links to peoples CI profiles
- add optional sound
- add a chat logging feature
- add a help page

If you have any trouble, questions, or comments please say so!
Last edited by Alo on Mon May 07, 2012 8:22 pm, edited 10 times in total.
:darksurprise: :surprise: :herosurprise:
User avatar
Tails Doll
Master Chao
Master Chao
Posts: 965
Joined: Sat Jan 31, 2009 12:56 am

Re: Desktop Client for the Chao Island Chatbox

Post by Tails Doll »

...Do I have to compile it myself? Or is the downloadable file an .exe?
User avatar
Alo
Quester Chao
Quester Chao
Posts: 194
Joined: Fri May 08, 2009 5:52 am
Location: in the gardens
Contact:

Re: Desktop Client for the Chao Island Chatbox

Post by Alo »

It's a Python script. All you need is Python 2 installed. Then you can just save the code in the link into a .py file and just double click it to open it.

Also, I am working on the Java version now. It will be a .jar file. If you have Java installed (most computers do) then you can just download it and double click it to open it. I don't have Windows myself or I would make it into a .exe. It shouldn't make a difference, though.
:darksurprise: :surprise: :herosurprise:
User avatar
Tails Doll
Master Chao
Master Chao
Posts: 965
Joined: Sat Jan 31, 2009 12:56 am

Re: Desktop Client for the Chao Island Chatbox

Post by Tails Doll »

Okay. I'll check out python see if I'll install it.
User avatar
Alo
Quester Chao
Quester Chao
Posts: 194
Joined: Fri May 08, 2009 5:52 am
Location: in the gardens
Contact:

Re: Desktop Client for the Chao Island Chatbox

Post by Alo »

I posted the Java code so far. You can see it in the first post of the thread. There's no GUI yet, but that is my next goal! :chaohappy:
:darksurprise: :surprise: :herosurprise:
User avatar
Jeffery Mewtamer
Advanced Chaos Chao
Advanced Chaos Chao
Posts: 3234
Joined: Thu Jun 16, 2011 3:59 pm
Motto: Sightless Scholar
Contact:

Re: Desktop Client for the Chao Island Chatbox

Post by Jeffery Mewtamer »

The java -jar command works the same in Linux as it does in Windows and OSX, though I must admit this is my first time running a jar directly(I normally run my own java programs from the raw class files).

Anyways, I tested it out, and it works quite nicely from my terminal. Is a bit annoying that new messages from others are displayed in line with what I am typing, though I do not know if there is even a way around that without going for a full GUI(not that a GUI is even remotely necessary). Also, is there a more elegant way to logout or exit the client than pressing ctrl+C?
User avatar
Alo
Quester Chao
Quester Chao
Posts: 194
Joined: Fri May 08, 2009 5:52 am
Location: in the gardens
Contact:

Re: Desktop Client for the Chao Island Chatbox

Post by Alo »

Thanks for trying it out! There is a /quit command. The only way I know to get around that would be to create an ANSI interface. However, that isn't compatible with the Windows command prompt, so it wouldn't be a very universal solution.

I should also mention that most of the other chat commands work as well. The ones that I know I haven't implemented yet are /query /ignore and /who.
:darksurprise: :surprise: :herosurprise:
User avatar
Moonstalker
Chaos Chao
Chaos Chao
Posts: 2078
Joined: Thu Jan 01, 2009 5:12 pm
Location: Arp arp arp arp
Contact:

Re: Desktop Client for the Chao Island Chatbox

Post by Moonstalker »

ITT: computer stuff I don't understand

this looks really cool though, I might check it out in a bit.
SOLTYPE
My Tumblr ~ huge faggot coming through beep beep
User avatar
Coty
Veteran Chao
Veteran Chao
Posts: 1383
Joined: Wed Dec 09, 2009 10:17 pm
Location: You currently have 1 Gems
Contact:

Re: Desktop Client for the Chao Island Chatbox

Post by Coty »

Ah very nice, I look forward to your GUI version, but do you plan to also leave the cmd line version in tact as well? Would be nice to see lines in different color to break them up...
Jeffery Mewtamer wrote:Is a bit annoying that new messages from others are displayed in line with what I am typing
TURTLES ALL THE WAY DOWN! ☕︎
User avatar
Alo
Quester Chao
Quester Chao
Posts: 194
Joined: Fri May 08, 2009 5:52 am
Location: in the gardens
Contact:

Re: Desktop Client for the Chao Island Chatbox

Post by Alo »

Sure, I can keep the command line version going as well. Or perhaps I could have a command line option that disables the GUI. I will look into the colors and fixing the new messages messing up the typing. It may be easier than I thought to do that on Windows. I found a Curses library that claims to work on Windows.

Thanks for trying it! :chaohappy:
:darksurprise: :surprise: :herosurprise:
CelebiLv6
Courageous Chao
Courageous Chao
Posts: 486
Joined: Sat Jun 25, 2011 10:31 pm

Re: Desktop Client for the Chao Island Chatbox

Post by CelebiLv6 »

I tried the GUI version. I like it.
hello.
i was 9 or so when i used this account actively.
please disregard anything posted.
User avatar
Alo
Quester Chao
Quester Chao
Posts: 194
Joined: Fri May 08, 2009 5:52 am
Location: in the gardens
Contact:

Re: Desktop Client for the Chao Island Chatbox

Post by Alo »

Thanks! I worked several days straight programming it with almost no breaks. :P I've never programmed a full GUI before, so it was fun. It's still got a lot of issues and features missing. But I honestly don't know if I will work on it for a while, I'm quite tired of working on it. :P I will probably just make it open source right now.

Also I should note that you can still use the command line with the new version. If you don't want the GUI, just add " nogui" to the end of the command.
:darksurprise: :surprise: :herosurprise:
User avatar
Pumpkinium
Expert Chaos Chao
Expert Chaos Chao
Posts: 4225
Joined: Fri Mar 27, 2009 8:37 pm
Motto: spongebob
Location: krusty krab
Contact:

Re: Desktop Client for the Chao Island Chatbox

Post by Pumpkinium »

I downloaded the GUI version but it doesn't seem to be working properly, It allows me to log in but I can't see anything.

It's probably because I'm still chat banned though, huh.
help me
User avatar
Alo
Quester Chao
Quester Chao
Posts: 194
Joined: Fri May 08, 2009 5:52 am
Location: in the gardens
Contact:

Re: Desktop Client for the Chao Island Chatbox

Post by Alo »

If you're banned then I'm sure that's why you can't see anything. :P Thanks for trying it, anyway.
:darksurprise: :surprise: :herosurprise:
User avatar
Octavia
Adult Chao
Adult Chao
Posts: 109
Joined: Tue May 01, 2012 5:48 am

Re: Desktop Client for the Chao Island Chatbox

Post by Octavia »

This is some impressive programming you have here. I'm super jealous! I've been learning C++ for six months and the most I can do still is doing some of the most basic things commonly used behind the scenes in games (I'm currently in the middle of learning how to use references). Can't draw anything on the screen yet, just print. Did you by any chance reuse software?
Avatar by LeafNinja, requested by me. Credit and thanks goes to him.
Crash32
Master Chaos Chao
Master Chaos Chao
Posts: 5089
Joined: Tue Mar 29, 2011 8:19 am
Motto: <- Probably a reference to The Simpsons
Location: This is Tumblr, right? No pls don't be offended b-baka!!
Contact:

Re: Desktop Client for the Chao Island Chatbox

Post by Crash32 »

Ooh, that looks awesome! I'd get it... if I used the chat more often :P
User avatar
Alo
Quester Chao
Quester Chao
Posts: 194
Joined: Fri May 08, 2009 5:52 am
Location: in the gardens
Contact:

Re: Desktop Client for the Chao Island Chatbox

Post by Alo »

Octavia wrote:Did you by any chance reuse software?
Thanks! Just the standard Java libraries. Of course I googled how to do things a ton since I have never actually made a full blown GUI like this before. I don't ever copy and paste stuff, though. I prefer to actually know how to do it.
:darksurprise: :surprise: :herosurprise:
Locked