Unable to reuse sprite data generated by Texture Packer

Hi all, new Texture Packer user here.

Texture Packer generated sprite data in Lua, very neat, but come with 1 problem.

I created my spritesheet using:

In first file, gunModule.lua,
[lua]
local info = require (“variousItems”)
local sheet = graphics.newImageSheet(“variousItems.png”, info:getSheet())
local gun1 = display.newSprite(sheet, info:getFrameIndex(“gun”))
[/lua]
in the second file, boxModule.lua,
[lua]
local info = require (“variousItems”)
local sheet = graphics.newImageSheet(“variousItems.png”, info:getSheet())
local box = display.newSprite(sheet, info:getFrameIndex(“box”))
[/lua]
Here comes the problem: info.sheet is becoming a .userdata after used by newImageSheet in gunModule, so in boxModule, newImageSheet will break.

The solution I got, would be to separate the box and gun sprites in 2 different spritesheet, which does sounds smart.

Any idea?
[import]uid: 143031 topic_id: 36878 reply_id: 336878[/import]

Sorry, just figured that is my own mistake to overwrite the table value.

Ignore this post. [import]uid: 143031 topic_id: 36878 reply_id: 145147[/import]

Sorry, just figured that is my own mistake to overwrite the table value.

Ignore this post. [import]uid: 143031 topic_id: 36878 reply_id: 145147[/import]

Sorry, just figured that is my own mistake to overwrite the table value.

Ignore this post. [import]uid: 143031 topic_id: 36878 reply_id: 145147[/import]

Sorry, just figured that is my own mistake to overwrite the table value.

Ignore this post. [import]uid: 143031 topic_id: 36878 reply_id: 145147[/import]