PSP Port

Started by danielt3, August 17, 2009, 05:41:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Moogster

Yes it can give console output from the PSP on the PC.. Will try your makefile later today.

The moment I changed all key() calls into get_joy_button calls it all worked just fine. However, there is still a bug that does not exist when I run the dcb in windows but only on the PSP: I delete a text and write() a new one but Bennu doesn't do too much about it. The program can be found here:

http://dl.dropbox.com/u/920422/Tetris.zip

Press left-right in the menu to change difficulty and you'll see where it goes wrong. In the code this is on line 576.

Otherwise it works fine on PSP and all works fine on Windows(Linux should be fine too).

DCelso

Calling "eboot.dcb" to the dcb files is not needed in my psp bgdi version. I done a patch to search the first coincidence *.dcb file and open it, so you don't need rename your dcb file game so you can replace it faster in new versions.
Monstruos Diabólicos

"A PAck of classic GAMEs For BennuGD" en desarrollo
http://code.google.com/p/apagame4be/

Moogster

Ah that is nice. Currently I'm trying to port my current project over to the PSP, but it never comes alive. The screen goes black after the menu after which I've waited like 10 minutes and nothing came on. It is possible to use the Home button and choose to quit. After that it tries to exit to the menu but after a couple of seconds it just turns itself off. It's quite a large thing, BGDC reports it as 500k+ in code alone. It's not executing anything though, I'm not sure of how Bennu is build up on the inside but could that suggest some form of corruption in the data definitions?

DCelso

Moogster, I tested your version in my psp and only I found two problems, the background colors and when you select the difficulty with left and right the system does not refresh the information in the screen but if you press start you can start the game with the difficulty selected and not viewed.
I made several changes in your code for fix it, and I have comment unneeded modules and OS_PSP, because my bgdc version knows it.

Mys twos changes are:
* Change write and write_int, for write_var (this do that only change the value of var, change the displayed text)
* Change RBG order, because actualy psp works bad with rgb funtions using gbr instead of rgb, I will fix it in the next version.

Test this version and See the changes.
http://www.mediafire.com/?4ln7m75bnqi1p1a
Monstruos Diabólicos

"A PAck of classic GAMEs For BennuGD" en desarrollo
http://code.google.com/p/apagame4be/

DCelso

In other hand, your tetris version is very similar to the mine. Have you use as reference the Osk tetris tutorial? :D.
You can see my version in my apagame project.
Monstruos Diabólicos

"A PAck of classic GAMEs For BennuGD" en desarrollo
http://code.google.com/p/apagame4be/

DCelso

Can you add to your tetris music and effects to test it in psp?, thanks.
Monstruos Diabólicos

"A PAck of classic GAMEs For BennuGD" en desarrollo
http://code.google.com/p/apagame4be/

Moogster

Hah, never seen a tetris tutorial in my life. :) I made it as an example for the FenixOnFire website when Fenix was first ported to Gp32/Gp2x(not sure) and people were getting started with no documentation whatoever. I'm not concerned with fixing the game, I posted it to demonstrate where the PSP bgdi didn't replicate behaviour on other systems. Good to see you are looking into the things that need change. Adding '#define rgb(x,y,z) rgb(z,y,x)'  should fix the rgb behaviour a bit more cleanly I think. Also the Tetris never had music or sounds, but I can add them if you like. I'll try and see what is working/crashing for me.

Also, I remember there was some trouble reading compressed files, is that(or other things) something I have to watch out for? I tend to
do most of my file read/writes with compression on. Also currently my own project is crashing in a strange spot on the PSP where it never did on the PC. I'll figure it out but it's a lot of dcb updating so it takes time. I'll let you know if I find something.

Still not tried the makefile, GF uses that PC mostly :)

DCelso

Ok, your .prg demostrates that there is a problem in psp using write, I can help me for detect this problem.

A tetris with music would be a good test music, too.

The makefile is very dependant of my configuration system, you must adapt it very much to your configuration, sure. :D

Your define is a great idea for a temporal patch, too. :D.

And here put some suggetions for your tetris, sorted by difficult:
1.- Make the pieces fall softer. Currently they fall the same lenght of the minimal piece :D.
2.- If you hold left pressed and the piece is falled completely the next piece does not start going to left, you have to press again the left.
3.- Statictics (like my tetris of apagame :D).
4.- two players in the same psp
5.- two players in different psp.
6.- Different stages, like the tetris arcade game. In this you must to do a especific number or lines to go to the next stage, and each stage have an initial configuration of pieces already put.

:D, and good job, is very good :D.
Monstruos Diabólicos

"A PAck of classic GAMEs For BennuGD" en desarrollo
http://code.google.com/p/apagame4be/

DCelso

Moogster, I found the problem of the refresh of write and write_int. It is in the resolution, if you change SCRH = 272 by SCRH = 271, the problems dissapear. I detected that set_mode(480,271) causes problems in the psp I dont know why, the thing is that changing the resolution and forcing the rescale of SDL it dissapear. :D.

This problem is in fenix psp, too.
Monstruos Diabólicos

"A PAck of classic GAMEs For BennuGD" en desarrollo
http://code.google.com/p/apagame4be/

DCelso

http://www.mediafire.com/?eyx78uek9h0z9s1

new version of bgdi for psp with color fixed in draw functios. The attached example is  Moogster's Tetris. Attached as gift fxi. too. :D-
Monstruos Diabólicos

"A PAck of classic GAMEs For BennuGD" en desarrollo
http://code.google.com/p/apagame4be/

Chan1522

Hello Everyone,I've been expecting a PSP Port of Bennu since BoMbErLiNk's Streets Of Rage Remake V5 is released.The DCelso Port of Bennugd PSP works good but the game crashes when it comes to playable sections and has Colour Pallete Problems.There are alot of requests for a PSP Port,so I just wanna know how much time it will take for a PSP port to come out,I aim to run Streets Of Rage Remake V5 on PSP.

Best Wishes
*Ch@n*

FreeYourMind

You can try to do the port if you want, in other case I don't believe that sorr game is the only reason to do the port...

Chan1522

Hello,Thanks for quick reply but I mainly asking for PSP Port,not just for SORR,but other games too.
I hope Mr.Daniel and Mr.SplinterGU are still working on this Port.

Thanks

SplinterGU

Oh, sorry, I was never worked in this port...
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

Chan1522

 :o I'm sorry,I know Mr.Daniel is working on it,not sure who is the other person.
Anyways,I've been watching some Bennugd Videos on youtube prove Bennu can run on PSP,but need some work.Here a video of Bennu game SORR running on PSP--

http://www.youtube.com/watch?v=0kje3i2xbNo


The Bennu used is the Mr.DCelso's unfinished version of BennuGD for PSP. Hopefully this will spur on the developers to finish the PSP port.