Materialize Labs Mobile app development & FreeOrion

Talk about anything and everything related or unrelated to the FreeOrion project, especially Strategy Games.

Moderator: Oberlus

Post Reply
Message
Author
DonCheetah
Space Krill
Posts: 1
Joined: Thu Jan 09, 2020 10:28 pm

Materialize Labs Mobile app development & FreeOrion

#1 Post 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).

o01eg
Programmer
Posts: 949
Joined: Sat Dec 10, 2011 5:46 am

Re: Materialize Labs Mobile app development & FreeOrion

#2 Post 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.
Gentoo Linux x64, gcc-9.3, boost-1.72.0
Ubuntu Server 18.04 x64, gcc-7.4, boost-1.65.1
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 0.4.10.1.
Donations are welcome: BTC:14XLekD9ifwqLtZX4iteepvbLQNYVG87zK

defaultuser
Juggernaut
Posts: 761
Joined: Wed Aug 26, 2015 6:15 pm

Re: Materialize Labs Mobile app development & FreeOrion

#3 Post 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.

Ophiuchus
Programmer
Posts: 1734
Joined: Tue Sep 30, 2014 10:01 am
Location: Wall IV

Re: Materialize Labs Mobile app development & FreeOrion

#4 Post by Ophiuchus »

The most interesting part to port or reimplement is the client i guess.
Else you could try to crosscompile to wasm
Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.

Look, ma... four combat bouts!

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 12771
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Materialize Labs Mobile app development & FreeOrion

#5 Post 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.

o01eg
Programmer
Posts: 949
Joined: Sat Dec 10, 2011 5:46 am

Re: Materialize Labs Mobile app development & FreeOrion

#6 Post 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.
Gentoo Linux x64, gcc-9.3, boost-1.72.0
Ubuntu Server 18.04 x64, gcc-7.4, boost-1.65.1
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 0.4.10.1.
Donations are welcome: BTC:14XLekD9ifwqLtZX4iteepvbLQNYVG87zK

o01eg
Programmer
Posts: 949
Joined: Sat Dec 10, 2011 5:46 am

Re: Materialize Labs Mobile app development & FreeOrion

#7 Post 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
Gentoo Linux x64, gcc-9.3, boost-1.72.0
Ubuntu Server 18.04 x64, gcc-7.4, boost-1.65.1
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 0.4.10.1.
Donations are welcome: BTC:14XLekD9ifwqLtZX4iteepvbLQNYVG87zK

Post Reply