Page 1 of 1

Unable to load a game just saved (Renpy 8.2.0)

Posted: Sun Feb 04, 2024 6:43 pm
by Strec
Hi.
Hope it's here the good location to post this (and sorry for my bad english)

I just start a dev with Renpy 8.2.0, I have very few scripts and screens for now and I have this bug :
- I start the game and save on the first screen
- I can't reload the save and Renpy seems to crash (eternal loop?)

It reproduce in any test.

I surely have a problem in my code but I have no log permitting to catch it (or I can't find the log).

Here's a distrib : https://mega.nz/file/52MVwa6Z#hqN75YZ79 ... PX6PCWa0bA

Re: Unable to load a game just saved (Renpy 8.2.0)

Posted: Sun Feb 04, 2024 9:41 pm
by MrXotic
This is the error :

While running game code:
File "game/script.rpy", line 56, in script call
call showScreenMain
File "game/script.rpy", line 84, in script
while tmpChoice<0:
File "game/script.rpy", line 84, in <module>
while tmpChoice<0:
TypeError: '<' not supported between instances of 'str' and 'int'

It's possible that the error is related to the function `showScreenMain`, as the error occurs when this function is called.
There might be something wrong within this function causing `tmpChoice` to not have the expected value.

To find the exact reason for the error, one would need to inspect the code of the `showScreenMain` function.
`tmpChoice` might be initialized or modified within this function, and that could be where the issue lies.

It would be helpful if you could share the relevant code snippet from the `showScreenMain`
function so that I can better assist you in identifying and resolving the error.

I unfortunately have little experience in programming.
Sorry for my poor English, my native language is German.

Re: Unable to load a game just saved (Renpy 8.2.0)

Posted: Mon Feb 05, 2024 5:10 am
by Strec
The error you speak of concerns the 2nd screen which I did not worked on, so there may be many bugs on it and all the next ones as the application is an old one (more than 2 years) I started from to convert to Renpy 2.0

The problem is that if I save on any screen before this one the saved game can't be reloaded and I have no log showing any error.