Is 'images' directory working ok? [FIXED]

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
User avatar
xavimat
Eileen-Class Veteran
Posts: 1460
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love, unknown
Organization: Pilgrim Creations
Github: xavi-mat
itch: pilgrimcreations
Location: Spain
Contact:

Is 'images' directory working ok? [FIXED]

#1 Post by xavimat »

EDIT: Fixed in 6.99.4

I've put this files in the images directory:

Code: Select all

images/bg meadow.jpg
images/sylvie.png
images/sylvie smile.png
And used this simple code:

Code: Select all

label start:
    scene bg meadow
    show sylvie
    s "You've created a new Ren'Py game."
    show sylvie smile
    s "Once you add a story, pictures, and music, you can release it to the world!"
    return
It shows a red in-game error instead of the "sylvie smile" image: "Image 'sylvie' can't take parameters 'smile'. (Perhaps you got the name wrong?)"

It works fine renaming the file "sylvie.png" to "sylvie normal.png" and showing it with "show sylvie normal" instead of "show sylvie".

Is this an expected behaviour or a bug? The explanation in the docs doesn't tell about the need of tags in the image names.
http://renpy.org/doc/html/displaying_im ... -directory

The explanation about the older "config.automatic_images" did:
http://renpy.org/doc/html/config.html#v ... UMENTATION IN config.automatic_images:
...
If the name consists of at least two components, and no image with that name already is defined, Ren'Py will define that image to refer to a filename.
With the example list of separators, if your game directory contains:
eileen_happy.png, Ren'Py will define the image "eileen happy".
lucy/mad.png, Ren'Py will define the image "lucy mad".
mary.png, Ren'Py will do nothing. (As the image does not have two components.)[/quote]

Personally, I'd prefer that names with only one component could be used too, like in my first example. It seems more intuitive for me, and the developer can avoid to write the "normal" tag every time.
Last edited by xavimat on Fri May 29, 2015 4:25 am, edited 2 times in total.
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

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: Is 'images' directory working ok?

#2 Post by PyTom »

This will be fixed in the next release of 6.99.4.
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

User avatar
xavimat
Eileen-Class Veteran
Posts: 1460
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love, unknown
Organization: Pilgrim Creations
Github: xavi-mat
itch: pilgrimcreations
Location: Spain
Contact:

Re: Is 'images' directory working ok?

#3 Post by xavimat »

Thanks, Tom. I'll check the nightly in a few days.
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

User avatar
xavimat
Eileen-Class Veteran
Posts: 1460
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love, unknown
Organization: Pilgrim Creations
Github: xavi-mat
itch: pilgrimcreations
Location: Spain
Contact:

Re: Is 'images' directory working ok?

#4 Post by xavimat »

Tested. :)
Is working OK in the new release 6.99.4.467
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

Post Reply

Who is online

Users browsing this forum: No registered users