Author Topic: Android port of Freespace 2 works (demo inside)  (Read 1667 times)

0 Members and 2 Guests are viewing this topic.

Offline ksotar

  • 25
Android port of Freespace 2 works (demo inside)
One guy lubomir has ported icculus port to Android.

Here I am, running it on my old Moto Razor with KitKat:

Honest 60 fps. Notice that touch control could be quite convenient. BT gamepad could also be used, but now it is keyboard implementation only, so I just mapped some buttons to it. But it all depends on the input library, I believe it should be possible to map analog sticks as well (at least mouse emulation is apparently analog there).

Old phone is on purpose, as it doesn't work in FullHD. Also the Release version didn't work for me for some reason.

Media files are not there. Demo version will download them on start. It may be inconvenient for mobile data users (~100MB) and may took long, so here they are in one .zip
For Release version it is said that you need those files from the full game: Root_fs2.vp, sparky_fs2.vp, sparky_hi_fs2.vp
As with Demo those should be placed in Antroid/data/org.icculus.freespace2/files

Here is the info from its author site:
Built with native google ndk & glshim & pelya's SDL-lib.
Here is the source code:

Author tried to port SCP as well but with no luck. Currently there is no development on it.

But anyway, it is  a good starting point and a strong proof that it can be done. I hope it will inspire more developers to push it further. lubomir could attend this thread if there will be any questions to him.

BTW I can see another good use of such a port besides just Play On The Go. It will be good for VR implementation for the phone HMDs: no lag due to the PC streaming and no wires.

Comments, questions and suggestions are welcome.

« Last Edit: November 19, 2017, 07:19:28 pm by ksotar »


Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
Re: Android port of Freespace 2 works (demo inside)
Not the first time the Icculus port has been ported to ARM, although this is the first Android version I think I've seen.
Ph'nglui mglw'nafh Codethulhu GitHub wgah'nagl fhtagn.

schrödinbug (noun) - a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.

When you gaze long into BMPMAN, BMPMAN also gazes into you.

"I am one of the best FREDders on Earth" -General Battuta

<Aesaar> literary criticism is vladimir putin

<MageKing17> "There's probably a reason the code is the way it is" is a very dangerous line of thought. :P
<MageKing17> Because the "reason" often turns out to be "nobody noticed it was wrong".
(the very next day)
<MageKing17> this ****ing code did it to me again
<MageKing17> "That doesn't really make sense to me, but I'll assume it was being done for a reason."
<MageKing17> **** ME

<MageKing17> God damn, I do not understand how this is breaking.
<MageKing17> Everything points to "this should work fine", and yet it's clearly not working.
<MjnMixael> 2 hours later... "God damn, how did this ever work at all?!"
<MageKing17> so
<MageKing17> more than two hours
<MageKing17> but once again we have reached the inevitable conclusion
<MageKing17> How did this code ever work in the first place!?

<@The_E> Welcome to OpenGL, where standards compliance is optional, and error reporting inconsistent

<MageKing17> It was all working perfectly until I actually tried it on an actual mission.

<IronWorks> I am useful for FSO stuff again. This is a red-letter day!
* z64555 erases "Thursday" and rewrites it in red ink

<MageKing17> TIL the entire homing code is held up by shoestrings and duct tape, basically.


Offline ShivanSpS

  • 210
Re: Android port of Freespace 2 works (demo inside)
So.... i do remember mentioning about getting FS2 to run under on Android like 6 years ago, and i was told i was "crazy" looks like someone did finally made it.