Director Class - ERROR - only on iPhone 4S [resolved]

I have been developing a game for iPhone for a bit and testing it successfully on my iPhone 3GS. However, I just got an iPhone 4S and I am now getting an error on my level select screen:

Director Class - ERROR
Director ERROR: Failed to execute new(params) function on ‘levelselect’.

From looking at other posts this seems to most often be caused by a difference in case (LevelSelect instead of levelselect), but wouldn’t this have been an issue on my iPhone 3GS too?

I am putting the exact same build on the 2 different phones, one works (3GS) and one gets the error (4S)

I am using the latest Director class (1.4 right?)

I am not going to claim I am 100% sure I don’t have a case mismatch in my code, but wouldn’t this be an issue on both phones? Thanks. [import]uid: 70996 topic_id: 25559 reply_id: 325559[/import]

I’ll just take a wild guess here…

But i reckon you may have a case mis-match in one of your image files. On 3GS it works fine because its using the default image, but on the iPhone 4 retina screen it is using @2x images, which may have a mis-typed letter in.
[import]uid: 69826 topic_id: 25559 reply_id: 103296[/import]

Ok, this seems to be an issue with how I am saving and loading data.

This does not work

--loaded from saved data  
if(\_G["star".. tostring(i) .."a"] == 1) then  
 starA = display.newImage("levelselect\_star.png");  
end  

This works fine

--faked  
starOn = 1  
if(starOn == 1) then  
 starA = display.newImage("levelselect\_star.png");  
end  

I save data using this method:
http://techority.com/2011/04/02/how-to-save-and-load-data-in-your-app/

Again, this works on 3GS but not 4S. Should I be loading/saving data a different way for 4S? [import]uid: 70996 topic_id: 25559 reply_id: 103439[/import]

Hey Bradido, that’s old, very old (I wrote it) - I’d encourage you to check out Ego, it’s on Techority as well and will work fine on any iOS device. [import]uid: 52491 topic_id: 25559 reply_id: 103492[/import]

Great, thanks so much. I will switch over to Ego. [import]uid: 70996 topic_id: 25559 reply_id: 103496[/import]

Before I dig into re-doing my save code (I am saving quite a bit of data), can I use your the exploder function from your previous method to save a comma-delimited string in conjunction with Ego?
[import]uid: 70996 topic_id: 25559 reply_id: 103634[/import]

This may sound weird but I ran into a similar problem and it was related to the image itself…

Check to make sure your .png actually has an alpha channel (meaning there is some portion of the image that is actually transparent)

I had a .png that was a SOLID color and it was blowing up just as you mention above, once I removed the solid color background of the .png so that the corners actually had transparency the error went away.
Good Luck,
Croisened [import]uid: 48203 topic_id: 25559 reply_id: 103638[/import]

I got my save data converted over and working on the iPhone 4s. I ended up using this method: http://developer.anscamobile.com/code/super-simple-lua-table-save-and-load-file-functions

I liked the table format. [import]uid: 70996 topic_id: 25559 reply_id: 103921[/import]

It makes sense, perhaps you should try searchengineoptimisation [import]uid: 160380 topic_id: 25559 reply_id: 113618[/import]

Advertising strategies to ensure high return on investment ppcmanagement If you are completely new to CPC marketing as an advertising concept, or perhaps unaware of how the implementation of CPC campaigns can dramatically improve the productivity of your online endeavours, we can explain what strategy will be effective and how it works to ensure complete transparency throughout our business relationship. [import]uid: 166573 topic_id: 25559 reply_id: 116816[/import]