Solution: I figured it out. I needed to add the following to the top of the file
CoreLibs/animation
I'm trying to create an animation and I'm able to get the image table to work, but when I try to use an animation loop, I see this exception:
main.lua:129: attempt to index a nil value (field 'animation')
Here is the source for what I'm trying to do:
local imagetable = gfx.imagetable.new('Images/ship')
assert(imagetable, error)
-- This works great!
imagetable:getImage(1):draw(100, 100)
-- This throws the above error
local animation = gfx.animation.loop.new(200, imagetable)
Three years later, this solution saved me from ripping out more hair. This was the exact issue I was encountering with animation loops and crashes. I'm surprised that the project even compiles if something as important as a a library hasn't been included.