Hi there, I was attempting tutorial 2 of Ladeez parse tutorial and could not get by one issue. I am sure it is simple enough, but cannot get by it. These are the two links I am using for reference, the tutorial link and the commit for that specific tutorial.
http://www.ladeezfirstmedia.com/2013/06/30/tutorial-part-2-parsedata-coronasdk-parsemodules-ftw/
https://github.com/jlooper/DessertOMeter/commit/fa7577ee8133b882ec9a0f0ae00624bfac96fcd1.
Here is the error I keep getting:
Runtime error
…/Documents/Corona Tutorials/Ladeez Tutorial/main.lua:210: attempt to index upvalue ‘dessert’ (a nil value)
stack traceback:
[C]: ?
…/Documents/Corona Tutorials/Ladeez Tutorial/main.lua:210: in function <…/Documents/Corona Tutorials/Ladeez Tutorial/main.lua:203>
Runtime error: …/Documents/Corona Tutorials/Ladeez Tutorial/main.lua:210: attempt to index upvalue ‘dessert’ (a nil value)
stack traceback:
[C]: ?
…/Documents/Corona Tutorials/Ladeez Tutorial/main.lua:210: in function <…/Documents/Corona Tutorials/Ladeez Tutorial/main.lua:203>
If you look at the commit(the second link), the code reaches line 192, because I get that message in the simulator, but at line 202 of the commit link(210 , I get the error message referencing “attempt to index upvale ‘dessert’ (a nil value)”
Please let me know if you can give any advice. Thanks.