Dingoonity.org

GCW Zero => Development => Topic started by: gameblabla on September 09, 2015, 05:07:19 am

Title: Potator
Post by: gameblabla on September 09, 2015, 05:07:19 am
(https://gameblabla.olympe.in/img/potator.png) (https://gameblabla.olympe.in/img/potator2.png)
After Gameblabla's Oswan, i have decided to take a look at Potator, a Watara Supervision emulator.
Honestly, most games on it are crap. (with only some being decent)

What i have done so far:
- GUI from Gameblabla's Oswan.
- Fixed sound crash with Olympic Trials, it now works with sound support.

What i have still not done :
- Some games don't have any audio, strange...
- Fix menu

You can download the new opk here. (https://github.com/gameblabla/potator/raw/master/potator.opk)
Title: Re: Potator
Post by: zhongtiao1 on September 20, 2015, 09:18:13 pm
First of all, thank you for being the one person who cares enough about the supervision to improve the emulator. :)

Second, crystball still doesn't work, which you probably already know, soccer champion is sketchy when played. Lots of lag and no sound. All Bon treasure games now have sound! Thank you!

Third, on the ROM select screen, you can't hold down the down arrow to move quickly through the list, and it doesn't loop. Granted, most people don't have 46 watara supervision ROMs and don't have this problem :D love the new icon.
Title: Re: Potator
Post by: zhongtiao1 on November 06, 2015, 11:50:19 pm
(https://gameblabla.olympe.in/img/potator.png) (https://gameblabla.olympe.in/img/potator2.png)
After Gameblabla's Oswan, i have decided to take a look at Potator, a Watara Supervision emulator.
Honestly, most games on it are crap. (with only some being decent)

What i have done so far:
- GUI from Gameblabla's Oswan.
- Fixed sound crash with Olympic Trials, it now works with sound support.

What i have still not done :
- Some games don't have any audio, strange...
- Be able to take screenshots
- Save states

You can download the new opk here. (https://github.com/gameblabla/potator/raw/master/potator.opk)
Any news? Crystball is really fun when it works. And the minor thing with the ROM select menu.
Title: Re: Potator
Post by: gameblabla on October 03, 2016, 09:56:49 am
Bump.

I have not fixed the audio issue with some games but i have added save/load states options to
the menu.
Title: Re: Potator
Post by: com64 on October 05, 2016, 12:11:28 am
The reason some games are missing audio is because audio DMA is not completely implemented in the source code. In fact, some games have both normal audio and DMA and are missing the latter.
Title: Re: Potator
Post by: gameblabla on October 05, 2016, 12:41:26 pm
It seems you are right because removing the dma code does the same thing as keeping it.
Looks like Alekmaul has not properly switch the sound engine to MESS/MAME.
I tried several things but it seems the issue is even deeper than the dma code itself...

I could either try to switch back to the old sound engine or port a minimal version of MAME which supports the supervision
to the zero.
Title: Re: Potator
Post by: com64 on October 05, 2016, 01:05:51 pm
At first it looks like the assembly commands for audio dma aren't being properly/fully mapped so aren't all going through to the audio subsystem. If you could help me find some information/documentation on opcodes and registers for this platform (watara supervision / 65c02) I could help.
Title: Re: Potator
Post by: gameblabla on October 05, 2016, 10:12:15 pm
At first it looks like the assembly commands for audio dma aren't being properly/fully mapped so aren't all going through to the audio subsystem. If you could help me find some information/documentation on opcodes and registers for this platform (watara supervision / 65c02) I could help.
Actually, DMA was not working because i accidently disabled it.
Oops... Well, i fixed that.
Sadly, there are still some games without any audio at all.

I suspect it is in fact the FM chip that is not emulated properly.
It seems that only one channel is emulated.
I will take a closer look at it.

There is unfortunely no comprehensive documentation for the Supervision but here is some code :
https://github.com/cc65/cc65/blob/709ee6a28b1375222d44590a57e93d732966f8bf/include/supervision.h
Gives some adresses to some things like the LCD, DMA (0x2018)..

MAME's Supervision, including the sound driver Alekmaul took it from :
https://github.com/mamedev/mame/blob/ba28590ba9d7213346cff348dd30691dba09f6d2/src/mame/audio/svis_snd.cpp
https://github.com/mamedev/mame/blob/ba28590ba9d7213346cff348dd30691dba09f6d2/src/mame/drivers/svision.cpp
Title: Re: Potator
Post by: zhongtiao1 on October 09, 2016, 09:41:23 pm
At first it looks like the assembly commands for audio dma aren't being properly/fully mapped so aren't all going through to the audio subsystem. If you could help me find some information/documentation on opcodes and registers for this platform (watara supervision / 65c02) I could help.
Actually, DMA was not working because i accidently disabled it.
Oops... Well, i fixed that.
Sadly, there are still some games without any audio at all.

I suspect it is in fact the FM chip that is not emulated properly.
It seems that only one channel is emulated.
I will take a closer look at it.

There is unfortunely no comprehensive documentation for the Supervision but here is some code :
https://github.com/cc65/cc65/blob/709ee6a28b1375222d44590a57e93d732966f8bf/include/supervision.h
Gives some adresses to some things like the LCD, DMA (0x2018)..

MAME's Supervision, including the sound driver Alekmaul took it from :
https://github.com/mamedev/mame/blob/ba28590ba9d7213346cff348dd30691dba09f6d2/src/mame/audio/svis_snd.cpp
https://github.com/mamedev/mame/blob/ba28590ba9d7213346cff348dd30691dba09f6d2/src/mame/drivers/svision.cpp

Why does crystball work in the windows version, but not the gcw0 version?

Sent from my Q5 using Tapatalk 2

Title: Re: Potator
Post by: gameblabla on October 10, 2016, 12:04:16 am
Why does crystball work in the windows version, but not the gcw0 version?
What Windows version ?
If you're talking about MAME/MESS, then no wonder crystball works on it.
I still don't know why Crystballs don't work on it. (but it didn't work on alekmaul's version either)
Title: Re: Potator
Post by: zhongtiao1 on October 13, 2016, 11:52:06 pm
Why does crystball work in the windows version, but not the gcw0 version?
What Windows version ?
If you're talking about MAME/MESS, then no wonder crystball works on it.
I still don't know why Crystballs don't work on it. (but it didn't work on alekmaul's version either)

The windows version of potator v0.7

Sent from my Q5 using Tapatalk 2

Title: Re: Potator
Post by: gameblabla on October 14, 2016, 12:36:33 am
The windows version of potator v0.7
Okay, thanks.
I will look at it after i'm done with the SuperTuxKart port.
Title: Re: Potator
Post by: zhongtiao1 on October 15, 2016, 05:15:42 pm
The windows version of potator v0.7
Okay, thanks.
I will look at it after i'm done with the SuperTuxKart port.

Could it be that there is some sort of linking problem whenever crystball is run? It always starts up by saying travellmate, but every other game says supervision on boot.

Sent from my Q5 using Tapatalk 2

Title: Re: Potator
Post by: gameblabla on October 16, 2016, 04:19:47 am
Could it be that there is some sort of linking problem whenever crystball is run? It always starts up by saying travellmate, but every other game says supervision on boot.
Sent from my Q5 using Tapatalk 2
No.

I think it is a regression Alekmaul introduced somewhere in the emulator.
I've got to say, this isn't' the first time he did so.
When i worked on Oswan, he made lots and lots of changes that broke a lot of games.
In that case, i ended up working from scratch.

I think i will start from scratch for this one as well.
Title: Re: Potator
Post by: zhongtiao1 on October 16, 2016, 06:24:51 pm
Could it be that there is some sort of linking problem whenever crystball is run? It always starts up by saying travellmate, but every other game says supervision on boot.
Sent from my Q5 using Tapatalk 2
No.

I think it is a regression Alekmaul introduced somewhere in the emulator.
I've got to say, this isn't' the first time he did so.
When i worked on Oswan, he made lots and lots of changes that broke a lot of games.
In that case, i ended up working from scratch.

I think i will start from scratch for this one as well.

Okay, cool. A bit off-topic, but the MESS source code for the mega duck handheld system uses the same core as the gameboy does. Would it be possible to add mega duck support to the gameboy emulator we have (ohBoy)?

Sent from my Q5 using Tapatalk 2

Title: Re: Potator
Post by: gameblabla on October 16, 2016, 11:20:46 pm
Okay, cool. A bit off-topic, but the MESS source code for the mega duck handheld system uses the same core as the gameboy does. Would it be possible to add mega duck support to the gameboy emulator we have (ohBoy)?
I don't think ohBoy uses the MESS/MAME core...
I think it might be better to just port a minimal MAME core to the GCW0.
But i'm too busy to work on that though.
Not yet
Title: Re: Potator
Post by: zhongtiao1 on October 17, 2016, 02:57:02 am
Okay, cool. A bit off-topic, but the MESS source code for the mega duck handheld system uses the same core as the gameboy does. Would it be possible to add mega duck support to the gameboy emulator we have (ohBoy)?
I don't think ohBoy uses the MESS/MAME core...
I think it might be better to just port a minimal MAME core to the GCW0.
But i'm too busy to work on that though.
Not yet

Okay, thanks.

Sent from my Q5 using Tapatalk 2

Title: Re: Potator
Post by: zhongtiao1 on November 19, 2016, 05:25:53 pm
Any update on Potator or a minimal MESS core?

Sent from my Q5 using Tapatalk 2

Title: Re: Potator
Post by: gameblabla on November 29, 2016, 12:46:17 am
Any update on Potator or a minimal MESS core?
Sent from my Q5 using Tapatalk 2
Sorry, no progress on potator or mess, i took a break from gcw0 dev.
Title: Re: Potator
Post by: zhongtiao1 on November 29, 2016, 04:49:17 am
Any update on Potator or a minimal MESS core?
Sent from my Q5 using Tapatalk 2
Sorry, no progress on potator or mess, i took a break from gcw0 dev.

Okay, Thanks

Sent from my Q5 using Tapatalk 2

Title: Re: Potator
Post by: zhongtiao1 on November 29, 2016, 08:08:03 pm
@gameblabla you may want to look at this source for potator: http://www.zophar.net/download_file/2441

It's the official source. Alekmaul's version was based off of a gp2x port done by normatt. The official version supports crystball.
Title: Re: Potator
Post by: gameblabla on December 01, 2016, 11:59:19 pm
Thx zhongtiao1 but the original potator source can't be used as is due to the seal dependency.
I actually tried to replace the M6502 core from the original source but that does not seem to be the issue
as Crystballs still crashes...

I don't know what makes crystball to work on the original source as they are pretty much similar.
Title: Re: Potator
Post by: zhongtiao1 on December 02, 2016, 05:32:40 pm
Thx zhongtiao1 but the original potator source can't be used as is due to the seal dependency.
I actually tried to replace the M6502 core from the original source but that does not seem to be the issue
as Crystballs still crashes...

I don't know what makes crystball to work on the original source as they are pretty much similar.

Well, the alekmaul version uses the MESS sound and the original doesn't. That most likely does not help compatibility, but it may improve sound.

Sent from my Q5 using Tapatalk 2

Title: Re: Potator
Post by: gameblabla on December 03, 2016, 09:14:41 pm
Well, the alekmaul version uses the MESS sound and the original doesn't. That most likely does not help compatibility, but it may improve sound.
Sent from my Q5 using Tapatalk 2
Actually, using the old sound version before alekmaul switched to using MESS also makes crystalballs to crash.
So i'm not sure how i can handle dis
Title: Re: Potator
Post by: zhongtiao1 on December 06, 2016, 07:03:05 pm
Well, the alekmaul version uses the MESS sound and the original doesn't. That most likely does not help compatibility, but it may improve sound.
Sent from my Q5 using Tapatalk 2
Actually, using the old sound version before alekmaul switched to using MESS also makes crystalballs to crash.
So i'm not sure how i can handle dis

The problem may be in the watara.c file or in one of the linked files. Could also be in the CPU emulation

Sent from my Q5 using Tapatalk 2

Title: Re: Potator
Post by: gameblabla on December 08, 2016, 02:03:21 am
The problem may be in the watara.c file or in one of the linked files. Could also be in the CPU emulation
Sent from my Q5 using Tapatalk 2
It can't be a linker issue, i'm rebuilding everything each time.
Watara.c has very little code and is unlikely to be the culprit.
The issue isn't the CPU core : i swapped the cpu core with the old one and there's no difference.

It does seem like it is an interrupt issue, which is harder to debug...
Title: Re: Potator
Post by: zhongtiao1 on December 08, 2016, 08:31:09 am
The problem may be in the watara.c file or in one of the linked files. Could also be in the CPU emulation
Sent from my Q5 using Tapatalk 2
It can't be a linker issue, i'm rebuilding everything each time.
Watara.c has very little code and is unlikely to be the culprit.
The issue isn't the CPU core : i swapped the cpu core with the old one and there's no difference.

It does seem like it is an interrupt issue, which is harder to debug...

Okay... You could try completely messing up the code so you know where the interrupt issue happens.

Sent from my Q5 using Tapatalk 2

Title: Re: Potator
Post by: Xaijiqq on February 08, 2017, 01:32:45 am
thanks for this release!  :) really like the 'keep aspect' ratio

also earlier today saw this new watara supervision emulator: http://tailchao.com/Wataroo/index.php (http://tailchao.com/Wataroo/index.php)
Title: Re: Potator
Post by: gameblabla on February 08, 2017, 02:42:26 am
thanks for this release!  :) really like the 'keep aspect' ratio
Yeah, it surprisingly looks good for Watara games, better than Wonderswan games do on oswan with the same option.

also earlier today saw this new watara supervision emulator: http://tailchao.com/Wataroo/index.php (http://tailchao.com/Wataroo/index.php)
I learned about it from the news but.... it's closed-source.
And he has no intent to open up the source code :
Quote
As of writing, Wataroo is closed source and only available for Microsoft Windows.
You can maybe try to convince him but i doubt this will change his mind.
Not an option
Title: Re: Potator
Post by: zhongtiao1 on February 08, 2017, 05:42:56 am
thanks for this release!  :) really like the 'keep aspect' ratio
Yeah, it surprisingly looks good for Watara games, better than Wonderswan games do on oswan with the same option.

also earlier today saw this new watara supervision emulator: http://tailchao.com/Wataroo/index.php (http://tailchao.com/Wataroo/index.php)
I learned about it from the news but.... it's closed-source.
And he has no intent to open up the source code :
Quote
As of writing, Wataroo is closed source and only available for Microsoft Windows.
You can maybe try to convince him but i doubt this will change his mind.
Not an option

I'm assuming no crystball support yet, But have you worked on a minimal mess core at all?

Sent from my Q5 using Tapatalk 2

Title: Re: Potator
Post by: gameblabla on February 12, 2017, 05:10:12 am
I'm assuming no crystball support yet, But have you worked on a minimal mess core at all?
Sent from my Q5 using Tapatalk 2
That attempt sadly failed... due to uClibc having spotty C++ support.
It was unable to compile even the dependencies, even when told to use certain system libraries...
MAME/MESS does emulate Crystball properly but it seems like i will have to port potator again...
Title: Re: Potator
Post by: zhongtiao1 on February 12, 2017, 04:47:26 pm
I'm assuming no crystball support yet, But have you worked on a minimal mess core at all?
Sent from my Q5 using Tapatalk 2
That attempt sadly failed... due to uClibc having spotty C++ support.
It was unable to compile even the dependencies, even when told to use certain system libraries...
MAME/MESS does emulate Crystball properly but it seems like i will have to port potator again...

Okay, thanks

Sent from my Q5 using Tapatalk 2