This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
PixelFox's profile picture

OurChat - Chat with other people as if they're there!

Started by PixelFox, 11 October 2015 - 07:16 PM
PixelFox #1
Posted 11 October 2015 - 09:16 PM
Imagine a world where people can talk in the minecraft chat, and have everyone on every world can hear them?
Well that's the idea here. Type anything that you want in the chat, and it will go over the internet, and others will hear you clearly!

WARNING: Requires Moarperipherals' Chatbox!

ARE YOU READY TO CHAT WITH ANYONE ON MINECRAFT? WELL GO DO IT!!!!!!!!!

pastebin get 7RppEbTW OurChat


Enjoy!
LDDestroier #2
Posted 12 October 2015 - 04:33 AM
Really cool idea. I tried doing something like this with some success by routing chatboxes into minizbot's PSChat, but it would sometimes repeat.
LDDestroier #3
Posted 14 October 2015 - 09:36 PM
I made a read() version of OurChat, for servers that don't have MoarPeripherals.
pastebin get zvV7Le0F ourchat

EDIT: Just added command support, ripped from the default chat program.
Edited on 14 October 2015 - 09:15 PM
FUNCTION MAN! #4
Posted 15 October 2015 - 12:57 AM
  • "USERNAME's programming skills rival that of the Software Toolworks.",
I believe that's what they call a 'sick burn'
Edited on 14 October 2015 - 10:58 PM
クデル #5
Posted 15 October 2015 - 01:39 AM
This is neat, but I would add the colon server side instead, and enter two arguments into the request.
LDDestroier #6
Posted 15 October 2015 - 04:11 AM
I fixed the broken commands in the text version. Now /insult works just fine!

EDIT: Just fixed the text scrolling, so that text that exceeds one or two lines does not go in the text input, while still being fully visible.
EDIT 2: Added extra insults and a /kill command.
Edited on 15 October 2015 - 01:33 PM
LDDestroier #7
Posted 15 October 2015 - 05:18 PM
I tried upgrading your basic program even more! Here's what I got. May have errors (it's untested as of yet cos' I'm at school).
pastebin get NQVPiSWZ ourchat-rl
std pb NQVPiSWZ ourchat-rl

Here are the changes:

+Added commands! Use :help to get the list.
+One of those commands is :nick which will change your nickname so that everyone else thinks you are someone else.
However, nicknames have '' around them to help differentiate.
+Lists all people who have used the chat locally (on the same server you are on).
It is now my first use of a function (sprint()) that I made a long time ago.
Edited on 15 October 2015 - 03:19 PM
minizbot2012 #8
Posted 16 October 2015 - 08:54 PM
//Offtopic//
It would repeat because you're receiving the message you sent, to prevent it you would need to do a bit of filtering on what you sent and received, which is outside of the scope of my project. I have no idea on how this one works as I don't have access to the server source.
//ontopic//
Nice job on this program, however I do have a bit of a question, why exactly do you have "?true=true" on the line to do the http.get request, when omitted it says that a "file" has been written. I would think that if it had the words parameter in the request, that it would send, and if it had nothing it would receive.