Jump to content




[1.5+] Dark Chat - rednet chat program! (Works on 1.6+)


  • You cannot reply to this topic
33 replies to this topic

#1 darkrising

  • Members
  • 234 posts
  • LocationScotland

Posted 13 December 2012 - 02:23 PM

Hello, this is a simple chat program I wrote a while ago! All you need is a computer (preferably colour) with a modem and your good to go!

Features:
  • Does not require a server program!
  • Simple IM styled chat
  • Channels and colour too!
  • Scrollable chat (Bar goes yellow when scrolling - see screenshots)
  • Nice slash command system
The chat will work as far as rednet can reach! Default is 60 blocks at minimum height.

Download commands:
/exit - leaves in a friendly manner and exits the program! (<name> has quit!)
/quit - same as /exit
/me - roleplay like talking for example, /me is a pie! -&gt; <name> is a pie!
/channel <number> - switch channel example: /channel 10
/list - shows who is in the channel
/clear - clears the chat
/help - no need to explain what that does
/nick <nickname> - Changes your nickname

Planned Changes
  • Add colour support - Added
  • re-do chat to be more supportive of slash commands - Done
  • Add in channel switching - Added
  • Add history / scrollable chat - Added
  • Add in user filtering
  • Add channel 'admins'
  • Channel 'dictionary' ?
Changelog:
Spoiler

Screenshots:
Spoiler

Any suggestions? found a bug?
leave a comment below!</number></name></name>

Check out my other programs!

Edited by darkrising, 20 April 2014 - 07:14 PM.


#2 momona5

  • Members
  • 14 posts

Posted 25 February 2013 - 05:22 AM

uhmmm. So I'm not sure why, but I'm on my friends server with this chat and whenever i join, leave, or chat, it says it twice...

Posted Image

#3 Kingdaro

    The Doctor

  • Members
  • 1,636 posts
  • Location'MURICA

Posted 25 February 2013 - 05:35 AM

Methinks that the program is receiving rednet signals from itself in that case.

#4 TwelveEight

  • Members
  • 16 posts
  • LocationIn the TARDIS, somewhere in time and space

Posted 25 February 2013 - 12:09 PM

Oh my god, you deserve a medal. I've been trying to write something like this, but I kept messing up, haha.

#5 Shnupbups

  • Members
  • 596 posts
  • LocationThat place over there. Y'know. The one where I am.

Posted 25 February 2013 - 12:55 PM

This topic got no posts up until today? Wow. Two months.

I'm making a new program a lot like this, but with colour, and support for channels.

#6 SuicidalSTDz

    Permutator of Strings

  • Members
  • 1,308 posts
  • LocationPennsylvania

Posted 25 February 2013 - 12:57 PM

Looks nice, never even saw this thread before or I would have posted a response :P

EDIT: Can two users have the same name? If so you should store all nicknames in a file and compare before they can join.

#7 darkrising

  • Members
  • 234 posts
  • LocationScotland

Posted 26 February 2013 - 06:56 AM

Didn't think anyone was interested in this program :o

But anyway I did a small update and fixed the "sending to self" problem.


View PostSuicidalSTDz, on 25 February 2013 - 12:57 PM, said:

Looks nice, never even saw this thread before or I would have posted a response :P

EDIT: Can two users have the same name? If so you should store all nicknames in a file and compare before they can join.

I'm planning to do this soon, as well as a channels feature.

Edit: Added dark chat to my github, bring on auto updates!

#8 SuicidalSTDz

    Permutator of Strings

  • Members
  • 1,308 posts
  • LocationPennsylvania

Posted 26 February 2013 - 09:13 AM

View Postdarkrising, on 26 February 2013 - 06:56 AM, said:

Didn't think anyone was interested in this program :o

But anyway I did a small update and fixed the "sending to self" problem.


View PostSuicidalSTDz, on 25 February 2013 - 12:57 PM, said:

Looks nice, never even saw this thread before or I would have posted a response :P

EDIT: Can two users have the same name? If so you should store all nicknames in a file and compare before they can join.

I'm planning to do this soon, as well as a channels feature.

Edit: Added dark chat to my github, bring on auto updates!
I will be pleased to see how this program plays out once the channels and all are added. Keep up the great work!

#9 darkrising

  • Members
  • 234 posts
  • LocationScotland

Posted 26 February 2013 - 10:32 AM

Added colour support and a whole new slash command handler.

#10 SuicidalSTDz

    Permutator of Strings

  • Members
  • 1,308 posts
  • LocationPennsylvania

Posted 26 February 2013 - 10:34 AM

Loving it. Keep it up ;)

#11 darkrising

  • Members
  • 234 posts
  • LocationScotland

Posted 26 February 2013 - 11:17 AM

View PostSuicidalSTDz, on 26 February 2013 - 10:34 AM, said:

Loving it. Keep it up ;)

And boom! channel support like a boss.

#12 TwelveEight

  • Members
  • 16 posts
  • LocationIn the TARDIS, somewhere in time and space

Posted 26 February 2013 - 08:29 PM

Colour chat and Channel Switching? *pukes rainbows*
I saw this yesterday and it is already so much better! c:

#13 darkrising

  • Members
  • 234 posts
  • LocationScotland

Posted 27 February 2013 - 07:02 AM

View PostTwelveEight, on 26 February 2013 - 08:29 PM, said:

Colour chat and Channel Switching? *pukes rainbows*
I saw this yesterday and it is already so much better! c:

Yeah when I put my mind to something usually it gets done quick :)
hopefully I'll have slash colours working sometime soon (or even bukkit colours)

Edit: added config option for public / private
Edit2: Added the '/list' command to see who's online

#14 TwelveEight

  • Members
  • 16 posts
  • LocationIn the TARDIS, somewhere in time and space

Posted 27 February 2013 - 04:18 PM

View Postdarkrising, on 27 February 2013 - 07:02 AM, said:

View PostTwelveEight, on 26 February 2013 - 08:29 PM, said:

Colour chat and Channel Switching? *pukes rainbows*
I saw this yesterday and it is already so much better! c:

Yeah when I put my mind to something usually it gets done quick :)
hopefully I'll have slash colours working sometime soon (or even bukkit colours)

Edit: added config option for public / private
Edit2: Added the '/list' command to see who's online

I can tell!!
If you added slash colours, I would love you forever.

#15 darkrising

  • Members
  • 234 posts
  • LocationScotland

Posted 28 February 2013 - 11:44 AM

Another update!
  • Scrollable chat
  • /help command
  • new screenshots above
I need some more ideas, suggestions would be appreciated!

#16 momona5

  • Members
  • 14 posts

Posted 28 February 2013 - 12:56 PM

Wow. I started this project back up i guess haha. Happy you fixed it so quickly, and wow and added a bunch of stuff! DARKCHAT FOR THE WIN!

#17 momona5

  • Members
  • 14 posts

Posted 28 February 2013 - 01:18 PM

View Postdarkrising, on 13 December 2012 - 02:23 PM, said:

  • Added new private / public config options
What exactly do the public / private options do? What is the difference?






Also, on another note: I tried tweaking the code a bit by changing the os.reboot() for the /exit to shell.run("startup") so it won't kill anything else running, but darkchat gui shows up over everything, and if I ctrl + t the startup program it brings me back into DarkChat as if I never left. crtl + t that and I get a lovely error:
parallel:22: Terminated

then I tried:
term.clear()
shell.run("startup")
exit()


which gave me this
parellel:22: b:302 attempt to call nil


#18 darkrising

  • Members
  • 234 posts
  • LocationScotland

Posted 28 February 2013 - 09:01 PM

View Postmomona5, on 28 February 2013 - 01:18 PM, said:

View Postdarkrising, on 13 December 2012 - 02:23 PM, said:

  • Added new private / public config options
What exactly do the public / private options do? What is the difference?

-snip-

Private option makes it so that you can set a username and default channel which is saved, so in a sense it will auto-login as the set user.
Public option doesn't save the user on restart or exit.

And yes there's a reason I used os.reboot :) All the functions would have to return to exit parallel, shell.run("shell") might work, however it would just run shell on top of everything else (not a good idea).

Edit: Took a look into it and made a few changes, so now the program will exit on /exit instead of rebooting, wasn't actually that hard to implement :)

#19 Derp_Herpsworth

  • Members
  • 7 posts

Posted 01 March 2013 - 11:18 AM

I've installed this program on my test server. It was nice. Tell me, was it hard coding it?

#20 darkrising

  • Members
  • 234 posts
  • LocationScotland

Posted 02 March 2013 - 11:38 PM

View PostDerp_Herpsworth, on 01 March 2013 - 11:18 AM, said:

I've installed this program on my test server. It was nice. Tell me, was it hard coding it?

Not really, some parts took a lot of brainstorming but most of the code I wrote didn't take much thought, this program is unique as usually I don't write totally event based programs.

If you have any suggestions feel free to drop a comment :)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users