attempt to call global 'require'
Posted: Mon Dec 21, 2015 12:11 am
Hi all, quick stupid question.
I've been programming happily and running the program normally and then suddenly I got this error (wich never happened before)
I checked for spelling errors but nothing.. I've never touched the line 2 of my code since its first implementation in my code
Here are my first lines of the code from main.lua
Strangely enough I get no error for the first line, despite the fact the syntax is the same and it always worked well
Any suggestions?
Thanks!
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!