- May 4, 2017
- 737
- 2,131
Hi there!
Since some time, I systematically convert RenPy games to the 7.4.x version (yes, I have 2 good reasons to do it, so I do it ).
It almost always works perfectly, on rare occasions there's just a little thing to change and I'm happy.
Except that now, I'm stuck.
The game, Tales of Terrara, works fine with RenPy 7.3.5, but with RenPy 7.4.8, I have a "
The code pointed by the error is the
I checked google, what I found there is code compliant. So, I don't know...
Since some time, I systematically convert RenPy games to the 7.4.x version (yes, I have 2 good reasons to do it, so I do it ).
It almost always works perfectly, on rare occasions there's just a little thing to change and I'm happy.
Except that now, I'm stuck.
The game, Tales of Terrara, works fine with RenPy 7.3.5, but with RenPy 7.4.8, I have a "
TypeError: type() argument 1 must be string, not unicode
"The code pointed by the error is the
return type(...)
:
Python:
init python:
def enum(**enums):
return type(str('Enum'), (), enums)
Creaturesize = enum(tiny=1, small=2, medium=3, large=4, huge=5, gargantuan=6)
...