I've been programming happily and running the program normally and then suddenly I got this error (wich never happened before)
Code: Select all
Error: main.lua:2: attempt to call global 'require' (a string value)
stack traceback:
main.lua:2: in main chunk
[C]: in function 'require'
[string "boot.lua"]:374: in function <[string "boot.lua"]:244>
[C]: in function 'xpcall'
Here are my first lines of the code from main.lua
Code: Select all
require "airplane"
require "hump/vector"
require "load"
require "keyboard"
require "mouse"
require "camera"
require "mapmanager"
mdata = require("testmap")
airm = require("airmanager")
interface = require ("interface")
require "util"
function love.load()
load.settings()
--..bla bla code continues
Any suggestions?
Thanks!