Page 1 of 1

I have an error I don't understand :(

Posted: Mon Jun 02, 2008 2:39 pm
by Blue Bunny
Well , I'm making my Main Menu. With the Start button ther's no problem , but , when I want to change the "Continue Game" button , I have this get this error:
I'm sorry, but an exception occured while executing your Ren'Py
script.

Exception: Syntax error on line 6 of C:\Documents and Settings\Usuario\Escritorio\Juegos\renpy-6.6.2-full\renpy-6.6.2\Soft Dreams\game/script.rpy

While compiling python block starting at line 3 of C:\Documents and Settings\Usuario\Escritorio\Juegos\renpy-6.6.2-full\renpy-6.6.2\Soft Dreams\game/script.rpy.
I put this on my script:

Code: Select all

init python:
    theme.image_buttons({
        "Start Game" : ("new.png", "newon.png", "newon.png", "newon.png", "new.png")  
        "Continue Game" ("cont.png", "conton.png", "conton.png", "conton.png", "cont.png") }) 
   
What's bad there?

Re: I have an error I don't understand :(

Posted: Mon Jun 02, 2008 4:22 pm
by PyTom

Code: Select all

init python:
    theme.image_buttons({
        "Start Game" : ("new.png", "newon.png", "newon.png", "newon.png", "new.png"),  
        "Continue Game" : ("cont.png", "conton.png", "conton.png", "conton.png", "cont.png"),
    }) 
There should be a comma after each dictionary, and a colon after "Continue Game".

Re: I have an error I don't understand :(

Posted: Tue Jun 03, 2008 8:33 am
by Blue Bunny
Thanks , It worked. But , now , I've other error too :(
I put this on my script:

Code: Select all

init python:
    theme.image_buttons({
        "Start Game" : ("new.png", "newon.png", "newon.png", "newon.png", "new.png"), 
        "Continue Game" : ("cont.png", "conton.png", "conton.png", "conton.png", "cont.png"),
        "Preferences" : ("pref.png", "prefon.png", "prefon.png", "prefon.png", "pref.png"),
        "Quit" : ("quit.png", "quiton.png", "quiton.png", "quiton.png", "quit.png"),
        "Yes" : ("yes.png" , "yeson.png", "yeson.png", "yeson.png", "yes.png"),
    }) 
   
When I start the game , all things are correctly. But , When I select "Quit" , I have an error , and it created a file into my renpy folder , called "renpy.exe" It's a notepad document. When I open it , it says me:
C:\Documents and Settings\Usuario\Escritorio\Juegos\renpy-6.6.2-full\renpy-6.6.2\renpy\display\render.py:995: DeprecationWarning: integer argument expected, got float
C:\Documents and Settings\Usuario\Escritorio\Juegos\renpy-6.6.2-full\renpy-6.6.2\renpy\display\render.py:995: DeprecationWarning: integer argument expected, got float
C:\Documents and Settings\Usuario\Escritorio\Juegos\renpy-6.6.2-full\renpy-6.6.2\renpy\display\render.py:995: DeprecationWarning: integer argument expected, got float
Can you help me on this?

Re: I have an error I don't understand :(

Posted: Tue Jun 03, 2008 11:26 am
by PyTom
Hm... this has to do with an image being positioned at a non-integer location, which frankly shouldn't happen. Can you send me your game so I can take a look at it?

Re: I have an error I don't understand :(

Posted: Wed Jun 04, 2008 2:52 pm
by Blue Bunny
I sent you the game via PM , PyTom

Re: I have an error I don't understand :(

Posted: Wed Jun 04, 2008 4:22 pm
by PyTom
Try downloading:

http://www.bishoujo.us/svn/renpy/trunk/ ... /render.py

and placing it in renpy-6.6.2/display/render.py

hopefully, that should fix the problem.

Re: I have an error I don't understand :(

Posted: Thu Jun 05, 2008 1:23 pm
by Blue Bunny
Yes.....I worked! Thanks PyTom , I promise to make a good game ^^