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: 2004
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-11.2, boost-1.78.0
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-03-15.b3de094.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm

defaultuser
Juggernaut
Posts: 854
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: 3433
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: 13587
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: 2004
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-11.2, boost-1.78.0
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-03-15.b3de094.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm

o01eg
Programmer
Posts: 2004
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-11.2, boost-1.78.0
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-03-15.b3de094.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm

rohit7261
Space Krill
Posts: 1
Joined: Mon Jan 11, 2021 7:23 am

Re: Materialize Labs Mobile app development & FreeOrion

#8 Post 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.
Last edited by rohit7261 on Mon Jan 11, 2021 7:27 am, edited 1 time in total.

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

Re: Materialize Labs Mobile app development & FreeOrion

#9 Post 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.
Gentoo Linux x64, gcc-11.2, boost-1.78.0
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-03-15.b3de094.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm

Voskhod_02
Space Krill
Posts: 6
Joined: Sat Sep 22, 2018 6:40 am

Re: Materialize Labs Mobile app development & FreeOrion

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

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

Re: Materialize Labs Mobile app development & FreeOrion

#11 Post 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.
Gentoo Linux x64, gcc-11.2, boost-1.78.0
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-03-15.b3de094.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm

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

Re: Materialize Labs Mobile app development & FreeOrion

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

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

Re: Materialize Labs Mobile app development & FreeOrion

#13 Post 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.
Gentoo Linux x64, gcc-11.2, boost-1.78.0
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-03-15.b3de094.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm

Post Reply