Hi. Yes I am aware of this glitch, however I thought it had disappeared in the final build. Unfortunately, as far as I am aware I cannot solve it myself either the skills I have, as it is caused by the Ren’py Glitch Script (this one: https://github.com/Gouvernathor/renpy-ChromaGlitch) If you ignore the error the game generally goes on fine, however I if you could contact me to try and help me fix the bug, I would be forever grateful.
I see. In that case, it's a bug with the Glitch Script and nothing to do with your code/VN.
Thank you for the link, I'll send them a pull request to fix this issue.
As for the solution, look for this code:
theights = sorted(randomobj.randrange(cheight+1) for k in range(nslices)) # y coordinates demarcating all the strips
Then replace it with this:
theights = sorted(randomobj.randrange(int(cheight+1)) for k in range(nslices)) # y coordinates demarcating all the strips