EMERGENCY HELP! Defined Twice Screen Error After Update

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
bitgraphic
Regular
Posts: 54
Joined: Fri Aug 02, 2013 8:53 pm
Location: Japan
Contact:

EMERGENCY HELP! Defined Twice Screen Error After Update

#1 Post by bitgraphic »

Sorry for asking many questions. I just have to finish my game by today.
So I'm game is ready for distribution. I changed the Icon, runned Lint.

And I updated the renpy, restarted my PC. The problem happened here.
My project doesn't seem to appear anywhere on Renpy.
I changed directory at the preference, got my game back on the list, but now it doesn't work.

It's giving me this error.

Code: Select all

I'm sorry, but an uncaught exception occurred.

While parsing C:\Users\Kenichi\Desktop\Chainletter/game/screens.rpy.
ScriptError: Name (u'/home/tom/ab/renpy/template/game/screens.rpy', 1341714480, 25) is defined twice: at game/screens.rpy:322 and game/screens.rpy:700.

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

Full traceback:
  File "C:\Users\Kenichi\Desktop\Icetea\renpy-6.15.4-sdk\renpy\bootstrap.py", line 265, in bootstrap
    renpy.main.main()
  File "C:\Users\Kenichi\Desktop\Icetea\renpy-6.15.4-sdk\renpy\main.py", line 207, in main
    renpy.game.script.load_script() # sets renpy.game.script.
  File "C:\Users\Kenichi\Desktop\Icetea\renpy-6.15.4-sdk\renpy\script.py", line 177, in load_script
    self.load_appropriate_file(".rpyc", ".rpy", dir, fn, initcode)
  File "C:\Users\Kenichi\Desktop\Icetea\renpy-6.15.4-sdk\renpy\script.py", line 441, in load_appropriate_file
    if not self.load_file(dir, fn + source, initcode):
  File "C:\Users\Kenichi\Desktop\Icetea\renpy-6.15.4-sdk\renpy\script.py", line 320, in load_file
    self.finish_load(stmts, initcode)
  File "C:\Users\Kenichi\Desktop\Icetea\renpy-6.15.4-sdk\renpy\script.py", line 392, in finish_load
    node.filename, node.linenumber))
ScriptError: Name (u'/home/tom/ab/renpy/template/game/screens.rpy', 1341714480, 25) is defined twice: at game/screens.rpy:322 and game/screens.rpy:700.

Windows-post2008Server-6.2.9200
Ren'Py 6.15.7.374

Please help me. I don't know what to do.
Attachments
screens.rpy
(27.74 KiB) Downloaded 107 times

User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Re: EMERGENCY HELP! Defined Twice Screen Error After Update

#2 Post by xela »

Did you try deleting all bitcode files? I had similar issues on many occasions and that usually fixes it.
Like what we're doing? Support us at:
Image

bitgraphic
Regular
Posts: 54
Joined: Fri Aug 02, 2013 8:53 pm
Location: Japan
Contact:

Re: EMERGENCY HELP! Defined Twice Screen Error After Update

#3 Post by bitgraphic »

xela@
Thanks for the reply.
What's a bitcode files?

User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Re: EMERGENCY HELP! Defined Twice Screen Error After Update

#4 Post by xela »

bitgraphic wrote:xela@
Thanks for the reply.
What's a bitcode files?

"bytecode" files (was really late when I've responded). All files that end with .rpyc and bytecode.rpyb.

.rpy are plain text files, you need to keep those and renpy will rebuild the project. It usually fixes "insane" unexplainable errors for me, like renpy claiming there are errors in lines of code that do no longer exist.
Like what we're doing? Support us at:
Image

bitgraphic
Regular
Posts: 54
Joined: Fri Aug 02, 2013 8:53 pm
Location: Japan
Contact:

Re: EMERGENCY HELP! Defined Twice Screen Error After Update

#5 Post by bitgraphic »

xela@
Ahh, i see.
I deleted every script files except the .rpy
I'm still getting this error.

Code: Select all

I'm sorry, but an uncaught exception occurred.

While loading the script.
ScriptError: Name u'start' is defined twice: at game/script.rpy:11 and game/script.rpy:494.

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

Full traceback:
  File "C:\Users\Kenichi\Desktop\Icetea\renpy-6.15.4-sdk\renpy\bootstrap.py", line 265, in bootstrap
    renpy.main.main()
  File "C:\Users\Kenichi\Desktop\Icetea\renpy-6.15.4-sdk\renpy\main.py", line 207, in main
    renpy.game.script.load_script() # sets renpy.game.script.
  File "C:\Users\Kenichi\Desktop\Icetea\renpy-6.15.4-sdk\renpy\script.py", line 177, in load_script
    self.load_appropriate_file(".rpyc", ".rpy", dir, fn, initcode)
  File "C:\Users\Kenichi\Desktop\Icetea\renpy-6.15.4-sdk\renpy\script.py", line 436, in load_appropriate_file
    if self.load_file(dir, fn + compiled, initcode):
  File "C:\Users\Kenichi\Desktop\Icetea\renpy-6.15.4-sdk\renpy\script.py", line 320, in load_file
    self.finish_load(stmts, initcode)
  File "C:\Users\Kenichi\Desktop\Icetea\renpy-6.15.4-sdk\renpy\script.py", line 392, in finish_load
    node.filename, node.linenumber))
ScriptError: Name u'start' is defined twice: at game/script.rpy:11 and game/script.rpy:494.

Windows-post2008Server-6.2.9200
Ren'Py 6.15.7.374
 

This is just strange.
I do see start on game/script.rpy:494, but not game/script.rpy:11.

User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Re: EMERGENCY HELP! Defined Twice Screen Error After Update

#6 Post by xela »

New error... Try a fresh renpy download/unzip, delete all bytecode files again and copy it there, also copy game folder only, leave all other files at the old location.
Like what we're doing? Support us at:
Image

Post Reply

Who is online

Users browsing this forum: No registered users