require("sprite") >> Error After I updated version of corona

Hello everyone

I just start corona for 3 months, I created an action game and it work as normal.

And today I just update version of my corona from “2013.1202” to “2013.2100”.  and my worked code got an error. 

the runtime show me right this:

 2013-12-22 20:43:22.741 Corona Simulator[1031:507] 

Copyright © 2009-2013  C o r o n a   L a b s   I n c .

2013-12-22 20:43:22.742 Corona Simulator[1031:507]     Version: 3.0.0

2013-12-22 20:43:22.742 Corona Simulator[1031:507]     Build: 2013.2100

2013-12-22 20:43:22.884 Corona Simulator[1031:507] The file sandbox for this project is located at the following folder:

    (/Users/apple/Library/Application Support/Corona Simulator/keroro-65ECA9EF229E6B9C22E27A1B193558CF)

2013-12-22 20:43:23.021 Corona Simulator[1031:507] WARNING: Simulator does not support multitouch events

2013-12-22 20:43:23.021 Corona Simulator[1031:507] Runtime error

module ‘sprite’ not found:resource (sprite.lu) does not exist in archive

    no field package.preload[‘sprite’]

    no file ‘/Users/apple/Library/Application Support/Corona/Simulator/Plugins/sprite.lua’

    no file ‘/Users/apple/Desktop/reskin work/keroro/sprite.lua’

    no file ‘/Applications/CoronaSDK/Corona Simulator.app/Contents/Resources/sprite.lua’

    no file ‘/Users/apple/Library/Application Support/Corona/Simulator/Plugins/sprite.dylib’

    no file ‘./sprite.dylib’

    no file ‘/Applications/CoronaSDK/Corona Simulator.app/Contents/Resources/sprite.dylib’

stack traceback:

    [C]: ?

    [C]: in function ‘require’

    ?: in function <?:797>

    (tail call): ?

    /Users/apple/Desktop/reskin work/keroro/main.lua:11: in main chunk

So. I think I got a problem with this line 

 

local sprite = require(“sprite”)

before I updated version for corona. it have no error about sprite anymore. And after updated , it error suddenly.

I tried to find in community about this problem but I can’t see any topic that related to my problem.

So please…  help me to fix this error. please…

Thank you for your help.

PS. I use a Texturepacker to generate a sprite code

We removed the sprite library (It’s been deprecated for over a year) with Graphics 2.0.  However for people who depend on 3rd party libraries who have not updated to the Graphics 2.0 system, you can still download the old sprite library from our github repository.

https://github.com/coronalabs/framework-sprite-legacy

Rob

OK , it about Graphics 2.0
 

Thank you very much, Rob

Let me try first.

Ive just bumped into the same problem! and i need a bit of hand holding with this process, how do i actually implement the old sprite library into my project?

We removed the sprite library (It’s been deprecated for over a year) with Graphics 2.0.  However for people who depend on 3rd party libraries who have not updated to the Graphics 2.0 system, you can still download the old sprite library from our github repository.

https://github.com/coronalabs/framework-sprite-legacy

Rob

OK , it about Graphics 2.0
 

Thank you very much, Rob

Let me try first.

Hi @paul88,

You should be able to download the legacy library (linked a few posts up in this thread), then just do…

[lua]

local sprite = require( “sprite” )

[/lua]

…at the top of whatever files/scenes you’re using it in.

Hope this helps,

Brent

Thanks Brent,

I just dropped the sprite.lua file into my project and like magic it worked, sorta then i just had to update the code a bit to make the changes for Graphics 2.0 and the colour and then it all worked fine. 

Thanks for getting back 

Paul

Ive just bumped into the same problem! and i need a bit of hand holding with this process, how do i actually implement the old sprite library into my project?

Hi @paul88,

You should be able to download the legacy library (linked a few posts up in this thread), then just do…

[lua]

local sprite = require( “sprite” )

[/lua]

…at the top of whatever files/scenes you’re using it in.

Hope this helps,

Brent

Thanks Brent,

I just dropped the sprite.lua file into my project and like magic it worked, sorta then i just had to update the code a bit to make the changes for Graphics 2.0 and the colour and then it all worked fine. 

Thanks for getting back 

Paul