Page 1 of 1

Materialize Labs Mobile app development & FreeOrion

Posted: Fri Jan 10, 2020 4:36 am
by DonCheetah
Hi, I'm interested in porting FreeOrion to mobile devices. Is there any documentaiton on this? Do you guy's plan on releasing a mobile version? (So that I won't have to spend time trying to port it).

Re: Materialize Labs Mobile app development & FreeOrion

Posted: Fri Jan 10, 2020 9:07 am
by o01eg
There were old thread https://freeorion.org/forum/viewtopic.php?f=24&t=5593

As I know no one working on it, so feel free to try.

Re: Materialize Labs Mobile app development & FreeOrion

Posted: Fri Jan 10, 2020 7:55 pm
by defaultuser
I'm not involved in the development, but I think it would be a substantial task. I don't think it's that easy to port C++ programs to mobile platforms.

Re: Materialize Labs Mobile app development & FreeOrion

Posted: Fri Jan 10, 2020 10:10 pm
by Ophiuchus
The most interesting part to port or reimplement is the client i guess.
Else you could try to crosscompile to wasm

Re: Materialize Labs Mobile app development & FreeOrion

Posted: Sat Jan 11, 2020 9:53 am
by Geoff the Medio
A major problem for porting the FreeOrion client to a mobile platform is that the client-server communication uses the C++ library Boost serialization. If you can't compile and use C++ libraries on another platform, then you'd need to find or implement a compatible serialization library. Then you could in theory connect a mobile client to a server and play a game.

Re: Materialize Labs Mobile app development & FreeOrion

Posted: Sat Jan 11, 2020 10:17 am
by o01eg
Geoff the Medio wrote: Sat Jan 11, 2020 9:53 am A major problem for porting the FreeOrion client to a mobile platform is that the client-server communication uses the C++ library Boost serialization. If you can't compile and use C++ libraries on another platform, then you'd need to find or implement a compatible serialization library. Then you could in theory connect a mobile client to a server and play a game.
There is a project https://github.com/moritz-wundke/Boost-for-Android which builds Boost serialization (I've tried it).

As we are going to replace FOCS syntax to python3 syntax we should try to build python libraries and enable boost-python in a build scripts above.

And most complex is to get Android compatible UI.

If we are going to have full game on the phone I think we will get more issues with the game state. I suppose on Android we have to load client, server and AIs into the same java process, and directly exchange messages without network (or even serialization), and because of high usage of global static variables it can lead to incorrect data exchange.

Re: Materialize Labs Mobile app development & FreeOrion

Posted: Sat Jan 25, 2020 7:37 am
by o01eg
I've managed to build python and boost with python support for Android: https://github.com/python-cmake-buildsy ... m/pull/262 and https://github.com/moritz-wundke/Boost- ... d/pull/190

Re: Materialize Labs Mobile app development & FreeOrion

Posted: Mon Jan 11, 2021 7:26 am
by rohit7261
Hi, I'm interested in porting FreeOrion to mobile devices. Is there any documentaiton on this? guy's plan on releasing a mobile version?

Edit by Oberlus: remove link to other websites unrelated to this thread. This account is probably a spammer, but let's see.

Re: Materialize Labs Mobile app development & FreeOrion

Posted: Mon Jan 11, 2021 8:57 am
by o01eg
rohit7261 wrote: Mon Jan 11, 2021 7:26 am Hi, I'm interested in porting FreeOrion to mobile devices. Is there any documentaiton on this? guy's plan on releasing a mobile version?

Edit by Oberlus: remove link to other websites unrelated to this thread. This account is probably a spammer, but let's see.
We have some ideas but its not official or any supported yet.

I've opened PR based on Godot client https://github.com/freeorion/freeorion/pull/3202 . Part of it was merged to master.

It only provides APK could be built, but it doesn't even read assets.

Re: Materialize Labs Mobile app development & FreeOrion

Posted: Sat Jan 30, 2021 7:34 pm
by Voskhod_02
Any news about that project? It does sound rad, and I'd love to have FreeOrion on my phone, as I get too distracted if I launch it on my computer when I still have a couple hours of work left before I can finally leave the world of the Spain property investment visa and actually rest...

Re: Materialize Labs Mobile app development & FreeOrion

Posted: Sun Jan 31, 2021 11:22 am
by o01eg
Voskhod_02 wrote: Sat Jan 30, 2021 7:34 pm Any news about that project? It does sound rad, and I'd love to have FreeOrion on my phone, as I get too distracted if I launch it on my computer when I still have a couple hours of work left before I can finally leave the world of the Spain property investment visa and actually rest...
No news for it, there some issues with Godot and I'm waiting some PR to be accepted.

Re: Materialize Labs Mobile app development & FreeOrion

Posted: Sun Jan 31, 2021 12:28 pm
by Geoff the Medio
o01eg wrote: Sun Jan 31, 2021 11:22 amNo news for it, there some issues with Godot and I'm waiting some PR to be accepted.
As far as I'm aware, we discussed and agreed to wait on the open pull requests until the Godot client is basically functional, before merging Godot-related stuff into master. If there's something that should be merged before than, or things are basically functional, please ping me with a comment on GitHub about it...

Re: Materialize Labs Mobile app development & FreeOrion

Posted: Thu Feb 04, 2021 5:40 am
by o01eg
Geoff the Medio wrote: Sun Jan 31, 2021 12:28 pm
o01eg wrote: Sun Jan 31, 2021 11:22 amNo news for it, there some issues with Godot and I'm waiting some PR to be accepted.
As far as I'm aware, we discussed and agreed to wait on the open pull requests until the Godot client is basically functional, before merging Godot-related stuff into master. If there's something that should be merged before than, or things are basically functional, please ping me with a comment on GitHub about it...
I meant Godot's PR I'm waiting not FreeOrion's ones.