Ren'Py Cannot open renpy games

mcguill

Member
May 10, 2020
101
145
191
This only happened very recently to me, but when trying to open open renpy games, this error report appears:

I'm sorry, but an uncaught exception occurred.

While running game code:
File "renpy/common/00start.rpy", line 211, in script call
call _gl_test
File "renpy/common/00gltest.rpy", line 388, in script
$ __gl_test()
File "renpy/common/00start.rpy", line 211, in script call
call _gl_test
File "renpy/common/00gltest.rpy", line 388, in script
$ __gl_test()
File "renpy/common/00gltest.rpy", line 388, in <module>
$ __gl_test()
File "renpy/common/00gltest.rpy", line 317, in _m1_00gltest__gl_test
_gl_performance_test()
File "renpy/common/00gltest.rpy", line 340, in _gl_performance_test
ui.interact(suppress_underlay=True, suppress_overlay=True)
IOError: Couldn't find file 'gui/window_icon.png'.
This only happens for games whose release date is very recent (like three days old), because i have older renpy games on my hardrive that i am able to run without problem.

Thanks in advance for the help!
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
12,933
21,487
1,026
This only happened very recently to me, but when trying to open open renpy games, this error report appears:
So, there's a file missing, and a totally not important one.
Take whatever image you want, rename it "window_icon.png", and move it into "[path to the game]/game/gui/". Problem solved.


This only happens for games whose release date is very recent (like three days old),
What mean absolutely nothing.
Among the games released that week, there's some that use a 7.5.x version of Ren'Py, others that use a 7.8.x version, and others that use one of the many 8.x version. If you encounter the issue with all games, it's an issue from your side, or at most coming from the Compressor if you use compressed version and they all come from the same Compressor.
 
  • Like
Reactions: Shaneride

X|Mortis

Bête Noire|Somnium of the Night ☽◯☾
Moderator
GFX Designer
Donor
Jul 16, 2021
3,524
13,330
679
That did the trick, thanks!
Yeah as Anne mentioned, there's a missing PNG file, so all you need to do is replace it with an image file of whatever you like so the uncaught exception error doesn't get triggered when booting up the game. All this error is saying is that it's trying to pull from an image file that doesn't exist, so you are simply adding one in to avoid the issue.

It's just a PNG file so it's not like an integral DLL file or some other core system file that the game absolutely cannot run without.

But just out of curiosity, do you normally play compressed versions of Ren'PY games? My thinking (i.e., similar to what Anne alluded to in their post) was that perchance a compressor didn't play test the game enough after compressing said game, which might have resulted in some files not being loaded correctly, hence why you experienced this issue, to begin with.
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
12,933
21,487
1,026
It's just a PNG file so it's not like an integral DLL file or some other core system file that the game absolutely cannot run without.
And it's the game icon, therefore something totally irrelevant for the game itself.


But just out of curiosity, do you normally play compressed versions of Ren'PY games? [...]
It's a Ren'Py file, not a game one, therefore there's normally no reasons for it to be missing. Either the game author define, and it will be it, or it shoud be Ren'Py's default one.
 
  • Like
Reactions: X|Mortis

mcguill

Member
May 10, 2020
101
145
191
Yeah as Anne mentioned, there's a missing PNG file, so all you need to do is replace it with an image file of whatever you like so the uncaught exception error doesn't get triggered when booting up the game. All this error is saying is that it's trying to pull from an image file that doesn't exist, so you are simply adding one in to avoid the issue.

It's just a PNG file so it's not like an integral DLL file or some other core system file that the game absolutely cannot run without.

But just out of curiosity, do you normally play compressed versions of Ren'PY games? My thinking (i.e., similar to what Anne alluded to in their post) was that perchance a compressor didn't play test the game enough after compressing said game, which might have resulted in some files not being loaded correctly, hence why you experienced this issue, to begin with.
I play mostly the uncompressed ones.
 
  • Like
Reactions: X|Mortis

charmeradm

Newbie
Aug 29, 2024
22
8
81
Hello i have a similar problem i extract the files then when i click the application icon it just briefly shows the windows loading circle and nothing happens, this seems to only happen with Ren'py games only the last i downloaded MilaAI it again happened yet i always see comments about the game.I am new to F95 and just learned how to put walkthroughs into games thats the limit of my knowlede so any help or advice would be greatfully received theres so many renply games id like to play but they dont load/work for me
 

Goeffel

Active Member
Sep 10, 2022
978
686
193
hi @charmeradm

since you have a different problem, maybe open a new thread about it, it gets better visibility that way and less confusion with above (solved) problem.
Give as much information as you can: what device (pc?, phone?), operating system, what antivirus/ is it active?