Jump to content




CC-Bank with ATM, EFTPOS, Auth. Server

computer turtle wireless

54 replies to this topic

#1 RunasSudo-AWOLindefinitely

  • Signature Abuser
  • 249 posts
  • Location/dev/earth1aus5

Posted 24 December 2012 - 03:03 PM

EFTPOS functionality not available in 0.2.0.

I was bored, and it's the holidays, and so like all normal people, I coded a bank system. Introducing! [fanfare]

CC-Bank

It does everything that a normal ATM does, like:
  • Ability to either manually enter account number or read from keycard (floppy disk)
  • Server-side PIN check
  • Balance check
  • Withdrawal
  • Transfer between accounts
So, without further ado, the screenshots:
Spoiler

Downloads:
v0.2.0: Dropbox
v0.1 (formerly 1.0): Dropbox

Installation (will clean up later):
  • Download the required zip file from above and extract it somewhere.
  • Set up your ATM (with withdrawal turtle) and server computers. See screenshots.
  • Get the "client", "gui" and "crypt" files onto the root directory of your ATM computer.
  • Modify the "serverId", "diskSide", "modemSide" and "withdrawId" values accordingly.
    Spoiler
  • Get the "withdraw" file onto the root directory of your withdrawal turtle.
  • Modify the "clientId" value accordingly.
    Spoiler
  • Get the "server" and "crypt" files onto the root directory of your server computer.
  • Modify the "modemSide" value accordingly.
  • Create the "acc" folder in the root directory of your server computer.
  • Create an account file (eg, "12345.txt" where "12345" is the account number) in the acc directory of the server. Format:
    PIN Number
    Balance
  • Launch the "server" program on the server, the "client" program on the ATM and the "withdraw" program on the withdrawal turtle.
A keycard can be made by getting a blank floppy disk and setting its label to the account number.

Known Issues:
  • EFTPOS machines don't exist in 0.2.0!!!
  • Ctrl-T can terminate the ATM.
  • Performing a ridiculously large amount of transactions in one go will stack overflow the ATM. Fixed in 0.2.0
  • Receiving an incorrect packet will crash the ATM. Fixed in 0.2.0
  • Not receiving a packet in time will crash the ATM. Sort-of fixed in 0.2.0
  • Passwords are sent in plaintext. Fixed in 0.2.0
  • Withdrawal just transfers money to account "0". Fixed in 0.2.0
Changelog and plans:
Spoiler

Edited by pokepal101, 01 January 2013 - 12:42 AM.


#2 anonimo182

  • Members
  • 252 posts
  • LocationIn the universe

Posted 24 December 2012 - 04:40 PM

Nice program, specially for servers. Try adding
 os.pullEvent = os.pullEventRaw 
at the top of your code

#3 hippejustin

  • New Members
  • 2 posts

Posted 25 December 2012 - 01:33 AM

I like this program.
But I get a error with the program "eftpos":
"eftpos:63: bad argument: string expected, got nil"
Can you help me?

Sorry if I have a bad English, I'm Dutch. :)

#4 RunasSudo-AWOLindefinitely

  • Signature Abuser
  • 249 posts
  • Location/dev/earth1aus5

Posted 25 December 2012 - 09:34 PM

View Posthippejustin, on 25 December 2012 - 01:33 AM, said:

I like this program.
But I get a error with the program "eftpos":
"eftpos:63: bad argument: string expected, got nil"
Can you help me?

Sorry if I have a bad English, I'm Dutch. :)
Yes, I didn't have time to explain the EFTPOS setup. You must first set up an account for the storekeeper, eg "999999.txt"
Then, run the eftpos client with "eftpos 999999" or whatever. I'll go put that in the description right away!

#5 Sammich Lord

    IRC Addict

  • Members
  • 1,212 posts
  • LocationThe Sammich Kingdom

Posted 25 December 2012 - 09:42 PM

You can use turtles instead of RP2 tubes.

#6 RunasSudo-AWOLindefinitely

  • Signature Abuser
  • 249 posts
  • Location/dev/earth1aus5

Posted 25 December 2012 - 11:48 PM

View PostSammich Lord, on 25 December 2012 - 09:42 PM, said:

You can use turtles instead of RP2 tubes.
What would be the best way to send a message to the turtle? Redstone, wireless rednet, bundled-cable rednet, elaborate rube goldberg machine?

#7 Sammich Lord

    IRC Addict

  • Members
  • 1,212 posts
  • LocationThe Sammich Kingdom

Posted 26 December 2012 - 12:08 AM

View Postpokepal101, on 25 December 2012 - 11:48 PM, said:

View PostSammich Lord, on 25 December 2012 - 09:42 PM, said:

You can use turtles instead of RP2 tubes.
What would be the best way to send a message to the turtle? Redstone, wireless rednet, bundled-cable rednet, elaborate rube goldberg machine?
Use rednet. It is instant and direct communication.

#8 RunasSudo-AWOLindefinitely

  • Signature Abuser
  • 249 posts
  • Location/dev/earth1aus5

Posted 26 December 2012 - 03:45 PM

Preview of upcoming 0.2 rewrite
Posted Image
Changes will include:
  • Umm... Nothing big, just a GUI!!!
  • Salted SHA-1 hashing for passwords
  • Maybe a management console for the server


#9 gngz

  • Members
  • 31 posts
  • LocationPortugal

Posted 28 December 2012 - 09:58 AM

Make compatible with Immbis mode cards.

#10 HotGirlEAN

  • Banned
  • 101 posts

Posted 28 December 2012 - 02:47 PM

This is neat! Never seen a program like this before!
:) Colors? And also pastebin code please!

#11 RunasSudo-AWOLindefinitely

  • Signature Abuser
  • 249 posts
  • Location/dev/earth1aus5

Posted 28 December 2012 - 11:15 PM

0.2.0 Rewrite is Out!
v0.2.0 is incompatible with previous versions

Updates include:
  • A.. umm... GUI!! With colours!! (Now requires an adv. computer)
  • Removed dependency on RedPower tubes (Now uses a turtle 'round the back)
  • Lots of bug fixes (Or rather, I didn't re-implement the bugs during the rewrite)
  • Passwords are now salted-SHA1 hashed to prevent interception
  • Added version tag to rednet packets (Each packet now begins with "CC-Bank-0.2.0-Compatible"
  • Temporary removal of EFTPOS terminals. Will be added back in 0.2.1.
Download: http://bit.ly/RVQTQi
More details will be added to main post.

#12 RunasSudo-AWOLindefinitely

  • Signature Abuser
  • 249 posts
  • Location/dev/earth1aus5

Posted 28 December 2012 - 11:48 PM

Sorry for double-posting, but I wanted the update announcement as a separate post.

View Postgngz, on 28 December 2012 - 09:58 AM, said:

Make compatible with Immbis mode cards.
Maybe. I'll have to look into that peripheral a bit more first.

View PostHotGirlEAN, on 28 December 2012 - 02:47 PM, said:

:)/>/> Colors? And also pastebin code please!
Colors is in the latest update.
There are too many files for me to upload to pastebin. Plus I have a grudge against it. No reason :)/>

#13 HotGirlEAN

  • Banned
  • 101 posts

Posted 29 December 2012 - 08:38 AM

:) Well I mean, don't upload ALL the files to pastebin, just have one file on pastebin with the capability to download all the main ones from where-ever you keep your files.

#14 RunasSudo-AWOLindefinitely

  • Signature Abuser
  • 249 posts
  • Location/dev/earth1aus5

Posted 29 December 2012 - 01:55 PM

View PostHotGirlEAN, on 29 December 2012 - 08:38 AM, said:

:)/> Well I mean, don't upload ALL the files to pastebin, just have one file on pastebin with the capability to download all the main ones from where-ever you keep your files.
Meh, can't be bothered. (That's a bad excuse but whatever. I'm the developer :D)
Plus, not all people have http enabled, so I'd have to include a .zip download anyway (because I'm not that ignorant).
Plus, it's not that difficult to Control-C, Control-V. Or just unzip if you have access to the .minecraft directory.

#15 HotGirlEAN

  • Banned
  • 101 posts

Posted 29 December 2012 - 02:09 PM

It really isn't being "ignorant" nonetheless, for people to see this post in the first place they need internet, so enabling the HTTP api for them wouldn't be too much trouble.

#16 RunasSudo-AWOLindefinitely

  • Signature Abuser
  • 249 posts
  • Location/dev/earth1aus5

Posted 29 December 2012 - 11:04 PM

View PostHotGirlEAN, on 29 December 2012 - 02:09 PM, said:

It really isn't being "ignorant" nonetheless, for people to see this post in the first place they need internet, so enabling the HTTP api for them wouldn't be too much trouble.
Security issues? I dunno. I might make a downloader if I have the time.

#17 killie01

  • Members
  • 3 posts

Posted 31 December 2012 - 11:45 AM

Awesome, i am definetly going to use this for a shop on my server :)

#18 RunasSudo-AWOLindefinitely

  • Signature Abuser
  • 249 posts
  • Location/dev/earth1aus5

Posted 31 December 2012 - 02:44 PM

View Postkillie01, on 31 December 2012 - 11:45 AM, said:

Awesome, i am definetly going to use this for a shop on my server :)
Glad you like it. You might want to wait until I re-implement EFTPOS though (or use an older version)

EDIT: I'm a Script Kiddie now! YAY!

#19 Heracles421

  • Members
  • 258 posts

Posted 01 January 2013 - 07:01 PM

Heh, I was working on something similar today, untill I discovered your post.. Well the program is cool, I like it

#20 Jojo.bacon

  • Members
  • 20 posts

Posted 04 January 2013 - 05:51 AM

If you could use something besides turtles for withdrawal, that would be nice. :)
Love the GUI!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users