Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Serious Error When Loading Game With Non-Integer Amount of Steps Taken

A topic by alirin created 45 days ago Views: 41 Replies: 3
Viewing posts 1 to 3

I have encountered a serious error when attempting to load the game, and from looking at the error message, it appears to be because the last time the game was saved and closed, the number of steps I had taken was 12.818181818181818, which I think should not be possible. I am not certain how it ended up at this amount, but it began being amounts ending in that decimal after I had reloaded a few times in one session. I could continue reloading with this anomaly until quitting game.py and running it again, and I recall that the number of steps did not go back down when reloading at this point (e.g. if I was at 7.818... steps, took a step, quit to the main menu without saving and continued, it would still say that I had taken 8.818... steps). This originated in PyNori v2.4.0, but an almost identical error occurs when loading a copy of the Pinori.ini file in PyNori v2.5.0. The crash log is below.

= PyNori v2.4.0 Crash Log =

Timestamp: 2026-02-11 23:48:57.612122

Error Message: invalid literal for int() with base 10: '12.818181818181818'

Traceback (oldest to most recent):

  File "C:\Users\tdsfo\Downloads\PyNori v2.4.0\game.py", line 12588, in PreStartup

    AttemptStartup()

    ~~~~~~~~~~~~~~^^

  File "C:\Users\tdsfo\Downloads\PyNori v2.4.0\game.py", line 32, in wrapper

    return func(*args, **kwargs)

  File "C:\Users\tdsfo\Downloads\PyNori v2.4.0\game.py", line 12531, in AttemptStartup

    Log("Starting script."); reminiscing = 1; startup()

                                              ~~~~~~~^^

  File "C:\Users\tdsfo\Downloads\PyNori v2.4.0\game.py", line 32, in wrapper

    return func(*args, **kwargs)

  File "C:\Users\tdsfo\Downloads\PyNori v2.4.0\game.py", line 1310, in startup

    TitleScreen() if not shadorako else TitleScreenShado()

    ~~~~~~~~~~~^^

  File "C:\Users\tdsfo\Downloads\PyNori v2.4.0\game.py", line 32, in wrapper

    return func(*args, **kwargs)

  File "C:\Users\tdsfo\Downloads\PyNori v2.4.0\game.py", line 2121, in TitleScreen

    newGame(); os._exit(0)

    ~~~~~~~^^

  File "C:\Users\tdsfo\Downloads\PyNori v2.4.0\game.py", line 32, in wrapper

    return func(*args, **kwargs)

  File "C:\Users\tdsfo\Downloads\PyNori v2.4.0\game.py", line 3847, in newGame

    steps = int(progress.get('Steps Taken', 0)); Log("Loaded steps.")

Please submit this to https://shirley-xml.itch.io/pynori/community as a Bug Report. Sorry for the inconvenience!

I can't even begin to imagine what caused this. Do you remember what you were doing before the step counter became a decimal? I've never seen this happen before.

(+1)

The counter becoming a decimal happened when I first tried the game out in January but the error didn't happen until I tried playing again when I reported it, so I cannot remember too well. The things that I remember were that I was reloading the save if I ever took a step with no events occurring, both before and after the change in the counter... I encountered several enemies, and I probably tried out most of the options available for each of them since it was my first time playing (although I do not think I ever used an attack), as well as doing the same outside of battle... I encountered a minigame event with the reward of a full heal twice, I think it was rock-paper-scissors or a coin flip, but I'm not sure whether that was before and/or after the counter became a decimal... I likely took at least one break, using other windows on my PC while the game was still running, although I do not know if that could have had any effect... and I was in Kiku Village and don't think I ever chose to continue the mission.

(+1)

Yeah, I'm really unsure what happened there. My only theory is that a wind weather event went off and pushed you back a decimal amount of steps (which shouldn't happen anyway); if not that, I don't know what else could've possibly done this. I'll make the save loading code ensure steps is an integer, but that's really the best I can do as of now.