Imagebutton GUI Framework Exemple not working

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
sculpteur
Veteran
Posts: 312
Joined: Fri Nov 17, 2017 6:40 pm
Completed: Apocalypse Lovers
Projects: Apocalypse Lovers
Organization: Awake_Production
Location: France
Discord: https://discord.gg/apocalypse-lovers
Contact:

Imagebutton GUI Framework Exemple not working

#1 Post by sculpteur »

Hi, Iam trying to studies UncleMugen Imagebutton GUI Framework.
( viewtopic.php?t=22565 )

My goal is to gain more skill with image button.

I can read his the script in Renpy but I can't lunch his game.
I need to lunch the game to understand the code.
That's how I work.

When I lunch it, an error message pop directly, saying this :

I'm sorry, but an uncaught exception occurred.

While running game code:
Exception: Not a displayable: <store._m1_example__Example object at 0x04276510>
-- Full Traceback ------------------------------------------------------------

Full traceback:
File "E:\Logiciel\Ren'py FOLDER\renpy-6.99.12.4-sdk\renpy\bootstrap.py", line 295, in bootstrap
renpy.main.main()
File "E:\Logiciel\Ren'py FOLDER\renpy-6.99.12.4-sdk\renpy\main.py", line 419, in main
game.context().run(node)
File "lib/windows-i686/example.rpyc", line 113, in script
File "E:\Logiciel\Ren'py FOLDER\renpy-6.99.12.4-sdk\renpy\ast.py", line 911, in execute
renpy.exports.image(self.imgname, img)
File "E:\Logiciel\Ren'py FOLDER\renpy-6.99.12.4-sdk\renpy\exports.py", line 347, in image
d = renpy.easy.displayable(d)
File "E:\Logiciel\Ren'py FOLDER\renpy-6.99.12.4-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 0x04276510>

Windows-8-6.2.9200
Ren'Py 6.99.12.4.2187
Renpy Imagebuttons GUI Sample 1.0
I don't know what is "store._m1_example", I have research it in the script but didn't find anything.
I'am wondering if maybe its a version issus since the code has been created by UncleMugen en 2013.

Please tell me how to fix it.
Image

“He asked me to calm down, close my eyes and be quiet. He explained to me that if I was afraid, the shadow that ran barefoot in the street would feel it. I got scared seeing Jumanji on TV, so let me tell you, we didn't stay hidden for long and had to start running again.”
Jessica's Diary.

User avatar
RicharDann
Veteran
Posts: 286
Joined: Thu Aug 31, 2017 11:47 am
Contact:

Re: Imagebutton GUI Framework Exemple not working

#2 Post by RicharDann »

The problem is with the example statement, seems like the way examples are handled by Ren'Py changed with recent versions.

EDIT:
Use the example trooper6 linked to below. It's way better than the hacky fix I posted here.

Thank you, trooper6!
Last edited by RicharDann on Fri Dec 15, 2017 9:40 am, edited 1 time in total.
The most important step is always the next one.

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 Exemple not working

#3 Post by trooper6 »

If you continue reading the thread you will notice that a fix to the problem was posted. See this post specifically: viewtopic.php?f=51&t=22565&start=75#p455107
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
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Imagebutton GUI Framework Exemple not working

#4 Post by Imperf3kt »

Note that if you intend to export a game to a mobile platform, the examples will not work, but the game will run, at least on Android.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

sculpteur
Veteran
Posts: 312
Joined: Fri Nov 17, 2017 6:40 pm
Completed: Apocalypse Lovers
Projects: Apocalypse Lovers
Organization: Awake_Production
Location: France
Discord: https://discord.gg/apocalypse-lovers
Contact:

Re: Imagebutton GUI Framework Exemple not working

#5 Post by sculpteur »

Thanks a lot man i think I might use it !
Image

“He asked me to calm down, close my eyes and be quiet. He explained to me that if I was afraid, the shadow that ran barefoot in the street would feel it. I got scared seeing Jumanji on TV, so let me tell you, we didn't stay hidden for long and had to start running again.”
Jessica's Diary.

Post Reply

Who is online

Users browsing this forum: Majestic-12 [Bot], Rhapsy