Android port

  • Thread starter Thread starter utunnels
  • Start date Start date
That sounds like a bug with high resolution.

Can you post a screenshot (using your phone's screenshot button so I can see the size and offset).

---------------

I'm still a bit confused. You said you can't see touch buttons, but you said you can disable the joystick in menu, how did you do that?
 
bWWd said:
Maybe you have problems cause you have 8 bits color mod
I play in 16 bit. It shouldn't be a problem then, right? Do you think I could fix it by using 8 bit? Or perhaps 32 bit? Anyway, it's a big step to play OpenBOR on a phone :)
 
I have bluetooth keyboard:) but i could get ingame without it cause i had only 1 mod.
LEt me do screenshots
 
here is the screen
1zfdat.png

Its always with this small upside down L in the top corner, i dont see in on your screens so maybe its related.
My phone is 480 x 800
http://en.wikipedia.org/wiki/Samsung_Galaxy_S

My bluetooth keyboard lets nme use arrows when i press Fn button so i disabled controllers to get rid of accelerometer and then run openbor again to remap buttons and it works perfect just i dont see onscreen controls.
 
Yeah, it looks like java doesn't recognize the size of the surface for some reason so everything is drawn at (0,0).
LOL that is the problem of porting to a system that can run on different devices, too many un predictable things.

My phone is also 800x480, and the surface is always 533x320. If the mod is bigger 480x272 then it got cropped. I don't know why SDL chooses that size, maybe it is a fallback of 320x240.
 
Thats why i think its good to talk with android dev who already went trough that path so you dont have to, he could tell you what works best and what doesnt and how he solved problems with different devices and screen sizes.
Port is already very playable, i feel like shit and got headache after sleepless night and installing crappy vista but its still best day of the year thanks to your work ;D
---
I just had onscreen controls show up once but i could only use jump and start button, other didnt worked.No idea how i did it, i moved paks from other folder and had fspirit.cfg from older file, this time even if i had a coupole of paks then it sill ran fspirit pak automatically and controls showed up.After restart i dont have them anymore and its like before.
This is how it looked like, i took the screenshot, there was no "L" in top corner :
o882fs.png
 
So did you minimized the app and went back?

If so maybe it  needs some redraw if it fails in first place.
 
that worked! but i still cant press anything but start and jump
--
wait i deleted settings and i can press every touch control i think, ill test  ;D
---
Ok screen controls work like you said after pressing middle home button and then bringin app back they appear and i found that bug when you hold attack or jump and tap any direction (but mostli right) and character keeps walking himself into this direction like if you still hold the button but you dont.It happens mostly with A1 and sometimes with jump.
Attack buttons are too small, sholuld be almost twice as big cause we have big fingers ;D also id prefere them on top so i cover with fingers only lifebar not area where action is
 
Yeah I need to assign the touch buttons according to your current setting instead of hard-coding it. But I can't test right now since I'm at work. I'll read some document first, so have it figured out another time. For now just have fun with your mod.
 
thanks ! i tested all my mods and they work great ;D
That thing with stuck controls happens most of the time when i tap righ+A1 in the same time and character keeps walking himself right. :)
This is my preffered button size and layot i customized in imame4all:
5obk76.png

A and B buttons could be as attack and jump and R as special.
Im using it so i have clear view on whats happening on the bottom where playable area is caxuse if i have control on the bottom then i very often dont see the action properly and get irritated, it was my first impression when i got android phone when i thought"this is so wrong why did they setup controls in the middle of the action instead of on top or where nothing is happening?"
I think people want to be cool by placing buttons like on real gamepads but thats just weird. ;D It should be placed where it doesnt interfere with action.
I should of place coin and start on side not in the middle too, will fix this cause game is 4:3 and theres some offscreen place to have buttons there.
---
This is imame4droid custom button layout option, you can see how much range directions pad has and other buttons range.
jh9638.png
 
when i first run the app on my r800i (xperia play) the pak folder was not made on my sd card i had to make it manually but after that it worked. some mods crash right away but one good this is my dpad works without any configuration but cant set the buttons but keeping in mind this is the first release very good job there utunnels !

oh and 320x240 wont go full screen there are big borders.
 
Sweet news!!! Excellent work UT!!!

I don't have android, but with this port it would be awesome to have OpenBor on OUYA!!!

bWWd said:
also id prefere them on top so i cover with fingers only lifebar not area where action is
some mods have lifebars on bottom  8)
 
my unelmia demo works full speed  with sound and music 
i hope in the future  this will have the ability to choose between 2 or 3 different button layouts  and like many other android emulators the ability to make the joystick and buttons invisible 
so when we connect a joystick or play using the xperia play we can hide the on screen buttons 
im so happy about this release
great job  UT!!!
 
I might need help on how to get to play OpenBOR mods on android. I still have a problem with the Install block. I know bWWd has his Samsung Galaxy-S so I have the same android as his. I'm already under Application settings. I dunno what to do. I transferred the latest .apk file from my laptop to my android. I still receive the problem. Dunno if it's an internet problem for my android. My android used to work for going online, but now I can't. (I guess I gotta figure out the way if it doesn't work.)
 
Gosh, it seams that just my smartphone doesn't works with it :(
I can't understand why, since it plays some heavy games easily
 
O Ilusionista said:
Gosh, it seams that just my smartphone doesn't works with it :(
I can't understand why, since it plays some heavy games easily

I believe it is because of the android version.
Though the last one I uploaded linked with android 2.2 api, but that is not to say it works well.

------------------------------------------------------

Will upload the code somewhere after I clean it up a bit (current I'm messing with the video stuff).


----------------------

@maxman  On my phone, the setting is under system setting --> security -->unknown source (not sure about English version, but should be similar)
 
Got it, still freezes on the BOR screen.
Log

Total Ram: 0 Bytes
Free Ram: 0 Bytes
Used Ram: 0 Bytes

nativeWidth, nativeHeight, bpp  480, 320, 16

1 joystick(s) found!
OpenBoR v3.0 Build , Compile Date: Jan  1 2013

Game Selected: /mnt/sdcard/OpenBOR/Paks/FSPIRIT.pak

FileCaching System Init......  Enabled
Initializing video............
Reading video settings from 'data/videopc.txt'.
Initialized video.............  480x272 (Mode: 1, Depth: 16 Bit)

Loading menu.txt.............  Done!
Loading fonts................  1 2 3 4 Done!
Timer init...................  Done!
Initialize Sound.............. 
sound_load_sample: Failed to load: data/sounds/jump.wav

sound_load_sample: Failed to load: data/sounds/punch.wav

sound_load_sample: Failed to load: data/sounds/timeover.wav

sound_load_sample: Failed to load: data/sounds/bike.wav

Loading sprites..............  Done!
Loading level order..........  invalid loadingbg type -1!
invalid loadingbg type -1!
Done!
Loading script settings......  Done!
Loading scripts..............  Done!
Loading models...............
 
Running it on my Galaxy S2 and it runs fine, I just have one thing that bugs me. The start button seems to mapped to my phone's menu button, so when ever I press start it minimizes OpenBor. Is there a way around this?
 
YES, ITS WORKING NOW.

I've updated the Android to 2.3.1 version, and it finally works now.

But there is a trick: if you run the app, it will show just the OpenBOR screen. Then, I hit the menu button and run the app again and voilá, it works.

It seams to have the same problem with PSP port: .ogg starts to slow down the game. Dunno if its the compact factor I am using (it seams to lag sometimes the pc version too), or the .ogg itself.

13773_10151323331748166_1313821667_n.jpg


Anyway, I love you  :-*
 
Back
Top Bottom