Ren'Py A lot of " TypeError: '>=' not supported between instances of 'str' and 'int' " errors

69BOI69

Member
Jul 24, 2020
125
141
142
this happens with half the repny games I play, more specifically old games updated to use the newer Renpy, on PC and android and I'm getting to the point of just learning how to code so I can fix this stuff. I de-compiled specifically " Love at First Tale " by MrDracosaurus and I'm looking at the specific error which occurs when trying to buy something

Code:
I'm sorry, but an uncaught exception occurred.
While running game code:
  File "game/scripts/locations/mall/mall.rpy", line 245, in <module>
TypeError: '>=' not supported between instances of 'str' and 'int'
-- Full Traceback ------------------------------------------------------------
Full traceback:
  File "scripts/locations/mall/mall.rpyc", line 245, in script
  File "renpy/ast.py", line 1843, in execute
  File "renpy/python.py", line 1209, in py_eval
  File "renpy/python.py", line 1202, in py_eval_bytecode
  File "game/scripts/locations/mall/mall.rpy", line 245, in <module>
TypeError: '>=' not supported between instances of 'str' and 'int'
I'm trying to look online but everything is going over my head since the last thing I programmed was in HTML in middle school. I understand the issue but not a solution.
 

69BOI69

Member
Jul 24, 2020
125
141
142
I have fixed the issue, however I need to take a shit. adding:

$ money = int(money)
$ hair_brush.price = int(hair_brush.price)
before the check seemed to have fixed it although I couldn't edit within thr RPA file, I just removed it and instead put the decompiled script into the /game folder