Page 5 of 8

Re: Imagebutton GUI Framework [GxImagebuttons]

Posted: Wed Oct 14, 2015 2:11 am
by leon
1. It's an audio channel. Check out documentation on audio actions and Ren'Py audio.
2. It's an ATL effect. You can find a definitions for these elsewhere in the code.

Re: Imagebutton GUI Framework [GxImagebuttons]

Posted: Thu Oct 15, 2015 7:49 am
by bloodyhair
I finally figure out the sound channel. Thank you very much :D

Re: Imagebutton GUI Framework [GxImagebuttons]

Posted: Fri Apr 01, 2016 9:16 pm
by natsumachi
Thank you so much for this tutorial code! I never really understood imagemaps either, and this is so easy to use. My main menu is exactly how I want it now with only a few lines of code. ;w;

Re: Imagebutton GUI Framework [GxImagebuttons]

Posted: Wed Jun 08, 2016 4:38 am
by LimeLord
Ahhh Thanks a ton! Now I can reconfigure things to work the way I want them to.
I was wondering if there was an easier work around for the character's icon in in the text box.
Now I know! HA!

Re: Imagebutton GUI Framework [GxImagebuttons]

Posted: Sat Jun 11, 2016 12:26 pm
by osnofla
Thank you very much for your GUI, reading the comments I'm sure it must be the solution to my problems.
However, I've got some trouble opening the file.
Specifically, I get the following error message:

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/Image buttons GUI sample/example.rpy", line 24, in script
    init python:
  File "game/Image buttons GUI sample/example.rpy", line 27, in <module>
    import keywords
ImportError: No module named keywords

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

Full traceback:
  File "game/Image buttons GUI sample/example.rpy", line 24, in script
    init python:
  File "Z:\FLA884\Renpy\renpy-6.18.1-sdk\renpy\ast.py", line 806, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "Z:\FLA884\Renpy\renpy-6.18.1-sdk\renpy\python.py", line 1577, in py_exec_bytecode
    exec bytecode in globals, locals
  File "game/Image buttons GUI sample/example.rpy", line 27, in <module>
    import keywords
ImportError: No module named keywords

Windows-XP-5.1.2600-SP3
Ren'Py 6.99.10.1227
Renpy Imagebuttons GUI Sample 1.0

Could you (or anybody else) help me with this?
Maybe my Renpy copy missed some file? Am I doing anything wrong (a mistake with the placement of the files)?
Any help would be appreciated, thanks in advance.




EDIT (June 16 2016) - OK, I get it fixed

Re: Imagebutton GUI Framework [GxImagebuttons]

Posted: Sun Jul 31, 2016 5:07 am
by Bryy
Two things:

1) I randomly get a "no click.wav" error
2) I can't properly get imagebuttons on the Nav screen to move past certain xpos and ypos points.

Re: Imagebutton GUI Framework [GxImagebuttons]

Posted: Wed Nov 02, 2016 12:26 am
by Colby Alighieri
Hello! I don't want to necropost but I get this error when I attempt to Launch the Project. Would love to brush up on Imagebuttons again with the latest Ren'Py.

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 0x03D6EE30>

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

Full traceback:
  File "game/example.rpy", line 113, in script
    image example = __Example()
  File "C:\Users\Hp\Desktop\renpy-6.99.11-sdk\renpy-6.99.11-sdk\renpy\ast.py", line 900, in execute
    renpy.exports.image(self.imgname, img)
  File "C:\Users\Hp\Desktop\renpy-6.99.11-sdk\renpy-6.99.11-sdk\renpy\exports.py", line 342, in image
    d = renpy.easy.displayable(d)
  File "C:\Users\Hp\Desktop\renpy-6.99.11-sdk\renpy-6.99.11-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 0x03D6EE30>

Windows-7-6.1.7601-SP1
Ren'Py 6.99.11.1749
Renpy Imagebuttons GUI Sample 1.0

Re: Imagebutton GUI Framework [GxImagebuttons]

Posted: Wed Nov 02, 2016 10:20 pm
by DaKriKi
Colby Alighieri wrote:Hello! I don't want to necropost but I get this error when I attempt to Launch the Project. Would love to brush up on Imagebuttons again with the latest Ren'Py.

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 0x03D6EE30>

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

Full traceback:
  File "game/example.rpy", line 113, in script
    image example = __Example()
  File "C:\Users\Hp\Desktop\renpy-6.99.11-sdk\renpy-6.99.11-sdk\renpy\ast.py", line 900, in execute
    renpy.exports.image(self.imgname, img)
  File "C:\Users\Hp\Desktop\renpy-6.99.11-sdk\renpy-6.99.11-sdk\renpy\exports.py", line 342, in image
    d = renpy.easy.displayable(d)
  File "C:\Users\Hp\Desktop\renpy-6.99.11-sdk\renpy-6.99.11-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 0x03D6EE30>

Windows-7-6.1.7601-SP1
Ren'Py 6.99.11.1749
Renpy Imagebuttons GUI Sample 1.0

What this guy said

Re: Imagebutton GUI Framework [GxImagebuttons]

Posted: Fri Nov 11, 2016 9:20 pm
by LivePlayLove
I tried opening it with Renpy 6.99 but it crashes... :(

Re: Imagebutton GUI Framework [GxImagebuttons]

Posted: Sun Nov 20, 2016 5:05 am
by TheOtherNewGuy
crashes for me too.

Re: Imagebutton GUI Framework [GxImagebuttons]

Posted: Mon Dec 05, 2016 2:11 am
by agl
some error

Re: Imagebutton GUI Framework [GxImagebuttons]

Posted: Tue Dec 27, 2016 3:23 pm
by Shirral
Yeah, same issue here. It seems the two latest releases of Ren'Py have some problem with it; try downloading 6.99.10 - it's still working with this version.

Re: Imagebutton GUI Framework [GxImagebuttons]

Posted: Wed Dec 28, 2016 1:36 am
by Imperf3kt
It's probably the new (very confusing) GUI is not compatible.
For this exact reason, I refuse to use the new GUI as pretty much everything I've spent a year learning, is now moot.

Re: Imagebutton GUI Framework [GxImagebuttons]

Posted: Wed Dec 28, 2016 10:00 am
by trooper6
Imperf3kt wrote:It's probably the new (very confusing) GUI is not compatible.
For this exact reason, I refuse to use the new GUI as pretty much everything I've spent a year learning, is now moot.
It isn't the new GUI. The problem with the framework comes down to how it chooses to show bits of example code. When I get some free time I'll look into a fixing it.

Re: Imagebutton GUI Framework [GxImagebuttons]

Posted: Wed Dec 28, 2016 1:04 pm
by Donmai
trooper6 is right. This project uses an outdated code from the Ren'Py tutorial game to show the code examples on screen. In fact, if you replace the 'example.rpy' script here with a copy of 'examples.rpy' from the tutorial game folder, the project will run. There will still be some problems, due to the different game resolution and text size, but that's a start. You will still have to tweek the transform values, so the sample code appears on the proper place (maybe trying to copy the values from the current script to the new one will do). I'm lacking the time to do it now... :)

Edit (some time later): Yep, I made it work by replacing the old 'example.rpy' with a copy of 'examples.rpy' from a new version of the Ren'Py tutorial game. I just changed lines 12-23 to:

Code: Select all

transform example_transform:
    ypos 140 yanchor 1.0 xpos 0 xanchor 0

    on replace:
        crop (0, 0, 1900, 300)
        linear .5 crop (0, 0, 1900, 120)
    on show:
        crop (0, 0, 1900, 300)
        linear .5 crop (0, 0, 1900, 120)
 
    on hide:
        linear .5 crop (0, 0, 1900, 0)
and lines 102 and 103 to:

Code: Select all

            ct = Text(code, size=12, color="#000")
            vp = Viewport(ct, child_size=(2000, 2000), ymaximum=120, draggable=True, mousewheel=True)