ryanjjung / satisfactor-py

A Python utility for planning factories in the video game Satisfactory
GNU General Public License v3.0
0 stars 0 forks source link

Something's broken with simulation #61

Closed ryanjjung closed 3 months ago

ryanjjung commented 3 months ago

Following instructions in the readme, I get errors. To reproduce:

from satisfactor_py.base import Purity
from satisfactor_py.patterns import tier_0_screw_factory
factory = tier_0_screw_factory(Purity.NORMAL)
factory.simulate()

You get:

Simulating component <ResourceNode "Normal Iron Source">Exception in thread Exception in threading.excepthook:Exception ignored in thread started byException ignored in sys.unraisa
blehook
ryanjjung commented 3 months ago

Closing without changes. Nothing is wrong with simulation. What doesn't work is using bpython to simulate things. Something about threading breaks it there. If I drop the above into a script, that script works just fine.