Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(+1)

Got this crash upon launching with this update;


I'm sorry, but an uncaught exception occurred.

While loading the script.
ScriptError: Name ('game/scripts/gui/buttons.rpy', 1695532845, 8401) is defined twice, at scripts/gui/buttons.rpyc:1 and game/scripts/gui/english/buttons.rpy:1.

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

Full traceback:
  File "E:\Cyberheart\renpy\bootstrap.py", line 275, in bootstrap
    renpy.main.main()
  File "E:\Cyberheart\renpy\main.py", line 492, in main
    renpy.game.script.load_script() # sets renpy.game.script.
  File "E:\Cyberheart\renpy\script.py", line 310, in load_script
    self.load_appropriate_file(".rpyc", [ "_ren.py", ".rpy" ], dir, fn, initcode)
  File "E:\Cyberheart\renpy\script.py", line 888, in load_appropriate_file
    self.finish_load(stmts, initcode, filename=lastfn) # type: ignore
  File "E:\Cyberheart\renpy\script.py", line 525, in finish_load
    check_name(node)
  File "E:\Cyberheart\renpy\script.py", line 501, in check_name
    raise ScriptError("Name %s is defined twice, at %s:%d and %s:%d." %
ScriptError: Name ('game/scripts/gui/buttons.rpy', 1695532845, 8401) is defined twice, at scripts/gui/buttons.rpyc:1 and game/scripts/gui/english/buttons.rpy:1.

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.3.23091805
 
Thu Dec 28 20:18:48 2023
(1 edit) (+1)

Snap, I'm going to take a look. Thanks for your report! 

Edit: Alright, so you would need to delete 2 files: buttons.rpy and buttons.rpyc in the following directory - game/scripts/gui. I'm not sure how that got duplicated but yeah, it should be this fix!

(+1)

Weirdly those 2 files don’t even exist in the game/scripts/gui directory, I tried launching without any of the localisation folders, that works but obviously missing extras button and maybe else I didn’t catch.

Then I moved the English localisation button files into the general folder, that works best as it has the Extras button and probably shouldn’t cause any more issues.

Thank you for the response, and for making Cyberheart, you’re doing amazing with it. :)

Note: I was on version 0.3 previous to updating via replacing the files in the 0.3 directory with this updates files.

(+1)

Hmmm interesting. I will note this and circle back on this - hopefully I can reproduce the error and get it fixed once and for all. Thank you so much again for reporting this, and I also appreciate the kind words. :D