Code: Select all
Error
graphics.lua:1273:Decoding error: Invalid UTF-8
Traceback
[C]: in function 'printf1'
graphics.lua:1273:in function 'printf1'
[C]: ?
[C]: in function 'require'
[C]: in function 'xpcall'
Code: Select all
Error
graphics.lua:1273:Decoding error: Invalid UTF-8
Traceback
[C]: in function 'printf1'
graphics.lua:1273:in function 'printf1'
[C]: ?
[C]: in function 'require'
[C]: in function 'xpcall'
Code: Select all
require "game.lua"
Code: Select all
Error
main.lua:1:module 'game.lua' not found:
no file "game/lua.lua" in LOVE game directories.
no extension 'game.lua' in LOVE paths.
etc.
Traceback
[C]:in function 'require'
main.lua:1:in main chunk
[C]:in function 'require'
[C]:in function 'xpcall'
require isn't just used for loading lua files, it also loads binary modules with .dll or .so extension. Giving only the name of the module makes it more portable and Lua can resolve and search for the extensions itself. See package.path for controlling the behaviour (The LÖVE loaders for the game and save directory do not use this variable though).revolucas wrote:[...] which doesn't make any sense to me why.
Users browsing this forum: Bing [Bot], Google [Bot] and 2 guests