Lemma Soft Forums

Supporting creators of visual novels and story-based games since 2003.


Visit our new games list, blog aggregator, IRC, and wiki.
Activation problem? Email [email protected]
It is currently Tue Jun 18, 2013 9:58 pm

All times are UTC - 5 hours [ DST ]


Forum rules


Ask questions about one topic per thread, and use a descriptive subject. "NotImplemented error in script.rpy" is a good subject, "Tom's problems" is not. Remember to include all of traceback.txt or error.txt when reporting a problem, as well as the relevant lines of script. Use the [code] tag to format scripts.



Post new topic Reply to topic  [ 179 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 12  Next
Author Message
PostPosted: Fri Jul 09, 2010 4:59 am 
Veteran
User avatar

Joined: Fri Nov 14, 2008 7:59 pm
Posts: 236
Location: Behind you.
Completed: Science Girls!, Date Warp, CKK/Unix port, Magical Diary
Projects: Where Are You, Cthulhu?
SDL_AUDIODRIVER=null, alsa, and oss all show the locking bug, as does unsetting SDL_AUDIODRIVER; a gdb backtrace shows
Code:
#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

_________________
Nom nom nom nom nom LEAVES.


Top
 Profile Send private message  
 
PostPosted: Fri Jul 09, 2010 5:15 am 
Regular
User avatar

Joined: Thu Mar 11, 2010 2:52 pm
Posts: 113
Location: Moscow, Russia
Found another small bug.

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.


Top
 Profile Send private message  
 
PostPosted: Fri Jul 09, 2010 5:24 am 
Support Hero
User avatar

Joined: Sat Jun 17, 2006 7:28 pm
Posts: 3777
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.)

_________________
Image


Top
 Profile Send private message  
 
PostPosted: Fri Jul 09, 2010 5:40 am 
Veteran
User avatar

Joined: Sun Feb 01, 2009 6:15 pm
Posts: 433
Projects: Enough to keep me occupied.
Mihara wrote:
Found another small bug.

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.

_________________
http://www.visual-novels.pl/ - Polish visual novel translation and development community
------------------------------------------------------------------------------------------------------------
Wise men search for answers. Don't be foolish, use the force.
Join us on official Ren'Py IRC!


Top
 Profile Send private message  
 
PostPosted: Fri Jul 09, 2010 6:13 pm 
Regular
User avatar

Joined: Thu Mar 11, 2010 2:52 pm
Posts: 113
Location: Moscow, Russia
Aaand... another small bug found. :)

NVL mode, auto-forward mode enabled. Once it hits a piece like
Code:
    nvl clear
    ""


intended to display an empty page with a click to continue indicator on it, auto-forward does not proceed past it.


Top
 Profile Send private message  
 
PostPosted: Sat Jul 10, 2010 12:59 am 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 10848
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Spiky, can you try running:

renpy.sh --trace --trace tutorial

? That will create a ginormous trace.txt file, I only need the last hundred lines or so of it.

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004; Code > Drama
(When was the last time you backed up your game?)
"It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming" - Theodore Roosevelt


Top
 Profile Send private message  
 
PostPosted: Sat Jul 10, 2010 1:52 am 
Veteran
User avatar

Joined: Fri Nov 14, 2008 7:59 pm
Posts: 236
Location: Behind you.
Completed: Science Girls!, Date Warp, CKK/Unix port, Magical Diary
Projects: Where Are You, Cthulhu?
Done and attached. The tutorial appeared to start normally (aside from taking forever) and quit normally when I hit the quit button.


Attachments:
traceend.txt [3.26 KiB]
Downloaded 4 times

_________________
Nom nom nom nom nom LEAVES.
Top
 Profile Send private message  
 
PostPosted: Sat Jul 10, 2010 4:14 am 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 10848
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Hm... now can you try it on the game with the problem?

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004; Code > Drama
(When was the last time you backed up your game?)
"It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming" - Theodore Roosevelt


Top
 Profile Send private message  
 
PostPosted: Sat Jul 10, 2010 5:09 am 
Lemma-Class Veteran
User avatar

Joined: Mon Jul 21, 2008 5:41 pm
Posts: 3421
Projects: Planet Stronghold: Warzone, Loren The Amazon Princess, Queen Of Thieves, DIM, Undead Lily, and more...
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)

_________________
follow me on Image Image Image Image
computer games


Top
 Profile Send private message  
 
PostPosted: Sat Jul 10, 2010 5:51 am 
Support Hero
User avatar

Joined: Sat Jun 17, 2006 7:28 pm
Posts: 3777
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?

_________________
Image


Top
 Profile Send private message  
 
PostPosted: Sat Jul 10, 2010 6:17 am 
Lemma-Class Veteran
User avatar

Joined: Mon Jul 21, 2008 5:41 pm
Posts: 3421
Projects: Planet Stronghold: Warzone, Loren The Amazon Princess, Queen Of Thieves, DIM, Undead Lily, and more...
Ah, well :D I am using lots of weird stuff, but maybe you're right. A bug I have for example is:
Code:
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:
Code:
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.

_________________
follow me on Image Image Image Image
computer games


Top
 Profile Send private message  
 
PostPosted: Sat Jul 10, 2010 7:01 am 
Support Hero
User avatar

Joined: Sat Jun 17, 2006 7:28 pm
Posts: 3777
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:

Code:
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.:
Code:
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

_________________
Image


Top
 Profile Send private message  
 
PostPosted: Sat Jul 10, 2010 7:08 am 
Lemma-Class Veteran
User avatar

Joined: Mon Jul 21, 2008 5:41 pm
Posts: 3421
Projects: Planet Stronghold: Warzone, Loren The Amazon Princess, Queen Of Thieves, DIM, Undead Lily, and more...
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:
Code:
ZeroDivisionError: float division

While running game code:
 - script at line 90 of C:\- indie dev -\games\renpy.new\Planet Stronghold\game/story.rpy

and the line:
Code:
ts "You! Are you Private Nelson? %(pname)s?"

the variable pname is assigned just a few lines above with:
Code:
    if rx==0:
        $  he="he";his="his";him="him";He="He";His="His";mainc="i_gunnar";pname="Gunnar Nelson";rpgc="gunnar";spn="Gunnar"
    else:
        $  he="she";his="her";him="her";He="She";His="Her";mainc="i_lisa";pname="Lisa Nelson";rpgc="lisa";spn="Lisa"

so this time seems to me it should work, since I am not doing anything particulary foolish :)

_________________
follow me on Image Image Image Image
computer games


Top
 Profile Send private message  
 
PostPosted: Sat Jul 10, 2010 11:05 am 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 10848
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
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.

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004; Code > Drama
(When was the last time you backed up your game?)
"It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming" - Theodore Roosevelt


Top
 Profile Send private message  
 
PostPosted: Sat Jul 10, 2010 11:11 am 
Lemma-Class Veteran
User avatar

Joined: Mon Jul 21, 2008 5:41 pm
Posts: 3421
Projects: Planet Stronghold: Warzone, Loren The Amazon Princess, Queen Of Thieves, DIM, Undead Lily, and more...
There you go:
Code:
-- 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

_________________
follow me on Image Image Image Image
computer games


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 179 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 12  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: kuri_chii


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Protected by Anti-Spam ACP
Powered by phpBB® Forum Software © phpBB Group