Angry Birds - Menu and Levels Database template

Hi there, I have emailed you the amended menu.lua file.

I must get round to updating the main package!

Well I expected more in this package, but its not that much good.

  1. There is no first scene Menu Items other than play button.

  2. There is no animated button which creates a set of buttons popup like in angrybirds. (refer this link for what I say  http://dotnetslackers.com/articles/mobile/Create-Android-AngryBirds-Game-Using-WiEngine-SDK-Part-2.aspx)

Sorry that you’re disappointed, however, the original post does explain in full detail what is in the package. I’ll take your suggestion on board and the start screen pop-up menus may form part of a later update.

Hi Nick - sorry to nag…any chance of you updating this template for new widgets soon? I’ve bought it but cant now use any recent Corona build if I want my app to run in the simulator even. 

Cheers,

Kevin

Kevin,

Everyone who bought the template should have just received an e-mail with a replacement menu.lua file to work with Widgets 2.0. Can you let me know if you got it okay?

thanks

Nick

Hi Nick,

I have now - the original probably got incorrectly eaten by the Microsoft Spam Spotter ™

I appreciate the swift reply to my post. 

Best regards,

Kevin

Confirming recept as well, thanks!

Hi Nick,

I’ve been working at using your template in my own game and finding inconsistent/incorrect behaviors with stars. In an attempt to track down the problem I’ve gone back to your template files and tried that and I also found the same  problems.

Here’s a use case:

  1. Start with first=nil uncommented in main.lua / 
  2. Click on first episode in menu.lua
  3. Click on first level in levels.lua
  4. Click random score in game.lua until you get 2 or 3 stars. Also select complete level.
  5. Click back to levels.lua and you will see that only 1 star is shown under the level that you just got 2 or 3 stars on.

Repeat that a few times (say for levels 1, 2 & 3). Now go back to menu.lua and see what total stars count is. In my case I have 5/189 but only 1* ‘awarded’ in each of first three levels.

So to be specific:

[1] Clicking back to levels from game seems to show wrong stars (under level icon)

[2] The total stars in an episode (as displayed in menu.lua) quickly exceeds the total of all stars in level icons in levels.lua

I’m sure this didn’t do this before the recent update for widget but that cant affect DB read/writes.

I’ve set up a debugging function on all my files that loops through all episodes and levels and displays current ‘stars’ value and it is different on different pages. I’ve gone though all of my files several times and cant understand why the same DB read yields different data.

I’m new to this and quite likely missing a mistake on my side but then your template code is also not working correctly.

Is anyone else having issues?

FYI I’m on 2013.1080

New code added to my game and now working - thanks.

Just FYI - you didn’t leave the following line commented out so it took a few minutes to work out what else had been changed and why it still wasn’t working…

Line 394 in menu.lua

        scrollView:scrollToPosition{ x = -gap*(position-1), y = y, time = 1, onComplete = onComplete}

Thanks

Just to help get to the bottom of this I’ve attached two s/shots. This was from a ‘first run’

1 - shows the levels screen (with a total of 11 stars in episode 1)

2 - shows the subsequent menu screen (with a total of 13 stars for same episode)

Incidentally, I couldn’t repro this for Episode 2 which seemed to work perfectly.

Kevin

Kevin,

Thanks for that, I’ll take a look and see if there’s a gremlin somewhere. 

Nick

This might help…

If you hit ‘complete level’ in game.lua then return to the levels.lua then a single star is displayed. This doesn’t register when you return back to menu. It seems that only 2 or 3 stars increment episodes star value.

I’ve modified the logic somewhat for my own game with a score delivering either fail, 1*, 2* or 3* rather than a score necessarily equating to level ‘completion’ but I have an idea of where to focus now.

All good fun :smiley:

Hi, i download it today, is that the update version? It don’t work, the app crash after i tap the play button, and yes, I put in the ggdata lib.

Thanks

Hi, 

Hi there, can you send me an e-mail at otterstudios@hotmail.co.uk and I’ll send you the Widget 2.0 update (the transaction details aren’t showning on paypal yet).

Nick

Done :wink:

Hi I bought this menu code and its giving lot of error popups while I run in the simulator.

I;m using Corona Build 2013.1076 build

pls send me the correct code complete package.

shreedhara.ca@gmail.com

Hi there, I have emailed you the amended menu.lua file.

I must get round to updating the main package!

Well I expected more in this package, but its not that much good.

  1. There is no first scene Menu Items other than play button.

  2. There is no animated button which creates a set of buttons popup like in angrybirds. (refer this link for what I say  http://dotnetslackers.com/articles/mobile/Create-Android-AngryBirds-Game-Using-WiEngine-SDK-Part-2.aspx)

Sorry that you’re disappointed, however, the original post does explain in full detail what is in the package. I’ll take your suggestion on board and the start screen pop-up menus may form part of a later update.

Hi Nick,

I’ve been working at using your template in my own game and finding inconsistent/incorrect behaviors with stars. In an attempt to track down the problem I’ve gone back to your template files and tried that and I also found the same  problems.

Here’s a use case:

  1. Start with first=nil uncommented in main.lua / 
  2. Click on first episode in menu.lua
  3. Click on first level in levels.lua
  4. Click random score in game.lua until you get 2 or 3 stars. Also select complete level.
  5. Click back to levels.lua and you will see that only 1 star is shown under the level that you just got 2 or 3 stars on.

Repeat that a few times (say for levels 1, 2 & 3). Now go back to menu.lua and see what total stars count is. In my case I have 5/189 but only 1* ‘awarded’ in each of first three levels.

So to be specific:

[1] Clicking back to levels from game seems to show wrong stars (under level icon)

[2] The total stars in an episode (as displayed in menu.lua) quickly exceeds the total of all stars in level icons in levels.lua

I’m sure this didn’t do this before the recent update for widget but that cant affect DB read/writes.

I’ve set up a debugging function on all my files that loops through all episodes and levels and displays current ‘stars’ value and it is different on different pages. I’ve gone though all of my files several times and cant understand why the same DB read yields different data.

I’m new to this and quite likely missing a mistake on my side but then your template code is also not working correctly.

Is anyone else having issues?

FYI I’m on 2013.1080