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

Remote AE: Interact with your ME system from anywhere in any dimension (EnderPouch + Turtle + Pocket + ME System)

Started by Yarillo, 10 August 2015 - 02:40 PM
Yarillo #1
Posted 10 August 2015 - 04:40 PM
Computer:
pastebin get WSYMLmY6 startup
Pocket:
pastebin get maji6tdj startup


API s:
This program uses a modified version of bwhodle's .ini files api
This program makes a heavy use of a modified version of ilgazzi's Craft-a-Cloud API
or (if you configure it that way) Forgotten_Boy's cx4 "CloudChest" API if your ME system isn't too big and you don't use it too often because his servers can be kind of weak sometimes.

Thanks to both of them. These are great. Made the coding part a lot shorter.

Disclaimer:
- If you ever use this program on a multiplayer server, don't be stupid: protect your pocket computer with a very secure password startup script such as this one I made a long time ago when I was little !
- It won't work if http isn't enabled on your server or if you don't have access to the internet
- If the servers of whatever API you are using are down, this program won't work properly.

What this does
Multi-functional: It does two things:
  1. Search for items in your ME system and make requests based on the results
  2. Send items to your ME system (pretty much like my ender pouch manager but with ME systems)
What you need
Obviouly it's not magical.
You need
  1. An Ender Pouch (with you)
  2. A pocket computer (with you or in the ender pouch)
  3. A turtle (any kind)
  4. An Ender Chest
  5. A ME Interface
I tried to make it flexible but unfortunately this program can't use the standard CC directions (top/bottom/front…) and is forced to use Forge's directions (up/down/north…) which makes it pretty immovable. The easiest solution was to assume you put the turtle on top of the interface.

This is the only possible layout:

Bonus points if your turtle is named Marlene.

ScreenshotsThe pocket computer:


The search returns some text like that:
ID:[Amount]ItemName

The EnderPouch itself:
(Requested items will be put inside the first normal slot available)

^ by deposit chest I mean ME System (I reused a screenshot from another program)
Edited on 20 August 2015 - 08:17 PM
Forgotten_Boy #2
Posted 11 August 2015 - 06:13 AM
As posted elsewhere in this forum, please don't use this program until Yarillo has decreased the request frequency (once per minute in my opinion is a minimum, however if you want to pay I can certainly allow what you need) and is able to either not make multiple invalid requests or respect the 404 return code.

It's great to see someone building on my cx4 page, but I can't really support a program that is making hundreds of 404 requests per minute.
Yarillo #3
Posted 12 August 2015 - 11:21 AM
It's been fully ported to another server API by default and now supports both Craft-a-Cloud and cx4.

The server load has also been diminished a lot as apparently it was a problem. Every time you ask the pocket computer for a refresh it saves on disk the contents of the ME system and, if available, will try to load that information on boot.
Also, the turtle linked to the ME interface won't upload the inventory's content on boot neither. It will now wait for a manual refresh only.
I didn't find those 404 errors you were talking about though.

It must have been some users who didn't know what a cx4 ID was and put dumb shit instead.
Why do we need a "correct" ID by the way ? Can't you simply say "Alright, this person wants to access the ID "WhatsACloudChestIDIAmClueless", it doesn't seem to exist, I'll create it for him" ?
Craft-A-Cloud does that it's pretty awesome
Edited on 12 August 2015 - 09:32 AM
Forgotten_Boy #4
Posted 16 August 2015 - 04:48 AM
As mentioned before: don't use this program to connect to my server. I've asked the author to respect HTTP norms and he claims to have done so but that is not true; the behavior of this program is little more than a denial-of-service attack. It's usage of HTTP is disrespectful and extremely wasteful. Using it will result in a ban from my server, as it would from any public resource.

My server is intended to support human usage, and it is very useful for moving data around quickly between computers - or for reasonable automation, which as I've mentioned means a handful of requests per hour.
Yarillo #5
Posted 16 August 2015 - 10:43 PM
Are you still receiving requests from me ? Because I'm not using your API at all anymore myself. That would be weird. I would almost say "impossible" but I learned the hard way a long time ago that there is no such thing. Did you check what data it's sending ? Does it looks like a ME system ? I'm starting to think you're making false accusations here, although not voluntarily, of course. Do you remember that one time you banned me from your server ? I could still access it. Are you sure it's me that's causing trouble ?

My program was used by 23 different people for sure. Maybe someone's using an early version ?

Check the program. Use it yourself. See the results. It's not constantly updating anymore and it doesn't even touch your servers with the default configs.

You can ban the ones causing trouble but until you check it yourself please don't say that I didn't fix it. It was pretty annoying to integrate Craft-a-cloud and all the changes you asked for. I'm starting to get angry here.
Edited on 21 August 2015 - 04:43 AM
DannySMc #6
Posted 20 August 2015 - 01:07 PM
I can't see how making many requests will do anything to your server, it is hardly a DoS attack, considering I have ran requests up to 6000 a minute… It really makes no difference…

- snip -

if you want I can make a custom one for you?:D/> I have some free time, just PM me if you are up for it :D/>.
Yarillo #7
Posted 20 August 2015 - 10:14 PM
I can't see how making many requests will do anything to your server, it is hardly a DoS attack, considering I have ran requests up to 6000 a minute… It really makes no difference…

Thank you. I don't know either. My script really doesn't do much with his server. The craft-a-cloud website is doing just fine and has been doing so for quite a while now.

if you want I can make a custom one for you? :D/>

Thanks a lot !
I'd be a lot more happy if someone released a simple web package anybody could install on his own server :D/> You'd have a huge success I think if you did that and posted it here.
And people could post on your thread the address of their free servers. I would gladly keep an updated list somewhere of all the ones available to everyone for free and even make an API that would pick one randomly.
Edited on 21 August 2015 - 04:43 AM
DannySMc #8
Posted 21 August 2015 - 06:38 PM
I can't see how making many requests will do anything to your server, it is hardly a DoS attack, considering I have ran requests up to 6000 a minute… It really makes no difference…

Thank you. I don't know either. My script really doesn't do much with his server. The craft-a-cloud website is doing just fine and has been doing so for quite a while now.

if you want I can make a custom one for you? :D/>

Thanks a lot !
I'd be a lot more happy if someone released a simple web package anybody could install on his own server :D/> You'd have a huge success I think if you did that and posted it here.
And people could post on your thread the address of their free servers. I would gladly keep an updated list somewhere of all the ones available to everyone for free and even make an API that would pick one randomly.

Well the idea is I do it for my server because running it on other servers can ban you from doing stuff… So I was offering to make it for you.