Nexus 9

Error message

Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in _menu_load_objects() (line 579 of /homepages/19/d568871475/htdocs/clickandbuilds/Drupal/AliteDrupal/includes/menu.inc).
27 posts / 0 new
Last post
Skunkworx
Nexus 9

I have just got a new nexus 9. Unfortunately alite does get past the opening animation.I have tried both the playstore and website downloads and neither work. On the play store version when you tap the screen during the opening animation it comes up with a message box to say the application has stopped and the promptly restars the animation when you did miss it. The version I got from the website does the same think just without the message box popping up. So basically just restarts the animation. Any suggestions?

Stardust
Stardust's picture
Bad....

Hey, thanks for the report. Sorry it doesn't work :(.

I will upload a new version to the website today, which will at least write a log file, which should provide further information as to what might be amiss.

If Alite crashes that early, something must be very wrong indeed... Which version of Android are you using? And: If you have Lollipop: Do you have multi user accounts enabled? If so, and if it is feasible, try it with only one user account. If you should be using Android 4.4, the version might be the problem. Try upgrading then.

But this is, for now, just fishing in the dark. The log should provide more info. I'll upload in about 12 hours...

Skunkworx
It is the latest lollipop

It is the latest lollipop version and I do have multiple user accounts enabled. Not sure.my wife would be to happy wiping her account from the tablet. ☺

Stardust
Stardust's picture
Ok. Thanks for the

Ok. Thanks for the information. I'll see what I can do. Don't swipe your wife's user account just yet :)

Skunkworx
Will it be obvious when there

Will it be obvious when there is a new version to try?I can still play as it works fine on my galaxy s5 phone. Congratulations on a great android version of elite you have done a really good job. It has really took me back to my youth on my c64 and Amiga.However I did manage to loose my progress today. When I loaded it asked if I wanted to load a new commander and I clicked the x. It then presented me with a new game back at lave but had overwritten my autosaves straight away.

Stardust
Stardust's picture
I'll post here as soon as I

I'll post here as soon as I have the new version uploaded - shouldn't be long now, but upload times are sloooow...

Sorry about the loss of your progress! Were all three auto-saves overwritten at startup?! That -- should -- not happen... I'll check the code, too.

I'm glad you like the game... I hope that eventually less of those annoying glitches occur. Thanks for your help in any case :)

Stardust
Stardust's picture
E-Mail

Hey Skunkworx,

I just sent you an e-mail with a debug version of Alite; it will crash in the same way as the official version did, but this one will output a log why it did.

Thanks!

Stardust
Stardust's picture
Debug Version Uploaded

A debug version of Alite can now be downloaded here: http://alite.mobi/sites/default/files/AliteDebug.apk

Stardust
Stardust's picture
I can reproduce the bug (apparently)

Ok, so the good news is: When I fire up a Nexus 9 in my emulator, Alite crashes at the same point as your real device. As yet, I don't have a clue as to why, though. I'll keep you posted!

Stardust
Stardust's picture
I'm getting there

Good news: I can play Alite on an (emulated) Nexus 9 now. The crash is gone.The bug is still there, though: It's lurking in the button rendering code... If I do not render the buttons on the initial ship intro screen, everything works fine (I can even tap the buttons). I'm not sure, why rendering them shows such a fatal behavior on the Nexus 9 (all _other_ buttons are rendered correctly!), but I'm going to find out...

Skunkworx
That's good news that the

That's good news that the emulator is so close to the real device. It should make fixing the crash much easier. Good luck.

Stardust
Stardust's picture
Workaround found... But not perfect

Hi,

well... I'm not so sure anymore that it has anything to do with buttons... I can "sometimes" get the Ship Intro Screen to work, if I hack around -- but then parts of it are always missing.

So, I tried leaving the Ship Intro Screen out, and I start Alite with the Status Screen --- this works. At least on my emulator. I tested the game for about 15 minutes (giving it a rain check, but nothing too deep), and all the major things seem to be in order: I can access the tutorials, I can access planet screens, launch into space, enter hyperspace, and engage in combat. When I destroyed the attacking Asp, there was no explosion -- that seemed strange, but can be due to the emulator.

When I reset the game --- the game crashed after the intro (same behavior as before, with the Ship Intro Screen). But I could restart the game without problems after that.

So, if you're willing to give this version a go, I'll upload it to this site and give you the download link once the upload is complete (that might take another three hours or so).

I'm not understanding the bug: The VM crashes without any error report (I don't even get a crash address). Also, the VM crashes in Android code; not even in code that is written by me, but then again, if I remove my render code, the game works again... It's really strange, I'll continue the investigation, but it would help if you can tell me, how bad the new version will work on a real Nexus 9. Maybe it still crashes...

Skunkworx
I am happy to test any

I am happy to test any version you have and let you know how it goes.

Stardust
Stardust's picture
Nexus 9 workaround version
Skunkworx
Well it does indeed work.

Well it does indeed work. However there are a few intermittent issues with the rendering. As you noticed the explosions they don't render all the time also if you are chasing a ship then sometimes it also can disappear and reappear. 

Stardust
Stardust's picture
Interesting...

Well, thanks for testing.

Very interesting indeed... I'm not (yet) sure what can be amiss, but it seems that the emulator is a pretty good "replacement" for the Nexus 9, so I can continue working on these issues... Have you tried to reset the game (while in flight)? What happens? Does it crash? (Sometimes?)

Disappearing ships?! :) There's only one ship in Alite, which should be able to do that ;)

Skunkworx
What is the process for

What is the process for resetting the game?

Stardust
Stardust's picture
Options/Reset Game

In the Command Console, navigate to "Options", then select "Reset Game" and answer the 'Are you sure?' question with "yes".
This will play the intro again. If I now tap the screen on the emulated N9, Alite crashes...

Skunkworx
I have tried this several

I have tried this several times and its not crashed at all.

Stardust
Stardust's picture
Cool...

Ok, "one success" :) [end quote -- can you name the movie?! :)]Seriously: This N9 thing is pretty difficult to debug, so I'll devote the week-end to the bug hunt. _Maybe_ that will also fix some other "strange" bugs (like all textures turning black on certain tablets, but only if they are not under a transparent cover... -- if they are under a transparent cover (e.g. viewed through the HUD), the textures appear correct... STRANGE bug...).

Skunkworx
You've got me with the movie

You've got me with the movie quote.   Good luck with the bug hunt over the weekend. I know what it's like when you have a difficult bug to track down.I don't have any experience of android development but I have been a programmer for around 25 years on many platforms and languages. If there is anything I can do to help please let me know.

Stardust
Stardust's picture
Found it!

Ha! -- It's a problem with the "Alite Logo", which is a billboard sprite. This causes problems on the N9... (The easy fix is to go without the billboard). I have the rest of the weekend to figure out what exactly is wrong with the billboard -- but I'll upload the fixed version on Sunday...

As for the explosion: Found that bug, too... It's actually not a "bug" per se: I have used an explosion generator to create the frames, but the explosion radius is larger than my square region, hence the explosion is cropped... I don't know if I find time to fix the explosion this week-end, but I'll fix it :)

Skunkworx
That's all good very good

That's all good very good news. However what was the movie quote? ;)

Stardust
Stardust's picture
Oh yeah... The movie...

Sorry, I forgot to answer that... I hope this won't be too much of an anticlimax now :)

It's a line from "A bug's life" (the Pixar animated movie). It's when a "child"-bug tries to console the "hero"-bug (forgot the names, sorry). The hero says something like "none of my inventions work", to what the little one replies "well, this one works", holding up a blade of grass and a drop of dew combined to form a telescope... And, sarcastically, the hero replies "One success..."

Countdown is ticking for the update... :)

Stardust
Stardust's picture
Hrmpf...

Well... The new "Nexus 9" special version works somewhat better than the last version --- but it's still no good :(

You now have the ShipIntroScreen (without the Alite logo), but there are still vanishing objects. As to why: No clue yet... I'm experimenting...

Skunkworx
That's a shame you would have

That's a shame you would have thought that the actual google device would be the most compatible device of them all.

Stardust
Stardust's picture
Bug found!

Well, it sure took its time, but I am happy to report that I have found the reason for the vanishing objects bug. Now, I can really play Alite without any problems on the simulator, and hence I am pretty confident that it will also work correctly on the Nexus 9 and 10.

I will provide an update as soon as possible (a day tops), but I would like to investigate into some crash reports after the intro. They seem to be consistent with what I observe if I reset the game on the simulator, so I'll try to fix that as well.