How do you make the app just lag instead of completely crash

Get help using Construct 2

Post » Thu May 26, 2016 5:07 pm

adamcreator wrote:Thanks I'll check it out now.


Ok did you see some things that you can change or you did the things in the list?
Check out my awesome Android Game releases https://play.google.com/store/apps/deve ... ames&hl=en
B
38
S
18
G
24
Posts: 681
Reputation: 16,613

Post » Thu May 26, 2016 5:12 pm

Right, it doesn't lag, just crashes. The largest files are the Spriter scon's--heavily compressed in the APK and presumably uncompressed at some point on the device--but they're necessary for the animated sprites. The images are just 7.70mb total and audio only 6.71mb total.
B
7
S
1
Posts: 47
Reputation: 541

Post » Thu May 26, 2016 5:15 pm

Yes everything in that list agrees with my game.
B
7
S
1
Posts: 47
Reputation: 541

Post » Thu May 26, 2016 5:16 pm

adamcreator wrote:Right, it doesn't lag, just crashes. The largest files are the Spriter scon's--heavily compressed in the APK and presumably uncompressed at some point on the device--but they're necessary for the animated sprites. The images are just 7.70mb total and audio only 6.71mb total.


Ok so you did read what I wrote about sprites too large you get black screen. Now what size is your spriter images ? 400x400 ,500x500 ,etc.

Also what file type are the spriter sprites? .png .jpeg?
Check out my awesome Android Game releases https://play.google.com/store/apps/deve ... ames&hl=en
B
38
S
18
G
24
Posts: 681
Reputation: 16,613

Post » Thu May 26, 2016 5:19 pm

.png
The images are very small, where backgrounds are 500 on the longest sizes, and character parts are even smaller.
B
7
S
1
Posts: 47
Reputation: 541

Post » Thu May 26, 2016 5:24 pm

what is the export you use to make the APK? this is not a image/performance problem... if crashes is the wrapper......there is no game crashing because a large image...maybe loads more time but never crashes. and if its loaded then its cached and the performance should not be that much affected.

crashing apps usually results from bad wrapping format ... from my experience cordova/intelxdk does this.

try creating different apks using different wrappers and see where it crashes and where not.. if crashes on all then something is wrong with your project... or with jsminifier if you use it on exporting.

also are you using a deprecated exporter?
B
75
S
22
G
68
Posts: 1,337
Reputation: 43,271

Post » Thu May 26, 2016 8:26 pm

@adamcreator -
By your description, I can think of only 3 possible reasons. Please check the following possibilities:

1) There are times that the spriter scml plugin when updating scml objects produces a bug. For example, when you update a scml object and the spriter images of the object are in a family or vice versa, then the spriter images/ objects are mistakenly accepted in the spriter object family. If you have this problem then the app will surely crash on gameplay.

To diagnose this install a beta release of C2 and if an error message shows when you open your .capx then this is causing the crash. To fix this, you need to read the error message to find out.

2) When an infinite loop / a function leading to a new function and etc. / repetition of trigger are used, they don't give out warnings of crash of game since it is not an error but just a misuse of events.
The unfortunate part of this is that it doesn't crash immediately, and will only crash when the events are triggered or true/active.

3) The most common cause of crash on-start of app / during gameplay are plugin errors on app build. For example , if you have admob, Inappbrowser, IAP plugins or any third party plugins and when these plugins are incompatible with your app or if the plugins are not well set or incompatible then a crash will happen.

Well, I hope you find the cause of your problem.
The Things you can create is only limited by your imagination. If you don't have the skills then use your motivation as a natural force to exceed all expectations. Chadori RebornXD
B
64
S
18
G
90
Posts: 1,118
Reputation: 59,565

Previous

Return to How do I....?

Who is online

Users browsing this forum: blue visionary, Google [Bot], namaewayukidesu and 15 guests