I have an error I don't understand :(

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.
Post Reply
Message
Author
User avatar
Blue Bunny
Newbie
Posts: 18
Joined: Mon May 26, 2008 12:15 pm
Location: ZGZ , SPAIN
Contact:

I have an error I don't understand :(

#1 Post by Blue Bunny » Mon Jun 02, 2008 2:39 pm

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?
Image

User avatar
PyTom
Ren'Py Creator
Posts: 15422
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

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

#2 Post by PyTom » Mon Jun 02, 2008 4:22 pm

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".
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
Blue Bunny
Newbie
Posts: 18
Joined: Mon May 26, 2008 12:15 pm
Location: ZGZ , SPAIN
Contact:

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

#3 Post by Blue Bunny » Tue Jun 03, 2008 8:33 am

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?
Image

User avatar
PyTom
Ren'Py Creator
Posts: 15422
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

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

#4 Post by PyTom » Tue Jun 03, 2008 11:26 am

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?
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
Blue Bunny
Newbie
Posts: 18
Joined: Mon May 26, 2008 12:15 pm
Location: ZGZ , SPAIN
Contact:

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

#5 Post by Blue Bunny » Wed Jun 04, 2008 2:52 pm

I sent you the game via PM , PyTom
Image

User avatar
PyTom
Ren'Py Creator
Posts: 15422
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

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

#6 Post by PyTom » Wed Jun 04, 2008 4:22 pm

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.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
Blue Bunny
Newbie
Posts: 18
Joined: Mon May 26, 2008 12:15 pm
Location: ZGZ , SPAIN
Contact:

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

#7 Post by Blue Bunny » Thu Jun 05, 2008 1:23 pm

Yes.....I worked! Thanks PyTom , I promise to make a good game ^^
Image

Post Reply

Who is online

Users browsing this forum: No registered users