Jump to content




Talk - An Uber-Simple Chat Program


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

#1 GopherAtl

  • Members
  • 888 posts

Posted 24 July 2013 - 01:59 PM

talk is a very simple, serverless chat program. Any number of people can join the chat - so long as they're in range of each other!

To run it, just type "talk Gopher", replacing Gopher with your own name - this is the nick that will be displayed to others when you talk.

It supports a few other /commands, all detailed in-game, just type "/help" to see a list!

Posted Image
Posted Image

pastebin get j6YjhWYp talk

#2 Zudo

  • Members
  • 800 posts
  • LocationUK

Posted 26 July 2013 - 04:10 PM

+1 to you sir! Loving the IRC style :)

#3 cmckain14

  • Members
  • 22 posts

Posted 05 August 2013 - 01:20 AM

Excellent! :) Would there be any reason why it does not work on monitors? It just shows a blank screen.

#4 GopherAtl

  • Members
  • 888 posts

Posted 05 August 2013 - 01:49 AM

I didn't really consider monitor support; in a few places it uses term.native to bypass redirects, so those cases would not work if it were redirected to a monitor. I wouldn't have expected a blank screen, but I wouldn't have expected it to work properly, either. How would one chat with it running on a monitor, anyway? I guess you were just wanting to have a display of the chat in a public area that people could read without joining in?

#5 lifewcody

  • Members
  • 143 posts
  • Locationstill looking....

Posted 05 August 2013 - 02:23 AM

Excellent Idea! Do you mind if i use and tweak it to my server?

#6 GopherAtl

  • Members
  • 888 posts

Posted 05 August 2013 - 02:33 AM

tweak away!

#7 lifewcody

  • Members
  • 143 posts
  • Locationstill looking....

Posted 05 August 2013 - 02:33 AM

View PostGopherAtl, on 05 August 2013 - 02:33 AM, said:

tweak away!
Thank you!

#8 Tripy998

  • Members
  • 104 posts
  • LocationIn Front of Computer

Posted 23 August 2013 - 01:52 PM

Hi! This is cool! I love it!

#9 Cookie

  • Members
  • 3 posts

Posted 23 November 2013 - 07:23 PM

Well done, great program. Would you be willing to release the source code? I don't want to copy you, but I am working on something similar and am a little stuck. Thanks!

#10 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 23 November 2013 - 08:47 PM

The code for the program can be found at the pastebin link in the original post.

#11 apemanzilla

  • Members
  • 1,421 posts

Posted 24 November 2013 - 11:57 AM

Anyone in range? What happens if you have computers A, B, and C - where A is in range of B but not C and B is in range of both?


#12 banditleader

  • New Members
  • 1 posts

Posted 19 February 2014 - 05:02 PM

View PostApemanzilla, on 24 November 2013 - 11:57 AM, said:

Anyone in range? What happens if you have computers A, B, and C - where A is in range of B but not C and B is in range of both?

since c is in range of b then c can connect to a. so technically all u have to do is have the computers in range of 1 another to chat with one that is lets say, 2000 blocks away wich is out of range of it. for example computer a is 100 blocks away from b and b is 200 blocks away from d, since d is in range of b it can use b's range to connect to a, so d may be out of range of a but can still use b's range to connect to a.

#13 GopherAtl

  • Members
  • 888 posts

Posted 21 February 2014 - 06:07 PM

banditleader: er, no. It is not so smart as that. This is not a relay chat. If B can reach A and C, but A and C can't reach each other, then B hears everyone, but A and C don't hear each other. This is obviously a bit crappy, but was also a deliberate choice to keep the program uber-simple, as per dan's (then) preferences for included programs, as I made it to submit as a treasure disk program.

It wouldn't be to terribly difficult to make a server-based version with the new routing system, once the current beta version of CC is released.

#14 Zequan

  • Members
  • 4 posts

Posted 11 June 2014 - 02:16 PM

How do I get it to display on a big monitor?

#15 Dragon53535

  • Members
  • 973 posts
  • LocationIn the Matrix

Posted 16 June 2014 - 09:55 PM

View PostZequan, on 11 June 2014 - 02:16 PM, said:

How do I get it to display on a big monitor?
It was already stated that part of the program makes it impossible to run on a monitor without rewriting code. I do believe he wouldn't be mad if you make it work, however I don't think many people would help you out.

#16 phyyl

  • Members
  • 3 posts

Posted 22 October 2015 - 02:43 PM

The "parallel.waitForAny(coRead,coMain)" solves everything in computercraft I think :P thanks a lot @GopherAtl !!

#17 MarlonElfo

  • New Members
  • 1 posts

Posted 25 July 2016 - 12:29 AM

I'm very noob with ComputerCraft, And i dunno how to put this chat program in my computer, Can you help me?

#18 LDDestroier

  • Members
  • 1,095 posts
  • LocationACDC Town

Posted 25 July 2016 - 04:53 AM

View PostMarlonElfo, on 25 July 2016 - 12:29 AM, said:

I'm very noob with ComputerCraft, And i dunno how to put this chat program in my computer, Can you help me?

You can copy/paste this into the shell to download it.
pastebin get j6YjhWYp talk

I usually put the 'pastebin get' codes in CODE boxes because they are more obvious onscreen

#19 The Logo Maker

  • Members
  • 83 posts
  • Locationyes

Posted 25 July 2016 - 04:54 AM

hello an welcome to computer craft forum.
does chat programming support 24/7 tcp protocol

#20 LDDestroier

  • Members
  • 1,095 posts
  • LocationACDC Town

Posted 25 July 2016 - 05:05 AM

View Postepicidity, on 25 July 2016 - 04:54 AM, said:

hello an welcome to computer craft forum.
does chat programming support 24/7 tcp protocol

No, this uses an in-game modem API that connects it to other in-game computers with modems. This doesn't work inter-server or anything like that. PSChat Reloaded does, though.





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users