(SOLVED) Help! Director Class not working after upgrading Corona

Hi you all. Yeah, I know, the Director Class is not officially supported, but this evening, after I’ve upgraded to Corona v 2013.2100 my app (which I spent 2 month on) won’t work! It returns “Attempt to call method ‘insert’ (a nil value)” at line 1092 when it leave main.lua (which just contains the splash screen and “director:changeScene(‘menu’)”). How can I fix it? Thanks!

Have you tried to put:

graphicsCompatibility = 1

in your config.lua where you set the width and height?

Rob

Yes, I even followed http://docs.coronalabs.com/guide/graphics/migration_v1.html but it still returns the same error

What version of Director are you using?  Can you look in director.lua and see what line of code that is crashing on?

Rob

Yeah sure, sorry if I reply just now, anyway I’m using director v 1.4 and it crashes ad line 1092, which says

nextScreen:insert( currentStage[i] )

One of my apps uses Director 1.4 so I checked it in 2100 and it’s running fine.  I can only assume one of two conditions:  there is an error in the module you are trying to go to, or you are envoking the goto scene call in a way that’s causing the error.

Can you post some code?

Rob

Very strange, I reinstalled Corona and now it works fine o.O

At the beginning, the terminal used to returns an error on

local function goToMenu() splashImage:removeSelf() splashImage = nil director:changeScene("menu") end local tmr = timer.performWithDelay(2000, goToMenu)

Thanks anyway!

Glad it’s solved.

Rob

Have you tried to put:

graphicsCompatibility = 1

in your config.lua where you set the width and height?

Rob

Yes, I even followed http://docs.coronalabs.com/guide/graphics/migration_v1.html but it still returns the same error

What version of Director are you using?  Can you look in director.lua and see what line of code that is crashing on?

Rob

Yeah sure, sorry if I reply just now, anyway I’m using director v 1.4 and it crashes ad line 1092, which says

nextScreen:insert( currentStage[i] )

One of my apps uses Director 1.4 so I checked it in 2100 and it’s running fine.  I can only assume one of two conditions:  there is an error in the module you are trying to go to, or you are envoking the goto scene call in a way that’s causing the error.

Can you post some code?

Rob

Very strange, I reinstalled Corona and now it works fine o.O

At the beginning, the terminal used to returns an error on

local function goToMenu() splashImage:removeSelf() splashImage = nil director:changeScene("menu") end local tmr = timer.performWithDelay(2000, goToMenu)

Thanks anyway!

Glad it’s solved.

Rob