H-Craft Championship now on Android

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
thanhle
Posts: 325
Joined: Wed Jun 12, 2013 8:09 am

Re: H-Craft Championship now on Android

Post by thanhle »

Glad to see it happening.
Well done mate.

I need to learn android development to compete with you guys, lol. I need to develop a next gen pong. That must be difficult :).
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: H-Craft Championship now on Android

Post by Nadro »

@CuteAlien
Software keyboard works fine in example from irr sdk.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
CuteAlien
Admin
Posts: 9733
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: H-Craft Championship now on Android

Post by CuteAlien »

@Nadro, ah... that makes it not easier to hunt this
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
endless_dark
Posts: 18
Joined: Mon May 04, 2009 12:18 am

Re: H-Craft Championship now on Android

Post by endless_dark »

I'm also experiencing virtual keyboard issues, I don't know if it has been comented here before.
When I have to insert the profile name, the virtual keboard appears, but when I touch it then it goes down and dissapears so I am unable to write.
CuteAlien
Admin
Posts: 9733
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: H-Craft Championship now on Android

Post by CuteAlien »

Hi, thanks for the report. It would help a lot of you could tell the Android Version and maybe even the mobile device used when reporting problems. Then I have a chance to find some connection about the involved devices. Like if they all use the same Android versions and it's one I'm not having yet then I can try to get my hands on such a device.

Problem I'm having right now is that my devices don't show those problems, so I have no idea how to work on that. The Android simulator is unfortunately pretty useless for testing such things (or 3D apps in general).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
endless_dark
Posts: 18
Joined: Mon May 04, 2009 12:18 am

Re: H-Craft Championship now on Android

Post by endless_dark »

I was trying it using a Xiaomi Red Rice (Hongmi).
It has MIUI 5 which is based in Android 4.3
CuteAlien
Admin
Posts: 9733
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: H-Craft Championship now on Android

Post by CuteAlien »

I just updated to Lollipop a few minutes ago ... and now I can reproduce the keyboad troubles.

edit: OK, found 2 bugs. Both fixed in Irrlicht now. Guess I'll have to make a new release for my game.

edit2: Unfortunately another bug. It seems with Android lollipop all motion events are no longer blocked by virtual keyboard when the device is in landscape mode. No solution yet. That's probably also what was happening on some other device as that explains why the keyboard vanishes on first click (the input-field loses the focus).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
CuteAlien
Admin
Posts: 9733
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: H-Craft Championship now on Android

Post by CuteAlien »

Seems I find no way to get virtual keyboards working with Android Lollipop in landscape mode. Only solution I can think of right now is writing my own keyboard :-(
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
CuteAlien
Admin
Posts: 9733
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: H-Craft Championship now on Android

Post by CuteAlien »

I've just started the upload of a new version - should be in Google-play by tomorrow (and devices seems to update automatically... first time I'm doing this so I really hope user-data will stay intact).

It fixes all the problems I found with virtual keyboards in Irrlicht (also fixed in Irrlicht by now). But couldn't figure out a way to get virtual keyboard + landscape mode working in Lollipop. Maybe the same bug you guys had. So... I've added a keyboard-selection instead which allows switching to an alternative keyboard now.

No idea yet on sound-troubles as I still can't reproduce those. But maybe it was a follow-up bug from the keyboard input which messed up things.

@Nadro: Can you try irrlicht example in landscape mode when you find some time? I'm curious if that's just a bug now on my device or if this is the general problem with keyboard input we're having.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
endless_dark
Posts: 18
Joined: Mon May 04, 2009 12:18 am

Re: H-Craft Championship now on Android

Post by endless_dark »

I've downloaded the update, and my user data is ok.

Shomehow I managed to create a profile yesterday and try out the game. I tried to write on the virtual keboard "sideways" and managed to write a name, so I could create a profile.
The game is awesome, at first it was hard to get used to the controls and the ship dynamics, but after a couple of races I got familiar.
The graphics look perfect and the game runs smooth. Very cool.

Since you've published the whole source code I would like to write a code review like the ones on http://fabiensanglard.net/, for learning pruposes on my blog but I don't know if I will have enough free time.
CuteAlien
Admin
Posts: 9733
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: H-Craft Championship now on Android

Post by CuteAlien »

Sounds like same problems I had here since update to Android Lollipop. The input area of the virtual keyboard is wrong, so you can just hit the keys at the border a little bit - but not the rest. No idea how to fix that, but with alternative keyboard now it should be possible for everyone to write names.

Source code... is not really perfect. I started it 8 years ago and I was new with Irrlicht back then. So would look differnt today I suppose. But at least I still managed to find my way around it years later, so it's not completely bad I guess :-)
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
qubodup
Posts: 4
Joined: Fri May 31, 2013 7:19 pm

Re: H-Craft Championship now on Android

Post by qubodup »

Fresh install from google play on a Samsung Galaxy Tab 3 7.0 doesn't work. At start I see this and touching above and below the input sometimes creates click sounds but no changes.
Image
CuteAlien
Admin
Posts: 9733
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: H-Craft Championship now on Android

Post by CuteAlien »

@qubodup: Please switch to the alternate keyboard - there's a selection box for that now. Might have to press around a few times until other keyboard vanishes before you can click that selection. And yes, it's pretty bad. Unfortunately I have found no way to fix it so far. My current guess is that google broke this in Android lollipop, but not sure yet - could still be we do something wrong in Irrlicht.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
qubodup
Posts: 4
Joined: Fri May 31, 2013 7:19 pm

Re: H-Craft Championship now on Android

Post by qubodup »

I don't think it's related to the keyboard. I have it running on Android 4.1.2 Jelly Bean.

I can hide the keyboard by hold-pressing the option button. I also hear the music playing.

Image

I think I was able to press "ok" by randomly touching. Now all I see is a black screen.
CuteAlien
Admin
Posts: 9733
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: H-Craft Championship now on Android

Post by CuteAlien »

Ah OK, this sounds like a new bug. Very strange - editbox does show up, but the rest of the GUI is missing. Thanks for the feedback. Nothing I can really do so far unfortunately, but maybe I get such a device on my hand some day and can work on it.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply