Renpy 8.1.2 can't save while on screens ?

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
User avatar
jack_norton
Lemma-Class Veteran
Posts: 4085
Joined: Mon Jul 21, 2008 5:41 pm
Completed: Too many! See my homepage
Projects: A lot! See www.winterwolves.com
Tumblr: winterwolvesgames
Contact:

Renpy 8.1.2 can't save while on screens ?

#1 Post by jack_norton »

I am having several new bugs while doing the beta of my new RPG. It's a framework I used for 5 games already and in previous version I never had issues so I think it's something related to the new version. I believe something big changed in how the load/save is handled?

A very simple example I made:

Code: Select all

label BattleRes:
    ""
    call screen BattleResult(pGold=lootGold,pLoot=loot,combat=True)
    $ party.inv.addItemlist(loot)
    $ party.gold += lootGold
    return
if I save while in the "" line (narrator speaking nothing), and reload that save, works.
if I start the next screen BattleResult and save while in it and then reload, it goes back to the "" line
This never happened before. You could definitely save while you were inside a screen! I'm wondering if anyone else found this (but you need to do complex stuff, not regular VN to notice).
follow me on Image Image Image
computer games

User avatar
jack_norton
Lemma-Class Veteran
Posts: 4085
Joined: Mon Jul 21, 2008 5:41 pm
Completed: Too many! See my homepage
Projects: A lot! See www.winterwolves.com
Tumblr: winterwolvesgames
Contact:

Re: Renpy 8.1.2 can't save while on screens ?

#2 Post by jack_norton »

Not just that, but sometimes if I try to save while on the screen and instantly reload that save, I get this:

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/gameflow.rpy", line 515, in script call
    call gamemap from _call_gamemap_1
  File "game/gameflow.rpy", line 805, in script call
    call DoBattle(False) from _call_DoBattle_3
  File "game/script.rpy", line 2139, in script call
    call combatsetup from _call_combatsetup_1
  File "game/script.rpy", line 1301, in script call
    call BattleRes
  File "game/script.rpy", line 1353, in script
    call screen BattleResult(pGold=lootGold,pLoot=loot,combat=True)
  File "renpy/common/000statements.rpy", line 670, in execute_call_screen
    store._return = renpy.call_screen(name, *args, **kwargs)
Exception: Cannot start an interaction in the middle of an interaction, without creating a new context.

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "game/gameflow.rpy", line 515, in script call
    call gamemap from _call_gamemap_1
  File "game/gameflow.rpy", line 805, in script call
    call DoBattle(False) from _call_DoBattle_3
  File "game/script.rpy", line 2139, in script call
    call combatsetup from _call_combatsetup_1
  File "game/script.rpy", line 1301, in script call
    call BattleRes
  File "game/script.rpy", line 1353, in script
    call screen BattleResult(pGold=lootGold,pLoot=loot,combat=True)
  File "C:\renpy\renpy\ast.py", line 2259, in execute
    self.call("execute")
  File "C:\renpy\renpy\ast.py", line 2241, in call
    return renpy.statements.call(method, parsed, *args, **kwargs)
  File "C:\renpy\renpy\statements.py", line 342, in call
    return method(parsed, *args, **kwargs)
  File "renpy/common/000statements.rpy", line 670, in execute_call_screen
    store._return = renpy.call_screen(name, *args, **kwargs)
  File "C:\renpy\renpy\exports.py", line 3347, in call_screen
    rv = renpy.ui.interact(mouse="screen", type="screen", roll_forward=roll_forward)
  File "C:\renpy\renpy\ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "C:\renpy\renpy\display\core.py", line 3556, in interact
    raise Exception("Cannot start an interaction in the middle of an interaction, without creating a new context.")
Exception: Cannot start an interaction in the middle of an interaction, without creating a new context.

Windows-10-10.0.22621 AMD64
Ren'Py 8.1.2.23090503
TOA - An Elven Marriage 0.7.4
Mon Sep 18 09:01:24 2023
not always, seems random. Something is definitely broken in the load/save system I think...!
follow me on Image Image Image
computer games

User avatar
jack_norton
Lemma-Class Veteran
Posts: 4085
Joined: Mon Jul 21, 2008 5:41 pm
Completed: Too many! See my homepage
Projects: A lot! See www.winterwolves.com
Tumblr: winterwolvesgames
Contact:

Re: Renpy 8.1.2 can't save while on screens ?

#3 Post by jack_norton »

For anyone in my situation: I reverted to 8.1 released in June 7, 2023 and all bugs are solved. Load / save works just fine, no crashes, etc. So the issue is definitely between 8.1 and 8.1.2 releases
follow me on Image Image Image
computer games

Post Reply

Who is online

Users browsing this forum: Google [Bot]