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

ComputerCraft eMail

Started by PCKid11, 17 June 2012 - 03:40 PM
PCKid11 #1
Posted 17 June 2012 - 05:40 PM
Hey guys, I made a ComputerCraft eMail system in an afternoon. It took me a while.
—————————————–
Here are the Pastebin links…
Server: http://pastebin.com/FC1Lp6qH
Client http://pastebin.com/peCQzp0E
—————————————-






I made this 100% by myself. No help.

[EDIT] The reason it says bbsclient as the eMail clients name in the photo is because I was trying to make a BBS in Computercraft, but I ended up at this somehow.
Edited on 17 June 2012 - 03:42 PM
rbasset #2
Posted 18 June 2012 - 04:52 AM
This is amazing (just by looking at it lol) just wondering tho how i would incorporate it with my server like i see the 2 pastebin pages, but is there a dedicated computer in tekkit that i would upload the server one on and then the client side goes on other computers for people to use?
rbasset #3
Posted 18 June 2012 - 05:45 AM
NVM ive tried it and answered my own question lol, this program is amazing man, its running on my server and the users love it, thanks again
Klausar #4
Posted 23 June 2012 - 08:31 PM
Sorry if this question is stupid, but I'm new to computercraft and I don't know how to install it, I tried copying it as startup, but it didn't work, it always stopped at "running email server"
tommyroyall #5
Posted 23 June 2012 - 09:25 PM
Klausar, you must save both of these files as their own separate programs in your rom/programs.

Also, nice job pckid, keeping it simple and effective, epic for smaller communities.
Klausar #6
Posted 24 June 2012 - 06:32 AM
So I have to save the client code and the server code on the computer on my computer, both as programs?
Exerro #7
Posted 25 June 2012 - 12:13 PM
I've been trying to make an email program for my os but its rly hard so would it be ok for me to use this in it…
PCKid11 #8
Posted 26 June 2012 - 03:38 PM
awsumben13, that would be fine.

You might not see a Version 2, as my mum has banned me from minecraft, probbably forever.
V2 would have brought multi-messages and screen names. So, goodbye. Maybe forever.
kazagistar #9
Posted 26 June 2012 - 04:24 PM
You giving up that easy, brotha? I remember, when I was at your age, sneaking out in the dead of night to play MUDs for hours. And that was just meaningless drivel games. If you are bloody coding then you are learning a life skill that is much more likely to actually pay the bills.
PCKid11 #10
Posted 29 June 2012 - 03:34 PM
OK. Version 2 IS coming. I will code it when I am on Minecraft. I will work on it.
Exerro #11
Posted 29 June 2012 - 06:54 PM
if you need any help I can do quite a lot of system programming…just not rednet
TCGM #12
Posted 06 July 2012 - 10:29 AM
I've done some editing of this program myself; Most notably, I made it automatically grab the computer's label as the "From" field. This shows up both when sending and receiving. Haven't managed to make a capacitor for emails yet though.

DL Link:
http://dl.dropbox.co...ilProgramTC.zip

mailserv is the server program, mail is the client.
Guapers #13
Posted 04 September 2012 - 05:28 AM
Sorry for bumping, but how is this installed? I typed it all on Minecraft, but how do I install it for the server? Please give a step-by-step if possible.
basdxz #14
Posted 05 September 2012 - 05:05 PM
Uh just use pastebin get FC1Lp6qH and pastebin get peCQzp0E or just type in again in the servers computers….
PCKid11 #15
Posted 13 September 2012 - 04:22 PM
Hey guys, V2 is delayed due to 1.3.2. I am going to do it soon, sry i havent kept on top of this.
RayceFarelle #16
Posted 12 November 2012 - 06:29 PM
Hey PCKid11, you've made a simple, yet great program, well done indeed. Thanks for sharing it with the rest of us. Your program is currently used at our server and there's a lot of positive responses. Full credits to you of course. Looking forward to V2 of the program to solve the multi-messaging problem (since apparently a lot of the guys can't get more than one email lolz).

Again, thanks for the program and keep up the good work.

Best regards.
PCKid11 #17
Posted 19 November 2012 - 08:04 AM
I'll try and make an advanced version (v2c) and the V2 pr tomorrow. And thank you for using my program.
PCKid11 #18
Posted 19 November 2012 - 08:20 AM
A sneak peak of the "sendmessage" code:

0110100101100100001011000110110101100101011100110111001101100001011001110110010101101001011001000010000000111101001000000111001001100101011001000110111001100101011101000010111001110010011001010110001101100101011010010111011001100101001010000010100100001101000010100110110101100101011100110111001101100001011001110110010100100000001111010010000001100110011100110010111001101111011100000110010101101110001010000110100101100100001000000010111000101110001000000110110101100101011100110111001101100001011001110110010101101001011001000010110001110010001010010000110100001010011010010110010000100000001111010010000001110100011011110110111001110101011011010110001001100101011100100010100001101001011001000010100100001101000010100111001001100101011001000110111001100101011101000010111001110011011001010110111001100100001010000110100101100100001011000110110101100101011100110111001101100001011001110110010100101110011100100110010101100001011001000100000101101100011011000010100000101001001010010000110100001010011011010110010101110011011100110110000101100111011001010010111001100011011011000110111101110011011001010010100000101001
PCKid11 #19
Posted 19 November 2012 - 10:06 AM
Ok, V2 will have a security vulnerability, so DELETE YOUR OLD MAILFILES (if you upgrade)! ie Computer 1 Message 7 will be Computer 17's old mail, because the new file sorting is computer id .. message number. So file 117 would be Computer 1 Message 17.

EDIT: Or just put 1 on the end of all files…
Edited on 19 November 2012 - 09:45 AM
remiX #20
Posted 19 November 2012 - 10:03 PM
Could you make it have colour support for new versions of CC? :(/>/>
PCKid11 #21
Posted 19 November 2012 - 11:42 PM
Damn, lost all the V2 Client Code to a BSOD. Crap.
PCKid11 #22
Posted 19 November 2012 - 11:59 PM
OK, managed to complete it, use the old links to download it (see first post).
NEW SYNTAX:
mail get (id)
mail send
Now with Multimessaging! APPEND 1 ON THE END OF THE OLD MAIL FILES IF YOU UPGRADE

EDIT: bugfixed the client.
Edited on 20 November 2012 - 12:52 AM
PCKid11 #23
Posted 31 January 2013 - 12:50 AM
Hello there, when I have ComputerCraft reinstalled I'm gonna try and make it better.
theoriginalbit #24
Posted 31 January 2013 - 12:52 AM
Hello there, when I have ComputerCraft reinstalled I'm gonna try and make it better.
Maybe try using cc-emulator it doesn't require that you run Minecraft and you can pick your computers ID too. its what I use for all my development :)/>
Dragon53535 #25
Posted 31 January 2013 - 10:16 AM
Hello there, when I have ComputerCraft reinstalled I'm gonna try and make it better.
Maybe try using cc-emulator it doesn't require that you run Minecraft and you can pick your computers ID too. its what I use for all my development :)/>

i hate to intrude, but WHICH PROGRAM? i gotsta know :P/>

anyways, PCkid you need to continue this, its growing fast and i personally would like to see it flourish, its an achievement to make EMail in MC so yeah, theres that.
TheOddByte #26
Posted 02 February 2013 - 02:20 PM
Hello there, when I have ComputerCraft reinstalled I'm gonna try and make it better.
Maybe try using cc-emulator it doesn't require that you run Minecraft and you can pick your computers ID too. its what I use for all my development :)/>

i hate to intrude, but WHICH PROGRAM? i gotsta know :P/>

anyways, PCkid you need to continue this, its growing fast and i personally would like to see it flourish, its an achievement to make EMail in MC so yeah, theres that.
The ComputerCraft-Emulator he's talking about. ;)/>
adamrocks130 #27
Posted 16 February 2013 - 07:47 PM
I am having a few issues with the client read email function, is just because i'm running 1.32?
subzero22 #28
Posted 20 March 2013 - 01:07 PM
the server I'm on is using 1.3 and I'm having issues with the email read and when I send email server calls null also.

Here's the errors I get.

Client
email:5: attempt to call nil

Server (When trying to send email)
Server:13: attempt to call nil
PCKid11 #29
Posted 19 June 2013 - 11:58 AM
Uuuuuum… this is embarrassing. I'd forgotten about Computercraft, and I also thought that my code had got so crap that nobody cared anymore. I'm gonna try and fix this - so so sorry.

edit-lol, i dont know about 1.32's bug. I'll look at that too.
PCKid11 #30
Posted 19 June 2013 - 12:01 PM
Odd…. it looks like standard Lua logic. I'll try and run it myself.
PCKid11 #31
Posted 19 June 2013 - 12:04 PM
:)/> I found the bugs in the server, though I dont know about the 1.32 bug - I had errors on Line 17 and a missing end.
PCKid11 #32
Posted 19 June 2013 - 12:10 PM
OK, I fixed some bugs - but dont expect anything new.
PCKid11 #33
Posted 19 June 2013 - 12:15 PM
I give up - please try and fix any bugs you see. I'll help with new features, but bugfixing will be left to the community. GOD my code had got sloppy.
PCKid11 #34
Posted 19 June 2013 - 12:25 PM
I think we should go back to V1 code. My code was so sloppy, V2 was more of a hack than a real update.