Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Ren'Py seems to hate naming a character "random"

Full traceback:

  File "game/ep3htv-1.rpy", line 500, in script

    random "I got you brat!!"

  File "F:\Downloads\Games\HerotoVillainRemasteredBetaVersion-0.4.2-pc\renpy\ast.py", line 898, in execute

    raise Exception("Sayer %s is not a function or string." % self.who.encode("utf-8"))

Exception: Sayer b'random' is not a function or string.

Swapped 'random "' with 'rndnpc "' and changed the random character.  Try avoiding key words for characters.

https://vikingfile.com/f/6GLKkJoKj4

Found another bug with oldplayerstartpart42 while playing from the beginning.

Full traceback:

  File "game/ep4htv-1.rpy", line 3301, in script

    if oldplayerstartpart42:

  File "F:\Downloads\Games\HerotoVillainRemasteredBetaVersion-0.4.2-pc\renpy\ast.py", line 2115, in execute

    if renpy.python.py_eval(condition):

  File "F:\Downloads\Games\HerotoVillainRemasteredBetaVersion-0.4.2-pc\renpy\python.py", line 1092, in py_eval

    return py_eval_bytecode(code, globals, locals)

  File "F:\Downloads\Games\HerotoVillainRemasteredBetaVersion-0.4.2-pc\renpy\python.py", line 1085, in py_eval_bytecode

    return eval(bytecode, globals, locals)

  File "game/ep4htv-1.rpy", line 3301, in <module>

    if oldplayerstartpart42:

NameError: name 'oldplayerstartpart42' is not defined

Defaulted oldplayerstart variables to False.  Giving a default to variables will help with save compatibility or if you forget to set a value for fresh starts.

https://vikingfile.com/f/pNIlb4i2aW

(+1)

Ohhhh I see, thanks for the feedback, I’m fixed right now!

(+1)

alr I just fixed the name “random” to “who”, and it’s work perfectly. Once again, thank you!!