Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Oh! Apologies for the delayed response. The error appears when I use

show angel cutin

which is defined as shown in the example on the itch page as

image angel cutin = LayeredImageMask("angel", Transform(crop=(230, 0, 564, 953)), mask="gui/mask.png")

The "angel" image is a layered image defined as

image angel = LiveComposite(
     (277, 277),
     (0, 0), "angelbase@3.png",
     (0, 0), "angel normal",
     (0, 0), WhileSpeaking("angel", "angel talk", "angelbasemouthclosed@3.png"),
     )

However, I also get the error message when I attempt this with a basic png. My renpy version is: 8.3.0.24082114

Thanks again for your time.

The full error message is:

I'm sorry, but an uncaught exception occurred.

While running game code:

  File "game/script.rpy", line 680, in script

    show angel cutin

  File "renpy/common/00layeredimage.rpy", line 1195, in _choose_attributes

    return self.filter_attributes(self.image._choose_attributes(tag, attributes, optional))

AttributeError: 'MultiBox' object has no attribute '_choose_attributes'

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

Full traceback:

  File "game/script.rpy", line 680, in script

    show angel cutin

  File "C:\Users\streg\Documents\Visual Novels\renpy-8.3.0-sdk\renpy\ast.py", line 1111, in execute

    show_imspec(self.imspec, atl=getattr(self, "atl", None))

  File "C:\Users\streg\Documents\Visual Novels\renpy-8.3.0-sdk\renpy\ast.py", line 1074, in show_imspec

    renpy.config.show(name,

  File "C:\Users\streg\Documents\Visual Novels\renpy-8.3.0-sdk\renpy\exports\displayexports.py", line 474, in show

    name, what = _find_image(layer, key, name, what)

  File "C:\Users\streg\Documents\Visual Novels\renpy-8.3.0-sdk\renpy\exports\displayexports.py", line 278, in _find_image

    new_image = renpy.game.context().images.apply_attributes(layer, key, name)

  File "C:\Users\streg\Documents\Visual Novels\renpy-8.3.0-sdk\renpy\display\image.py", line 990, in apply_attributes

    return self.choose_image(nametag, required, optional, name)

  File "C:\Users\streg\Documents\Visual Novels\renpy-8.3.0-sdk\renpy\display\image.py", line 1011, in choose_image

    newattrs = ca(tag, ca_required, ca_optional)

  File "renpy/common/00layeredimage.rpy", line 1195, in _choose_attributes

    return self.filter_attributes(self.image._choose_attributes(tag, attributes, optional))

AttributeError: 'MultiBox' object has no attribute '_choose_attributes'

Windows-10-10.0.19044 AMD64

Ren'Py 8.3.0.24082114

HEATWAVE MINIMUM WAGE MAXIMUM DEBT 1.0

Mon Oct  7 10:23:32 2024

The problem is your angel image is not a layered image - if you don't have a layered image you'd just use regular AlphaMask and not the LayeredImageMask. Layered images are declared like layeredimage angel and have a specific format that Ren'Py expects. I suggest you look into it, as it's the modern and simpler way to put together images with multiple layers. https://www.renpy.org/doc/html/layeredimage.html#LayeredImage

Interesting...Thank you for the reply!