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 5:50 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  [ 35 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
PostPosted: Wed Jun 22, 2011 5:46 pm 
Veteran
User avatar

Joined: Sat Jan 15, 2011 5:41 pm
Posts: 456
Location: England
Projects: Nijiko
Organization: Colorful Visual Arts (formerly Scope Games)
How can I customize the Yes/No screens using screens.rpy? Before, I used a command in option.rpy:

Code:
 layout.ARE_YOU_SURE : "yesno_are_you_sure.png"
  layout.DELETE_SAVE : "yesno_delete_save.png"
  layout.OVERWRITE_SAVE : "yesno_overwrite_save.png"
  layout.LOADING : "yesno_loading.png"
  layout.QUIT : "yesno_quit.png"
  layout.MAIN_MENU : "yesno_main_menu.png" 


However, I know this won't work. So far I've got:

Code:
screen yesno_prompt:

    imagemap:
        ground "yesno_ground.png"
        idle "yesno_idle.png"
        hover "yesno_hover.png"
       
        hotspot (254, 214, 306, 246) clicked("Yes")
        hotspot (338, 214, 386, 246) clicked("No")
   


What do I need to do to offer the different yes/no menu choices?

_________________
New Games as [pen-kun]:
http://colorfulvisualarts.wordpress.com

Old Games as clannadman:
http://clannadppvisualproject.wordpress.com
http://scopegames.wordpress.com


Top
 Profile Send private message  
 
PostPosted: Thu Jun 23, 2011 12:13 pm 
Miko-Class Veteran
User avatar

Joined: Fri Dec 11, 2009 5:25 pm
Posts: 981
Quote:
What do I need to do to offer the different yes/no menu choices?
Well, I can suggest one of two options:
1) Just show prompt message over your imagemap
Code:
screen yesno_prompt:
    modal True
    imagemap:
        ground "yesno_ground.png"
        idle "yesno_idle.png"
        hover "yesno_hover.png"
       
        hotspot (254, 214, 306, 246) clicked yes_action
        hotspot (338, 214, 386, 246) clicked no_action

    label _(message):
            xalign 0.5
            yalign 0.3

2) Show different imagemaps for different prompts:
Code:
screen yesno_prompt:
    modal True

    if message == layout.OVERWRITE_SAVE:
        imagemap:
        ground "yesno_OVERWRITE_SAVE_ground.png"
        idle "yesno_OVERWRITE_SAVE_idle.png"
        hover "yesno_OVERWRITE_SAVE_hover.png"
       
        hotspot (254, 214, 306, 246) clicked yes_action
        hotspot (338, 214, 386, 246) clicked no_action

    elif message == layout.QUIT:
        imagemap:
        ground "yesno_QUIT_ground.png"
        idle "yesno_QUIT_idle.png"
        hover "yesno_QUIT_hover.png"
       
        hotspot (254, 214, 306, 246) clicked yes_action
        hotspot (338, 214, 386, 246) clicked no_action

    else:
    # etc.


http://www.renpy.org/doc/html/screen_special.html#yesno-prompt


Last edited by Alex on Thu Mar 07, 2013 10:37 am, edited 1 time in total.

Top
 Profile Send private message  
 
PostPosted: Thu Jun 23, 2011 5:35 pm 
Veteran
User avatar

Joined: Sat Jan 15, 2011 5:41 pm
Posts: 456
Location: England
Projects: Nijiko
Organization: Colorful Visual Arts (formerly Scope Games)
Can you tell me how the new hotspots work for screens?

Thankyou so much for your help so far :)

_________________
New Games as [pen-kun]:
http://colorfulvisualarts.wordpress.com

Old Games as clannadman:
http://clannadppvisualproject.wordpress.com
http://scopegames.wordpress.com


Top
 Profile Send private message  
 
PostPosted: Thu Jun 23, 2011 6:10 pm 
Miko-Class Veteran
User avatar

Joined: Fri Dec 11, 2009 5:25 pm
Posts: 981
They work the same way, but an old hotspot was (x1, y1, x2, y2) - that are coordinates of top left and bottom right corners of active area, and new one is (x, y, width, height) - the coordinates of top left corner and the width and the height of active area.
Quote:
http://www.renpy.org/doc/html/screens.html#imagemap-statements
(read first about new imagemaps, 'cause hotspots definition has changed).
You are welcome...))


Top
 Profile Send private message  
 
PostPosted: Thu Jun 23, 2011 7:23 pm 
Veteran
User avatar

Joined: Sat Jan 15, 2011 5:41 pm
Posts: 456
Location: England
Projects: Nijiko
Organization: Colorful Visual Arts (formerly Scope Games)
Okay thankyou :)

I'm currently working on the filepicker for Load/Save screens however I can't seem to get the coding right:

Code:
screen file_picker:

   
    imagemap:
        ground "loadsave_ground.png"
        idle "loadsave_idle.png"
        hover "loadsave_hover.png"
        selected_idle "loadsave_selected_idle.png"
        selected_hover "loadsave_selected_hover.png"
       
        hotspot (249, 72, 48, 23) clicked FilePage("previous")
        hotspot (309, 72, 55, 23) clicked FilePage("page_auto")
        hotspot (380, 72, 14, 23) clicked FilePage("page_1")
        hotspot (409, 72, 19, 23) clicked FilePage("page_2")
        hotspot (440, 72, 18, 23) clicked FilePage("page_3")
        hotspot (471, 72, 18, 23) clicked FilePage("page_4")
        hotspot (501, 72, 18, 23) clicked FilePage("page_5")
        hotspot (531, 72, 55, 23) clicked FilePage("next")
                               
        hotspot (246, 110, 342, 63) clicked FileAction("slot_0")
        hotspot (246, 182, 342, 63) clicked FileAction("slot_1")
        hotspot (246, 253, 342, 64) clicked FileAction("slot_2")
        hotspot (246, 326, 342, 64) clicked FileAction("slot_3")
       
        for i in range (1, 4):
       
            button:
                    action FileAction(i)
                    xfill True
                    style "large_button"

                    has hbox
                    # Add the screenshot.
                    add FileScreenshot(i)
                   
                    # Format the description, and add it as text.
                    $ description = "% 2s. %s\n%s" % (
                    FileSlotName(i, columns * rows),
                    FileTime(i, empty=_("Empty Slot.")),
                    FileSaveName(i))

                    text description

                    key "save_delete" action FileDelete(i)
       
       


Any suggestions? I'm trying to the get the details and screenshot of the saves/loads in the slots but I keep getting tracebacks.

_________________
New Games as [pen-kun]:
http://colorfulvisualarts.wordpress.com

Old Games as clannadman:
http://clannadppvisualproject.wordpress.com
http://scopegames.wordpress.com


Top
 Profile Send private message  
 
PostPosted: Fri Jun 24, 2011 12:23 pm 
Miko-Class Veteran
User avatar

Joined: Fri Dec 11, 2009 5:25 pm
Posts: 981
Shhh... I've searched some on forum... and found a good example of code!
Hope Uncle Mugen won't mind if we borrow some code samples...))
http://lemmasoft.renai.us/forums/viewtopic.php?f=8&t=9641
So, clannadman, you don't need the part of code that related to buttons at all.
You need to show screenshots and its descriptions inside the hotspots. If we combine your code with the part of mugenjohncel's code, we'll get
Code:
screen load_save_slot:
    $ file_text = "% 2d. %s\n  %s" % (number, FileTime(number, empty="Empty slot."), FileSaveName(number))

    add FileScreenshot(number) xpos 0 ypos 0
    text file_text xpos 0 ypos 0

screen file_picker:

   
    imagemap:
        ground "loadsave_ground.png"
        idle "loadsave_idle.png"
        hover "loadsave_hover.png"
        selected_idle "loadsave_selected_idle.png"
        selected_hover "loadsave_selected_hover.png"
       
        hotspot (249, 72, 48, 23) clicked FilePage("previous")
        hotspot (309, 72, 55, 23) clicked FilePage("page_auto")
        hotspot (380, 72, 14, 23) clicked FilePage("page_1")
        hotspot (409, 72, 19, 23) clicked FilePage("page_2")
        hotspot (440, 72, 18, 23) clicked FilePage("page_3")
        hotspot (471, 72, 18, 23) clicked FilePage("page_4")
        hotspot (501, 72, 18, 23) clicked FilePage("page_5")
        hotspot (531, 72, 55, 23) clicked FilePage("next")

        hotspot (246, 110, 342, 63) clicked FileAction(0):
            use load_save_slot(number=0)
        hotspot (246, 182, 342, 63) clicked FileAction(1):
            use load_save_slot(number=1)
        hotspot (246, 253, 342, 64) clicked FileAction(2):
            use load_save_slot(number=2)
        hotspot (246, 326, 342, 64) clicked FileAction(3):
            use load_save_slot(number=3)


Top
 Profile Send private message  
 
PostPosted: Fri Jun 24, 2011 12:48 pm 
Veteran
User avatar

Joined: Sat Jan 15, 2011 5:41 pm
Posts: 456
Location: England
Projects: Nijiko
Organization: Colorful Visual Arts (formerly Scope Games)
I've copied the code as stated and it's working :) There's an issue however with screenshot size and also the text that is displayed:

Code:
screen load_save_slot:
    $ file_text = "% 2d. %s\n  %s" % (number, FileTime(number, empty="Empty slot."), FileSaveName(number))

    add FileScreenshot(number) xpos 0 ypos 0
    text file_text xpos 0 ypos 0

screen file_picker:

    imagemap:
        ground "loadsave_ground.png"
        idle "loadsave_idle.png"
        hover "loadsave_hover.png"
        selected_idle "loadsave_selected_idle.png"
        selected_hover "loadsave_selected_hover.png"
       
        hotspot (249, 72, 48, 23) clicked FilePage("previous")
        hotspot (309, 72, 55, 23) clicked FilePage("page_auto")
        hotspot (380, 72, 14, 23) clicked FilePage("page_1")
        hotspot (409, 72, 19, 23) clicked FilePage("page_2")
        hotspot (440, 72, 18, 23) clicked FilePage("page_3")
        hotspot (471, 72, 18, 23) clicked FilePage("page_4")
        hotspot (501, 72, 18, 23) clicked FilePage("page_5")
        hotspot (531, 72, 55, 23) clicked FilePage("next")
                               
        hotspot (246, 110, 342, 63) clicked FileAction(0):
            use load_save_slot(number=0)
        hotspot (246, 182, 342, 63) clicked FileAction(1):
            use load_save_slot(number=1)
        hotspot (246, 253, 342, 64) clicked FileAction(2):
            use load_save_slot(number=2)
        hotspot (246, 326, 342, 64) clicked FileAction(3):
            use load_save_slot(number=3)
   
init -2 python:
   
    style.file_picker_ss_window.xalign = 0.9
    style.file_picker_ss_window.yalign = 0.5
    style.file_picker_text_window.xalign = 0.1
    style.file_picker_text_window.yalign = 0.5   
    config.thumbnail_width = 67
    config.thumbnail_height = 51

I've worked out screenshots but the text displayed for each save file follows the 0. 1. 2. 3. of the code rather than altering the number of the save for each page:
Attachment:
screenshot.PNG
screenshot.PNG [ 433.2 KiB | Viewed 779 times ]

This example is on Page 3 and the save slot should be 11. rather than 2.

_________________
New Games as [pen-kun]:
http://colorfulvisualarts.wordpress.com

Old Games as clannadman:
http://clannadppvisualproject.wordpress.com
http://scopegames.wordpress.com


Top
 Profile Send private message  
 
PostPosted: Sat Jun 25, 2011 3:18 pm 
Miko-Class Veteran
User avatar

Joined: Fri Dec 11, 2009 5:25 pm
Posts: 981
Oh, I had to spent some time to understand how it works myself.
And this is the code I got
Code:
screen my_load:

    # This ensures that any other menu screen is replaced.
    tag menu

    use my_navigation
    imagemap:
        ground "loadsave_ground.png"
        idle "loadsave_idle.png"
        hover "loadsave_hover.png"
        selected_idle "loadsave_selected_idle.png"
        selected_hover "loadsave_selected_hover.png"
       
        hotspot (249, 72, 48, 23) clicked FilePagePrevious()
        hotspot (309, 72, 55, 23) clicked FilePage("auto")
        hotspot (380, 72, 14, 23) clicked FilePage(1)
        hotspot (409, 72, 19, 23) clicked FilePage(2)
        hotspot (440, 72, 18, 23) clicked FilePage(3)
        hotspot (471, 72, 18, 23) clicked FilePage(4)
        hotspot (501, 72, 18, 23) clicked FilePage(5)
        hotspot (531, 72, 55, 23) clicked FilePageNext(5)
                               
        hotspot (246, 110, 342, 63) clicked FileLoad(1):
            use load_save_slot(number=1)
        hotspot (246, 182, 342, 63) clicked FileLoad(2):
            use load_save_slot(number=2)
        hotspot (246, 253, 342, 64) clicked FileLoad(3):
            use load_save_slot(number=3)
        hotspot (246, 326, 342, 64) clicked FileLoad(4):
            use load_save_slot(number=4)
           
screen my_save:

    # This ensures that any other menu screen is replaced.
    tag menu

    use my_navigation
    imagemap:
        ground "loadsave_ground.png"
        idle "loadsave_idle.png"
        hover "loadsave_hover.png"
        selected_idle "loadsave_selected_idle.png"
        selected_hover "loadsave_selected_hover.png"
       
        hotspot (249, 72, 48, 23) clicked FilePagePrevious()
        hotspot (309, 72, 55, 23) clicked FilePage("auto")
        hotspot (380, 72, 14, 23) clicked FilePage(1)
        hotspot (409, 72, 19, 23) clicked FilePage(2)
        hotspot (440, 72, 18, 23) clicked FilePage(3)
        hotspot (471, 72, 18, 23) clicked FilePage(4)
        hotspot (501, 72, 18, 23) clicked FilePage(5)
        hotspot (531, 72, 55, 23) clicked FilePageNext(5)
                               
        hotspot (246, 110, 342, 63) clicked FileSave(1):
            use load_save_slot(number=1)
        hotspot (246, 182, 342, 63) clicked FileSave(2):
            use load_save_slot(number=2)
        hotspot (246, 253, 342, 64) clicked FileSave(3):
            use load_save_slot(number=3)
        hotspot (246, 326, 342, 64) clicked FileSave(4):
            use load_save_slot(number=4)
       
       
           
screen load_save_slot:
    $ file_text = "% 2s. %s\n%s" % (
                        FileSlotName(number, 4),
                        FileTime(number, empty=_("Empty Slot.")),
                        FileSaveName(number))


    add FileScreenshot(number) xpos 0 ypos 0
    text file_text xpos 0 ypos 0
   
    key "save_delete" action FileDelete(number)

Numbers for slots was changed - Ren'py numerates them from 1.
"file_text" format was taken from original "screens.rpy".
Page names should be "auto", "quick" or an integer, so all "page_<number>" was replaced with integers.
http://www.renpy.org/doc/html/screen_actions.html?highlight=filepage#FilePage


Top
 Profile Send private message  
 
PostPosted: Sat Jun 25, 2011 5:02 pm 
Veteran
User avatar

Joined: Sat Jan 15, 2011 5:41 pm
Posts: 456
Location: England
Projects: Nijiko
Organization: Colorful Visual Arts (formerly Scope Games)
I get the following and I think it's referring to the load_save_slot screen:
Code:
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/screens.rpy", line 314, in python
   
  File "game/screens.rpy", line 301, in python
                use load_save_slot(number=1)
  File "game/screens.rpy", line 277, in python
                            FileSaveName(number))
TypeError: %d format: a number is required, not str


Here's the code I have, based on what you sent me:
Code:
screen load_save_slot:
    $ file_text = "% 2d. %s\n  %s" % (
                        FileSlotName(number, 4),
                        FileTime(number, empty=_("Empty Slot.")),
                        FileSaveName(number))

    add FileScreenshot(number) xpos 11 ypos 7
    text file_text xpos 80 ypos 10

screen file_picker:

    imagemap:
        ground "loadsave_ground.png"
        idle "loadsave_idle.png"
        hover "loadsave_hover.png"
        selected_idle "loadsave_selected_idle.png"
        selected_hover "loadsave_selected_hover.png"
       
        hotspot (249, 72, 48, 23) clicked FilePagePrevious()
        hotspot (309, 72, 55, 23) clicked FilePage("auto")
        hotspot (380, 72, 14, 23) clicked FilePage(1)
        hotspot (409, 72, 19, 23) clicked FilePage(2)
        hotspot (440, 72, 18, 23) clicked FilePage(3)
        hotspot (471, 72, 18, 23) clicked FilePage(4)
        hotspot (501, 72, 18, 23) clicked FilePage(5)
        hotspot (531, 72, 55, 23) clicked FilePageNext(5)
                               
        hotspot (246, 110, 342, 63) clicked FileAction(1):
            use load_save_slot(number=1)
        hotspot (246, 182, 342, 63) clicked FileAction(2):
            use load_save_slot(number=2)
        hotspot (246, 253, 342, 64) clicked FileAction(3):
            use load_save_slot(number=3)
        hotspot (246, 326, 342, 64) clicked FileAction(4):
            use load_save_slot(number=4)

           


I'm still using filepicker. Should I change that so I have all the code in the separate load/save screens as you have done?

_________________
New Games as [pen-kun]:
http://colorfulvisualarts.wordpress.com

Old Games as clannadman:
http://clannadppvisualproject.wordpress.com
http://scopegames.wordpress.com


Top
 Profile Send private message  
 
PostPosted: Sat Jun 25, 2011 5:56 pm 
Miko-Class Veteran
User avatar

Joined: Fri Dec 11, 2009 5:25 pm
Posts: 981
About error message. In my code <$ file_text = "% 2s. %s\n%s">, but in yours <$ file_text = "% 2d. %s\n %s">. <%s> means that a string value should be used while <%d> means - data value. Just correct your code.

Quote:
I'm still using filepicker. Should I change that so I have all the code in the separate load/save screens as you have done?
Mmm, look, the default "save" and "load" screens uses "file_picker" for shortening the coding, 'cause this part of script is similar for both screens.
In your case, you made two different sets of screens - the default, that accessed from main menu and your custom (with transparent bg) accessible from ingame. So you got "save"/ "load" screens and "my_save" / "my_load" screens. It would be ok to use "file_picker" in both cases, but it uses <FileAction()> function that works properly this exactly "save" and "load" screens. If you'll try to use it with your "my_save" / "my_load" screens it will only save game, but not load.
So, you'll have to change the code for default menus to make them imagemaps ("file_picker" can be used), and make the set of "my_..." screens. And in "my_save" / "my_load" screens, instead of <use file_picker>, you'll have to type the code for save slots with <FileSave()> and <FileLoad()> functions to make them work right.


Top
 Profile Send private message  
 
PostPosted: Sat Jun 25, 2011 6:14 pm 
Veteran
User avatar

Joined: Sat Jan 15, 2011 5:41 pm
Posts: 456
Location: England
Projects: Nijiko
Organization: Colorful Visual Arts (formerly Scope Games)
Thankyou for being so helpful :) I think I have one last query and then everything should be up and running smoothly.

I've experienced a problem with my Yes/No menus. Sometimes the actions they take don't do as they say they will and upon altering the action of the hotspots, I now get a complaint from Renpy about an str object not being callable. What is the correct action for this section to make the Yes/No hotspots do their intended task?

My code at the moment:

Code:
screen yesno_prompt:
   
    modal True
   
    if message == layout.ARE_YOU_SURE:
        imagemap:
            ground "yesno_are_you_sure.png"
            idle "yesno_idle.png"
            hover "yesno_hover.png"
       
            hotspot (254, 214, 52, 32) action ("Yes")
            hotspot (338, 214, 48, 32) action ("No")
   

    if message == layout.OVERWRITE_SAVE:
        imagemap:
            ground "yesno_overwrite_save.png"
            idle "yesno_idle.png"
            hover "yesno_hover.png"
       
            hotspot (254, 214, 52, 32) action ("Yes")
            hotspot (338, 214, 48, 32) action ("No")

    if message == layout.DELETE_SAVE:
        imagemap:
            ground "yesno_delete_save.png"
            idle "yesno_idle.png"
            hover "yesno_hover.png"
       
            hotspot (254, 214, 52, 32) action ("Yes")
            hotspot (338, 214, 48, 32) action ("No")
       
    if message == layout.LOADING:
        imagemap:
            ground "yesno_loading.png"
            idle "yesno_idle.png"
            hover "yesno_hover.png"
       
            hotspot (254, 214, 52, 32) action ("Yes")
            hotspot (338, 214, 48, 32) action ("No")
       
    if message == layout.QUIT:
        imagemap:
            ground "yesno_quit.png"
            idle "yesno_idle.png"
            hover "yesno_hover.png"
       
            hotspot (254, 214, 52, 32) action ("Yes")
            hotspot (338, 214, 48, 32) action ("No")

    if message == layout.MAIN_MENU:
        imagemap:
            ground "yesno_main_menu.png"
            idle "yesno_idle.png"
            hover "yesno_hover.png"
       
            hotspot (254, 214, 52, 32) action ("Yes")
            hotspot (338, 214, 48, 32) action ("No")


I have also tried out:

Code:
hotspot (254, 214, 52, 32) clicked ("Yes")
            hotspot (338, 214, 48, 32) clicked ("No")


...and:
Code:
hotspot (254, 214, 52, 32) Return ("True")
            hotspot (338, 214, 48, 32) Return ("False")

_________________
New Games as [pen-kun]:
http://colorfulvisualarts.wordpress.com

Old Games as clannadman:
http://clannadppvisualproject.wordpress.com
http://scopegames.wordpress.com


Top
 Profile Send private message  
 
PostPosted: Sat Jun 25, 2011 6:31 pm 
Miko-Class Veteran
User avatar

Joined: Fri Dec 11, 2009 5:25 pm
Posts: 981
Well, everything is in "screens.rpy", just look through the code for default "yesno_prompt" screen...))
So, instead of all <action ("Yes")> / <action ("No")>, there should be <action yes_action> / <action no_action>.


Top
 Profile Send private message  
 
PostPosted: Sat Jun 25, 2011 7:17 pm 
Veteran
User avatar

Joined: Sat Jan 15, 2011 5:41 pm
Posts: 456
Location: England
Projects: Nijiko
Organization: Colorful Visual Arts (formerly Scope Games)
Thankyou so much for your help. Sorry about being such a newbie but I didn't even realize screens.rpy existed until a few days ago ._. I'll make sure to credit you for your help :)

_________________
New Games as [pen-kun]:
http://colorfulvisualarts.wordpress.com

Old Games as clannadman:
http://clannadppvisualproject.wordpress.com
http://scopegames.wordpress.com


Top
 Profile Send private message  
 
PostPosted: Fri Aug 05, 2011 12:40 am 
Newbie

Joined: Wed Jul 20, 2011 10:26 am
Posts: 20
Hi, I´m having the same problem with my str not callable and I´m also a noob , so sorry if Im repeating somone or myself, I already checked the post related to this issue but I´m stillnot capable of solving it (also thanks alex for helping me so much with the other problems).

In my main menu I added an about button (just like the cookbook says ) but I´m still getting that error, the button is there but when you click it it crashes, this is my code:

Code:
init:
    # Adding about button to main menu
    $ config.main_menu.insert(3, ('About', _intra_jumps("about", "main_game_transition"), "True"))

# About box
label about:
    python hide:
        renpy.transition(config.intra_transition)
        ui.window(style=style.gm_root)
        ui.frame(ymargin=10, xmargin=10, style=style.menu_frame)
        ui.side(['t', 'c', 'r', 'b'], spacing=2)
       
        # Here you put the title of your VN
        layout.label("My visual novel", None)
       
        vp = ui.viewport(mousewheel=True)

        # This is where the text will go. You can use all the usual tags.
        ui.text(u"Informacion sobre este juego \n EL juego Fue creado....\npor motivo de.....\n ")
        ui.bar(adjustment=vp.yadjustment, style='vscrollbar')
       
        layout.button(u"Return to menu", None, clicked=ui.jumps("main_menu_screen"))
        ui.close()
        ui.interact()
    return


And this is the tracebck : (By the way, do I use the code button in the posts for errors too?)

Code:
While running game code:
TypeError: 'str' object is not callable

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

Full traceback:
  File "C:\Documents and Settings\Administrador\Mis documentos\Descargas\emgine graphic adcentures\renpy-6.12.1\renpy\execution.py", line 261, in run
  File "C:\Documents and Settings\Administrador\Mis documentos\Descargas\emgine graphic adcentures\renpy-6.12.1\renpy\ast.py", line 630, in execute
  File "C:\Documents and Settings\Administrador\Mis documentos\Descargas\emgine graphic adcentures\renpy-6.12.1\renpy\python.py", line 960, in py_exec_bytecode
  File "renpy-6.12.0-mainline/common/_layout/screen_load_save.rpym", line 17, in <module>
  File "C:\Documents and Settings\Administrador\Mis documentos\Descargas\emgine graphic adcentures\renpy-6.12.1\renpy\ui.py", line 236, in interact
  File "C:\Documents and Settings\Administrador\Mis documentos\Descargas\emgine graphic adcentures\renpy-6.12.1\renpy\display\core.py", line 1641, in interact
  File "C:\Documents and Settings\Administrador\Mis documentos\Descargas\emgine graphic adcentures\renpy-6.12.1\renpy\display\core.py", line 2215, in interact_core
  File "C:\Documents and Settings\Administrador\Mis documentos\Descargas\emgine graphic adcentures\renpy-6.12.1\renpy\display\layout.py", line 696, in event
  File "C:\Documents and Settings\Administrador\Mis documentos\Descargas\emgine graphic adcentures\renpy-6.12.1\renpy\display\layout.py", line 696, in event
  File "C:\Documents and Settings\Administrador\Mis documentos\Descargas\emgine graphic adcentures\renpy-6.12.1\renpy\display\layout.py", line 696, in event
  File "C:\Documents and Settings\Administrador\Mis documentos\Descargas\emgine graphic adcentures\renpy-6.12.1\renpy\display\screen.py", line 297, in event
  File "C:\Documents and Settings\Administrador\Mis documentos\Descargas\emgine graphic adcentures\renpy-6.12.1\renpy\display\layout.py", line 696, in event
  File "C:\Documents and Settings\Administrador\Mis documentos\Descargas\emgine graphic adcentures\renpy-6.12.1\renpy\display\layout.py", line 174, in event
  File "C:\Documents and Settings\Administrador\Mis documentos\Descargas\emgine graphic adcentures\renpy-6.12.1\renpy\display\layout.py", line 696, in event
  File "C:\Documents and Settings\Administrador\Mis documentos\Descargas\emgine graphic adcentures\renpy-6.12.1\renpy\display\behavior.py", line 623, in event
  File "C:\Documents and Settings\Administrador\Mis documentos\Descargas\emgine graphic adcentures\renpy-6.12.1\renpy\display\behavior.py", line 204, in run
TypeError: 'str' object is not callable

Windows-XP-5.1.2600-SP2
Ren'Py 6.12.1.1501
A Ren'Py Game 0.0


Top
 Profile Send private message  
 
PostPosted: Fri Aug 05, 2011 3:44 pm 
Miko-Class Veteran
User avatar

Joined: Fri Dec 11, 2009 5:25 pm
Posts: 981
Hm, I've copy/pasted your code and it worked for me... Seems, that problem not in this part of code. Build the distribution of your project and attach it to the post to let people check it.


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 35 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: HeavenlyJoker


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