Director ERROR

Hello! I’m starting to get a little frustrated with this… I’ve changed so many things and looked at a lot of stuff, but I can’t find the problem. When I try to run the simulator with one of my apps it says, "Director ERROR: Failed to execute new( params ) function on ‘Bob’. I don’t have any params stuff. Is that the problem? If more info is needed let me know. Thank you.

Nathan [import]uid: 39302 topic_id: 23363 reply_id: 323363[/import]

Any time you get an error in Director talking about params, it’s never about params :wink:

Please paste all of the error from the terminal to determine the issue.

Usually there’s a line before or after this error mentioning the actual issue :slight_smile: [import]uid: 10389 topic_id: 23363 reply_id: 93631[/import]

Often it’s a typo or case issue.

Eg. you have an image called FunkyImage.png and in your app you call it Funkyimage.png [import]uid: 10389 topic_id: 23363 reply_id: 93633[/import]

Here you go.
Runtime error: /Users/nathan/Desktop/----/director.lua:1092: attempt to call method ‘insert’ (a nil value)
stack traceback:
[C]: in function ‘insert’
/Users/nathan/Desktop/----/director.lua:1092: in function ‘changeScene’
/Users/nathan/Desktop/----/main.lua:10: in function ‘main’
/Users/nathan/Desktop/----/main.lua:16: in main chunk


Director ERROR: Failed to execute new( params ) function on ‘Bob’.

/Users/nathan/Desktop/----/ui.lua:153: attempt to index local ‘button’ (a nil value)

I’m sorry if this is something obvious that I should know.

Nathan [import]uid: 39302 topic_id: 23363 reply_id: 93634[/import]

No need to apologise. This is how everyone learns.
It seems to be an issue with a button you have created.
Perhaps check the case of the code to make sure it all matches up, or alternatively, paste the code below here inside < lua > < /lua > tags. [import]uid: 10389 topic_id: 23363 reply_id: 93637[/import]

I switched some stuff around and I’m not getting the error any more. Thanks for your time.

Nathan [import]uid: 39302 topic_id: 23363 reply_id: 94110[/import]