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

[Beta] Cc-Irc

Started by Tripy998, 23 July 2013 - 09:37 AM
Tripy998 #1
Posted 23 July 2013 - 11:37 AM

Credits:

Before I begin, I wanna thank 1lann for giving me the ability to make this.

He made the simplest Chat program he could think of that is very buggy and glitchy.

If you want to see it the pastebin is below.

Spoilerpastebin get VJCTyVhS chat <— 1lann's original program


About:

1lann made V.1 but in a few days I will be releasing V.2!

The only limit to this is the max RedNet Signal.

It looks a lot like MineCraft chat.

If you have an Idea about this just post it in the replies.


Important:

I really do not know what to add. :P/>

Please just tell me some ideas after trying out the Beta one made by 1lann.

1lann!!! I would love a response from you!
Zudo #2
Posted 23 July 2013 - 11:41 AM
I thought this was a real IRC client :wacko:/>
Tripy998 #3
Posted 23 July 2013 - 11:49 AM
I thought this was a real IRC client :wacko:/>
Lol……I could make one ………..
Sammich Lord #4
Posted 23 July 2013 - 11:50 AM
I thought this was a real IRC client :wacko:/>
Lol……I could make one ………..
Then make one. I'm interested in seeing what you're able to come up with.
Tripy998 #5
Posted 23 July 2013 - 11:52 AM
I thought this was a real IRC client :wacko:/>
Lol……I could make one ………..
Then make one. I'm interested in seeing what you're able to come up with.
Thanks! I will try to make one after i finish at least v.3 of this program
PixelToast #6
Posted 23 July 2013 - 12:07 PM
as always, my eyes are bleeding, instead of my normal rage ill try to be constructive on the way too common failures in peoples code

no tabbing 3:

rednet.open("top")
you should really auto detect a modem, and print an error if the computer doesnt have one

print("What is your name?")
local name = read()
whoops, accidentally pressed enter twice when running the program, now i have no name

rednet.broadcast("$CCU-CHAT * "..name.." has joined the chat!")
your broadcasting, use channels instead (my channels are 13<program number>)

os.queueEvent("rednet_message",0,"$CCU-CHAT * "..name.." has joined the chat!",0)
why not just insert it into the chat table?

local _, msg = rednet.receive()
local rMsg = msg:match("^%$CCU%-CHAT(.+)")
dont localize things within a loop, just dont

print("--------------------------------------------------")
write("<" .. name .. "> ")
why is this after a while true do end? WHY?

if sendMsg == "/exit" then
term.clear()
error()
end
needs to tell the chat that you left

might add some more later
also, i already made a real IRC client i used kilobytes peripherals
dont want to release it because its way to powerful ;_;

if im breaking (im not) the license, i would love to hear from your lawyer :)/>
Tripy998 #7
Posted 23 July 2013 - 12:14 PM
as always, my eyes are bleeding, instead of my normal rage ill try to be constructive on the way too common failures in peoples code

no tabbing 3=

rednet.open("top")
you should really auto detect a modem, and print an error if the computer doesnt have one

print("What is your name?")
local name = read()
whoops, accidentally pressed enter twice when running the program, now i have no name

rednet.broadcast("$CCU-CHAT * "..name.." has joined the chat!")
your broadcasting, use channels instead (my channels are 13???)

os.queueEvent("rednet_message",0,"$CCU-CHAT * "..name.." has joined the chat!",0)
why not just insert it into the chat table?

local width, height = term.getSize()
why are you localizing this within a looping function?

adding more stuff, just wanted to save
Before you do that, That is 1lann's SIMPLE EXAMPLE to me so i can learn to make one :P/> I will consider what you said and will add it to V.2.
Tiin57 #8
Posted 23 July 2013 - 12:21 PM
He's not breaking your license. It's quite obvious that it's your code he's quoting. And he's allowed to quote code as long as he attributes it to you.
Edit: You didn't make this program. Unless 1lann specifically says that you own the code and have the right to put a license on it (which is silly for a CC program, by the way), then you cannot enforce a license which the creator did not put in place on his code.
Tripy998 #9
Posted 23 July 2013 - 12:26 PM
He's not breaking your license. It's quite obvious that it's your code he's quoting. And he's allowed to quote code as long as he attributes it to you.
Just relized that what i said make no sense! Thank again Tiin57!
Pinkishu #10
Posted 23 July 2013 - 12:27 PM
Oh please…
You now have your own little thing to copyright and you're all hyper about it, good, but stop waving it around.

@others: its possible to make a "real" irc client in CC, without peripherals
PixelToast #11
Posted 23 July 2013 - 12:30 PM
yes but it would require a bouncer of sorts, unless the irc server has their own, it would be hard to keep it up because you can get the IP banned via ban evading, etc

unless you mean a simple cross-server / world irc, wich is pretty simple
Tripy998 #12
Posted 23 July 2013 - 12:33 PM
I know
I just tested to see how to actually Format everything to make a copyright for a website.
I will remove it now.
Sorry for any trouble
Oh and Tiin, PixelToast (No offense) Can be a jerk. :P/>
Pinkishu #13
Posted 23 July 2013 - 12:36 PM
yes but it would require a bouncer of sorts, unless the irc server has their own, it would be hard to keep it up because you can get the IP banned via ban evading, etc

unless you mean a simple cross-server / world irc, wich is pretty simple

A "real" IRC client is any client that implements the IRC protocol.

The RFC just specifies: A client is anything connecting to a server that is not another server.
thus even a "rednet based" client would be a "real" one
Tripy998 #14
Posted 23 July 2013 - 12:41 PM
Um…Just a question, why don't guests jsut get a freaking forum account. :/
Sammich Lord #15
Posted 23 July 2013 - 12:44 PM
Um…Just a question, why don't guests jsut get a freaking forum account. :/
They may have an account but just couldn't be bothered logging in again.
Tripy998 #16
Posted 23 July 2013 - 12:46 PM
Um…Just a question, why don't guests jsut get a freaking forum account. :/
They may have an account but just couldn't be bothered logging in again.
Good point.
Tripy998 #17
Posted 23 July 2013 - 12:50 PM
Hey, Um Pixel Toast, How do you disable Titles like "Script Kiddie"?
PixelToast #18
Posted 23 July 2013 - 12:52 PM
i changed it from "Lua god" before they started restricting every single godamn thing on the forums
Tripy998 #19
Posted 23 July 2013 - 12:54 PM
i changed it from "Lua god" before they started restricting every single godamn thing on the forums
Oh :P/> Hey sorry about earlier. Just abit tired and annoyed at keehl. He can be annoying. (No offense keehl)
Tripy998 #20
Posted 23 July 2013 - 01:11 PM
Pinkishu, Do you mean a IRC in CC that will read/send data to Web-based IRC?
Pinkishu #21
Posted 23 July 2013 - 02:48 PM
I mean IRC in CC using rednet :P/> nothing more nothing less
Tripy998 #22
Posted 23 July 2013 - 04:52 PM
Oh, This one will become that :P/> Oh and if you want look at the code :P/>
Pinkishu #23
Posted 23 July 2013 - 04:55 PM
Which code? 1lann's? Isn't IRC
Tripy998 #24
Posted 24 July 2013 - 11:18 AM
Nooooo! Not 1lann's, mine will.
Pinkishu #25
Posted 24 July 2013 - 10:12 PM
Well you told me to look at the code, the only available code is the small program that you posted that 1lann made, so I commented on that
PixelToast #26
Posted 24 July 2013 - 11:22 PM
Nooooo! Not 1lann's, mine will.
your making no godamn sense, which code is wich and what has what, and why are you saying you made 1lanns code exept you diddnt, exept you did?
Tripy998 #27
Posted 25 July 2013 - 07:33 AM
Nooooo! Not 1lann's, mine will.
your making no godamn sense, which code is wich and what has what, and why are you saying you made 1lanns code exept you diddnt, exept you did?
:P/> Sorry, I get like that, I'm working on Mine, but its based of 1lann's program. Yes i know, I make no sense. I just need feedback on what to change from 1lann's program. Like what would you like to see?
Maybe a logo when you turn it on?
Better login?
cross-world/cross-server Chat?
Register?
GUI?
I've got quite a few ides, But i am not sure what you guys would like to see in a IRC program. I want to be able to make this program represent the person using it.


Well you told me to look at the code, the only available code is the small program that you posted that 1lann made, so I commented on that
Ya, :P/> Sorry. Still making mine, I meant when I'm done you can look at the code and see what you can apply to your program.
I'm just all hyper about perfecting this program.
jesusthekiller #28
Posted 25 July 2013 - 11:10 AM
Duh, also thought it is real IRC. . .
Pinkishu #29
Posted 25 July 2013 - 05:35 PM
Duh, also thought it is real IRC. . .

What makes you believe it isnt?
Tripy998 #30
Posted 31 July 2013 - 07:53 AM
Duh, also thought it is real IRC. . .
Your picture says it all. :P/>
BOth for circuits and Comments. :P/>
Tripy998 #31
Posted 24 August 2013 - 11:55 PM
This thing lost croud quickly
Im shutting this down as it has become more and more stupid when you can just type "Hi" in Minecraft Chat.
Maybe i might bring it back when it becomes cross server.
Edited on 09 September 2013 - 06:01 PM