Time machine ...

Hi,
12 years ago I built an app with Corona SDK (…)
I lost eveything except the corona sdk folder (with main.lua, confis, icon and images folder,…).
I downloaded the Solar2D just to see what my game looked like in the console. I don’t want to make it running in nowadays phones.
I knew it wouldn’t be that easy :wink:
I get the following errors :
"
17:40:28.584 Project sandbox folder: C:\Users\alain\AppData\Local\Corona Labs\Corona Simulator\Sandbox\alphaaquilae-8E022A9C8FE1F6B9D6C8F5E7BDAE01A2\Documents
17:40:28.599 WARNING: issue found in D:\Development\Aquilae\base\alphaaquilae\build.settings:
17:40:28.599 WARNING: deprecated key: settings.iphone.plist.UIAppFonts[] (string)
17:40:28.599 WARNING: deprecated key: settings.iphone.plist.CFBundleIconFile (string)
17:40:28.599 ERROR: Runtime error
17:40:28.599 D:\Development\Aquilae\base\alphaaquilae\main.lua:17: attempt to call field ‘newImageGroup’ (a nil value)
17:40:28.599 stack traceback:
17:40:28.599 D:\Development\Aquilae\base\alphaaquilae\main.lua:17: in main chunk
"
So, two options for me : try to correct all error that could appear on such an old build to make it run, or, find a way to tell Solar2D :“imagine you’re in 2013”.

What is possible ?

Thx for any hints !

Your options are a) fix old crappy code or b) fix crappy old code :slight_smile:

newImageGroup is from Graphics 1.0, a few changes were made since then when Graphics 2.0 was introduced.

If you want to continue your project then I would also suggest updating the code, it’s minimal effort in my opinion. You can see an old migration guide here: https://web.archive.org/web/20140522011111/http://docs.coronalabs.com/guide/graphics/migration_g20.html

If you just want to run your old project in the Simulator then you can try the compatibility option in config.lua like so:

application =
{
	content =
	{
        graphicsCompatibility = 1, -- add this line
		width = 640,
		height = 960, 
		scale = "letterbox",
		fps = 60,

I also have old Corona installers for Windows going as far back as 2011, but keep in mind that if you were to use any older version outside of the Github releases you will not be able to build your project as the process included server side communications.

Thx for the hints !

I’ll try to fix the crappy code thx to the migration guide.

Still, as building is not a goal (seeing the app running in the simulator would be enough), old corona installers could be ok.