The How to Make an RPG book uses Tiled to make the maps. But if you use the latest version of Tiled, you'll find when you export the map it doesn't export Lua code!
I've have few mails about it such as:
The most recent version of Tiled (0.18.0) outputs the lua data differently than what is stated in the book, using more a format of “adnf3r8fdnADFadnafdiufadn” to show tile locations instead of the "1, 1, 1, 5, 7, 1, 1, 1” format.
Tiled updated and now when you export lua files, it encodes them instead of giving raw data values.
Here's the solution:
Open Map > Map Properties in the toolbar.
In the map properties there's a dropdown called Layer Format you want to set this to CSV.
Hope that helps!