anim8

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
CleoCommunist
Prole
Posts: 2
Joined: Sun Nov 10, 2024 1:11 pm

anim8

Post by CleoCommunist »

Hi,
I am a new developer with no experience.
While trying to make my first game, following a tutorial, this error popped up when i tried to load anim8 library.
I have put the correct path in the require section.
Can somebody help?
Thanks a lot.
(Here is the error Love gives me) (attached is the game folder)

Error

main.lua:11: module 'libs/anim8.lua' not found:
no field package.preload['libs/anim8.lua']
no 'libs/anim8/lua' in LOVE game directories.
no file 'libs/anim8/lua' in LOVE paths.
no file './libs/anim8/lua.lua'
no file '/usr/local/share/luajit-2.1/libs/anim8/lua.lua'
no file '/usr/local/share/lua/5.1/libs/anim8/lua.lua'
no file '/usr/local/share/lua/5.1/libs/anim8/lua/init.lua'
no file './libs/anim8/lua.so'
no file '/usr/local/lib/lua/5.1/libs/anim8/lua.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file './libs/anim8.so'
no file '/usr/local/lib/lua/5.1/libs/anim8.so'
no file '/usr/local/lib/lua/5.1/loadall.so'


Traceback

[love "callbacks.lua"]:228: in function 'handler'
[C]: in function 'require'
main.lua:11: in function 'load'
[love "callbacks.lua"]:136: in function <[love "callbacks.lua"]:135>
[C]: in function 'xpcall'
[C]: in function 'xpcall'
Attachments
main.lua
(1.71 KiB) Downloaded 6 times
anim8.lua
anim8.lua
(8.29 KiB) Downloaded 4 times
User avatar
pgimeno
Party member
Posts: 3656
Joined: Sun Oct 18, 2015 2:58 pm

Re: anim8

Post by pgimeno »

Use "libs.anim8" instead of "libs/anim8.lua"

require() should use dots for directories, not slashes, and the extension should be left out.
User avatar
CleoCommunist
Prole
Posts: 2
Joined: Sun Nov 10, 2024 1:11 pm

Re: anim8

Post by CleoCommunist »

Thank you, getting to work.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 5 guests