grigorusha / GeraniumsPot

Geraniums Pot - Puzzle Simulator (Intersecting circles puzzles)
4 stars 0 forks source link

Color somehow affecting cut order #3

Open dranorter opened 10 months ago

dranorter commented 10 months ago

The following script works as-is, but somehow if the first color line near the top is commented out and the second one used, the pieces get cut differently and stop making spatial sense. The only change is turning a 5 (blue) to 0 (white). Yet somehow the numbering scheme changes enough to make the code not work.

Sorry for the long script, I don't know a shorter way to show the bug.

Name: Nightfall
Author: Dranorter
Link: https://twistypuzzles.com/forum/viewtopic.php?p=344282#p344282

Scale: 3.5
Speed: 8
Flip: y

Param: seventh, 360 / 7
Param: fourteenth, 360 / 14
Param: c3x, 70.8*cos(4*pi/7) + 50
Param: c3y, 70.8*sin(4*pi/7) + 50
Param: c4x, 70.8*cos(1*pi/7) + c3x
Param: c4y, 70.8*sin(1*pi/7) + c3y

# ring number, center coordinates x y, radius, angle
Ring: 1, 50, 50, 66, fourteenth
Ring: 2, 120.8, 50, 66, fourteenth
Ring: 3, c3x, c3y, 66, fourteenth
Ring: 4, c4x, c4y, 66, fourteenth
# new ring number, source ring number, rotate-command, radius, angle
# CopyRing doesn't seem to work

AutoCutParts
SetColorParts: (1,5,6,8), 1, (2,3,4), 2, (4,9,13), 5, (5,6,7,8,10,11,12), 10 
#SetColorParts: (1,5,6,8), 1, (2,3,4), 2, (4,9,13), 0, (5,6,7,8,10,11,12), 10 
HideAllParts
ShowParts: 12, 13
AutoCutParts: 1L4, 1R4
#HideAllParts
ShowParts: 11
AutoCutParts: (2L2, 1), (2R2, 0), (1L2, 2), (1R2, 0)
HideAllParts
ShowParts: 11
AutoCutParts: (1L4, 3L4, 1), (3R4, 1R4, 0)
ShowAllParts
AutoCutParts: 1R6, 1L6
HideAllParts
ShowParts: 18
AutoCutParts: (2L6, (1, 3)), 2R6
HideAllParts
ShowParts: 27
AutoCutParts: 2L2, 2L2, (2R8, 1), (1L2, 3), (1R2, 1L2, 2), (1R2, 0), 2L4
HideAllParts
ShowParts: 31
AutoCutParts: (2R4, 1L6, 3R6, 4), (3L6, 1R6, 2L4, 0)
HideAllParts
ShowParts: 38
AutoCutParts: (2R4, 3), (2L4, 0)
HideAllParts
ShowParts: 34
AutoCutParts: (2R4, 1L4, 2), (1R4, 2L4, 0)
HideAllParts
ShowParts: 33
AutoCutParts: 2R4, 1L6, 3L4,   3R4, 1R6, 2L4
HideAllParts
ShowParts: 24
AutoCutParts: 2R4, 2L4 
HideAllParts
ShowParts: 38
AutoCutParts: (2R4, 1L4, 3L2, 1R2, 2R4, 4), (2L4, 1L2, 3R2, 1R4, 2L4)
ShowParts: 15
AutoCutParts: (1L4, 3L4, 4L2, 2), (4R2, 3R4, 1R6, 2), 1L2
HideAllParts
ShowParts: 40
AutoCutParts: (2R4, 1L4, 3L4, 4L2, 2), (4R2, 3R4, 1R4, 2L4)
HideAllParts
ShowParts: 37
AutoCutParts: (2R4, 1L6, 3L4, 4L2, 2), (4R2, 3R4, 1R6, 2L4)
HideAllParts
ShowParts: 47
AutoCutParts: 2R3, 2L3
HideAllParts
ShowParts: 32
AutoCutParts: 2R4, 2L4
HideAllParts
ShowParts: 33
AutoCutParts: (1L5, 4), (1R5, 0)
HideAllParts
ShowParts: 26
AutoCutParts: 2R2, 2L2
HideAllParts
ShowParts: 26
AutoCutParts: (2R8, 4), (2L8, 0)#1R4, (2R4, 3), (2L4, 1L4, 2L8, 0)
HideAllParts
ShowParts: 25
AutoCutParts: (2R8, 1R4, 2R4, 3), (2L4, 1L4, 2L8, 0)
HideAllParts
ShowParts: 14
AutoCutParts: (2R8, 1L2, (2,3)), (1R2, 2L8, 0)
HideAllParts
ShowParts: 34
AutoCutParts: (2L6, 1L3, 4), (1R3, 2R6, 0)
HideAllParts
ShowParts: 30
AutoCutParts: 2R2, 2R4, 2L6
HideAllParts
ShowParts: 23
AutoCutParts: (2L6, 1L4, 3L4, 4L2, 2), (4R2, 3R4, 1R4, 2R6, 0)
HideAllParts
ShowParts: 16
AutoCutParts: (2L6, 1R2, 2R4, 3), (2L4, 1L2, 2R6, 0)
HideAllParts
ShowParts: 9
AutoCutParts: (2L6, 1L4, 2), (1R4, 2R6, 0)
HideAllParts
AutoCutParts: 2L6
RemoveParts: 50,48
CopyParts: (29, 24, 18), 1R2
AutoCutParts: 2R6
HideAllParts
ShowParts: 7
AutoCutParts: (2L6, 1L8, 3L4, 2), (3R4, 1R8, 2R6, 0)
HideAllParts
ShowParts: 17
AutoCutParts: (1R4, 2R4, 3), (2L4, 1L4, 0)

ShowAllParts
SetColorParts: (56, 57, 61, 66, 67), 6

#HideAllParts
#ShowParts: 60
#AutoCutParts: (1L4, 2R2, 1), (2L2, 1R4, 0)
#HideAllParts
#ShowParts: 65
#AutoCutParts: (1L4, 2L4, 1), (2R4, 1R4, 0)
#HideAllParts

#ShowAllParts
RotateAllParts: 50, 50, 12.857

AutoMarker

# colors: 0 white, 1 black, 2 gray, 3 red, 4 green, 5 blue, 6 yellow, 7 purple
# colors: 8 teal, 9 orange, 10 light blue, 11 pink, 12 brown, 13 lilac, 14 lime
grigorusha commented 9 months ago

I understood why this error appeared. I've never used SetColorParts at the beginning of a script. I will fix this in the next version