ZinkoPoly

Member
Game Developer
Jan 9, 2019
207
879
I can't open 'GIRLS' anymore. Got this error. Sorry if that was mentioned before View attachment 3985856
Getting this error trying to access hints for class four:
Code:
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/script.rpy", line 8254, in script
    "{b}Edge{/b} is currently locked up and closed. It's open from 10am to 10pm"
  File "game/script.rpy", line 2995, in execute
    screen girl_screen():
  File "game/script.rpy", line 2995, in execute
    screen girl_screen():
  File "game/script.rpy", line 2998, in execute
    frame:
  File "game/script.rpy", line 3004, in execute
    hbox:
  File "game/script.rpy", line 4181, in execute
    frame:
  File "game/script.rpy", line 4186, in execute
    viewport:
  File "game/script.rpy", line 4192, in execute
    vbox:
  File "game/script.rpy", line 4205, in execute
    if selectedCharacter <> "C_MainC":
  File "game/script.rpy", line 4211, in execute
    text "{size=-10}"+SexHint(selectedCharacter)+"{/size}"
NameError: Name 'Teacher4_Name' is not defined.

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

Full traceback:
  File "game/script.rpy", line 8254, in script
    "{b}Edge{/b} is currently locked up and closed. It's open from 10am to 10pm"
  File "renpy/ast.py", line 921, in execute
    renpy.exports.say(who, what, *args, **kwargs)
  File "renpy/exports.py", line 1373, in say
    who(what, *args, **kwargs)
  File "renpy/character.py", line 1266, in __call__
    self.do_display(who, what, cb_args=self.cb_args, dtt=dtt, **display_args)
  File "renpy/character.py", line 930, in do_display
    **display_args)
  File "renpy/character.py", line 666, in display_say
    rv = renpy.ui.interact(mouse='say', type=type, roll_forward=roll_forward)
  File "renpy/ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "renpy/display/core.py", line 3377, in interact
    repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, pause=pause, pause_start=pause_start, pause_modal=pause_modal, **kwargs) # type: ignore
  File "renpy/display/core.py", line 3810, in interact_core
    root_widget.visit_all(lambda i : i.per_interact())
  File "renpy/display/core.py", line 582, in visit_all
    d.visit_all(callback, seen)
  File "renpy/display/core.py", line 582, in visit_all
    d.visit_all(callback, seen)
  File "renpy/display/core.py", line 582, in visit_all
    d.visit_all(callback, seen)
  File "renpy/display/screen.py", line 451, in visit_all
    callback(self)
  File "renpy/display/core.py", line 3810, in <lambda>
    root_widget.visit_all(lambda i : i.per_interact())
  File "renpy/display/screen.py", line 462, in per_interact
    self.update()
  File "renpy/display/screen.py", line 653, in update
    self.screen.function(**self.scope)
  File "game/script.rpy", line 2995, in execute
    screen girl_screen():
  File "game/script.rpy", line 2995, in execute
    screen girl_screen():
  File "game/script.rpy", line 2998, in execute
    frame:
  File "game/script.rpy", line 3004, in execute
    hbox:
  File "game/script.rpy", line 4181, in execute
    frame:
  File "game/script.rpy", line 4186, in execute
    viewport:
  File "game/script.rpy", line 4192, in execute
    vbox:
  File "game/script.rpy", line 4205, in execute
    if selectedCharacter <> "C_MainC":
  File "game/script.rpy", line 4211, in execute
    text "{size=-10}"+SexHint(selectedCharacter)+"{/size}"
  File "renpy/text/text.py", line 1594, in __init__
    self.set_text(text, scope, substitute)
  File "renpy/text/text.py", line 1712, in set_text
    i, did_sub = renpy.substitutions.substitute(i, scope, substitute)
  File "renpy/substitutions.py", line 278, in substitute
    s = formatter.vformat(s, (), kwargs) # type: ignore
  File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python2.7/string.py", line 563, in vformat
  File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python2.7/string.py", line 585, in _vformat
  File "renpy/substitutions.py", line 168, in get_field
    obj, arg_used = super(Formatter, self).get_field(field_name, args, kwargs)
  File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python2.7/string.py", line 646, in get_field
  File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python2.7/string.py", line 605, in get_value
  File "renpy/substitutions.py", line 236, in __getitem__
    raise NameError("Name '{}' is not defined.".format(key))
NameError: Name 'Teacher4_Name' is not defined.

Windows-10-10.0.19041 AMD64
Ren'Py 7.5.3.22090809
Polyturnon 0.16
Sat Aug 31 16:56:50 2024
Sorry for the error you two are getting. There is a 51kb patch for this located on the first post that contains two files to be overwritten in the 'game' subfolder of the game. Here is a link for convenience:


Oh, while I'm at it, scene 0354_01 doesn't increase the "Fucked" counter (never has, I just didn't bother to bring it up so far, but she's missing 10-20 in my run since that scene triggers quite frequently, not that it matters much :LOL:).
Well, that's embarrassing! I'm glad you spotted it. Just changed it in the code and lowered the frequency to 10% rather than 12% after the first time it occurs. These changes will be seen in the next update of the game. Thank you again for letting me know about these issues!
 
  • Like
Reactions: icesun

Call of Booty

Well-Known Member
Mar 21, 2020
1,184
1,491
Sorry for the error you two are getting. There is a 51kb patch for this located on the first post that contains two files to be overwritten in the 'game' subfolder of the game. Here is a link for convenience: MEGA




Well, that's embarrassing! I'm glad you spotted it. Just changed it in the code and lowered the frequency to 10% rather than 12% after the first time it occurs. These changes will be seen in the next update of the game. Thank you again for letting me know about these issues!
Thanks a lot,Zinko (y)
 
  • Like
Reactions: ZinkoPoly

TheSidewinder

Well-Known Member
Mar 31, 2020
1,621
2,910
***snip***
Well, that's embarrassing! I'm glad you spotted it. Just changed it in the code and lowered the frequency to 10% rather than 12% after the first time it occurs. These changes will be seen in the next update of the game. Thank you again for letting me know about these issues!
Any chance you can post the fix? :)

I looked at the file and it appears the variable should be added to several places within that scene, depending on branches of if/else within it, and not just once. But my coding skills aren't good enough to figure out exactly where and how many times it needs adding.
 

Kavilia

Member
Feb 25, 2018
142
33
4.10 star(s) 35 Votes