Code: Select all
While running game code:
File "game/script.rpy", line 53, in script
$ linesToSay = getYourData(harriet.txt)
File "game/script.rpy", line 53, in <module>
$ linesToSay = getYourData(harriet.txt)
NameError: name 'harriet' is not defined
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script.rpy", line 53, in script
$ linesToSay = getYourData(harriet.txt)
File "/Users/veronicalam/Downloads/renpy-6.99.1-sdk/renpy/ast.py", line 785, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "/Users/veronicalam/Downloads/renpy-6.99.1-sdk/renpy/python.py", line 1432, in py_exec_bytecode
exec bytecode in globals, locals
File "game/script.rpy", line 53, in <module>
$ linesToSay = getYourData(harriet.txt)
NameError: name 'harriet' is not defined
Darwin-14.1.0-x86_64-i386-64bit
Ren'Py 6.99.1.329
JERKCITY_DATING_SIM 0.0
Perhaps I'm just way too used to Java. philat, thanks for the tip, because i totally forgot to put in the init!!!
EDIT BECAUSE I FORGOT TO PUT QUOTE MARKS!!
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 53, in script
$ linesToSay = getYourData('harriet.txt')
File "game/script.rpy", line 53, in <module>
$ linesToSay = getYourData('harriet.txt')
File "game/script.rpy", line 18, in getYourData
yourData = file(yourData).read().decode("utf-8")
IOError: [Errno 2] No such file or directory: 'harriet.txt'
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script.rpy", line 53, in script
$ linesToSay = getYourData('harriet.txt')
File "/Users/veronicalam/Downloads/renpy-6.99.1-sdk/renpy/ast.py", line 785, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "/Users/veronicalam/Downloads/renpy-6.99.1-sdk/renpy/python.py", line 1432, in py_exec_bytecode
exec bytecode in globals, locals
File "game/script.rpy", line 53, in <module>
$ linesToSay = getYourData('harriet.txt')
File "game/script.rpy", line 18, in getYourData
yourData = file(yourData).read().decode("utf-8")
IOError: [Errno 2] No such file or directory: 'harriet.txt'
Darwin-14.1.0-x86_64-i386-64bit
Ren'Py 6.99.1.329
JERKCITY_DATING_SIM 0.0
Now i'm getting a filenotfound error, despite the fact that harriet.txt is in the game directory. Is there somewhere else I should be putting it? I feel like I'm getting closer and closer to reaching some kind of terrible breakthrough to making a game where you try to romance a horse_ebooks-like AI.