spacechem-community-developers / SpaceChem-Community-Edition

Release repository of the SpaceChem Community Edition
39 stars 1 forks source link

Outputting nothing onto a disabled output crashes the game #77

Closed 12345ieee closed 3 years ago

12345ieee commented 3 years ago

Import this:

H4sIAPWDRWAA/+1Vy27bMBD8FYNnE5AU92Ifc8mxKNBTEQS0uLII8KEul3WUwP32LvVIrCRF41
4CFPXBsGdfM7OU+ChQeR2cNL5LJOvguuDBUxTbb4/CBQt1srD8J7biptcYDuB3Nz+Lalfyp9hV
/FWItahD8iS2ZXW6Xc/dI4AW22ItOgw61WSClxqs6jmP0ZAoT+9MN4wSgiup7/IkjeogFe4Noc
J+pMlD7sfCXF/mOdz3gMo50G8puX0a8ULghJLCAzDnSzVuitOSaHTKWnkmcuo8EK4WhFWMkloM
6dDKoR3gRPWZozwaauVIcpJBLeArcTw0HFk6gqopoMyUBiMbBGgCOlmnSLyHOaHMDjt1PwOcXL
ESQFTGD4taFoxueeWy0ushtPoyhlYlq1NdB4p3Xed4+AF4DGj13VR99z0pT8lxYqui3Aei+cSJ
LWGCBT7LbZSNHNkHrwfJg+PFE9DZFF+jzvgFHMHHcF7dpLjoFjtriBYQgYUu4BLUJs4uGx+Z9L
Dfyf9JnzxySpS8ap+sfQn3I3xa/87I6s9GRj5PzOsyI8fAe3ws3/ax+gsfy4/z8erDffw3zuPm
v4+X+Ph8Z529//lN7ZI31EvQZkDyUz75/dXnH3r1OT088JXDbidqA3KkrK42nwwArOTquq/zDZ
ypNo3hy4l4YnH6BYJDoWS6BwAA

and then import this:

SOLUTION:Unnamed Puzzle,12345ieee,0-0-0
COMPONENT:'freeform-custom-reactor-1',13,11,''
MEMBER:'instr-start',180,0,128,4,1,0,0
MEMBER:'instr-start',180,0,32,4,6,0,0
MEMBER:'instr-output',-1,1,32,3,6,0,0
PIPE:0,4,1
PIPE:0,5,1
PIPE:0,6,1

The solution crashes when blue tries to output into a disabled pipe.

No external manipulation was done on the JSON, the puzzle was generated by the CE.

csaboka commented 3 years ago

Looks like this is going to be a relatively simple fix. I just need to do the same thing that built-in reactors with one output do.

csaboka commented 3 years ago

This will be fixed in the next release.