_Darkmage_

Active Member
Dec 6, 2019
803
887
Thank you for the file,

I have added the Audio folder under the games folder with the file attached but I am still getting the error on my game.

Thank you for the help and I would appreciate more insight!


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

While running game code:
  File "renpy/common/000statements.rpy", line 123, in execute_play_music
    renpy.music.play(_audio_eval(p["file"]),
  File "renpy/common/000statements.rpy", line 32, in _audio_eval
    return eval(expr, locals=store.audio.__dict__)
  File "game/scripts/day20.rpy", line 10927, in <module>
NameError: name 'bath_relaxing_seductive_beat_2' is not defined

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

Full traceback:
  File "scripts/day20.rpyc", line 10927, in script
  File "C:\Users\Luis Herrera\Documents\AWAAM\A_Wife_And_Mother_Part_2-0.205-pc\A_Wife_And_Mother_Part_2-0.205-pc\renpy\ast.py", line 2259, in execute
    self.call("execute")
  File "C:\Users\Luis Herrera\Documents\AWAAM\A_Wife_And_Mother_Part_2-0.205-pc\A_Wife_And_Mother_Part_2-0.205-pc\renpy\ast.py", line 2241, in call
    return renpy.statements.call(method, parsed, *args, **kwargs)
  File "C:\Users\Luis Herrera\Documents\AWAAM\A_Wife_And_Mother_Part_2-0.205-pc\A_Wife_And_Mother_Part_2-0.205-pc\renpy\statements.py", line 342, in call
    return method(parsed, *args, **kwargs)
  File "renpy/common/000statements.rpy", line 123, in execute_play_music
    renpy.music.play(_audio_eval(p["file"]),
  File "renpy/common/000statements.rpy", line 32, in _audio_eval
    return eval(expr, locals=store.audio.__dict__)
  File "C:\Users\Luis Herrera\Documents\AWAAM\A_Wife_And_Mother_Part_2-0.205-pc\A_Wife_And_Mother_Part_2-0.205-pc\renpy\python.py", line 1153, in py_eval
    return py_eval_bytecode(code, globals, locals)
  File "C:\Users\Luis Herrera\Documents\AWAAM\A_Wife_And_Mother_Part_2-0.205-pc\A_Wife_And_Mother_Part_2-0.205-pc\renpy\python.py", line 1146, in py_eval_bytecode
    return eval(bytecode, globals, locals)
  File "game/scripts/day20.rpy", line 10927, in <module>
NameError: name 'bath_relaxing_seductive_beat_2' is not defined

Windows-10-10.0.22631 AMD64
Ren'Py 8.1.3.23091805
A Wife And Mother Vers. 0.205 0.205
It is a variable name that needs to be defined in the code. There is nothing you can do but press the skip or ignore button to get past this. It should probably be fixed in the next version since most people will encounter it and complain.
 

Bibifoc

Engaged Member
Apr 7, 2018
2,275
4,870
Thank you for the file,

I have added the Audio folder under the games folder with the file attached but I am still getting the error on my game.

Thank you for the help and I would appreciate more insight!


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

While running game code:
  File "renpy/common/000statements.rpy", line 123, in execute_play_music
    renpy.music.play(_audio_eval(p["file"]),
  File "renpy/common/000statements.rpy", line 32, in _audio_eval
    return eval(expr, locals=store.audio.__dict__)
  File "game/scripts/day20.rpy", line 10927, in <module>
NameError: name 'bath_relaxing_seductive_beat_2' is not defined

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

Full traceback:
  File "scripts/day20.rpyc", line 10927, in script
  File "C:\Users\Luis Herrera\Documents\AWAAM\A_Wife_And_Mother_Part_2-0.205-pc\A_Wife_And_Mother_Part_2-0.205-pc\renpy\ast.py", line 2259, in execute
    self.call("execute")
  File "C:\Users\Luis Herrera\Documents\AWAAM\A_Wife_And_Mother_Part_2-0.205-pc\A_Wife_And_Mother_Part_2-0.205-pc\renpy\ast.py", line 2241, in call
    return renpy.statements.call(method, parsed, *args, **kwargs)
  File "C:\Users\Luis Herrera\Documents\AWAAM\A_Wife_And_Mother_Part_2-0.205-pc\A_Wife_And_Mother_Part_2-0.205-pc\renpy\statements.py", line 342, in call
    return method(parsed, *args, **kwargs)
  File "renpy/common/000statements.rpy", line 123, in execute_play_music
    renpy.music.play(_audio_eval(p["file"]),
  File "renpy/common/000statements.rpy", line 32, in _audio_eval
    return eval(expr, locals=store.audio.__dict__)
  File "C:\Users\Luis Herrera\Documents\AWAAM\A_Wife_And_Mother_Part_2-0.205-pc\A_Wife_And_Mother_Part_2-0.205-pc\renpy\python.py", line 1153, in py_eval
    return py_eval_bytecode(code, globals, locals)
  File "C:\Users\Luis Herrera\Documents\AWAAM\A_Wife_And_Mother_Part_2-0.205-pc\A_Wife_And_Mother_Part_2-0.205-pc\renpy\python.py", line 1146, in py_eval_bytecode
    return eval(bytecode, globals, locals)
  File "game/scripts/day20.rpy", line 10927, in <module>
NameError: name 'bath_relaxing_seductive_beat_2' is not defined

Windows-10-10.0.22631 AMD64
Ren'Py 8.1.3.23091805
A Wife And Mother Vers. 0.205 0.205
Can you show me where exactly you created the audio folder?
 

Bibifoc

Engaged Member
Apr 7, 2018
2,275
4,870
It is a variable name that needs to be defined in the code. There is nothing you can do but press the skip or ignore button to get past this. It should probably be fixed in the next version since most people will encounter it and complain.
The name is wrong in the code in the first place, but if he creates a file that matches this wrong name, it will work :D
 
3.20 star(s) 478 Votes