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.

DarkBASIC Professional Discussion / Runtime error 506 - cannot load image

Author
Message
mnemonic
19
Years of Service
User Offline
Joined: 14th Jan 2007
Location: Sweden
Posted: 7th Mar 2013 15:35
Hi!

This little code snippet I have just copied from another project I'm working on where it works, so I know this code should work.

I have pasted this into the sliding demo.dbpro example that comes with the sparky collision examples.
The folders and the files exists because I also copied them and put them in the root directory as the project.
But anyway I get this runtime error 506 saying that it cannot load the images.

Anyone has any idea what could be wrong?



www.memblockgames.com
mnemonic
19
Years of Service
User Offline
Joined: 14th Jan 2007
Location: Sweden
Posted: 7th Mar 2013 15:44
Why I'm I an expert on doing this???? It's actualy a bit embaresing,,, I just forgot making the variables global so the problem is solved

www.memblockgames.com
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 7th Mar 2013 17:34
A note, you should always perform checks before loading a file... then you can continue with maybe a default file generated texture while you are in development... and output an error log to state which file failed to load... many ways to handle error checking while developing find and adapt one which suits you

Login to post a reply

Server time is: 2026-07-07 06:23:48
Your offset time is: 2026-07-07 06:23:48