game directory problem? 'cant locate image!'

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
Soychan
Newbie
Posts: 21
Joined: Wed Jul 20, 2011 6:30 pm
Projects: otome game/ visual novel 'Love swap'
Contact:

game directory problem? 'cant locate image!'

#1 Post by Soychan »

HELLO! i'm having trouble with adding images and music to my ren'py game- the script i've got down and i've been using this tutorial:
http://forums.tigsource.com/index.php?topic=4233.0
aswell as the Ren'py handbook

so, i save the images... they're jpegs and then i copy them into the ' game directory' and add them in like this:
init:
image bg room = "4-2-02-k.jpeg"
$ y = Character("Yui")
$ m = Character("Matsuda")

label start:
scene bg room
y"Oh my god! its already this late?"
which i think is right... But it always says ' cant locate image' and then the dreaded error things and the game wont start...


when i add music. ( which i made on mixcraft and is mp3 format) and put it in the directory and add like this:

label start:

play music "neutral1.mp3"

y"Oh my god! its already this late?"

it doesn't play!
i know i must be doign SOMETHING wrong... i'm just not sure what!
this is a desperate call for help! Thankyou
xxx

Lotus
Veteran
Posts: 298
Joined: Thu Jan 06, 2011 9:28 am
Projects: Unnamed Slenderman VN, Secret 10560
Location: USA
Contact:

Re: game directory problem? 'cant locate image!'

#2 Post by Lotus »

Are you sure you got the names right? Also, do you have your computer set up so that you see file extensions? Sometimes what happens is that people will name a file "music.mp3.mp3", so the file name is wrong and thus won't work.

clannadman

Re: game directory problem? 'cant locate image!'

#3 Post by clannadman »

Try '.jpg' instead of '.jpeg'

Efreet
Regular
Posts: 145
Joined: Sun Mar 02, 2008 5:21 pm
Projects: Denial, Guilt [On Hold]
Location: UK
Contact:

Re: game directory problem? 'cant locate image!'

#4 Post by Efreet »

One way to avoid having this problem is to not hide known extensions for known files.

I'll assume you're using Windows Vista or 7, go into any common window, click 'Organise', click 'Folder and search options', click the 'View' tab, and untick the "Hide extensions for known file types".

A previous poster had an image file named "background.jpeg.jpg", when it should've just been "background.jpg".

Soychan
Newbie
Posts: 21
Joined: Wed Jul 20, 2011 6:30 pm
Projects: otome game/ visual novel 'Love swap'
Contact:

Re: game directory problem? 'cant locate image!'

#5 Post by Soychan »

YESSSS !!! THANKYOU SO MUCH!
Lotus,clannadman and a massive thankyou to Efreet !
I'm not very good with computers so in my eyes you ara genius!!

ah i'm such an idiot , but seriously 5 days of stress, GONE.

I'm sure i'll be back with more questions soon- and i'll be sure to post this game up..somewhere!
Thanks again!
It was the same with the music, i just had to ..show the file things!
<3 <3 <3
Thankyou!

User avatar
Aleema
Lemma-Class Veteran
Posts: 2677
Joined: Fri May 23, 2008 2:11 pm
Organization: happyB
Tumblr: happybackwards
Contact:

Re: game directory problem? 'cant locate image!'

#6 Post by Aleema »

It's about time this went into the FAQ. :)

Post Reply

Who is online

Users browsing this forum: Bing [Bot]