Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

'<eof>' error In Tutorial
Started by PatrickJH Dec 26 2018 07:44 AM

2 replies to this topic

Best Answer XeduR @Spyric , 26 December 2018 - 09:33 AM

The following error does not exist in the code you pasted.

Unless I remember that error wrong, it simply means that you have (or had) an extra "end" somewhere in your code. But, as I said, I ran the code and there isn't an error there. If, for some reason, you still have a problem, then consider zipping and uploading the project folder here so that we can run the same code that you have.

[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

PatrickJH

[GLOBAL: userInfoPane.html]
PatrickJH
  • Observer

  • 2 posts
  • Corona SDK

Working my way through the Star Explorer tutorial, and when I finished the ship dragging code, it suggests to try it out. 
When I do I get an error, that says:

 

main.lua:165: '<eof' expected near 'end'

 

I've gone through the code multiple times, but I can't figure out where I went wrong. I am kind of hesitant to continue in case the error is persistent.

 

Below is my code. 

Any help would be appreciated.

 

Thanks,

 

Patrick

 

Spoiler



[TOPIC: post.html]
#2

XeduR @Spyric

[GLOBAL: userInfoPane.html]
XeduR @Spyric
  • Contributor

  • 432 posts
  • Corona SDK

  Best Answer

The following error does not exist in the code you pasted.

Unless I remember that error wrong, it simply means that you have (or had) an extra "end" somewhere in your code. But, as I said, I ran the code and there isn't an error there. If, for some reason, you still have a problem, then consider zipping and uploading the project folder here so that we can run the same code that you have.


  • PatrickJH likes this

[TOPIC: post.html]
#3

PatrickJH

[GLOBAL: userInfoPane.html]
PatrickJH
  • Observer

  • 2 posts
  • Corona SDK

Thanks.

 

I ended up cutting the dragShip function out, then pasting it back in, and the error went away. Not sure what the issue was. 




[topic_controls]
[/topic_controls]