Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

HELP!----Error: "function at line 2577 has more than 60 upvalues"
Started by aclementerodrguez Feb 27 2019 07:50 PM

4 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

aclementerodrguez

[GLOBAL: userInfoPane.html]
aclementerodrguez
  • Observer

  • 7 posts
  • Corona SDK

Hi,
I´m working on one of my games and Corona shows the error that show the attach image.
 
The line 2577 is the line of the creation of the scene (  function scene:create( event )  )
 
I think this is due to the 'scene:create' function has been enclosed on another function but I´d review all my code and I do not see anything
 
I will appreciate any help

Attached Files



[TOPIC: post.html]
#2

horacebury

[GLOBAL: userInfoPane.html]
horacebury
  • Corona Geek

  • 3,059 posts
  • Corona SDK

Your module has way too much code in it. It will be difficult to resolve. You need to (a) post the lines which are shown in the error and (B) boil your module down so that some of its work is done in other files.



[TOPIC: post.html]
#3

nick_sherman

[GLOBAL: userInfoPane.html]
nick_sherman
  • Corona Geek

  • 1,708 posts
  • Corona SDK

Some lua editors, such as Zerobrane Studio, have a function to autoindent your code. You'll then be able to see which function, loop etc. matches with which end statement, and crucially find the missing one.
  • horacebury likes this

[TOPIC: post.html]
#4

aclementerodrguez

[GLOBAL: userInfoPane.html]
aclementerodrguez
  • Observer

  • 7 posts
  • Corona SDK

Your module has way too much code in it. It will be difficult to resolve. You need to (a) post the lines which are shown in the error and ( B) boil your module down so that some of its work is done in other files.

 

Thanks horacebury, I have solve the problema just a hour ago. I do not understand yet but a simple condition that incriminates a global variable was the cause.



[TOPIC: post.html]
#5

aclementerodrguez

[GLOBAL: userInfoPane.html]
aclementerodrguez
  • Observer

  • 7 posts
  • Corona SDK

Some lua editors, such as Zerobrane Studio, have a function to autoindent your code. You'll then be able to see which function, loop etc. matches with which end statement, and crucially find the missing one.

 

Thanks nick_sherman, I use Zerobrane Studio but I solve the problem already.




[topic_controls]
[/topic_controls]