QuintessentialOM / Quintessential

An Opus Magnum mod loader (in-dev).
12 stars 1 forks source link

polymer outputs in modded puzzle files are not loaded correctly #9

Closed icwass closed 8 months ago

icwass commented 1 year ago

When loading vanilla puzzle files, the game will process the inputs and outputs. If it comes across an output that contains the repeat atom, it will expand the molecule into its Sim form, where:

When modded puzzle files are loaded, outputs with a repeat atom seem to be left unprocessed. They act like standard outputs in the Sim, but will crash the game if an atom is placed above one of its hexes:

(8/16/2023 11:13:55 PM) System.InvalidOperationException: Sequence contains no elements
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
   at Sim.method_1846(HexIndex param_5385, Molecule param_5386, Molecule param_5387)
   at Sim.method_1832(Boolean param_5369)
   at Sim.method_1827()
   ...

Attached is an example puzzle file that causes the problem. polymer-test.puzzle.zip

l-Luna commented 8 months ago

Fixed in 0.5.0.