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

Program request

Started by YUGATUG, 15 April 2015 - 12:22 AM
YUGATUG #1
Posted 15 April 2015 - 02:22 AM
I want a program that has the following syntax:
Enderchest add <string>
Enderchest add <string> <info>
Enderchest list
Enderchest search <string>
Enderchest delete <string>
Enderchest help

Background: I use a lot of Ender chests from the Ender Storage mod. Keeping track of these by memory is very hard, so i want a CC program to keep track of it.

Enderchest add <string> will add <string> to a document of strings such that they will be able to be accessible by Enderchest list, Enderchest search, and Enderchest delete. If the command is successful, the terminal will print(<string> .. " has been successfully added.") . If <string> was already on the list, the program will not add <string> to the list and the terminal will print(<string> .. "was already on the list.") . Enderchest add <string> <info>** will do the same thing as Enderchest add <string> , but will allow you to add info that will show up when the user uses Enderchest search <string> . Enderchest list will list all of the strings stored with Enderchest add. If there are too many strings to display on the screen (be it pocket computer or standard computer), the bottom center of the screen will read: "Hit [W] and to scroll up and down the list, and hit [SPACE] to exit scroll mode.", and the user will be able to scroll as described (if you have/want to change it from [W] and and [SPACE] to [UP] and [DOWN] and [ENTER], that works too). Enderchest search <string> will print out <string>, and if <string> was added via Enderchest add <string> <info> , <info> will be printed after <string>, separated by a space. *if <string> is added using Enderchest add <string> , the user must use Enderchest delete <string> then Enderchest add <string> <info> to give <string> info.* if <string> was never added, the terminal will print("<string> .. " is not on the list."). Enderchest delete <string> will delete <string> from the document of strings. If <string> is was not on the list, the terminal will print(<string> .. " is not on the list."). If it was, the terminal will print(<string> .. " has been deleted.") Enderchest help will print the syntax of the program.

What's that? You have no reason to do this?
Wrong. The first person to pm me the program gets the code for a $15 iTunes gift card.

What? You don't believe i have the card?
Wrong again. http://imgur.com/Pn4JDL5,RjpWM4C#0 http://imgur.com/Pn4JDL5,RjpWM4C#1 . The green is to prevent you from cashing in the gift card without me telling you the code.

Huh? You think I've already used up the card? You think I won't give you the code anyway?
Well, I can't prove you wrong until you pm me your program. Though, I do guarantee you i will give you the code.

Ask me any questions in the discussion section below.
Lupus590 #2
Posted 15 April 2015 - 02:58 AM
We generally don't take requests, preferring to help teach people how to write programs so they can become independent. You know, the teach a man to fish thing.

As for the payment via gift card code, isn't that against the rules of the gift card?
HPWebcamAble #3
Posted 15 April 2015 - 03:00 AM
As for the payment via gift card code, isn't that against the rules of the gift card?

Heres what Lyqyd had to say in this topic:

We'd generally prefer that those sorts of transactions not be conducted via the forums, but we obviously can't stop people from sending whatever they want in PMs.
YUGATUG #4
Posted 15 April 2015 - 03:43 AM
We generally don't take requests, preferring to help teach people how to write programs so they can become independent. You know, the teach a man to fish thing.

As for the payment via gift card code, isn't that against the rules of the gift card?

Ya I know the goal of the forum, but I've been working on this topic for 3 weeks and want to just get it done and over with.
Also, i don't think that's against the rules of the card, nor do i care about the rules of the card.
HPWebcamAble #5
Posted 15 April 2015 - 04:47 AM
Just PM'd my submission, for anyone reading this
Bomb Bloke #6
Posted 15 April 2015 - 07:26 AM
Just to play devil's advocate, why'd you take the protective label off the gift card? ;)/> :P/>
YUGATUG #7
Posted 15 April 2015 - 08:37 PM
Just to play devil's advocate, why'd you take the protective label off the gift card? ;)/> :P/>
How else am I supposed to cash it in?
YUGATUG #8
Posted 15 April 2015 - 10:17 PM
Just PM'd my submission, for anyone reading this
Pm'd you with response