Page 1 of 1

having issues with minigame built in pygame

Posted: Mon Aug 15, 2022 10:37 pm
by toreachpoise
Hello!

I've been trying to import a minigame I built with pygame into my ren'py game. The minigame works fine in python. However when I copy it into a .rpy file in my game inside an

Code: Select all

init python:
block, it keeps crashing ren'py on startup. I'm not even trying to call it yet (though I'm not sure how to do that if I succeed in importing it).

Here's the error code I got:

Code: Select all

While processing the hover_color property of style _hyperlink:
  File "renpy/common/00start.rpy", line 83, in _init_language
    renpy.change_language(language)
Exception: Not a color: (34, 68, 204, 255)
I haven't touched 00start.rpy, and it's not corrupted because The Question runs fine.

Re: having issues with minigame built in pygame

Posted: Tue Aug 16, 2022 4:24 am
by Imperf3kt
This is usually caused by having duplicate start labels.
Search the rpy file for any extra labels - you should only have one of any label.