Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Picture ID 0
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
kartikitrak




PostPosted: Mon Jan 17, 2011 2:42 pm   Post subject: Picture ID 0

I'm having this problem with my turing game. On my personal laptop the game works perfectly and smoothly with no errors however when I put it on my school computers it keeps giving me an illegal picture id. I think it might be the resolution which is 6000x2500. All the file names and directory are right and also the size is only 1mb. I'm not sure why it keeps giving the error.
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Mon Jan 17, 2011 3:01 pm   Post subject: RE:Picture ID 0

If the file loads on one computer, but not another, it most likely means that your program can't find the file.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
kartikitrak




PostPosted: Mon Jan 17, 2011 10:25 pm   Post subject: RE:Picture ID 0

why....it works on my friends computer...
Tony




PostPosted: Mon Jan 17, 2011 10:34 pm   Post subject: RE:Picture ID 0

Is this a problem with every picture file, or just this one particular file?
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
kartikitrak




PostPosted: Tue Jan 18, 2011 6:51 am   Post subject: RE:Picture ID 0

one file....its basically my single big map in my game.
Tony




PostPosted: Tue Jan 18, 2011 10:10 am   Post subject: RE:Picture ID 0

Pic.FileNew
Quote:

If the Pic.FileNew call fails, then it returns 0. Also Error.Last will return a non-zero value indicating the reason for the failure. Error.LastMsg will return a string which contains the textual version of the error.

There might be some problem with loading large files; hard to say.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: