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

M-Oyster System [UNRELEASED]

Started by ry00000, 12 October 2015 - 12:25 PM
ry00000 #1
Posted 12 October 2015 - 02:25 PM
Introducing M-Oyster!
This Rednet-based OysterCard-like (If you live in England, you know the Oyster Card) system uses Disk Drives as Cards and has a server, and ID numbers.

You load your disk card with gold nuggets, and you deplete them over time.

You have Iron Doors operated by Computers. Enough Gold = pass. Not enough gold = pass.

Topping up is simple. A turtle will do all the work for you. Just place the gold in a chest, a turtle will pick it up, and add the MC$ to your M-Oyster card.

ONLY the ID # is stored on the card, in a hidden file.

Everything else is on the server on ComputerCraft Cloud Chest.

DOWNLOADS:

(I'm sorry, it's not out yet.)

Also, this was my 80th post!

Development beginning now.
Edited on 12 October 2015 - 01:11 PM
ry00000 #2
Posted 12 October 2015 - 02:34 PM
(Well, "now" in the sense of as soon as my Minecraft would start)

WHOOPS, I meant Floppy Disks as cards, not the drives themselves!
Lupus590 #3
Posted 12 October 2015 - 03:02 PM
you can edit your post, also the moderators don't like it when people don't post code in the programs section of the forums
ry00000 #4
Posted 12 October 2015 - 03:05 PM
Where's the Unreleased Code section?
Anavrins #5
Posted 12 October 2015 - 03:15 PM
It's called "Media", most people post their teaser or "unreleased code" there.
ry00000 #6
Posted 12 October 2015 - 03:15 PM
Also, due to Cx4's limitations, currently we can support up to 26 cards.
Creator #7
Posted 12 October 2015 - 04:00 PM
What are Oyster cards?
H4X0RZ #8
Posted 12 October 2015 - 04:05 PM
@Creator I guess it's some kind of payment option for traveling in London.

@OP why are you using cx4 to store the data? If you can't afford learning some PHP/SQL and then use some free hosting service to create your own storage, at least make it "server-local" (like a rednet-server).
Edited on 12 October 2015 - 02:05 PM
ry00000 #9
Posted 20 October 2015 - 06:49 PM
The problem is, I don't know how to make files with multiple lines then read individually from them!
just help me with that and i'll release the code tickety-boo.
Lupus590 #10
Posted 21 October 2015 - 12:35 PM
The problem is, I don't know how to make files with multiple lines then read individually from them!
just help me with that and i'll release the code tickety-boo.

Look at the FS api on the wiki
ry00000 #11
Posted 04 March 2016 - 10:22 AM
I… honestly have no idea on what to do. Lupus, help me.
So, FS api. No CX4 anymore. But I don't know how to dynamically write files.