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 Discussion / "matrix title does not exist"

Author
Message
SilentNick
14
Years of Service
User Offline
Joined: 1st Dec 2009
Location:
Posted: 5th Feb 2010 15:03
when my program is run i get this error

"Runtime error at line 247. Matrix title does not exist"

and i dont know what this means, whats wrong, and how to fix it

Any help would be much appreciated
Thanks
SilentNick
Caleb1994
15
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 5th Feb 2010 16:49
Some code would be apprectiated. We can't help with a error if we don't know what caused it

It really said TITLE not TILE? just making sure.

New Site! Check it out \/
Latch
17
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 5th Feb 2010 22:16
@SilentNick
Chances are it says tile and you've probably tried to access an image tile that hasn't been created. Tiles are created when you use the command PREPARE MATRIX TEXTURE .

If, for instance, you used

PREPARE MATRIX TEXTURE matnum,imgnum,2,2

that means you've divided the image indicated by imgnum into a 2x2 grid where the tiles are number 1 to 4 where tile 1 (or any number less than 1) is in the upper left corner and tile 4 is in the lower right corner.

If you try and tile your matrix with a number greater than 4 in this case, it will cause the error you printed above.

If you never PREPARE MATRIX TEXTURE , you will also get this error.

Enjoy your day.
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 6th Feb 2010 04:44

Login to post a reply

Server time is: 2024-03-29 13:09:28
Your offset time is: 2024-03-29 13:09:28