Integrated Tunnels

Integrated Tunnels

53M Downloads

Item importer: Import items claims 'List' type, but expects 'Item': incorrect error message

ShelLuser opened this issue ยท 5 comments

commented

I'm using version 1.1.0 (just noticed the new version, did read the changelog already).

I have set up a 'global' chest (using the Item interface) and my goal is to import (and sort) the items which go into that chest. For that end I added 4 DC's and applied item importers. When I want to import a single item all is well: I use the programmer and set a variable card to that specific item.

But I want to import several items. In my example both coal and a coal block. When I check the aspect "Import items" it denotes a type List. SO I made 2 variable cards for coal & coal block, Then used 'Oredict' to set up a list with both types. So far, so good. Added the item cards to a variable store, added my list to the item importer and then... bzzzt. It complaints: "This aspect expects Item". But the icon in front claims that it expects a list.

On a side note I also noticed that even though oredict produces a list, only one item is used. Doesn't a List imply a multitude?

Considering the inconsistency I think to have come across a bug.

commented

I'll test this myself, this may be a regression.

I'm not sure though how you combine the coal and coal block in one list using the Oredict. AFAIK there is no materialCoal entry in the oredict, right?

commented

Gotcha, thanks!

commented

One comment when re-reading: I made a small mistake up there, but this doesn't invalidate the issue. Instead of using item importers I was using item exporters. I just tested and both show the same inconsistency.

As to oredict: I was simply looking for an option in the programmer which used Item as input and List as output. "oredictionary names" did just that, though it only uses one Item, you can't add to a list. So I didn't focus on oredict but merely on finding an option in the programmer which allowed me to create a List. Pretty sure I've been misusing that feature ;)

But the main issue here is that it seems impossible to create a List in order to transport multiple items.

commented

Sorry for a double post, but I discovered something new...

So I created 2 Item variable cards; one for coal and one for a coal block (which is what you'd do when you want to export items based on a specific item). I then used the oredict function to create a List from one of those Item cards. Then I used the append option to add the other Item card to the list.

I insert the List card with the 2 ID's in the item exporter, then I insert both Item cards and the previous List card in the variable storage and this gives me a completely new error: "The list expects value type String while Item was given". Yet if I then create a List which only consists of Strings I get the error that it expected Item yet String was given.

Either way, something isn't right here I think ;)

Proof of concept (what I described here): http://i.imgur.com/JaNsRJJ.png

You can also clearly see that my ID card matches where type is concerned (both red).

Hope you can follow this ;) I love messing about with things like this :)

commented

Ah, ok, I understand now.

The oredict operator outputs a List of Strings, not Items. So it's just the error message that is wrong.

It is indeed impossible to manually create a List of Items, I hope to add this functionality to the LP in the next update.
In the meantime, you could user the Materializer to materialize a List of Items that were read from an inventory.