Ok so basically i have this city. (On a Tekkit Classic Server).
I want it to have its own currency. So i got the idea of making a sort of credit card type thing. (Floppy disks.)
The thing im trying to figure out at the moment is the production of these "cards".
Is there a way to make it, so that when a floppy goes into a disk drive, the computer writes a code to it. Then ejects it?
These codes would have to be sort of user information, (a unique ID number, Username, an amount of fake currency etc.)
Any help would be appreciated. Thanks.
Big Ideas, Little knowledge. Advice/Help
Started by theDWARN, Sep 23 2014 05:31 AM
1 reply to this topic
#1
Posted 23 September 2014 - 05:31 AM
#2
Posted 23 September 2014 - 08:29 PM
Well you'd want to check out fs for writing to a file, and also the disk API for ejecting the disk
Now since you're new to ComputerCraft and Lua I would suggest that you'd first go and check out the PIL and then the wiki of ComputerCraft, starting with making a bank system as the first program isn't that easy( you're new to CC right? ), or well.. it depends. Yes you can make a bank system, but if you're new to programming the quality and security of the program might not be so good. If you're seriously thinking of creating this then I would strongly suggest that you'd hash + salt the data before storing it into a file, and have like a "server computer" that would store the data.
Examples
Now since you're new to ComputerCraft and Lua I would suggest that you'd first go and check out the PIL and then the wiki of ComputerCraft, starting with making a bank system as the first program isn't that easy( you're new to CC right? ), or well.. it depends. Yes you can make a bank system, but if you're new to programming the quality and security of the program might not be so good. If you're seriously thinking of creating this then I would strongly suggest that you'd hash + salt the data before storing it into a file, and have like a "server computer" that would store the data.
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users











