Page 1 of 1

Error upon start

Posted: Sun Oct 08, 2017 6:54 am
by Tessiellation
So I've almost finished my game and I get this error, I haven't even touched those files:

I'm sorry, but an uncaught exception occurred.

After initialization, but before game start.
IOError: Couldn't find file 'gui/window_icon.png'.

-- Full Traceback ------------------------------------------------------------

Full traceback:
File "C:\Users\Terese\Desktop\renpy-6.99.12.4-sdk\renpy\bootstrap.py", line 295, in bootstrap
renpy.main.main()
File "C:\Users\Terese\Desktop\renpy-6.99.12.4-sdk\renpy\main.py", line 430, in main
renpy.game.script.report_duplicate_labels()
File "C:\Users\Terese\Desktop\renpy-6.99.12.4-sdk\renpy\script.py", line 890, in report_duplicate_labels
if renpy.parser.report_parse_errors():
File "C:\Users\Terese\Desktop\renpy-6.99.12.4-sdk\renpy\parser.py", line 2543, in report_parse_errors
renpy.display.error.report_parse_errors(full_text, error_fn)
File "C:\Users\Terese\Desktop\renpy-6.99.12.4-sdk\renpy\display\error.py", line 168, in report_parse_errors
init_display()
File "C:\Users\Terese\Desktop\renpy-6.99.12.4-sdk\renpy\display\error.py", line 62, in init_display
renpy.display.core.Interface().start()
File "C:\Users\Terese\Desktop\renpy-6.99.12.4-sdk\renpy\display\core.py", line 1686, in start
self.set_mode()
File "C:\Users\Terese\Desktop\renpy-6.99.12.4-sdk\renpy\display\core.py", line 1916, in set_mode
if draw.set_mode(virtual_size, physical_size, fullscreen):
File "renpy/gl/gldraw.pyx", line 192, in renpy.gl.gldraw.GLDraw.set_mode (gen\renpy.gl.gldraw.c:2802)
renpy.display.interface.post_init()
File "C:\Users\Terese\Desktop\renpy-6.99.12.4-sdk\renpy\display\core.py", line 1717, in post_init
self.set_icon()
File "C:\Users\Terese\Desktop\renpy-6.99.12.4-sdk\renpy\display\core.py", line 1748, in set_icon
renpy.loader.load(icon),
File "C:\Users\Terese\Desktop\renpy-6.99.12.4-sdk\renpy\loader.py", line 543, in load
raise IOError("Couldn't find file '%s'." % name)
IOError: Couldn't find file 'gui/window_icon.png'.

Windows-8-6.2.9200
Ren'Py 6.99.12.4.2187
Destiny Bound 1.0

Re: Error upon start

Posted: Sun Oct 08, 2017 8:11 am
by Karl_C
In Ren'Py launcher:
  • Change/Update GUI
  • Read the warning! (Backup your files)
  • 'Choose new colors...' or 'Regenerate...'

Re: Error upon start

Posted: Sun Oct 08, 2017 11:26 am
by Tessiellation
It says "Launching the project failed. Please ensure that your project launches normally before running this command." :(

Re: Error upon start

Posted: Sun Oct 08, 2017 12:17 pm
by Karl_C
Hm, copy the attached file into 'gui\window_icon.png'

Re: Error upon start

Posted: Sun Oct 08, 2017 12:27 pm
by Tessiellation
Sorry, I don't quite follow. Do you mean copy it into the gui of my game, or gui of ren'py? :S
I found the gui of Ren'py, but there's only files like any other game would have..

Re: Error upon start

Posted: Sun Oct 08, 2017 1:32 pm
by Karl_C
Copy it into the 'game\gui' folder of your game.

Re: Error upon start

Posted: Sun Oct 08, 2017 2:04 pm
by Tessiellation
Ok, I did that, but sadly I get the same error :(

Re: Error upon start

Posted: Sun Oct 08, 2017 3:41 pm
by Karl_C
What files and folders are in your 'game\gui' folder now?

Re: Error upon start

Posted: Sun Oct 08, 2017 4:48 pm
by Imperf3kt
I sometimes see that error (please check your game runs correctly) when trying to clear persistent data. I don't recall the exact cause but I remember it was some completely unrelated code causing it.

Do you remember what you added since it last worked?

Re: Error upon start

Posted: Mon Oct 09, 2017 6:08 am
by Tessiellation
1: Everything that was there to begin with

2: I tried removing chunks of coding in my script and it didn't change anything. :( Even at the parts where the game did work.

Re: Error upon start

Posted: Mon Oct 09, 2017 6:26 am
by Tessiellation
Okay, I tried to make a backup and it seems like it's my "Neutralending" label that's messing it up, I think.

Re: Error upon start

Posted: Mon Oct 09, 2017 6:30 am
by Tessiellation
or it's my "wait" label :S

Re: Error upon start

Posted: Mon Oct 09, 2017 6:33 am
by Tessiellation
Odd thing is when I remove it from my backup, both the neutralending and wait label, the game works. Do I do it on my game game, it doesn't do anything...

Re: Error upon start

Posted: Mon Oct 09, 2017 6:53 am
by Tessiellation
It think I figured it out. Somehow. Changed the label names in a new document and now it seems to work :S It's still weird though.

Re: Error upon start

Posted: Tue Oct 05, 2021 12:12 pm
by SavedByZero
We are getting this also when one of our team is trying to run an unzipped package of a Ren'py 7.3.5 game in Ren'py 7.4.3, even though the file is literally right there in the folder it claims is missing it. Has this been addressed? It's definitely not our code; I can run it just fine on my machine with the older Ren'py, and it's the same package that was zipped.