Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / sub folder with loadimage.

Author
Message
Hubert BAYRE
6
Years of Service
User Offline
Joined: 21st Oct 2017
Location: France
Posted: 29th Nov 2017 11:13
Hello.

"Could not find image: media/diaporamas/test.jpg in main.agc at line 136"

Could you specify a sub folder with loadimage ?




Many thanks !
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 29th Nov 2017 17:22
Have you used the correct upper/lower case in the folder and filename?
Does the file definitely exist?
Have you changed the path anywhere else in your code? Try...

Path = "\media\diaporamas\"
LoadImage (30, Path + "test.jpg")
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 29th Nov 2017 19:20
I don't think AppGameKit recognizes backslashes in filenames you need to use forward slashes
smallg
Valued Member
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location: steam
Posted: 29th Nov 2017 22:40
Unless you have moved the folders default location (setfolder etc) you don't need to specify 'media' as a folder, it automatically starts inside the media folder.
So "media/folder/image.PNG" becomes "folder/image.PNG"
And yh its best to use / instead of \
life's one big game
spec= 4ghz, 16gb ram, AMD R9 2700 gpu
Hubert BAYRE
6
Years of Service
User Offline
Joined: 21st Oct 2017
Location: France
Posted: 30th Nov 2017 05:17
Many thanks for your help.

Login to post a reply

Server time is: 2024-04-20 03:49:51
Your offset time is: 2024-04-20 03:49:51