jdh1729

Newbie
Sep 22, 2019
18
7
Apologies if this has been asked/answered before, but I just tried replaying the last bit of Chapter 9 to refresh my memory before Chapter 11 comes out, and this happened:


Code:
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/scripts/freeroam/episode9/ep9_freeroam_ph3_events.rpy", line 6093, in <module>
NameError: name 'branchAlone' is not defined

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

Full traceback:
  File "scripts/freeroam/episode9/ep9_freeroam_ph3_events.rpyc", line 6093, in script
  File "renpy/ast.py", line 1898, in execute
    if renpy.python.py_eval(condition):
  File "renpy/python.py", line 2276, in py_eval
    return py_eval_bytecode(code, globals, locals)
  File "renpy/python.py", line 2269, in py_eval_bytecode
    return eval(bytecode, globals, locals)
  File "game/scripts/freeroam/episode9/ep9_freeroam_ph3_events.rpy", line 6093, in <module>
NameError: name 'branchAlone' is not defined

Windows-10-10.0.26100
Ren'Py 7.4.10.2178
Being a DIK 0.10.1
Sat Feb 22 23:13:09 2025
 

mjkgrog

New Member
Sep 15, 2024
8
2
Hello. I run into this issue while trying to launch the game.

I'm sorry, but an uncaught exception occurred.

While running game code:
ScriptError: Name (u'game/scripts/misc/custom_functions.rpy', 1740266410, 407) is defined twice, at game/scripts/misc/custom_functions.rpy:1 and game/scripts/misc/custom_functions.rpy:554.

I have not done anything to it. Why is it a problem?
 

MiltonPowers

Twins Basil! Twins!
Donor
Jul 26, 2023
10,762
22,924
Hello. I run into this issue while trying to launch the game.

I'm sorry, but an uncaught exception occurred.

While running game code:
ScriptError: Name (u'game/scripts/misc/custom_functions.rpy', 1740266410, 407) is defined twice, at game/scripts/misc/custom_functions.rpy:1 and game/scripts/misc/custom_functions.rpy:554.

I have not done anything to it. Why is it a problem?
PC, MAC or Android?
Which file are you trying to open?
Did it work before or is this the first time you have tried to open it?
Have you added a mod?
 

mjkgrog

New Member
Sep 15, 2024
8
2
PC, MAC or Android?
Which file are you trying to open?
Did it work before or is this the first time you have tried to open it?
Have you added a mod?
PC. I have played the game, and was editing some files. I only add color to some choices so it easier to replay, and make it so you don't lose some scenes if you're not Chick. It launched some minutes ago when I wanted to find the name of a song but then when I load it again to try the game it do this.
 

Farkas24

Newbie
Dec 8, 2020
20
6
The code responsible for this scene in the bathroom with Jill is this:


Python:
if affinity != "CHICK" or not renpy.variant("pc"):
    $ ep4_jillShower = False
    scene ep4_after_tennis18 with dissolve
    stop music fadeout 3
    ji "You go ahead and shower first, I'll go stretch meanwhile."
    jump ep4_jill_date_part2_label
elif True:
    scene ep4_after_tennis15 with dissolve
    $ ep4_jillShower = True

In other words, if you're playing on a mobile device (Android) or have neutral or Dik affinity, the scene will not happen.
Dude, you are the MAN! It took some time, but I found the file that contains it, deleted the or not renpy.variant("pc") section, and finally copied the update4.rpy file into the game subfolder and it works. The funny thing is that I remember when this episode came out, I was still playing on PC, but I had this problem even then, but it looks like it was fixed AND modified later.
I'll leave this here in case someone else needs it:
 

MiltonPowers

Twins Basil! Twins!
Donor
Jul 26, 2023
10,762
22,924
PC. I have played the game, and was editing some files. I only add color to some choices so it easier to replay, and make it so you don't lose some scenes if you're not Chick. It launched some minutes ago when I wanted to find the name of a song but then when I load it again to try the game it do this.
It looks like you've changed something you shouldn't have. Did you keep backups of the unedited files? I'd go back to the original and change them slowly, one by one.

Or try deleting 'functions.rpy' & 'functions.rpyc' and put a clean 'functions.rpy' in there. (I don't know if that would work, just something I would try if it was me).

Or there is some people here that know more about coding than I do, that might be able to tell you exactly what to fix. But I have no idea when they'll be on here.
 

mjkgrog

New Member
Sep 15, 2024
8
2
It looks like you've changed something you shouldn't have. Did you keep backups of the unedited files? I'd go back to the original and change them slowly, one by one.

Or try deleting 'functions.rpy' & 'functions.rpyc' and put a clean 'functions.rpy' in there. (I don't know if that would work, just something I would try if it was me).

Or there is some people here that know more about coding than I do, that might be able to tell you exactly what to fix. But I have no idea when they'll be on here.
I did try but so far no fix. I look in file and the two lines it calls out are both init python, it seems maybe there is an issue with that happening twice. But I do not know why? I have not changed that or ever opened the file, so surely it must have been there twice before. I do not know. I will try redownloading the game and seeing what happens.
 
  • Like
Reactions: MiltonPowers

mjkgrog

New Member
Sep 15, 2024
8
2
I did try but so far no fix. I look in file and the two lines it calls out are both init python, it seems maybe there is an issue with that happening twice. But I do not know why? I have not changed that or ever opened the file, so surely it must have been there twice before. I do not know. I will try redownloading the game and seeing what happens.
Ok seems I did fix. I only had to remove a timer from the one causing a problem. Do not know why, but it works.
 
4.80 star(s) 1,594 Votes