Error while running a sprite made with texture packer

Hi there, Thank you in advance. While I was practicing with corona this is the error am incurred with.

19:31:57.792  Copyright © 2009-2017  C o r o n a   L a b s   I n c .

19:31:57.792  Version: 3.0.0

19:31:57.792  Build: 2017.3184

19:31:57.792  Platform: iPhone / x64 / 6.1 / ATI Radeon HD 5400 Series / 4.5.13399 Compatibility Profile Context 15.200.1062.1004 / 2017.3184 / en_US | US | en_US | en

19:31:57.792  WARNING: V1 graphics compatibility is deprecated. Some features may not work as expected

19:31:57.792  Loading project from:   C:\Users\user\Documents\Corona Projects\Game Dev Course\Lecture 02\GameDev-03-DisplayAnimate

19:31:57.792  Project sandbox folder: C:\Users\user\AppData\Local\Corona Labs\Corona Simulator\Sandbox\gamedev-03-displayanimate-3AF5DD18B7E46F03B0034180581763A9\Documents

19:31:57.802  WARNING: C:\Users\user\Documents\Corona Projects\Game Dev Course\Lecture 02\GameDev-03-DisplayAnimate\main.lua:13: Failed to find image ‘image/snake.png’

19:31:57.802  ERROR: Runtime error

19:31:57.802  C:\Users\user\Documents\Corona Projects\Game Dev Course\Lecture 02\GameDev-03-DisplayAnimate\main.lua:14: bad argument #1 to ‘newSprite’ (ImageSheet expected, got nil)

19:31:57.802  stack traceback:

19:31:57.802  [C]: in function ‘newSprite’

19:31:57.802  C:\Users\user\Documents\Corona Projects\Game Dev Course\Lecture 02\GameDev-03-DisplayAnimate\main.lua:14: in main chunk

Am very very new to this. Help is greatly appreciated.

regards,

VKV

Can you supply a link to the instructional material or tutorial you were following?

That looks like you’re using a very old example that is no longer valid.  The V1 warning is saying, “Hey!  This code was written for Corona Graphics V1!”  Corona has been V2 for many years now, so I think we need to get you onboard with newer examples.

Hi roaminggamer, thank you for the reply. This is the tutorial, https://www.udemy.com/beginning-mobile-game-development/learn/v4/t/lecture/183700?start=0. I got the point. I changed the commands, it is working now. Have a great day.

Hmmm.  That tutorial was last updated in 2016 and it seems it may be using the v1 compatibility flag to handle some older code in the samples. 

I wasn’t aware of it, but perhaps the v1 compatibility flag is not be supported any more?

The good news is the simulator will complain if you use an invalid function name and the API docs here rock:

https://docs.coronalabs.com/api/

So, while you may run into a few more issues, you should be able to work through them.

Cheers,

Ed

PS - I’m sure most of those tutorials are still entirely relevant.  J.A. Whye makes good stuff. 

The v1 compatibility mode is still supported but not encouraged to be used.

Rob

Thank your for the replies. I will go through the Corona Tutorials directly from the website.

Have a great day.

VKV

We have a whole collection of video tutorials here:

https://www.youtube.com/watch?v=KS_rrA9xC6Q&list=PLhE_IYaXVf9tCO31TomZo_j6y2iqdm7rz

They cover many basic tasks that you.

Rob

How to create levels? I did a small game as experiment. Now that I need to create levels and stars… How? Any references?

BTW: This is an example of “Hijacking a thread”. Your question about levels should have been it’s own unique post as well as the question about stars.  This is a thread about issues running sprites made with Texture Packer and has nothing to do with Stars or Level making.  Please create new threads for these topics.

I decided to delete my response to your questions since I’m contributing to the redirecting of this conversation.

Rob

So every new question has to put as a new thread. I got the point. My sincere apologies. Thanks & Regards VKV

There are two main reasons for this no hijacking rule. First if someone has information to share with you about how to handle levels, they are not going to look into a thread about sprites with texture packer. The opposite is also problematic. If someone comes here looking for the answer to sprites with texture packer and they find a thread discussing how to show stars, they won’t be getting what they came here to find.

If you can’t find an appropriate thread related to your specific question, then start a new one. As for the two questions in one, it’s similar, if the thread starts talking about levels and changes to stars, people will get confused about what the thread is about, so again, it’s best to split the conversations.

Rob

Sure it is Done…

Can you supply a link to the instructional material or tutorial you were following?

That looks like you’re using a very old example that is no longer valid.  The V1 warning is saying, “Hey!  This code was written for Corona Graphics V1!”  Corona has been V2 for many years now, so I think we need to get you onboard with newer examples.

Hi roaminggamer, thank you for the reply. This is the tutorial, https://www.udemy.com/beginning-mobile-game-development/learn/v4/t/lecture/183700?start=0. I got the point. I changed the commands, it is working now. Have a great day.

Hmmm.  That tutorial was last updated in 2016 and it seems it may be using the v1 compatibility flag to handle some older code in the samples. 

I wasn’t aware of it, but perhaps the v1 compatibility flag is not be supported any more?

The good news is the simulator will complain if you use an invalid function name and the API docs here rock:

https://docs.coronalabs.com/api/

So, while you may run into a few more issues, you should be able to work through them.

Cheers,

Ed

PS - I’m sure most of those tutorials are still entirely relevant.  J.A. Whye makes good stuff. 

The v1 compatibility mode is still supported but not encouraged to be used.

Rob

Thank your for the replies. I will go through the Corona Tutorials directly from the website.

Have a great day.

VKV

We have a whole collection of video tutorials here:

https://www.youtube.com/watch?v=KS_rrA9xC6Q&list=PLhE_IYaXVf9tCO31TomZo_j6y2iqdm7rz

They cover many basic tasks that you.

Rob

How to create levels? I did a small game as experiment. Now that I need to create levels and stars… How? Any references?

BTW: This is an example of “Hijacking a thread”. Your question about levels should have been it’s own unique post as well as the question about stars.  This is a thread about issues running sprites made with Texture Packer and has nothing to do with Stars or Level making.  Please create new threads for these topics.

I decided to delete my response to your questions since I’m contributing to the redirecting of this conversation.

Rob