OrderedSet86 / gtnh-flow

Factory Optimization Flowcharts for Gregtech: New Horizons
MIT License
84 stars 24 forks source link

IndexError: list index out of range #23

Closed CondoSlime closed 6 months ago

CondoSlime commented 7 months ago

Doesn't seem to handle looping resources well. I edited the existing monazite line to make it more applicable to my situation. Currently it fails to load at all due to the "list index out of range" error. Changing the water output from the europium sulfide output LCR to something else (like water1) does make it work with no issues.

yaml file: (converted to txt because github doesn't allow that format) 223_monazite_line.txt

error screenshot: image

OrderedSet86 commented 6 months ago

Likely same issue as #17 and #21, likely caused by multi-IO and not looping. Will update when fixed

OrderedSet86 commented 6 months ago

Also I recommend using powershell, it should give you colors in the terminal :) cmd is only for DOS compatibility

OrderedSet86 commented 6 months ago

Indeed the issue is water and now gtnh-flow gives a helpful error message instead of IndexError: image

The reason is that gtnh-flow tries to aggressively recycle every defined output/input, if you don't care about it recycling it (eg water) you should simply not include it in the chart, or use different names (eg water1 or '[src] water' which is special syntax that is removed after solving and before chart display).