Code: Select all
require("Level.lua")
Code: Select all
require("Level.lua")
Code: Select all
require("Level")
thanksbartbes wrote:Require does not take file names, it takes module names. To translate a module name into a filename, you replace all dots with slashes, then append .lua. (Or see [manual]package.path[/manual] or [wiki]love.filesystem.setRequirePath[/wiki].) So in your case, you should be using:And I should note that zips are case-sensitive, so make sure that matches too.Code: Select all
require("Level")
Show code. Also what vars you use don't matterfixylol wrote:thanksbartbes wrote:Require does not take file names, it takes module names. To translate a module name into a filename, you replace all dots with slashes, then append .lua. (Or see [manual]package.path[/manual] or [wiki]love.filesystem.setRequirePath[/wiki].) So in your case, you should be using:And I should note that zips are case-sensitive, so make sure that matches too.Code: Select all
require("Level")
but now i have another problem... for some reason pairs() thinks a table is the number 14 (i used v, not i)
Code: Select all
books ={}
books["Book of Bartbes"] = "a bunch of text"
books["How to make things with LOVE"] = "even more text"
for title, content in pairs(books) do
print(title)
end
Users browsing this forum: Ahrefs [Bot], Amazon [Bot], Bing [Bot] and 8 guests