Can't use image directory call with dots in filename

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
dorne
Regular
Posts: 116
Joined: Fri Feb 10, 2012 9:30 am
Contact:

Can't use image directory call with dots in filename

#1 Post by dorne »

I have a file called ball.0001.png, placed in the game/images folder. When attempting to call it in script.rpy, it shows the default image. Changing ball.0001.png to ball-0001.png works fine.
Image
A Tale of a Meeting. A short sci-fi VN featuring space opera in one part of the universe.

Dorne's Lets Read Visual Novels
https://www.youtube.com/user/dornevn/videos

User avatar
Donmai
Eileen-Class Veteran
Posts: 1960
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: Can't use image directory call with dots in filename

#2 Post by Donmai »

You shouldn't be using dots in file names, except before the file extension. https://www.renpy.org/doc/html/displayi ... -directory
To completely get rid of any possible problems, your file name should actually be

Code: Select all

ball_0001.png
or

Code: Select all

ball 0001.png
if you want to use 'ball' as a name tag.
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
dorne
Regular
Posts: 116
Joined: Fri Feb 10, 2012 9:30 am
Contact:

Re: Can't use image directory call with dots in filename

#3 Post by dorne »

I see. The program I use opentoonz renders image sequence names as the name dot four number sequence dot png.

If this is not allowed in Ren'Py, I'll need to create a script to convert my image sequences to the appropriate naming scheme. Thanks!
Image
A Tale of a Meeting. A short sci-fi VN featuring space opera in one part of the universe.

Dorne's Lets Read Visual Novels
https://www.youtube.com/user/dornevn/videos

Post Reply

Who is online

Users browsing this forum: No registered users