Integrated Tunnels

Integrated Tunnels

53M Downloads

Game Crash: Operator ValueTypeOperator$ValueOperator cannot be cast to ValueTypeBoolean$ValueBoolean

Targren opened this issue ยท 4 comments

commented

Issue type:

  • ๐Ÿ› Bug

Short description:

Similar to #99 but still exists in 1.12.2-1.5.6.

Presumably invalid logic assembly causes game to crash (see details below)

Steps to reproduce the problem:

  1. Created variable structure ("Label": for readability)
  • "FilterA": Inventory ReaderA.Items (List)
  • "FilterB": Inventory ReaderB.Items (List)
  • "FilterCombine": Concat(FilterA, FilterB)
  • "Contains": Operator("List Contains")
  • "Doesn't Contain": Negation(Operator(List Contains))
  • "Filter Doesn't Contain": Apply("Doesn't Contain", "FilterCombine")
  1. Add random items to the inventories connected to InventoryReaders A and B

  2. Put "Filter Doesn't Contain" card in the "Export Items Predicate" slot of an Item Exporter.

Expected behaviour:

Export items from the network that are in neither inventory filled in step 2 (assuming logic is correct), or fail with a red "X" and explanation message (if it is not)


Versions:

  • This mod: 1.12.2-1.5.6
  • Minecraft: 1.12.2
  • Forge: 14.23.5.2768

Log file:

Crashlog

commented

Same problem as CyclopsMC/IntegratedDynamics#644 (which has been fixed now), expect a new ID release soon.

commented

Hmm, thanks for reporting.

It looks like operators are even harder to implement than they are to use.

commented

It looks like operators are even harder to implement than they are to use.

Does this mean you can see where I screwed up my thinking? I'd love if you'd point it out. I haven't done much FP since college which was... quite some time ago.

commented

Does this mean you can see where I screwed up my thinking?

No :-) (not as far as I can see in any case though)
What I meant is that the code that I wrote for implementing the operator system is quite complex, and it's the main source of bugs of this mod.