ScriptError: Name (u'game/gui.rpy', 1588928406, 163) is defined twice

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
User avatar
MiraiZura
Regular
Posts: 33
Joined: Sat Sep 15, 2018 8:06 pm
Projects: How stories die.
Contact:

ScriptError: Name (u'game/gui.rpy', 1588928406, 163) is defined twice

#1 Post by MiraiZura » Tue Aug 25, 2020 8:46 pm

Hey, I've suddenly encountered this problem:

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
ScriptError: Name (u'game/gui.rpy', 1588928406, 163) is defined twice, at game/gui.rpy:11 and game/images/game/gui.rpyc:11.

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

Full traceback:
  File "C:\Users\itain\OneDrive\Documents\renpy-7.3.2-sdk\renpy\bootstrap.py", line 314, in bootstrap
    renpy.main.main()
  File "C:\Users\itain\OneDrive\Documents\renpy-7.3.2-sdk\renpy\main.py", line 373, in main
    renpy.game.script.load_script()  # sets renpy.game.script.
  File "C:\Users\itain\OneDrive\Documents\renpy-7.3.2-sdk\renpy\script.py", line 271, in load_script
    self.load_appropriate_file(".rpyc", ".rpy", dir, fn, initcode)
  File "C:\Users\itain\OneDrive\Documents\renpy-7.3.2-sdk\renpy\script.py", line 775, in load_appropriate_file
    self.finish_load(stmts, initcode, filename=lastfn)
  File "C:\Users\itain\OneDrive\Documents\renpy-7.3.2-sdk\renpy\script.py", line 452, in finish_load
    check_name(node)
  File "C:\Users\itain\OneDrive\Documents\renpy-7.3.2-sdk\renpy\script.py", line 435, in check_name
    bad_node.filename, bad_node.linenumber))
ScriptError: Name (u'game/gui.rpy', 1588928406, 163) is defined twice, at game/gui.rpy:11 and game/images/game/gui.rpyc:11.

Windows-8-6.2.9200
Ren'Py 7.3.2.320
 
Tue Aug 25 17:26:07 2020

Does somebody has a solution? It suddenly appeared out of nowhere(I only did grammar fixes in the script.rpy and then it happened).


EDIT: I've tried replacing gui.rpy, screens.rpy, script.rpy, options.rpy from a project that works(checked it right now and it worked) and the same error as the one above was produced.

rayminator
Miko-Class Veteran
Posts: 754
Joined: Fri Feb 09, 2018 12:05 am
Location: Canada
Contact:

Re: ScriptError: Name (u'game/gui.rpy', 1588928406, 163) is defined twice

#2 Post by rayminator » Tue Aug 25, 2020 9:39 pm

it's telling you that you have something defined twice

in these two locations

game/gui.rpy
game/images/game/gui.rpyc:11

if you remove game folder from the image folder will correct that error

Post Reply

Who is online

Users browsing this forum: span4ev