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

0 Members and 1 Guest are viewing this topic.

Offline ksotar

  • 26
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: https://github.com/lubomyr/freespace2

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.

freespace2-demo.apk
freespace2-release.apk
« Last Edit: October 14, 2018, 08:42:36 am 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> THE REASON IS PEOPLE ARE STUPID
<MageKing17> ESPECIALLY 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.

 

Offline Bryan See

  • Has anyone really been far as decided to use even go want to do look more like?
  • 29
  • Trying to redeem.
    • Skype
    • Steam
    • Twitter
Re: Android port of Freespace 2 works (demo inside)
With the Windows operating system is on the decline and the rise of Android, I think this port is necessary, so it needs to be developed fully. Plus, the Knossos launcher should be ported to Android as well.
Bryan See - My FreeSpace Wiki User Page (Talk, Contributions)

Campaigns:
FreeSpace: Reunited - Shattered Stars

Ships:
GTS Hygeia, GTT Argo, SC Raguel

 

Offline Nightmare

  • 210
Re: Android port of Freespace 2 works (demo inside)
I think FS2 on a smartphone is... kinda awkward. And the time needed to make Knossos Android compatible is MUCH better spent elsewhere instead of something a dozen people or so will use.

 

Offline Bryan See

  • Has anyone really been far as decided to use even go want to do look more like?
  • 29
  • Trying to redeem.
    • Skype
    • Steam
    • Twitter
Re: Android port of Freespace 2 works (demo inside)
I think FS2 on a smartphone is... kinda awkward. And the time needed to make Knossos Android compatible is MUCH better spent elsewhere instead of something a dozen people or so will use.
Unless optimizations are being made.
Bryan See - My FreeSpace Wiki User Page (Talk, Contributions)

Campaigns:
FreeSpace: Reunited - Shattered Stars

Ships:
GTS Hygeia, GTT Argo, SC Raguel

 

Offline PVD_Hope

  • 29
  • A Typhon-class destroyer.
Re: Android port of Freespace 2 works (demo inside)
Amazing! Although I more see this as proof-of-concept rather than something that would actually get used. Kinda like how some people tried to get command and conquer games on android but C&C Android never went any further than a fan experiment

o wait

nvm
This signature is under construction. You can check out my minimod! Lost

Have a look at my eBay page, where I sell Legos and things to raise money for myself and for the Polaris Project!

Here's my Zazzle store! I make a small commission on everything sold here. And here's my Bandcamp!

 

Offline jr2

  • The Mail Man
  • 212
  • It's prounounced jayartoo 0x6A7232
    • Steam
Re: Android port of Freespace 2 works (demo inside)
I know at least with a lot of the higher end phones you can basically turn them into a comfortable little desktop with a dock, and that's probably eventually going to be wireless (if it isn't already) so...

 

Offline ksotar

  • 26
Re: Android port of Freespace 2 works (demo inside)
Quote
  I think FS2 on a smartphone is... kinda awkward.

It could easily be 10" tablet as well.

 

Offline Nightmare

  • 210
Re: Android port of Freespace 2 works (demo inside)
While I always appreciate new features, I'm unsure how big the benefit of a FSO on Android would be. FS tends to have countless controls, of which several are needed to play, in particular for the mods...

 

Offline ksotar

  • 26
Re: Android port of Freespace 2 works (demo inside)
You underestimate the power of the Dark Side.

http://ovalhalla.ru/my/img/Joystick%20Gremlin/layout.png
« Last Edit: October 14, 2018, 06:29:33 am by ksotar »

 

Offline Nightmare

  • 210
Re: Android port of Freespace 2 works (demo inside)
You underestimate the power of the Dark Side.
I DID. :shaking:

Still you would always need to have your controller with you. But I'd guess there are already people doing anyway.

I was thinking about mods using custom controls like "Press 1", but there aren't that many and it should work fine with the main campaign at least.

 

Offline jr2

  • The Mail Man
  • 212
  • It's prounounced jayartoo 0x6A7232
    • Steam
Re: Android port of Freespace 2 works (demo inside)
You underestimate the power of the Dark Side.

http://ovalhalla.ru/my/img/Joystick%20Gremlin/layout.png

... Is that in the FreeSpace wiki?

If not, it should be.

EDIT: Well, it's a start:

http://wiki.hard-light.net/index.php/Controller_Layout
« Last Edit: October 14, 2018, 07:34:07 am by jr2 »

 

Offline ksotar

  • 26
Re: Android port of Freespace 2 works (demo inside)
Moreover, if you look closely in my video in the worst case if you need once-a-lifetime combination of "Alt+Ctrl+Shift+Whatever" you call onscreen keyboard.

Quote
Is that in the FreeSpace wiki?

It is not finished yet, but yes, it's time for me to ask for wiki write access...

 
Re: Android port of Freespace 2 works (demo inside)
i cant get it work on my phone it chrash is i try to run the demo campaign

 

Offline ksotar

  • 26
Re: Android port of Freespace 2 works (demo inside)
i cant get it work on my phone it chrash is i try to run the demo campaign

Is your phone screen FullHD or better?

 
Re: Android port of Freespace 2 works (demo inside)
i have samsung galexy  s8+
so its full hd i think

 

Offline ksotar

  • 26
Re: Android port of Freespace 2 works (demo inside)
i have samsung galexy  s8+
so its full hd i think

Yes, and that's the problem. Demo is not working with FullHD+ resolutions. There is info on that in my post.

 
Re: Android port of Freespace 2 works (demo inside)
one thing why you release something that never work probely

 

Offline ksotar

  • 26
Re: Android port of Freespace 2 works (demo inside)
Three things:

1. Not me
2. Not release (Demo)
3. Works properly (with certain resolution).

All of it is written with English letters above.