Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
#0 0xf77d6430 in __kernel_vsyscall ()
#1 0xf763f765 in sem_wait@@GLIBC_2.1 () from /lib32/libpthread.so.0
#2 0xf775fc96 in PyThread_acquire_lock ()
from /home/deekoo/code/renpy-6.11.0a-PRE/renpy-6.11.0b/lib/linux-x86/lib/libpython2.6.so.1.0
#3 0xf7763cb6 in ?? ()
from /home/deekoo/code/renpy-6.11.0a-PRE/renpy-6.11.0b/lib/linux-x86/lib/libpython2.6.so.1.0
#4 0xf76d3a23 in PyCFunction_Call ()
from /home/deekoo/code/renpy-6.11.0a-PRE/renpy-6.11.0b/lib/linux-x86/lib/libpython2.6.so.1.0
#5 0xf7731149 in PyEval_EvalFrameEx ()
from /home/deekoo/code/renpy-6.11.0a-PRE/renpy-6.11.0b/lib/linux-x86/lib/libpython2.6.so.1.0
#6 0xf7731a98 in PyEval_EvalCodeEx ()
from /home/deekoo/code/renpy-6.11.0a-PRE/renpy-6.11.0b/lib/linux-x86/lib/libpython2.6.so.1.0
#7 0xf772f155 in PyEval_EvalFrameEx ()
from /home/deekoo/code/renpy-6.11.0a-PRE/renpy-6.11.0b/lib/linux-x86/lib/libpython2.6.so.1.0
#8 0xf7731a98 in PyEval_EvalCodeEx ()
from /home/deekoo/code/renpy-6.11.0a-PRE/renpy-6.11.0b/lib/linux-x86/lib/libpython2.6.so.1.0
Upon going into fullscreen and back, the window title (the one set in config.window_title) is lost and replaced by "pygame window". Identical on Windows and Linux.
Mihara wrote:
Upon going into fullscreen and back, the window title (the one set in config.window_title) is lost and replaced by "pygame window". Identical on Windows and Linux.
(Hmm... possibly related to this, last night I noticed that both the launcher and the game the launcher launched showed up as 'Renpy.exe' in the Vista app-specific mixer, while with previous versions I've seen the game name in there. I actually had the game running in 6.10 and 6.11 in parallel, the 6.10 one had the window title.)
Upon going into fullscreen and back, the window title (the one set in config.window_title) is lost and replaced by "pygame window". Identical on Windows and Linux.
Yeah, it's true - I've got similiar issue testing Ren'Py on pc at work previously mentioned, running on fully updated windows XP.
Just to understand, I assume games that used previous version and were doing lots of operations with python blocks don't work anymore, right?
(trying to run planet stronghold with this new version but getting many errors in python blocks)
jack_norton wrote:Just to understand, I assume games that used previous version and were doing lots of operations with python blocks don't work anymore, right?
(trying to run planet stronghold with this new version but getting many errors in python blocks)
For what it's worth, I tried the current code for my battle engine in 6.11.0b (on OSX and Windows) and it runs fine... and that uses a lot of python.
Could it be that you were using undocumented methods that might have changed since the previous version?
label usepsionic(pt,p,c,t):
python:
if p==16:#heal
if tmpHero[t][2]>=Hero[t][2]:
#HP already at MAX!!
MessageBox="Target hero Hit Points is already at maximum! Select another hero or cancel the action."
return
I call that label from the battle when character use psionics, and I get the error:
On line 699 of C:\- indie dev -\games\renpy.new\Planet Stronghold\game/script.rpy: 'return' outside function
the return in question is the last line above. I am not sure if is bad to put a return inside a python block, but was working. Anyway will look if I can have this run, since I'm going to start a big public Alpha test of the game and could help test the new Renpy GL version as well.
I seem to recall some mention of changing the way python blocks are parsed: my guess is that what you're doing was only unintentionally allowed in previous versions, since you're trying to do a Ren'Py-script return from within Python code... so it looks to me like the parser is parsing just the Python code in the python: block on its own, sees the return which isn't in a function and errors before it even looks at the parameterised label outside.
Since you don't seem to be doing anything in Ren'Py script inside your function, why not just define it as a Python function in the first place:
init python:
def usepsionic(pt, p, c, t):
if p == 16:
if tmpHero[t][2]>=Hero[t][2]:
#HP already at MAX!!
MessageBox="Target hero Hit Points is already at maximum! Select another hero or cancel the action."
return
#...
Or, if you really want to have a parameterised label instead of a Python function, you could structure your python block so that you don't need to return until after the python block is finished, e.g.:
label usepsionic(pt,p,c,t):
python:
if p==16:#heal
if tmpHero[t][2]>=Hero[t][2]:
#HP already at MAX!!
MessageBox="Target hero Hit Points is already at maximum! Select another hero or cancel the action."
#...
elif p==15:
#...
# Out of the python block now, back in regular Ren'Py script
return
Yes well, I had to return earlier if that condition was satisfied but I just added a control variable "ok" which is True/False.
I now have a more weird bug:
We switched from the "compiler" python compiler to the "ast" python compiler, which is new in Python 2.6. This is partly for speed reasons, and partly because the old one will be going away in Python 3 - so I didn't really want to write new code that used it.
Can I have the rest of the traceback.txt for the ZeroDivisionError? It seems likely to be occuring somewhere inside Ren'Py, rather than being part of what was implemented here.
Supporting creators since 2004 (When was the last time you backed up your game?)
-- Full Traceback ------------------------------------------------------------
File "C:\download\renpy-6.11.0\renpy\bootstrap.py", line 251, in bootstrap
File "C:\download\renpy-6.11.0\renpy\main.py", line 310, in main
File "C:\download\renpy-6.11.0\renpy\main.py", line 93, in run
File "C:\download\renpy-6.11.0\renpy\execution.py", line 243, in run
File "C:\download\renpy-6.11.0\renpy\ast.py", line 340, in execute
File "C:\download\renpy-6.11.0\renpy\exports.py", line 562, in say
File "C:\download\renpy-6.11.0\renpy\character.py", line 675, in __call__
File "C:\download\renpy-6.11.0\renpy\character.py", line 634, in do_display
File "C:\download\renpy-6.11.0\renpy\character.py", line 451, in display_say
File "C:\download\renpy-6.11.0\renpy\ui.py", line 211, in interact
File "C:\download\renpy-6.11.0\renpy\display\core.py", line 1547, in interact
File "C:\download\renpy-6.11.0\renpy\display\core.py", line 2090, in interact_core
File "C:\download\renpy-6.11.0\renpy\display\layout.py", line 638, in event
File "C:\download\renpy-6.11.0\renpy\display\layout.py", line 638, in event
File "C:\download\renpy-6.11.0\renpy\display\layout.py", line 638, in event
File "C:\download\renpy-6.11.0\renpy\display\motion.py", line 790, in event
File "C:\download\renpy-6.11.0\renpy\display\layout.py", line 166, in event
File "C:\download\renpy-6.11.0\renpy\display\motion.py", line 1334, in event
ZeroDivisionError: float division