I recently updated Ren'Py, after not noticing that there was a Ren'Py update button included in the launcher. I - have no excuses, but I am somewhat regretting it.
You see, the game that I have been working on quietly for quite some time just started spitting up the following -
Indeed, every work I've done that includes nvl-mode 'narrators' seems to be dying from uncalled eval()!
No clue what was updated(?) to mess around with the old way novel-mode was called (if that is indeed the problem).
I'm not worried about losing anything; I've got backups of my backups and can always just re-install older versions of Ren'Py if I understand.
Things I have tried:
* Deleting/re-unzipping Ren'Py
* Updating to Nightly
* Forcing Recompile
* Leaving strings empty ("")
* Changing the dynamic narrators from None to "None"
Status: Solved! I feel I had a reason for using Dynamic nvl-mode narrators, but I can't recall for life of me remember what it was so out with the bathwater it goes.
For those with similar issues, either change the DynamicCharacter from None to "None" or more easily, just remove their Dynamic nature in the first place.
Thanks PyTom, mobychan and korova!
Will update as possible. Please note that the text called has been changed and Downtempo is a working title, but what can you do.
Hopefully this helps you help me, or anyone else with a similar problem. I have looked for nvl-mode/novel-mode crashes in the search function, and had no luck.
Thanks for your time!
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 161, in script
narrator "This is sample text."
TypeError: eval() arg 1 must be a string or code object
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script.rpy", line 161, in script
narrator "This is sample text."
File "C:\Visual Novels\renpy-6.99.8-sdk\renpy\ast.py", line 603, in execute
renpy.exports.say(who, what, interact=self.interact)
File "C:\Visual Novels\renpy-6.99.8-sdk\renpy\exports.py", line 1121, in say
who(what, interact=interact)
File "C:\Visual Novels\renpy-6.99.8-sdk\renpy\character.py", line 798, in __call__
who = renpy.python.py_eval(who)
File "C:\Visual Novels\renpy-6.99.8-sdk\renpy\python.py", line 1490, in py_eval
return py_eval_bytecode(code, globals, locals)
File "C:\Visual Novels\renpy-6.99.8-sdk\renpy\python.py", line 1485, in py_eval_bytecode
return eval(bytecode, globals, locals)
TypeError: eval() arg 1 must be a string or code object
Windows-7-6.1.7601-SP1
Ren'Py 6.99.8.959
Downtempo