Poligraf / openbor_6330_rg350

BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

rg350 port WIP #1

Open Poligraf opened 3 years ago

Poligraf commented 3 years ago

No clue if sd2 works I do not own a device and I do not know if there are caveats which I have not worked around.

Expect very stupid bugs

dbaldan commented 3 years ago

Hi there. I've tried this new version, but I can see the console saying "OpenBOR.dge can't load library 'libpng16.so.16" and they the app exits.

I've put the file on my sdcard, like I did with the previous version "/media/sdcard/apps". Even after I've deleted all the version on my RG350 and leaving just this one, I still see two icons of OpenBOR under GAMES tab. And it says "complied oct 24 2020" when you play it and the menu says it the version 6931.

Poligraf commented 3 years ago

6391 is a typo. I am definetely doing 6330. I forgot to amend the text file :D Fixed

I also had two icons in error. I think this is fixed.

I also think I fixed libpng16.so.16 error

https://github.com/Poligraf/openbor_6330_rg350/releases/download/2/OpenBOR.opk

dbaldan commented 3 years ago

No prob :) I tested it but it is stuck on this screen IMG_20201026_111127335

Poligraf commented 3 years ago

Is there anything in Openbor.log?

dbaldan commented 3 years ago

On the openbor log folder or in other place?

dbaldan commented 3 years ago

If you mean the OpenBorLig.txt, it stops right after the debug line, where it shows the nativeWidth, nativeHeight, etc.

debug: nativeWidth, native Height, bpp, Hz 320,240,16,60

Poligraf commented 3 years ago

This is quite an interesting problem, not sure if I can fix it but here goes nothing

1) Instead of upgrading to libpng.so.16 this should use libpng.so.14 https://github.com/Poligraf/openbor_6330_rg350/releases/download/3/OpenBOR.opk

2)This does not use opengl at all only sdl2. This should run way slower than the one above, but still faster then the one which was actually working (assuming it works) https://github.com/Poligraf/openbor_6330_rg350/releases/download/4/OpenBOR.opk

dbaldan commented 3 years ago

THanks for your effort, but after some tests... both says the libpng.so.16 is missing :(

I even saved it with a new name to be sure that I am using the right version.

Poligraf commented 3 years ago

sigh

Try this one https://github.com/Poligraf/openbor_6330_rg350/releases/download/5/OpenBOR5.opk

and https://github.com/Poligraf/openbor_6330_rg350/releases/download/6/OpenBOR_opengl.opk

dbaldan commented 3 years ago

The first version loads until this screen and get stuck IMG_20201027_161108757

The second one freezes on this screen IMG_20201027_161443138

Sorry :(

Maybe it will be better to keep that 6391 version and call it a day.

Poligraf commented 3 years ago

Can you press A or start on the first one? I think the game should load. It is the menu being too big.

I thought the device should automatically rescale but alas i was wrong

dbaldan commented 3 years ago

I tried, nothing happens. I will try again.

dbaldan commented 3 years ago

Yeah, no button works :(

Poligraf commented 3 years ago

However, i am a bit guttered that opengl does not work on the rg350. I was hoping that it will.

This means I can not utilise the gpu unless i change to "open gl es" and for that i need a device.

So performance even if i get the menu to load will not be awesome :(

Btw I thought if you only have a single pak the first menu should skip loading amd take you into game.

Ps I can get 6330 working with sdl1, test all the bugs on my device and I can optimise it for speed specifically for your game.

dbaldan commented 3 years ago

I tried to load it with just one .pak. It loads, but no button is recognized by the engine.

dbaldan commented 3 years ago

And I noticed that instead of shrking all the image to fit the screen size, now it shrinks just horizontally, not vertically.

Sorry for the multiple messages.

Poligraf commented 3 years ago

Woohoo, i know what the issue with buttons is....at least i think i do. i can fix that after work.....i think

No clue about aspect ratio as of yet. Will ask around and google until i ge it. Its somewhere sdl/video.c or sdl/videocommon.c

Poligraf commented 3 years ago

I asked for help on this port.

Using gles might severely affect performance on the device, so it might be more useful to get this working using sdl1.

There are a couple of tricks that can be done to optimise performance on your game on sdl1.

I have been meaning to do that on the retrofw port but never got round to it, so I guess now is the time to port 6330 to retrofw and rg350, use sdl1 and improve performance on your game only as the others games (excluding heman) work fine.

This will take me more than a day, sorry for the trouble.

dbaldan commented 3 years ago

It's not a trouble at all buddy. And there is no need to rush, really. Take your time 👍 And thanks for all your effort.