Neo TeAm Forum

NEO Coding Competitions => NEO Summer Compo 2007 for PSP division => NEO Summer Coding Compo 2007 => NEO Compo 2007 => The past Neo Coding Compos => the PSP APP zone => Topic started by: Brunni on August 21, 2007, 07:58:34 AM

Title: [PSP APP] MasterBoy
Post by: Brunni on August 21, 2007, 07:58:34 AM
Hello! :)
I'm proud to present the first release of my project: MasterBoy!

Nickname: Brunni
Projet name: MasterBoy
Division: PSP APP
Original enter: YES
In last NEO Compo this project won in the top 10: NO
Project description: It's a Game Boy emulator for PSP. It allows you to fully recolor your games, not only by selecting one palette for the whole screen, but by recoloring each object on the screen! Here are examples of what you could do:

(http://img444.imageshack.us/img444/3403/supermarioland08yh3.png) (http://imageshack.us)  (http://hothmoon.free.fr/Super%20Mario%20Land%202%20-%206%20Golden%20Coins_01.png) (http://hothmoon.free.fr/Balloon%20Kid_02.png)

And you don't need to be a programmer, there's no romhacking (you keep using the original ROM) and it works for nearly all existing games.

MasterBoy also emulates the Game Boy Color, Master System and Game Gear. The SMS/GG emulation is based on MMSPlus, and has been improved a lot since then.

The official page is: http://brunni.dev-fr.org/index.php?page=pspsoft_masterboy
Here you'll find the latest updates and documentation on how to colorize your games. Especially, the current method is quite complicated, you can wait for me to write a tutorial on how to do it with PSPLink.

Other features:
* Rich interface with discrete effects, redefinable shortcuts and buttons (with autofire feature). Also it's fully skinnable.
(http://img201.imageshack.us/img201/8282/snap0002sp3.png) (http://imageshack.us)

* Manage and sort your favorites folders and files to acces them easily.
(http://img132.imageshack.us/img132/9403/snap0001we4.png) (http://imageshack.us)

* Integrated music player supporting GYM and VGM formats.
(http://img53.imageshack.us/img53/8151/snap0003yd1.png) (http://imageshack.us)

* Several display options like Gamma and Color Vibrance, which allows you to choose how colored you want your display to be.
(http://img389.imageshack.us/img389/2977/pokemonversioncristal02qw7.png) (http://imageshack.us)

* Z80 under/overclocker: allow you to correct games that are often slowing down or displaying glitchy / blinking sprites.

* Some improvements over MMSPlus in the SMS/GG part:
- Speed up. Now 16-bit render mode is enabled by default. You can revert to 8-bit if you want, and it will run even faster.
- Compatibility issues
- Better country detection (now nearly all games should detect the country correctly and not play too fast anymore).
- The bar at the left of the screen can be automatically hidden (depending whether the game is actually using it or not)

Here are some videos:
Super Mario Land: http://www.youtube.com/watch?v=u8F3Zi0-UII
Astérix: http://www.youtube.com/watch?v=5rWftXVbIcA
Super Mario Land 2 by Yodajr: http://www.dailymotion.com/Yodajr/video/x2seyx_super-mario-land-2-colorise_videogames
Baloon Kid by Yodajr: http://www.dailymotion.com/Yodajr/jeux-vid%C3%A9o/video/x2ncla_ballon-kid-colorise_videogames

Don't hesitate to give your opinion here! Thanks in advance. :D
Title: Re: [PSP APP] MasterBoy
Post by: omg on August 21, 2007, 08:03:24 AM
Marvellous! Incredible! Wonderful!
Great work Brunni!

 ;D
Title: Re: [PSP APP] MasterBoy
Post by: alekmaul on August 21, 2007, 02:32:00 PM
Yeah , really great work, nice to see such things on PSP.
Title: Re: [PSP APP] MasterBoy
Post by: borgqueenx on August 21, 2007, 06:20:11 PM
if it contained a pic0 and pic1 file, it would even be better, nice interface and graphics does this program have, only inside the xmb game menu it got nothing of graphics.
So please add a pic0 and pic1 to this eboot  ;D

Also, i noticed that save state is the only option to save, you cant use the saving system inside the game to save.
It would be nice if you can add it so i wont need to save state. :)
Title: Re: [PSP APP] MasterBoy
Post by: Sektor on August 21, 2007, 07:40:54 PM
Source code?
Title: Re: [PSP APP] MasterBoy
Post by: gambiting on August 21, 2007, 08:50:43 PM
Nice one.Is it made from scratch?
Title: Re: [PSP APP] MasterBoy
Post by: borgqueenx on August 21, 2007, 10:08:42 PM
here i attached desame emulator app with a nice pic0 and pic1 file, now the only thing i'd love is to save the game inside the rom and not with save states...
I also attached a screenshot.
Dont tell me its bad, i'm not good in paintshop and made this with google images and paint.

EDIT: I editted both files again, now it looks decent, not bad... :P ;D
Title: Re: [PSP APP] MasterBoy
Post by: Brunni on August 22, 2007, 02:57:08 AM
Source code?
Available here: http://brunni.dev-fr.org/index.php?page=pspsoft_masterboy
I've not included it directly as it's really huge. It's not cleaned up at all, I just uploaded it as-is. You've been warned ;)

here i attached desame emulator app with a nice pic0 and pic1 file, now the only thing i'd love is to save the game inside the rom and not with save states...
I also attached a screenshot.
Dont tell me its bad, i'm not good in paintshop and made this with google images and paint.

EDIT: I editted both files again, now it looks decent, not bad... :P ;D
Sorry, it was an error from me (I worked too much the last evening  ~sm-34.gif~)
SRAM saving now works properly, please download the version 2.0a it from my site ;)
Thanks for your icons, it's very kind of you, but I'll wait a bit before making my choice :)
Title: Re: [PSP APP] MasterBoy
Post by: archilolo on August 22, 2007, 03:19:02 AM
Awesome job, Brunni !  :-*
Title: Re: [PSP APP] MasterBoy
Post by: stranno on August 22, 2007, 03:38:22 AM
O_O Awesome work Brunni, i'm colorizing a few games ^_^

Thanks 4 your work, you have my vote
Title: Re: [PSP APP] MasterBoy
Post by: borgqueenx on August 22, 2007, 04:00:43 PM
saving inside roms still doesn't work.
i dont see the light of the ms flashing to.
Title: Re: [PSP APP] MasterBoy
Post by: Brunni on August 22, 2007, 07:24:22 PM
Oh, which games did you tried it with? :(
It's normal you don't see the MS flashing because:
 - It saves when exiting the application or when loading another game
 - It saves only if the game actually has saved something, and if the data were modified since the last time
Also, please verify that in the Save states menu, in the SRAM sub-menu, you have set SRAM autosave to On.
If you had to change any setting, press Triangle and choose Save default configuration for all games so you won't have to change it everytime  ::sm-11.gif::
Title: Re: [PSP APP] MasterBoy
Post by: borgqueenx on August 22, 2007, 08:40:46 PM
i tried clicking save sram now and quiting the app from pressing exit instead of home.
it didnt work...
Can you make it so that if you save inside the game, that it will wright the save to the ms instead to the ram or cache or whatever, and save later?
i was doing that on pokemon crystal for the gameboy color btw...
Title: Re: [PSP APP] MasterBoy
Post by: Brunni on August 23, 2007, 05:17:53 AM
I don't know then. I've played much with Pokemon Crystal and it saves perfectly (I just tried again).
Are you sure you downloaded the latest version from my site? (http://brunni.dev-fr.org/) :'(

Also, please note that the current version 2.0 is a mistake. It is in fact the first public release, as the 1.0, 1.1 and 1.2 were only development versions for beta testers and people who colorized some games ;)

Also if other emulators want to use the same system, I will create a specific binary format which will be a lot easier for applications to read than those script .ini files ~sm-41.gif~
Title: Re: [PSP APP] MasterBoy
Post by: stranno on August 23, 2007, 05:55:07 AM
I'm waiting the english guide to use the color scripts!! great work with the feature, games look cooler than gbcolorize
Title: Re: [PSP APP] MasterBoy
Post by: Brunni on August 23, 2007, 02:20:32 PM
I'm currently traducing it, I hope it's finished for the end of the week ;)
Title: Re: [PSP APP] MasterBoy
Post by: borgqueenx on August 23, 2007, 03:12:52 PM
using 2.0a
cant you try to save it to the memory stick instead of saving when loading a other game or quit?
and do you know already if you like my icons enough to put them in?
Title: Re: [PSP APP] MasterBoy
Post by: Brunni on August 23, 2007, 07:22:18 PM
Please try the following:
Start MasterBoy. Then load Pokemon, start a new game and save whenever possible using Start, Save and by confirming (yes).
Then, press R+triangle (or in the menu File, Reset game). 1) Does your saved game show (Continue option after the title screen)?
Then press Home and choose Yes to exit. 2) Is your memory stick blinking at this moment?
Title: Re: [PSP APP] MasterBoy
Post by: borgqueenx on August 23, 2007, 08:46:38 PM
yes the option continue is there after i resetted the game.
pressed home and quit the app, restarted it, loaded pokemon crystal again, and no continue button anymore... ~sm-43.gif~
Title: Re: [PSP APP] MasterBoy
Post by: Brunni on August 23, 2007, 10:10:28 PM
yes the option continue is there after i resetted the game.
pressed home and quit the app, restarted it, loaded pokemon crystal again, and no continue button anymore... ~sm-43.gif~
Yes but did you see the MS blinking after you pressed home / Yes? (that's the question I asked to you).
Also, do you have a file named like Pokemon Crystal.sav.gz in the SAVE sub-directory of the one where the rom is?
Title: Re: [PSP APP] MasterBoy
Post by: borgqueenx on August 23, 2007, 10:33:11 PM
yeah i saw the ms giving one single blink...
and i cant find a sav.gz file anywhere in the masterboy directory/subdirectories.
(also not in de directory where the rom is located)

 ::sm-05:: ::sm-05:: ::sm-05::
Title: Re: [PSP APP] MasterBoy
Post by: Brunni on August 24, 2007, 05:30:40 AM
yeah i saw the ms giving one single blink...
and i cant find a sav.gz file anywhere in the masterboy directory/subdirectories.
(also not in de directory where the rom is located)

 ::sm-05:: ::sm-05:: ::sm-05::
Then it's probably impossible for MasterBoy to write to that directory. But do you have .sv0.gz files though? (or .sv1.gz, sv2.gz, etc.). What is the directory name where they are located?
Thanks
Title: Re: [PSP APP] MasterBoy
Post by: borgqueenx on August 24, 2007, 02:44:49 PM
i have those files nowhere in the masterboy directory/subdirectories, and not in the rom folder.
And the location of the rom files is ms0:/PSP/game150/Masterboy/gbc roms/
Title: Re: [PSP APP] MasterBoy
Post by: Brunni on August 24, 2007, 04:35:43 PM
So you can't save AT ALL then? (even save states)
Title: Re: [PSP APP] MasterBoy
Post by: borgqueenx on August 24, 2007, 06:33:32 PM
save states works fine...but i want to use the normal save feature inside.
Title: Re: [PSP APP] MasterBoy
Post by: Brunni on August 24, 2007, 07:11:42 PM
save states works fine...but i want to use the normal save feature inside.

It is not possible, you probably haven't searched correctly. Please try to find those .sv0.gz or .sv1.gz, etc. (try to search *.sv?.gz with Windows)
They must be somewhere, else you wouldn't be able to load your save states (except the RAM slot, that works everytime; did you use it?).
Btw MasterBoy writes the SRAM file (.sav.gz) in the same folder as save states, so when you find those save states, try to look for a .sav.gz file, and if you find it, move it somewhere out of your memory stick and try again to save from MasterBoy.
If that didn't help, try with another game, or at least to rename your zip. Does it save in this case or still a single blink when exiting?
Also, your memory stick is maybe corrupt; moving all files to your hard drive and formatting it could help.
If you did everything and it didn't solve the problem, you can add me to MSN to make tests easier ;)
Title: Re: [PSP APP] MasterBoy
Post by: borgqueenx on August 24, 2007, 07:17:42 PM
pm me the adress...and are you online?
and i didnt searched for new files after saving state...lets see...

edit: save state is located in /SAVE in the folder where the rom is.
edit2: and like i said the files created by saving inside a rom also are not there - not anywhere.

my memory stick is not corrupt i know that, but il try a other game now...
edit3: no at another rom i got desame story, save state works, normal saving inside the game not.
Title: Re: [PSP APP] MasterBoy
Post by: Brunni on August 27, 2007, 02:39:50 AM
Can other people please tell me if SRAM works on their PSP? Please add some details like your firmware, plugins, and so on.
Thanks :)
Title: Re: [PSP APP] MasterBoy
Post by: Brunni on August 27, 2007, 06:28:42 AM
I've just released the version 2.01.

* Finished the english documentation on how to colorize your games! *
* This version fixes a bug with sound volume when loading RIN states.
* The file list can now display up to 1024 roms.
* Added a small debug mode for the kernel version (copy the EBOOT from the Kernel mode directory to your MasterBoy directory on the PSP - this version runs significantly slower, so use it only for debugging and colorization). For people who reported me strange problems, press L+R+Triangle in the menu. It will show the available RAM. If you have the problem of save states not working after a while, please tell me how this value evolutes. Also, if this mode is enabled when going to Save states, SRAM, Save now, a message box with some information will appear, if you have the SRAM problem (not saving) please report to me the displayed text.
* Bugfixes

Download it on my site as usual: http://brunni.dev-fr.org/

* Note: The current method is not the best. The best is to use PSPLink if you can; basically just set-up PSPLink to launch the MasterBoy EBOOT in a local folder (which contains the files necessary for MasterBoy to run).
* For that, extract this RAR file (http://brunni.dev-fr.org/dl/psp/psplink_2.0.rar) somewhere (avoid spaces in the path name).
* Copy the contents of the PSP folder to your PSP.
* Launch PSPLink on your PSP
* Connect the USB cable and install the drivers located in PC/driver.
* Modify the launch.bat file to replace my example path "../../Projects/OSLib/OSLib/OSTools" with the path of your MasterBoy folder (the path is relative, hence the ../, which mean parent folder)
* Execute launch.bat
* Execute pcterm.exe
* Type ./EBOOT.PBP - MasterBoy should start if all files are in the folder
* Create a romdir.ini file containing the following text: dir=/
* Go to Load ROM, select / and select a ROM in this folder.
* Do exactly as described for the USB method. Now when saving the .pal.ini file to your harddrive, the PSP will directly read it from there, without ever failing. So you just have to press Ctrl+S (save) in notepad and R+Start (load state) on PSP to see the effect of your modification.
* In this case, you don't need the kernel version

Thanks for your comments :)
Title: Re: [PSP APP] MasterBoy
Post by: stranno on August 27, 2007, 04:32:09 PM
wow, great work brunny, i posted it in DCEMU

I wish you win man, this is one of the best psp emus ever

 ~sm-43.gif~
Title: Re: [PSP APP] MasterBoy
Post by: Brunni on August 27, 2007, 06:27:18 PM
Thank you for the news :)

If anyone tries to colorize some games, it would be cool to post a screenshot or something here ;) I know it may seem very complicated at first, but it's very easy once you've understood the principle ;D

Btw now that I think, if someone has the SRAM bug (not saving) can he try if it works when you are exiting by the menu (File, Exit)? ::sm-11.gif::
Title: Re: [PSP APP] MasterBoy
Post by: borgqueenx on August 27, 2007, 11:56:29 PM
under bugfixes:D
Title: Re: [PSP APP] MasterBoy
Post by: Brunni on August 28, 2007, 02:14:22 AM
Sorry, but I don't understand ::sm-23.gif::
Title: Re: [PSP APP] MasterBoy
Post by: Sterist on August 28, 2007, 04:27:40 AM
any chance for wifi multiplayer on any of the consoles? :)
Title: Re: [PSP APP] MasterBoy
Post by: stranno on August 28, 2007, 05:12:53 PM
I mess a bit with SML3 jejeje

(http://i187.photobucket.com/albums/x7/9esferas/WarioLand_02.png)

(http://i187.photobucket.com/albums/x7/9esferas/WarioLand_04.png)
Title: Re: [PSP APP] MasterBoy
Post by: borgqueenx on August 29, 2007, 07:59:35 PM
saving inside roms still doesnt work ~sm-39.gif~ > :(


Title: Re: [PSP APP] MasterBoy
Post by: Brunni on August 31, 2007, 05:19:33 AM
I can't fix it because I have never got this bug  ::sm-17.gif::
Instead if you try the kernel version and enable the debug mode as I said in the update change list, you could help fixing this problem ;)
Thanks :D
Title: Re: [PSP APP] MasterBoy
Post by: stranno on September 04, 2007, 11:32:43 PM
Brunni, you win!! Congratulations, it was the best software

 :P
Title: Re: [PSP APP] MasterBoy
Post by: borgqueenx on September 05, 2007, 01:57:20 AM
congrats;) you deserve it:)
Title: Re: [PSP APP] MasterBoy
Post by: Brunni on September 05, 2007, 04:34:52 AM
Thank you very much :) :D

There's another update: MasterBoy 2.02 with the following additions:
- EBOOT now has icon, wallpaper and sound (thanks to Ass-Itch from playeradvance for his nice BG/ICON)
- Corrected the bug of SRAM not saving properly for some people
- Added the last save date next to the save state slot number
- Enhanced SGB emulation (runs nearly as fast as monochrome GB now)
- Corrected the garbage showing in the border of the render
- Reworked the default palettes to be closer to the GBC ones
Note: The bug that some people has, save states not working after saving/loading a few, is still not fixed (I could contact nobody who has this problem for debugging). In between, if you have this problem, use the RAM state and save manually before exiting (or save less often ;)).
(http://img120.imageshack.us/img120/9855/mboyebootprev2ki1.png)

But the new thing is a modification of VisualBoyAdvance to support colorization like MasterBoy ;D
(http://img68.imageshack.us/img68/2108/vbace3ni2.png) (http://imageshack.us)

It's mainly destined to people who want to colorize games. You just need to put the your_rom_name.pal.ini file in the same folder as the game you want to colorize and follow the guide just like on PSP.
Something useful is that if you disable Emulator > Pause when inactive window, it will show the new palette on the screen instantly after you save your .pal.ini file. Very useful for testing, you can just keep open VBA and open the text file next to it. Then a single Ctrl+S and you see the effect on the screen  ::sm-10.gif::

You can download everything here, as always: http://brunni.dev-fr.org/index.php?page=pspsoft_masterboy

Thanks for your support! :-*
Title: Re: [PSP APP] MasterBoy
Post by: omg on October 11, 2007, 03:50:54 PM
If anyone is interrest in this, Playeradvance is making a color compo on Masterboy PSP and DS. Neoflash is our sponsor.
More information in this link :
http://www.playeradvance.org/forum/showthread.php?t=13733 (http://www.playeradvance.org/forum/showthread.php?t=13733)

Good luck!
And thank You Brunni & Dr.Neo!
Title: Re: [PSP APP] MasterBoy
Post by: links1981 on October 22, 2007, 11:31:55 AM
First off, This has to be the BEST EMU. on the PSP!

i love it , so smooth and works great!

BUT.... the ONLY game i cant get to work it "Mortal Kombat 1" for the GB
(I have tryed every diff. ver. of the rom i can find and none go past the title screen)

not a big problem, but you may want to look into it.