Really newbie question, kinda embarrassing (config.lua)

What exactly is my config.lua file (and where is it?)? I ask because I’m trying to update my outdated corona version but I don’t want graphics 2.0. In the article I found, it said to add certain lines into my config.lua file but when I added the lines at the top of my main.lua to test, it didn’t work.

Here’s the article: http://coronalabs.com/blog/2013/10/15/tutorial-anchor-points-in-graphics-2-0/ 

The config.lua file is a file that lives beside your main.lua.  It’s used to control the content area of your app (the width and height in Corona content units or points), how the screen is to be scaled , how to handle dynamic image resolution, etc.

A typical config.lua looks like:
 

application = {    content = {       width = 320,       height = 480,       scale = "letterbox",       fps = 60,       imageSuffix = {          ["@2x"] = 1.5,          ["@4x"] = 3.0,       },    }, }

If you want to stay with Graphics 1.0, you will need something like:

application = {    content = {       width = 320,       height = 480,       scale = "letterbox",       fps = 60,       graphicsCompatibility = 1       imageSuffix = {          ["@2x"] = 1.5,          ["@4x"] = 3.0,       },    }, }

This is a separate file name “config.lua”.  You cannot put this in your main.lua.

Rob

Okay, so do I copy/paste those lines for graphics 1.0 and name the file config.lua and place it in the same folder as my main.lua?

Yes

The config.lua file is a file that lives beside your main.lua.  It’s used to control the content area of your app (the width and height in Corona content units or points), how the screen is to be scaled , how to handle dynamic image resolution, etc.

A typical config.lua looks like:
 

application = {    content = {       width = 320,       height = 480,       scale = "letterbox",       fps = 60,       imageSuffix = {          ["@2x"] = 1.5,          ["@4x"] = 3.0,       },    }, }

If you want to stay with Graphics 1.0, you will need something like:

application = {    content = {       width = 320,       height = 480,       scale = "letterbox",       fps = 60,       graphicsCompatibility = 1       imageSuffix = {          ["@2x"] = 1.5,          ["@4x"] = 3.0,       },    }, }

This is a separate file name “config.lua”.  You cannot put this in your main.lua.

Rob

Okay, so do I copy/paste those lines for graphics 1.0 and name the file config.lua and place it in the same folder as my main.lua?

Yes