Problems between code already running on 1.01 that's doesn't run in 1.1

Hi all Corona stuff and community,

May be I am doing something wrong, but the thing is I updating my already published game, (100% done in CORONA 1.01) in order to add some new features. But when I start my source code, that I left a month ago, before version 1.1 appears and I run it, I realize that it doesn’t work at all.

So, here a few things that I would like to understand:

  • I can run the game but, when I try to start a new gameplay, after a quit button or game complete, but without quitting the app; corona simulator logout and close. It was running well on previous version of simulator.
  • Even if I test it on device, the same thing.I

I don’t know if CORONA staff changed something that alter backward compatibility with 1.01 (I guess yes) to react in different ways. Of course I know there many new features that are added and some code changed to fix bugs and so on, but I guess compatibility must be addressed in some way.

So, I don’t how to fix this problem and even worst I can’t update my game! That’s is really bad. So, as I can’t publish here my code, even because it has more than 1500 lines of code and 3 lua files, could anyone here let me know if there is a way to solve this problem?

I was trying to auto-debug it adding print sentences and so on, even with the little debugger provided, I can realize where the problem is, when it is a source code that was running well in the past, just a month or two before.

Could you provide me the previous version of SDK 1.01 to test my app against that version?

Regards, [import]uid: 3022 topic_id: 586 reply_id: 300586[/import]

To add a more detail related this topic:

The game has a menu, which is built in 3 (graphics) buttons.

The first time that start the game, everything work fine, until it reaches again the Main menu. Here when I try to click on one of these buttons, simulator logout and close, without any advice or messages.

During playback there is nothing different from the previous run on Corona version 1.01, it means, the source code wasn’t change. But right now running on version 1.1 I get this exit without ability to see where the problem is.

The Main menu is rebuild after first gameplay but when I click on one of them, it never reaches the listener again. But everything is identical as it was running on version 1.01

Flavio. [import]uid: 3022 topic_id: 586 reply_id: 1140[/import]

Hi all !

CONFIRMED

I found CORONA SDK 1.0 and my old source code run perfect. The bad news is I can’t use the new features like keyboard and font, because I doesn’t work in the same way with version SDK 1.1

ANY HELP???

Thanks.

Flavio
[import]uid: 3022 topic_id: 586 reply_id: 1141[/import]

So the question here is:

What changes were done between SDK 1.0, 1.01 and 1.1 that doesn’t allow my app to still running after SDK version 1.0???

I hope some guy from Ansca, has the answer.

Flavio. [import]uid: 3022 topic_id: 586 reply_id: 1142[/import]

Due the lack or response and hours of looking for the error I’ve finally fixed app closing in CORONA SDK 1.1. Even it is fixed, it’s solution is not so clear for me, because it is very strange, but it seems to be a problem related to display.newGroup treatment in new version of the SDK, where I was using a menu group to insert all of my menu buttons. Its funny because it was running well on previous SDK, but I have to change it to work on SDK 1.1

In fact, I left as is after my change, because now is working, but I will make a new game from scratch following SDK 1.1 directly and I hope SDK 1.2 will not hurt my code again.

On the other hand display.newText(“blah blah blah \n blah blah”) doesn’t produce the expected result, i.e. two lines printed because of use of \n. I don’t why, but by using SDK 1.1 \n doesn’t work. It print only the first part of the text.

I guess would be very useful for me and for other CORONA developers, to know changes made between releases that affect backward compatibility instead of publish only new features added.

Flavio
[import]uid: 3022 topic_id: 586 reply_id: 1153[/import]

Flavio

do you have some code for us to look?

we have had a DDOS on our corporate site and our response to the forums have been slowed due to the focus on the corporate site.

C [import]uid: 24 topic_id: 586 reply_id: 1161[/import]

Thanks carlos,

What can help me and I guess the community, is if you can provide a sample code with a complete cycle or loop, like real app or game, where you have to load tables, remove childreen, then load them again and so on, with many screens transitions in the hole app, instead of just sample app that runs once or only have 1 table or 1 screen. If you take a look at samples code provided by Ansca, all of them are part of this category.

For instance in my game as other final games, you have main screen, cut-scene screen, level screen with objects or sprites, resume screen and complete or game over screen. I’ve noticed a strange behavour when childreen are removed from tables, forcing you to adapt the code in a strange manner, instead of guidelines defined in the docs.

So, if you can provide a complete code as an example one, but with a complete life app cycle, with many screens and objects, that would clarify a lot, to undertand what are your best practices to be applied on CORONA development. Because for me, even when I started with version 0.3 beta, still not so clear.

Regards, [import]uid: 3022 topic_id: 586 reply_id: 1169[/import]

To point out some criteria for that sample code:

-Intensive loading, removing tables (display graphics, texts, etc)
-transitions between screen with or without animation or delay
-timer and/or frame based animation with several listeners
-main menu, cut-scene, etc
-some foreground sound and backing music

And the most important one, how to controll the hole application cycle or loop. I.e. how to enter in the loop and how to exit from specific loop, but still in the main loop.

If you can make a sample code with all of the above features well integrated to ilustrate your best practices, that would be your best answer to many community or forum questions I guess.

Regards,

Flavio. [import]uid: 3022 topic_id: 586 reply_id: 1170[/import]

Got it

Thanks

Carlos [import]uid: 24 topic_id: 586 reply_id: 1175[/import]