and I thought Thranduil was my favourite library name
ok, tried running with love-hg from AUR on Arch Linux and it gives an error
Code: Select all
Error: yaoui/Timer.lua:4: module 'yaoui.Timer.timer' not found:
no field package.preload['yaoui.Timer.timer']
no 'yaoui/Timer/timer' in LOVE game directories.
no file 'yaoui/Timer/timer.so' in LOVE paths.
no file './yaoui/Timer/timer.lua'
no file '/usr/share/luajit-2.0.4/yaoui/Timer/timer.lua'
no file '/usr/local/share/lua/5.1/yaoui/Timer/timer.lua'
no file '/usr/local/share/lua/5.1/yaoui/Timer/timer/init.lua'
no file '/usr/share/lua/5.1/yaoui/Timer/timer.lua'
no file '/usr/share/lua/5.1/yaoui/Timer/timer/init.lua'
no file './yaoui/Timer/timer.so'
no file '/usr/local/lib/lua/5.1/yaoui/Timer/timer.so'
no file '/usr/lib/lua/5.1/yaoui/Timer/timer.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file './yaoui.so'
no file '/usr/local/lib/lua/5.1/yaoui.so'
no file '/usr/lib/lua/5.1/yaoui.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
yaoui/Timer.lua:4: in main chunk
[C]: in function 'require'
yaoui/init.lua:6: in main chunk
[C]: in function 'require'
main.lua:1: in main chunk
[C]: in function 'require'
[string "boot.lua"]:424: in function <[string "boot.lua"]:274>
[C]: in function 'xpcall'
Based on a glance at the directory structure, I think it's an issue with cases.
It would be cleaner if you used the same capitalization as in the code, also, instead of copying the entire library into the example folder, you could modify the package.path variable or use symlinks (not sure how well Git supports them).
If you are interested, I have a
utility script for handling package.path.