Imagebutton GUI Framework [GxImagebuttons]

A place for Ren'Py tutorials and reusable Ren'Py code.
Forum rules
Do not post questions here!

This forum is for example code you want to show other people. Ren'Py questions should be asked in the Ren'Py Questions and Announcements forum.
Message
Author
User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: Imagebutton GUI Framework [GxImagebuttons]

#76 Post by trooper6 »

Thanks for doing this Donmai, I've been away from home all day and figured I wouldn't be able to fix this until the weekend.
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

User avatar
Donmai
Eileen-Class Veteran
Posts: 1958
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: Imagebutton GUI Framework [GxImagebuttons]

#77 Post by Donmai »

Well, thank you for showing that the solution to the problem was so simple.
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

sarbezleeb
Regular
Posts: 50
Joined: Sun Nov 13, 2016 5:42 am
Tumblr: tunasandwichofdestiny
Skype: sarbezleeb
Soundcloud: charclo
Contact:

Re: Imagebutton GUI Framework [GxImagebuttons]

#78 Post by sarbezleeb »

I added the changes Donmai described earlier but it still seems not to be working. Here's my error:

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/example.rpy", line 113, in script
    image example = __Example()
Exception: Not a displayable: <store._m1_example__Example object at 0x105212b90>

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

Full traceback:
  File "game/example.rpy", line 113, in script
    image example = __Example()
  File "/Applications/renpy-6.99.8-sdk/renpy/ast.py", line 900, in execute
    renpy.exports.image(self.imgname, img)
  File "/Applications/renpy-6.99.8-sdk/renpy/exports.py", line 342, in image
    d = renpy.easy.displayable(d)
  File "/Applications/renpy-6.99.8-sdk/renpy/easy.py", line 105, in displayable
    raise Exception("Not a displayable: %r" % (d,))
Exception: Not a displayable: <store._m1_example__Example object at 0x105212b90>

Darwin-15.6.0-x86_64-i386-64bit
Ren'Py 6.99.11.1749
Renpy Imagebuttons GUI Sample 1.0
Last edited by sarbezleeb on Thu Jan 05, 2017 1:22 pm, edited 1 time in total.

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: Imagebutton GUI Framework [GxImagebuttons]

#79 Post by trooper6 »

On Wednesday Dec 28th I explained what the problem was and Donmai explained how to fix it. Did you read the last four posts?
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

sarbezleeb
Regular
Posts: 50
Joined: Sun Nov 13, 2016 5:42 am
Tumblr: tunasandwichofdestiny
Skype: sarbezleeb
Soundcloud: charclo
Contact:

Re: Imagebutton GUI Framework [GxImagebuttons]

#80 Post by sarbezleeb »

I did, after posting that original message, and I copied and pasted the relevant portions of the script, however it seemed they were already included in my script. This error message seems to refer to something else on a different line.

User avatar
Donmai
Eileen-Class Veteran
Posts: 1958
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: Imagebutton GUI Framework [GxImagebuttons]

#81 Post by Donmai »

Sorry, I should have written a better recipe, but I was in a hurry. First, you have to go to the Ren'Py tutorial game folder and copy examples.rpy from there (be sure to copy it, not simply move it from there, or your Ren'Py tutorial game will stop working). Paste examples.rpy inside the game folder of your Imagebutton GUI Framework. You can now trash the old and outdated example.rpy that's already there. Copy and paste the modifications I have listed to your copy of examples.rpy (it seems you have made it to the old script, that's useless). Everything should work now.
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
kyorin_02
Newbie
Posts: 4
Joined: Sun Mar 05, 2017 11:53 am
Deviantart: nadoChan
Contact:

Re: Imagebutton GUI Framework [GxImagebuttons]

#82 Post by kyorin_02 »

I am having the following error.

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00start.rpy", line 106, in script
    return
Exception: Could not find return label (u'C:\\Users\\6715\\renpy games\\Renpy Imagebuttons GUI sample/game/script.rpy', 1375188938, 104).

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

Full traceback:
  File "renpy/common/00start.rpy", line 106, in script
    return
  File "/Applications/renpy-6.99.11-sdk/renpy/ast.py", line 1367, in execute
    next_node(renpy.game.context().lookup_return(pop=True))
  File "/Applications/renpy-6.99.11-sdk/renpy/execution.py", line 523, in lookup_return
    raise Exception("Could not find return label {!r}.".format(self.return_stack[-1]))
Exception: Could not find return label (u'C:\\Users\\6715\\renpy games\\Renpy Imagebuttons GUI sample/game/script.rpy', 1375188938, 104).

Darwin-15.6.0-x86_64-i386-64bit
Ren'Py 6.99.11.1749
Renpy Imagebuttons GUI Sample 1.0
please help

User avatar
PyTom
Ren'Py Creator
Posts: 16088
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: Imagebutton GUI Framework [GxImagebuttons]

#83 Post by PyTom »

It looks like a game changed to the point where Ren'Py couldn't load it. I don't think this is a framework issue, but there's not much you can do other than start the game over.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

jsnetors
Newbie
Posts: 1
Joined: Thu May 11, 2017 2:37 am
Contact:

Re: Imagebutton GUI Framework [GxImagebuttons]

#84 Post by jsnetors »

Just stopping by to say that this is a huge timesaver! Many thanks!

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: Imagebutton GUI Framework [GxImagebuttons]

#85 Post by trooper6 »

Because some folks have had a hard time following Donmai's instructions on how to fix the Imagebutton tutorial, here is a version of the tutorial with the minor issue fixed so you can load it.
Attachments
ZZ Renpy Imagebuttons GUI sample.zip
(8.49 MiB) Downloaded 1612 times
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

Szymanowski7
Newbie
Posts: 3
Joined: Mon Jun 12, 2017 12:23 pm
Deviantart: szymanowsky7husky
Contact:

Re: Imagebutton GUI Framework [GxImagebuttons]

#86 Post by Szymanowski7 »

trooper6 wrote:Because some folks have had a hard time following Donmai's instructions on how to fix the Imagebutton tutorial, here is a version of the tutorial with the minor issue fixed so you can load it.
OMG thank you so much for uploading this!! I was having the problem to run the old project and have no idea what to do. You're a life saver thanks again ^^

User avatar
shakeyss
Newbie
Posts: 17
Joined: Sun Jun 11, 2017 10:58 am
Projects: Moonlit Tears
Organization: Digilikha Studios
Soundcloud: shakeyss
itch: digilikha
Location: Philippines
Contact:

Re: Imagebutton GUI Framework [GxImagebuttons]

#87 Post by shakeyss »

I just want to comment and say thanks for this, for helping me alot in making my GUI. Kudos

Kamos
Regular
Posts: 33
Joined: Mon Jan 02, 2017 5:18 am
Tumblr: Kamos
Contact:

Re: Imagebutton GUI Framework [GxImagebuttons]

#88 Post by Kamos »

Hmm not work for me :

I'm sorry, but an uncaught exception occurred.

While running game code:
File "game/example.rpy", line 113, in script
image example = __Example()
Exception: Not a displayable: <store._m1_example__Example object at 0x044AD130>

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

Full traceback:
File "D:\renpy-6.99.9-sdk\renpy\bootstrap.py", line 295, in bootstrap
renpy.main.main()
File "D:\renpy-6.99.9-sdk\renpy\main.py", line 419, in main
game.context().run(node)
File "game/example.rpy", line 113, in script
image example = __Example()
File "D:\renpy-6.99.9-sdk\renpy\ast.py", line 911, in execute
renpy.exports.image(self.imgname, img)
File "D:\renpy-6.99.9-sdk\renpy\exports.py", line 347, in image
d = renpy.easy.displayable(d)
File "D:\renpy-6.99.9-sdk\renpy\easy.py", line 108, in displayable
raise Exception("Not a displayable: %r" % (d,))
Exception: Not a displayable: <store._m1_example__Example object at 0x044AD130>

Windows-8-6.2.9200
Ren'Py 6.99.12.4.2187
Renpy Imagebuttons GUI Sample 1.0

User avatar
Donmai
Eileen-Class Veteran
Posts: 1958
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: Imagebutton GUI Framework [GxImagebuttons]

#89 Post by Donmai »

Have you downloaded it from this link? viewtopic.php?p=455107#p455107
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

Zherot
Regular
Posts: 91
Joined: Tue Aug 08, 2017 9:10 pm
Contact:

Re: Imagebutton GUI Framework [GxImagebuttons]

#90 Post by Zherot »

trooper6 wrote: Mon May 22, 2017 2:54 pm Because some folks have had a hard time following Donmai's instructions on how to fix the Imagebutton tutorial, here is a version of the tutorial with the minor issue fixed so you can load it.
Thank you.

Post Reply

Who is online

Users browsing this forum: No registered users