Author Topic: Gameblabla's Oswan  (Read 27969 times)

gameblabla (OP)

  • Posts: 1451
Gameblabla's Oswan
« on: September 05, 2015, 11:15:18 pm »



Gameblabla's Oswan is a Wonderswan emulator based on OswanJ and Alekmaul's Oswan.
It can play most if not all games properly, including homebrew games with bad headers.

My initial goal was to fix some of the bugs Alekmaul's Oswan version suffered.
But the more i worked on it, the more i realised it had a lot more issues than i thought.

More accurate emulation, better compatibility, better sound, rich options, multiple save slots support,
even fixes that upstream never fixed etc...

Known issues :
- Save states (when you exit and reload) aren't working with zipped roms
- Pocket Fighter has palette inaccuracies
- One Piece Swan Colloseum and Naruto have some brief moments where graphics are corrupted.

Download link
Github (source code)
« Last Edit: June 07, 2016, 10:05:30 pm by gameblabla »
⚠ WARNING ⚠
If you are using any of my forks, emulators or ports, you are being influenced by propaganda !

dmitry_smagin

  • Posts: 423
Re: Gameblabla's Oswan
« Reply #1 on: September 06, 2015, 02:01:09 pm »
Thanks for your work.
You forgot to mention the link to sources: https://github.com/gameblabla/oswan

PS: Nice, I see some menu code I initially created for Handy/SDL menu which alekmaul borrowed later. :D
GCW-Zero prototype, Dingoo a320, Ritmix rzx-50, Dingoo a380, Xperia Play

gameblabla (OP)

  • Posts: 1451
Re: Gameblabla's Oswan
« Reply #2 on: September 06, 2015, 04:17:19 pm »
Thanks for your work.
You forgot to mention the link to sources: https://github.com/gameblabla/oswan
Yes, i forgot to put the sauce.
Thanks

PS: Nice, I see some menu code I initially created for Handy/SDL menu which alekmaul borrowed later. :D
I wasn't sure who did the menu code but i know who did it.
Thanks for that too, it saved me some time.
⚠ WARNING ⚠
If you are using any of my forks, emulators or ports, you are being influenced by propaganda !

care16la20

  • Posts: 178
Re: Gameblabla's Oswan
« Reply #3 on: September 06, 2015, 04:49:58 pm »


Hi , gr8at release !

2 little things to if possible be added:
- Possibility to have 1.5x on the gfx keep aspect retio (this was the best combination of screen size in my opinion)
- Gmenu selection


Regards

gameblabla (OP)

  • Posts: 1451
Re: Gameblabla's Oswan
« Reply #4 on: September 06, 2015, 07:06:48 pm »
- Possibility to have 1.5x on the gfx keep aspect retio (this was the best combination of screen size in my opinion)
Regards
Dude, do the math.

Wonderswan's screen resolution :
224x144 pixels
GCW Zero:
320x240 pixels

224*1.5 = 336

336 is superior to the GCW Zero's resolution, unless you want it to cropped.
Plus i doubt it will look better because it is not proportional...
Request rejected

On the other, i plan to work on an improved version that supports downsampling once i got my zero.
Basically, i render to a higher resolution (640x480) and then i scale it down to 320x240 with the IPU.
It might or might not look better though, i will have to see it by myself since IPU's behaviour can't really be properly emulated...

Quote
- Gmenu selection
We already talked about this in the dev section :
Gmenu only accepts Mime types for filetering files and Gmenu has no mimetype for Wonderswan roms.
There is no way to filter non-WS roms, you'll see all of your non-WS related files.
Unless of course you're willing to go that trouble then i can bundle a Gmenu version.
⚠ WARNING ⚠
If you are using any of my forks, emulators or ports, you are being influenced by propaganda !

care16la20

  • Posts: 178
Re: Gameblabla's Oswan
« Reply #5 on: September 06, 2015, 11:16:36 pm »


Hum, maybe was 1.3x

Im pretty sure this was available on the first releases... It was the best graphic setting because it preserved the ratio with an good resolution leaving black borders only on the botton and upper....

Surkow

  • * Administrator
  • Posts: 699
Re: Gameblabla's Oswan
« Reply #6 on: September 06, 2015, 11:22:01 pm »
Scaling using the IPU will allow you to use fullscreen or scale to fit the screen (and in the future integer scaling). I wouldn't worry about implementing it in software for now.

gameblabla (OP)

  • Posts: 1451
Re: Gameblabla's Oswan
« Reply #7 on: September 07, 2015, 12:37:48 am »
Hum, maybe was 1.3x
Im pretty sure this was available on the first releases... It was the best graphic setting because it preserved the ratio with an good resolution leaving black borders only on the botton and upper....
Dude... That option is called "Keep Aspect" and it is already available in Gameblabla's Oswan.


I simulated the 1.3x res and this is how it should look like :

It should be a sweetspot between 1x size and Keep Aspect.
Still looks bad though.

Quote
Scaling using the IPU will allow you to use fullscreen or scale to fit the screen (and in the future integer scaling). I wouldn't worry about implementing it in software for now.
Yeah, especially since all i got are GCW0s crashing ;/
Which why i will look at this only after i got my zero
⚠ WARNING ⚠
If you are using any of my forks, emulators or ports, you are being influenced by propaganda !

care16la20

  • Posts: 178
Re: Gameblabla's Oswan
« Reply #8 on: September 08, 2015, 12:45:33 am »
Hum, maybe was 1.3x
Im pretty sure this was available on the first releases... It was the best graphic setting because it preserved the ratio with an good resolution leaving black borders only on the botton and upper....
Dude... That option is called "Keep Aspect" and it is already available in Gameblabla's Oswan.


I simulated the 1.3x res and this is how it should look like :

It should be a sweetspot between 1x size and Keep Aspect.
Still looks bad though.

Quote
Scaling using the IPU will allow you to use fullscreen or scale to fit the screen (and in the future integer scaling). I wouldn't worry about implementing it in software for now.
Yeah, especially since all i got are GCW0s crashing ;/
Which why i will look at this only after i got my zero



Hi, I undestand what you mean but its curious that for some reason the pixels looked better (very close to ws original screen resolution) on earlier releases with this graphical option, so that's why I thought it wasn't exactly keep aspect ratio....

gameblabla (OP)

  • Posts: 1451
Re: Gameblabla's Oswan
« Reply #9 on: September 09, 2015, 05:11:45 am »
Quote
Hi, I undestand what you mean but its curious that for some reason the pixels looked better (very close to ws original screen resolution) on earlier releases with this graphical option, so that's why I thought it wasn't exactly keep aspect ratio....
The only time i changed the screen size was after my first version when i switched to IPU scaling.
After reports of crashes, i switched back to software scaling.
That version (with IPU scaling) reportely crashed on real GCW0s but maybe you got it to properly on it ?
⚠ WARNING ⚠
If you are using any of my forks, emulators or ports, you are being influenced by propaganda !

qbertaddict

  • The Doctor
  • Posts: 1184
    • about.me
Re: Gameblabla's Oswan
« Reply #10 on: September 10, 2015, 01:36:11 am »
I get a really weird error when playing some of the b/w wonderswan games. The brightness seems to get brighter and brighter and then fades everything out until it is unplayable. I can still get to the menu without issue and everything looks fine and I can exit. Two games that this happened on are klonoa and ghouls and ghosts. Right after i read the sign at the beginning.


care16la20

  • Posts: 178
Re: Gameblabla's Oswan
« Reply #11 on: September 10, 2015, 02:32:22 am »
Quote
Hi, I undestand what you mean but its curious that for some reason the pixels looked better (very close to ws original screen resolution) on earlier releases with this graphical option, so that's why I thought it wasn't exactly keep aspect ratio....
The only time i changed the screen size was after my first version when i switched to IPU scaling.
After reports of crashes, i switched back to software scaling.
That version (with IPU scaling) reportely crashed on real GCW0s but maybe you got it to properly on it ?

Hi,

Hum possibly that was the reason that the resolution and pixels looked much better (very similar to what looks like on the real hw).....
At least I didn't notice crashes, if it was that version you are talking about....
« Last Edit: September 10, 2015, 02:34:45 am by care16la20 »

zear

  • Moderator
  • Posts: 2381
Re: Gameblabla's Oswan
« Reply #12 on: September 10, 2015, 07:40:53 am »
I get a really weird error when playing some of the b/w wonderswan games. The brightness seems to get brighter and brighter and then fades everything out until it is unplayable. I can still get to the menu without issue and everything looks fine and I can exit. Two games that this happened on are klonoa and ghouls and ghosts. Right after i read the sign at the beginning.
I confirm this happens on "Pocket Fighter" as well. Get hit by another player to make your character brighter. Pause the game to turn the entire screen into a blob of gray.

gameblabla (OP)

  • Posts: 1451
Re: Gameblabla's Oswan
« Reply #13 on: September 10, 2015, 12:48:05 pm »
I get a really weird error when playing some of the b/w wonderswan games. The brightness seems to get brighter and brighter and then fades everything out until it is unplayable. I can still get to the menu without issue and everything looks fine and I can exit. Two games that this happened on are klonoa and ghouls and ghosts. Right after i read the sign at the beginning.
I confirm this happens on "Pocket Fighter" as well. Get hit by another player to make your character brighter. Pause the game to turn the entire screen into a blob of gray.
Indeed, brightness control is not working properly. (or it's swapping palettes or changing the colors in the palette for some reason)
In addition to that, the 16 selected shades of gray are wrong too.
Does this happen on OswanJ or Oswan for Windows as well ?
I'm working on that but i can't quite figure it out where is the problem. (not the cpu core, obviously)

EDIT: I found where the problem was.
It's in WS.c, line 359/360.
Disable the two lines and the bug is gone.
I still need a proper fix though, because doing so would break other things.
« Last Edit: September 10, 2015, 04:24:17 pm by gameblabla »
⚠ WARNING ⚠
If you are using any of my forks, emulators or ports, you are being influenced by propaganda !

gameblabla (OP)

  • Posts: 1451
Re: Gameblabla's Oswan
« Reply #14 on: September 13, 2015, 03:23:30 am »
Double post, i feel like it is needed though.
I hate to say this but this is turning into a dev thread...

Every Oswan fork in existance is affected by this issue, that's crazy.
Only Mednafen fixed it but this time, there is no way to just take their code and fit it to my emulator.

So instead, i have pushed a temporary fix for the affected b&w games.
It breaks some other things but it makes the games playable so hope you enjoy.
I have implemented Slider support and i really hope this time it works. (QEMU just can't replicate it)

So i updated Gameblabla's Oswan, as usual. Enjoy
⚠ WARNING ⚠
If you are using any of my forks, emulators or ports, you are being influenced by propaganda !

gameblabla (OP)

  • Posts: 1451
Re: Gameblabla's Oswan
« Reply #15 on: October 04, 2015, 09:17:54 am »
TRIPLE COOOMBOOOO
I'm alone here.

Anyways, i updated it and i have implemented a better hack, still not great though...
Previous release broke some games due to the hack i have introduced, they should look great now.


Problematic games with this emulator are (All B&W games) :

  • Klonoa (Graphical glitches, scrachy voices)
  • Beatmania (Scratchy sound)
  • Pocket Fighter (Graphical glitches)

EDIT : No longer the case, these games work properly now and without any weird hacks.
« Last Edit: October 18, 2015, 11:40:54 am by gameblabla »
⚠ WARNING ⚠
If you are using any of my forks, emulators or ports, you are being influenced by propaganda !

care16la20

  • Posts: 178
Re: Gameblabla's Oswan
« Reply #16 on: October 06, 2015, 04:17:10 pm »


Hi , thanks for the update
Glad you are close to get to the 100% on this one

Regards

pcercuei

  • Posts: 1732
    • My devblog
Re: Gameblabla's Oswan
« Reply #17 on: October 07, 2015, 09:29:00 am »


I have implemented Slider support and i really hope this time it works. (QEMU just can't replicate it)
It is mapped to the "Home" key (sometimes called "Origin")

gameblabla (OP)

  • Posts: 1451
Re: Gameblabla's Oswan
« Reply #18 on: October 15, 2015, 10:48:25 pm »
Yo all,
my emulator had a huge number of issues :
It would crash for playing most games for instance.
I have updated my emulator and it now works properly on it.

Gotta say, i enjoyed playing Tetris in Portrait mode.

Monochrome hacks are not working properly on GCW0 though,
the MD5 are different when switching from one platform to another
so i have disabled them.

EDIT: Turns out i have (accidently) fixed most of the graphical glitches in monochrome games,
yay !
« Last Edit: October 16, 2015, 06:56:52 am by gameblabla »
⚠ WARNING ⚠
If you are using any of my forks, emulators or ports, you are being influenced by propaganda !

gameblabla (OP)

  • Posts: 1451
Re: Gameblabla's Oswan
« Reply #19 on: October 18, 2015, 11:35:27 am »
I have released another update to Oswan : this one fixed sound issues in all games !
Klonoa, Beatmania and some other games now sound very good !

The only remaining issues are the incorrect pallette and flickering during the winning screen in Pocket Fighter.

I highly suggest you upgrade over this new version and i also consider it good enough to be added
to the GCW0's repository.

EDIT: To those who are curious how i fixed this, it was simple.
I simply switched from integers to floats for sound and it all suddenly sound better than before.
That being said,
i still interested to find someone who could help me support fixed-points for sound on platforms without an FPU.
« Last Edit: October 18, 2015, 11:38:07 am by gameblabla »
⚠ WARNING ⚠
If you are using any of my forks, emulators or ports, you are being influenced by propaganda !