We have moved to a new Sailfish OS Forum. Please start new discussions there.
46

New native Sailfish game in Harbour

asked 2017-12-11 11:58:23 +0200

zlutor gravatar image

updated 2018-03-17 10:21:58 +0200

Finally I was able to get our first native Sailfish game, Gooble Invasion into Harbour. If you happen to have opinion about it - pro and contra -, please, share it with us.

gooble.png

If you like it, and would like to support us, please, download Android version to your Android device.

It would give us some visibility there and would give chance to earn some money, too... :D

edit retag flag offensive close delete

Comments

9

now you re confusing me. the second paragraph( under the picture) does not make that much sense to me if you offer a native sailfish version (+ this beeing the sailfish community page). "your android device" seems a bit misplaced. you might wanna elaborate on that. but - native sailfish - thumbs up!

kaktux ( 2017-12-11 12:55:31 +0200 )edit
13

@kaktux: use Sailfish native version for Sailfish.

BUT. if you like it and would like help us, the creators, download Android version from Google Play store on your native Android device...

you know, Sailfis OS is not the cash machine now but Android could generate us some money, if app becomes visible there...

Some kind of cross promotion... ;)

zlutor ( 2017-12-11 13:12:16 +0200 )edit
3

@kaktux: A lot of people (if not most) have more than one mobile phone.

ossi1967 ( 2017-12-11 14:03:41 +0200 )edit

@ossi1967 We have hoped for it... ;) not to mention family members, kids, friends...

Application supports any resolution and formfactors, so tablets also count.

zlutor ( 2017-12-11 14:11:52 +0200 )edit

I was not able to find the game in Jolla Store... I feel like I'm missing something.

utkarsh ( 2018-04-06 10:07:30 +0200 )edit

11 Answers

Sort by » oldest newest most voted
8

answered 2018-04-05 12:22:07 +0200

zlutor gravatar image

updated 2018-04-07 09:49:12 +0200

AAAAAAAAAAAAAANNNND finally root cause of crashing bug has been found and fixed thus audio is back again! :D

It seems there is some trouble with MP3 decoding in SailfishX, problem report has been created and fix is coming some day in one of the OS updates.

Meanwhile I transformed all audio clips into OGG from MP3 and now everything works fine. Only drawback is that OGG files are slightly bigger than MP3 ones thus install package has grown a little bit.

Thanks for Jolla -and especially @james - for the dedicated support they have given in sorting this issue out!

edit flag offensive delete publish link more
7

answered 2017-12-16 01:54:05 +0200

Jk gravatar image

Don't give up yet, if you fix xperia x crashing and make graphics sharper, I can even pay for that ;)

It's awesome that you make this game and hopefully you keep game improving and make more games.

Because all developing for sailfish is for good!

edit flag offensive delete publish link more

Comments

fixing Xperia crashing would require an Xperia X but I will try to do my best.

for sharpening the graphics: that will be the hard part because I have to convince my art mate to spend some time on it. and he is - thanks god - super busy with his regular job...

out of three of us only me is Sailfish fan but holiday season is coming and I will ask it from him for Christmas... ;)

due to limited resourcing, what are the most annoying visual issues? would you, please, send them (with screenshots if possible) to email found in the game?On info page or the last donation option (say thx...)

zlutor ( 2017-12-16 10:35:59 +0200 )edit

I think graphics are fine but it would be a great Christmas present for all of us.

Thank you for spending the time on us!

potski ( 2017-12-16 13:11:21 +0200 )edit

@potski: is the all known issue stucking the game at the result page (success in story mode and at the end of survival game)?

or only the first one? or something else, too?

zlutor ( 2017-12-16 13:23:35 +0200 )edit

The game is very nice indeed, but as Jk mentionned there a lot of crashing on Xperia X. Everytime a level is failed the app crashes. That means after all "survivor" game.

But as said, the game is fun and that's pretty nice to have a native game, keep up the good work!

lunatix ( 2017-12-18 16:27:25 +0200 )edit

@lunatix: thx for your report. I will try to find some solution before Christmas but it needs some sparetime from me, plus I have no access to any Xperia X. But will try to do my best...

zlutor ( 2017-12-18 18:16:50 +0200 )edit
5

answered 2018-02-14 00:06:42 +0200

zlutor gravatar image

Finally I was able to get in touch with an Xperia X and working on fixing Sailfish X issues.

So far so good, I was able identify the root cause: in-game audio. To be honest, I'm a little bit lost there - so, I would like to ask for help from the community...

Details below: there were many QML Audio components in use during the game: - one pool for weapon effects (5 QML Audio items) - one pool for four different audio effect for smashing monsters by hand (4 QML Audio element) - one dedicated one for game effect played when one life is lost

  • if audio disabled, game just runs fine
  • if I comment out all but the first pool of Audio elements game runs fine
  • if first pool is enabled, together with one-and-single one from second pool (rest is commented out) games runs fine for a while, in-game effects are OK but after a while no sound any more - and app hangs-up in the game result page

QML Audio has been changed to Media Player, same effect - only achievement that I was able to see following log entry (after exporting QT_LOGGING_RULES="*.debug=true" ):

Feb 13 22:32:16 Sailfish kernel: afe_callback: cmd = 0x100ef returned error = 0x2
Feb 13 22:32:16 Sailfish kernel: afe_apr_send_pkt: DSP returned error[ADSP_EBADPARAM]
Feb 13 22:32:16 Sailfish kernel: afe_send_cal_block: AFE cal for port 0x4000 failed -22
Feb 13 22:32:20 Sailfish sion[13927]: [W] unknown:0 - appsrc: push buffer wrong state

Last line could be from GSteramer code:

void QGstAppSrc::pushDataToAppSrc()
{
    if (!isStreamValid() || !m_setup)
        return;

    if (m_dataRequested && !m_enoughData) {
        qint64 size;
        if (m_dataRequestSize == (unsigned int)-1)
            size = qMin(m_stream->bytesAvailable(), queueSize());
        else
            size = qMin(m_stream->bytesAvailable(), (qint64)m_dataRequestSize);
        void *data = g_malloc(size);
        GstBuffer* buffer = gst_app_buffer_new(data, size, g_free, data);
        buffer->offset = m_stream->pos();
        qint64 bytesRead = m_stream->read((char*)GST_BUFFER_DATA(buffer), size);
        buffer->offset_end =  buffer->offset + bytesRead - 1;

        if (bytesRead > 0) {
            m_dataRequested = false;
            m_enoughData = false;
            GstFlowReturn ret = gst_app_src_push_buffer (GST_APP_SRC (element()), buffer);
            if (ret == GST_FLOW_ERROR) {
                qWarning()<<"appsrc: push buffer error";
            } else if (ret == GST_FLOW_WRONG_STATE) {
                qWarning()<<"appsrc: push buffer wrong state";
            } else if (ret == GST_FLOW_RESEND) {
                qWarning()<<"appsrc: push buffer resend";
            }
        }

        // After reading we might be all done
        if (m_stream->atEnd())
            sendEOS();
    } else if (m_stream->atEnd()) {
        sendEOS();
    }
}
edit flag offensive delete publish link more

Comments

Nice to hear you working with xperia x! Hope you found solution for xperia problems. Sorry about no logs from me, I didn't have motivation to give time to take some logs..

Jk ( 2018-02-14 23:21:31 +0200 )edit

My gut feeling says: it could have something to do with a memory problem due to using so many QML media elements.

In my App I use only one QML media element in the main QML file. Then for every sound which is to be played, the source of that element is changed. If there are more than one sound to be played in sequence, a timer is used (50ms) between the sounds. See the code here.

Maybe you could restructurize your code to use one media element.

jdrescher2006 ( 2018-02-19 13:52:00 +0200 )edit

@jdrescher2006: that was my first feeling also but some facts are against it: - having so many audio elements works fine on Windows, many Android, Jolla 1, Jolla tablet and Jolla C. Literaly everywhere but SailfishX - uploading Android version on SailfisX, it worked fine - hangs up happens even if there is one single Audio element on shopping page, playing 'cashier' sounds when buying items - although not that deterministic than after leaving game page...

So, I tend to think there is some issue in Qt Multimedia module on SailfishX. I'm waiting for 'consultancy' from Jolla but MWC is their priority, of course...

BTW. are you familiar with GStreamer warning?

zlutor ( 2018-02-19 14:17:46 +0200 )edit
3

answered 2018-02-19 12:50:47 +0200

zlutor gravatar image

updated 2018-02-19 19:38:09 +0200

V1.7-1 is out and it seems no crash/hangs-up so far during my testing with SailfishX. Please, try it by yourself to see whether issues have gone or not all...

The sad thing is, it is still a temporary release, where I have to disable all - :( - in-game sounds because it seems that caused the isses. Root cause is either an issue in SailfishX Qt multimedia module or I misuse it somehow. I thend to drop the latter one since original solution works 'everywhere' but SailfishX - and even more suspicious, Android version works just fine on SailfishX, too...

@Jk: if you happen to have time to test it, that would be great... ;)

edit flag offensive delete publish link more

Comments

Now that the crashes are fixed hopefully you will make it more sailfishy. (icons interaction etc) :)

ApB ( 2018-02-19 16:24:06 +0200 )edit
2

@ApB: crashes are fixed - but the game is 'crippled' with removing its in-game audio... First prio is to get them back in one way or another! :D

It is a cross platform game sharing code and visuals, original one made by three crazy guys and only the craziest one is left for Sailfish porting - guess who... ;)

Swipe gestures are supported by default - I know there could be more 'fishy' icon, back/exit buttons could be removed but telling the truth, without clear incentives, it is not that probable to happen...

zlutor ( 2018-02-19 19:20:24 +0200 )edit

It would be easy to get you an icon but its a closed and for profit (well, ok, not in sailfish) app so there's that.

Anyway, do your thing. I appreciate the effort you put into getting it to SFOS.

ApB ( 2018-02-19 20:26:10 +0200 )edit

@ApB: yes, icon is the easiest - let's see whether I can convince the artist guy of ours... ;)

zlutor ( 2018-02-19 20:32:05 +0200 )edit
2

answered 2017-12-11 15:46:43 +0200

ApB gravatar image

updated 2017-12-11 15:53:03 +0200

Played a bit with it. Overall a nice game to kill time.

Some graphics appear blurry on the J1. In the results screen the refresh,shop etc icons. The images in the story mode and other stuff here and there.

You could integrate ads a bit more gracefully than opening the browser. The same goes for highscores also.

Also some polishing stuff. The back buttons could be removed for SFOS since we have swipes. Also a more SFOS like Icon would be nice.

edit flag offensive delete publish link more

Comments

1

thx!

"You could integrate ads a bit more gracefully than opening the browser." - I immediately would if I could! :D

But there is no official component for it in Sailfish. Neither for Qt - except V-Play for iOS and Android - but it is not available for Sailfish.

Game code is almost fully cross-platform (QML+Javascript) thus it is not fully native in Sailfish in look-and-feel... HighScore uses ad source from VServ/Vmax - having no Qt/QML SDK in general, specially nothing for Sailfish.

I would be more than happy to use somethin cross-platform Qt/QML or native Sailfish solutions for in-game monetization but there is nothing I know of... :(

zlutor ( 2017-12-11 16:15:20 +0200 )edit
1

Ok i understand. Hopefully the other stuff i mention (blurriness, icons, transitions) will be fixed in a future update.

ApB ( 2017-12-11 17:31:41 +0200 )edit
2

answered 2017-12-20 12:22:15 +0200

Hades0299 gravatar image

Even though im not a mobile gamer, I really appreciate your effort, good work porting an app from Android to a native Sailfisch OS version. I would like it, if some of the 'major players' in the Android world would do the same.

Keep up the good work,

Hades

edit flag offensive delete publish link more

Comments

2

thx for your kind words!

I think we could hope for more native apps if - Qt gain popularity among game developer - some SDK (e.g. V-Play) supports Sailfish - there is monetization model in place - there is userbase

quite nice list with unavailable items, isn't it? ;) but I did my share - at least started doing something...

zlutor ( 2017-12-20 12:28:33 +0200 )edit
2

answered 2017-12-29 00:04:02 +0200

zlutor gravatar image

updated 2017-12-29 00:13:43 +0200

There is v1.2 released and one suspicious feature is [temporarily] disabled: 'get extra coin' at the end of each game played. Please, try it out on SailfisX whether issue is still persistent - if so, this is random or happens end of every end, still...

I'm getting more-and-more confident that it is some Qt/QML issue related to NumberAnimation on QML Item property. The strange thing is it is non-existent anywhere else on other platforms/OSs... :(

Hard to get more sophisticated fix without actual SailfisX device but we are working on it with Jolla - but that takes some time...

edit flag offensive delete publish link more
1

answered 2017-12-14 17:41:07 +0200

zlutor gravatar image

updated 2017-12-14 17:41:46 +0200

quite disappointig results so far - sub 200 installs, not a single donation, not even a supporting email sent from the app - not so motivating, telling the truth...

are there so few sailors left? :(

edit flag offensive delete publish link more

Comments

2

And now you're just being an attention whore.

figgis-diggis ( 2017-12-14 18:39:45 +0200 )edit

@figgis-diggis: thanks for your warm words, great...

I'm not really sure what 'whore' I am but after putting that amount of work into the project I expected to see more sailors on board. Not necessarily for the revenues but to see there is userbase here that justifies spending my freetime on developing for Sailfish OS. So far the experiment shows I had false expectations...

this whole stuff is an experiment, about testing the waters....

I have other apps in the Store (uploaded long time ago) having much more downloads/installs even if being inferior to this one.

it implies to me user base has been shrinken recently...

zlutor ( 2017-12-14 18:48:47 +0200 )edit

Haven't tested it on my daughter yet.

vattuvarg ( 2017-12-14 19:41:07 +0200 )edit
1

@vattuvarg: is she the new hope or the last jedi? ;)

zlutor ( 2017-12-14 21:03:10 +0200 )edit

@zlutor - She is the only gamer of this family.

vattuvarg ( 2017-12-14 21:05:02 +0200 )edit
0

answered 2017-12-19 17:32:48 +0200

Jk gravatar image

I found new problem with xperia x: game crashing even when plaing survival. I was in wave 7(I used a lot of weapons) and then game crashed.

Maybe this crashing cause same problem as a other crashing with xperia x...

But better to report here than be silent.

edit flag offensive delete publish link more

Comments

hmmmm, it is new issue, thx for reporting.

sad thing these issues are - to my best knowledge - quite exclusive to Xperia X... :( it will be quite challenging to correct them without real device... :(

e.g. I did sime testing with emulator (W7) and JollaC but no crash. On the other hand I have to admit I've seen freezing at Story game end once a few days ago...

could you describe in-game failure a little bit? Was it hang-up, crash, reboot? any chance to get some logs?

zlutor ( 2017-12-19 17:50:56 +0200 )edit

I ask myself how much QA is done by Jolla for the store.

I fully understand that developers don't own every possible device for tests (especially for such a small market, and the tablet is very hard to get), and I don't expect Jolla to play through the game, but the crashes on the Xperia X are so common that they should have seen it.

Cmdr_Zod ( 2017-12-19 20:44:26 +0200 )edit

@Cmdr_Zod: they test it on all official devices. they have seen issues with SailfishX but app was working ok on all other devices. Since there is no way to block only SailfishX - and app is usable thete to some extent - they have let it go...

zlutor ( 2017-12-19 21:31:37 +0200 )edit

@zlutor thank you for your explanation

I still wonder why it crashes on SailfishX, when it even seem to work on the tablet (can't verify this, still waiting for my youyota tablet).

Cmdr_Zod ( 2017-12-19 23:52:57 +0200 )edit

zlutor: issue what I noticed was crashing, sailfish pop out message "app not respond" and I can choose wait app or close app. Sure I can send you logs but I don't know how..

Can you teach me to find these logs?

Jk ( 2017-12-20 17:08:15 +0200 )edit
0

answered 2018-01-08 10:23:06 +0200

zlutor gravatar image

updated 2018-01-08 10:23:43 +0200

v1.3 is released. All suspicious, eye-candy features (animated stars) are disabled at game end page until I get access to real device enabling figuring out what is the real cause...

please, try it out on Sailfish device and give feedback.

edit flag offensive delete publish link more

Comments

Still freezes after game end page on Xperia X.

tmy ( 2018-01-08 12:21:18 +0200 )edit

I give it up then - having no Xperia in my hand, that's all I can do...

let's hope I'll have acces real device soon...

zlutor ( 2018-01-08 19:14:29 +0200 )edit

Indeed still freezes after game end page on Xperia X.

Xray2000 ( 2018-02-14 18:25:57 +0200 )edit

@Xray2000 yes, unfortunately the one in the Store is still freezing. But I have access to XPeria device and working on the correction. Getting close but not there yet...

zlutor ( 2018-02-14 18:37:27 +0200 )edit
Login/Signup to Answer

Question tools

Follow
7 followers

Stats

Asked: 2017-12-11 11:58:23 +0200

Seen: 5,381 times

Last updated: May 08 '18