I'm at a bit of a loss. I'm going through the book "Developing Mobile Games with Moai SDK" by Francisco Tufró (Copyright © 2013 Packt Publishing). I realize this is a bit old, but everything was going fine, including using the code provided with the book, until a config.lua file was introduced. I can't get any programs to work with a config.lua file. Is there a problem naming a file config.lua?
I renamed this file to other things, including configuration.lua and the program seemed to run fine. But with a file named config.lua, it seems that main.lua doesn't run at all. I think this because there is no output printed for a print statement in main.lua, but output IS printed if there is no config.lua file.
Also, if I use the final code from the book as it is, when I run it, I get nothing. No errors are reported, but nothing happens. No window opens, NOTHING. But if I make two simple changes to the code, rename config.lua to configuration.lua and change the require statement in main.lua to require 'configuration' (instead of require 'config'), it works fine.
So is config a reserved word that can't be used as a file name or is there some other explanation?
Thanks.