Dingoonity.org

Other Portable Consoles => Gemei A330 => Topic started by: slaanesh on November 13, 2016, 02:52:15 am

Title: Gemei A330 MAME4ALL on its way!
Post by: slaanesh on November 13, 2016, 02:52:15 am
I have an initial version of Mame4all running on my Gemei A330.
Here are some photos.

(http://uploads.tapatalk-cdn.com/20161113/995e71bcc53cecab0552beff94de5d61.jpg)

(http://uploads.tapatalk-cdn.com/20161113/c2c1cc0ac21f3bc330a6824f0dda6f41.jpg)

(http://uploads.tapatalk-cdn.com/20161113/484071f76725647f60f418e56feda1ef.jpg)
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: yoshi41 on November 13, 2016, 08:33:26 am
Good news. :) And thanks for your hard work.

The GA330 is a nice piece of hardware. Can't wait to try it out.

Title: Re: Gemei A330 MAME4ALL on its way!
Post by: slaanesh on November 13, 2016, 09:09:05 am
Good news. :) And thanks for your hard work.

The GA330 is a nice piece of hardware. Can't wait to try it out.

Actually it is a nice handheld, pretty decent hardware. Similar to it's predecessor the Dingoo A320 in many ways (of course).

My only complaint would be the LCD screen, which is like the Ben Nanonote: the pixels aren't aligned so everything looks slightly "dithered".

It should be pretty quick for M68000/Z80 games as unlike the Dingoo A320, I will be able to use Cyclone and DrZ80 :)
AND... another nice feature is the easy to use hardware scaling... looking forward to getting this going too.

Also thanks go to cex and dcervi for pointing me in the right direction with some A330 toolchain/SDK questions.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: chevette on November 13, 2016, 06:36:15 pm
Wow slaanesh that's a beautiful sight to see Mame4All on the Gemei A330 (never thought I'd see it!). Thanks for all your efforts on this wonderful handheld
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: dingooforever on November 14, 2016, 10:30:50 am
Well done slaanesh!

It's really great to see Mame4All run on so many different opensource devices.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: dcervi on November 15, 2016, 02:19:54 pm
Also thanks go to cex and dcervi for pointing me in the right direction with some A330 toolchain/SDK questions.

Glad to be able to help. My A330  patiently waits with a fresh new battery...


Enviat des del meu D5803 usant Tapatalk
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: Igor Raz on November 15, 2016, 03:51:20 pm
Awesome news, thanks a lot for keeping faith in Gemei )
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: slaanesh on November 16, 2016, 11:16:04 pm
A couple things so far about the Gemei MAME4ALL port:

1). Sound is laggy. This issue has been touched on before. At lower sound sample rates, the sound seems to lag - badly. This seems to decrease at higher rates. I'm going to go with the following approach:

There are two sample rates to consider: The emulated rate and the Gemei's playing rate. For most emulators and systems, these are the same. ie. For my versions of MAME4ALL this is always the case.

To help solve the laggy issue, my workaround will be to set the Gemei's sample rate to the maximum  48Khz stereo but still allow MAME4ALL to emulate at lower sample rates (for speed reasons). The emulated sound generated by MAME4ALL will then be resized to fit the number of samples the Gemei is expecting to play (which is a pretty quick step). Obviously if MAME4ALL is set to 48Khz stereo then there won't be any need for "resizing". Complex sound chips like the ym2151, would take a lot of processing at this maximum rate which is why I prefer to emulate it at a lower rate and then re-sample it at the last output step to the Gemei.

2). The Gemei is making use of Cyclone and DrZ80 CPU cores. Great! I've tried some games that really torture MAME4ALL, Outrun is a good candidate having 2x M68000s and 1xZ80. It runs pretty well - though not stellar. I guess the issue is that the Gemei's CPU is an ARM-926 - same as the GP2X Wiz. Whilst on paper the specs seems to indicate it should be super fast, I've found it isn't. And this seems to hold true with the Gemei A330 too.

3). Extra RAM. This is probably the best advantage of the Gemei A330. Glorious extra RAM! We have much more user RAM to play with - 30MB of Heap and 8MB of program space. This was a main issue with the Dingoo A320. Lack of RAM - it only has 16MB Heap and 6MB program.
The extra RAM is good but unfortunately will still mean the Gemei version will need a number of executables to cover all the games - I'm thinking 4 or so module. The Dingoo A320 has 8 modules.

4). Hardware screen scaling! I love hardware screen scaling! In the process of getting this working. Using Rampage as the test subject as it's game resolution is 512x480. And I also like Rampage ;-)

Title: Re: Gemei A330 MAME4ALL on its way!
Post by: chevette on November 17, 2016, 10:23:14 pm
Thanks for the update slaanesh.
Title: Gemei A330 MAME4ALL on its way!
Post by: slaanesh on November 17, 2016, 11:26:05 pm
(http://uploads.tapatalk-cdn.com/20161117/ea8a0f302e514fa3806d62aa7647cc7b.jpg)

Rampage hardware scaling not quite right for shrinking though stretching is fine
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: slaanesh on November 21, 2016, 01:39:11 am
So I was looking at the previous post's issue on the weekend and I haven't found a solution.

It's a pity as the Gemei port is in a pretty good shape otherwise.

I could use software blitters that do the re-scaling but the hardware one would be faster and do a higher quality job so it would be nice to get this issue sorted out.

The problem looks to be that the hardware blitter is only setup to do a maximum of 320x240 when using the LCD screen - TV out will probably work (though I haven't tested that).

There must be someway of setting the blitter "window" (presumably set to 320x240) to the correct size.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: slaanesh on November 23, 2016, 03:39:18 am
I've sent some code to dcervi who is going to assist with the hardware scaling to see if there is any way to fix the above issue.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: slaanesh on November 28, 2016, 11:30:47 pm
Great news!

dcervri found the problem with hardware scaling.

High resolution games, like Rampage, are now being nicely scaled by the hardware to the Gemei's screen.

Big thanks to dcervri.

A couple more things to look at and I think an initial release should be in order fairly soon.

Title: Re: Gemei A330 MAME4ALL on its way!
Post by: chevette on November 28, 2016, 11:32:22 pm
This is exciting!!!!!!! Thanks guys!!
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: dcervi on November 29, 2016, 10:04:50 pm
As I said before, I'm very happy to be able to help you getting hardware scaling working. Some reverse engineering was needed to find the bug affecting bigger resolutions, but now that it's been solved, we can port other programs that may need bigger resolutions (Temper, I'm looking at you).

But first things first, I'm eagerly awaiting your first release of Mame4all. I hope we can get better Neo Geo and CPS 1-2 emulation than what it's currently available, and I'm anxious to be able to play Out Run and GNG on the Gemei.

Enviat des del meu D5803 usant Tapatalk

Title: Re: Gemei A330 MAME4ALL on its way!
Post by: slaanesh on December 09, 2016, 12:18:51 am
Still working on this.

Sound seems to be an issue using the Multiplatform API.
It works but it's got issues.

* A low sample rate seems to generate laggy sound.
* A high sample rate reduces lag but seems to take up a lot of the machine's CPU.

Still investigating.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: slaanesh on December 20, 2016, 02:01:04 am
I've worked out the second of two sound issues - the other has the work around which seems to be satisfactory for now.

So games are now playing okay.

What is the performance like?

Well, good question really.

To be honest, it's a bit disappointing and in many cases not faster than the Dingoo A320.

* The Gemei A330 excels at games which makes use of M68000/Z80 combo.
The reason being the emulation code for these CPUs are written in assembler whereas the Dingoo A320 only has 'C' cores.
* The Dingoo A320 seems to be considerably faster when overclock to 420Mhz than the Gemei A330 can do at "MAX" overclock (whatever speed that is). I believe nominal speed is 500Mhz.

Some examples are:
Jackal - uses 2x M6809 CPUs and a YM-2151 sound chip.
I, Robot - use 1x M6809 CPU and mathbox and AY-8910 sound chip.

The Gemei A330 struggles with both of these games whereas the Dingoo A320 runs them fairly well.

So why is this?

I believe it's the ARM-926J CPU which isn't that strong. If you compare the performance of the Wiz and GP2X you will see what I mean. The GP2X, overclocked to 250Mhz compared to a Wiz overclock at 750Mhz certainly doesn't go three times faster.

There is some good news:

* Has 64MB of RAM and the OS does seem to use it.
This means that some larger games which can't work on the Dingoo A320 should work on the Gemei A330.

* Has a very nice hardware scaler - the screen looks great when upscaling or downscaling screens.

* Has triple buffering enabled by default so screen updates are smooth with no tearing.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: dcervi on December 20, 2016, 02:56:51 pm
Great Slaanesh!!!

I hope it's soon ready for release.

Enviat des del meu D5803 usant Tapatalk

Title: Re: Gemei A330 MAME4ALL on its way!
Post by: chevette on December 20, 2016, 03:01:11 pm
Thanks for the update slaanesh........patiently waiting for a release.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: slaanesh on December 25, 2016, 11:03:43 am
MERRY CHRISTMAS!

I offer to all the Gemei A330 users a MAME4ALL Beta Christmas release!
This is a binary only install - source code coming with the v1.0 release.

MAME4ALL BETA for Gemei A330 (https://www.dropbox.com/s/hudvuvulau8ab2s/MAME4ALL_beta_gemei_A330.zip?dl=0)

Please understand it's 'beta'! This is just a test version so you have something to try during Christmas!


Important Instructions:
=================

1). All MAME4ALL ROMs must be renamed from *.zip extension to *.mz
ie. rampage.zip => rampage.mz
This is so that the Gemei A330 doesn't hang if you have more than a hundred .zip files in the one directory.

2). The MAME4ALL release has only been tested in B:\MAME4ALL (that is on an external SD card).
In theory it should work anywhere on the fileysystem, but this is where I have it.

3). It works just like the Dingoo A320 version of MAME4ALL. The keys are all the same.


Controls :

Standard in-game MAME controls:

- D-Pad: UP, DOWN, LEFT and RIGHT.
- Buttons A,B,X,Y,L,R: MAME buttons 1,2,3,4,5,6.
- Button SELECT+START: Insert credit.
- Button START: Start game.


Extended controls in game (to access menus and options)
All use the SELECT button + an additional button.
This is analagous to pressing "SHIFT" and another key on a regular keyboard.

- Buttons SELECT+L: Take snapshot.
- Buttons SELECT+R: Show FPS.     
- Buttons SELECT+Y: Pause.
- Buttons SELECT+X: Enter/Exit Volume menu.
- Buttons SELECT+B: Enter/Exit MAME menu
- D-Pad + L Shoulder pans the game (only for Video Output set to Normal and where the graphics don't fit entirely on the screen).

Also
- Buttons L+R: Exit (to Mame4All menu).
- Button B mapped to Enter
- Button X mapped to Space

Known Issues:
==========

* Exit takes a long time and the sound keeps playing.
* Some games do not start (yet).
* The FPS display is sometimes truncated.
* The sound is a little laggy.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: chevette on December 26, 2016, 01:29:57 pm
slaanesh: Thanks for this great Christmas gift. I tried it out quickly and it's just like the Dingoo A320 version that you made a few years back. I used the Mame 0.37b5 romset. Audio samples did not seem to work. Sound was distorted in many games. Some games like Zaxxon, Super Zaxxon, and Congo Bongo were messed up graphically. Shinobi ran and sounded great! This Beta version is showing great promise and many games are running at full speed with good sound. So thank you slaanesh for a great release on the Gemei A330.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: slaanesh on December 26, 2016, 08:05:52 pm
I've only been testing with a very small subset of games.

Games which use samples should work - but I haven't tested any. I didn't rename the samples from *.zip to *.mz!

So you will have to do that in the Beta. I've fixed this already for the next release. Also there are many sample files that are no longer needed thanks to many updates i've made to drivers/

Zaxxon & Congo I will investigate! Fixed. Will be in the next release.

If you find any other issues, please let me know!
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: chevette on December 26, 2016, 11:21:31 pm
Ok slaanesh renamed the samples from .zip to .mz and now they are working. Thanks again
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: diogens on December 27, 2016, 07:50:41 pm
thanks slaanesh. tried it. none of mature/adult games (https://en.wikipedia.org/wiki/List_of_erotic_video_games , 1 arcades) are showing up in any of submames', like gals series, fantasia series,
none of the slot machines neither like cherry(super-new etc.)/bar 5's-7's/butterfly/jingle bell - not showing up at all.
from the old stuff i tried exerion but it flipped screen clockwise 90' and its unplayable.
poker ladies seems to work well (at a glance) - happy that i played power spikes! seemingly flawlessly !!!! thanks 4all :)
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: slaanesh on December 28, 2016, 03:38:19 am
Uh - H
thanks slaanesh. tried it. none of mature/adult games (https://en.wikipedia.org/wiki/List_of_erotic_video_games , 1 arcades) are showing up in any of submames', like gals series, fantasia series,
none of the slot machines neither like cherry(super-new etc.)/bar 5's-7's/butterfly/jingle bell - not showing up at all.
from the old stuff i tried exerion but it flipped screen clockwise 90' and its unplayable.
poker ladies seems to work well (at a glance) - happy that i played power spikes! seemingly flawlessly !!!! thanks 4all :)

Well, this isn't based on the latest version of MAME. And indirectly you raise a small issue that I will need to address.

Originally MAME4ALL is based on 0.37b5 - an ancient version of MAME.

My version of MAME4ALL is really very much updated. In fact *every* single existing driver has been updated to some degree - most up to Mame 0.84/0.105 standard. Many new drivers have been added. Literally hundreds of new games.

I can confirm there are no slot machine type games (I did look at adding "Black Rhino" but it was a lot of work and didn't go through with it). Some Adult games have been added:

Block Gal, Fantasy 95, Gun Dealer, Magix, etc. And certainly some others.

To solve the problem, I will create a list of supported games shortly.

As for Exerion, it's supposed to be rotated - and it should be playable! I'm playing it now!
Though the sound is not very good. Will investigate.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: diogens on December 28, 2016, 05:07:32 am
think most of these 'adult' games are puzzle games with soft pics :)
lady killer is a good classic one. i think i didnt see it showing up (but not sure)
anyhow, will be checking releases/relevant threads - sincere thanks 4(/2all) your(/their) work  8)
uae4all/caprice anybody  ;D
best wishes for new year


Title: Re: Gemei A330 MAME4ALL on its way!
Post by: dcervi on December 28, 2016, 12:37:24 pm
You did an amazing job Slaanesh!!! It's impressive how many games are working at or near full speed.

I've been doing tests with 0.37b5 romset, but I couldn't load any CPS1 game (crashes mame4all) and only few Neo Geo games work (most of them give bad rom message). I hope you can find time to make a dat file or list with the correct rom versions to be able to properly test them.

I also find sound too weak compared to other emulators, even at max volume.

Anyway, it looks fantastic and very promising. Thank you very much for bringing this to the Gemei!!!

Enviat des del meu D5803 usant Tapatalk

Title: Re: Gemei A330 MAME4ALL on its way!
Post by: slaanesh on December 28, 2016, 12:58:49 pm
You did an amazing job Slaanesh!!! It's impressive how many games are working at or near full speed.

I've been doing tests with 0.37b5 romset, but I couldn't load any CPS1 game (crashes mame4all) and only few Neo Geo games work (most of them give bad rom message). I hope you can find time to make a dat file or list with the correct rom versions to be able to properly test them.

I also find sound too weak compared to other emulators, even at max volume.

Anyway, it looks fantastic and very promising. Thank you very much for bringing this to the Gemei!!!

Enviat des del meu D5803 usant Tapatalk
Thanks and thanks you for your assistance too!

I've found the issues with CPS-1 games so that will be fixed in the next release.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: 1wiierdguy on December 30, 2016, 10:38:05 am
Wow! Was shocked to see Mame ported to the GA330. After a bit of digging around I managed to find mine tucked away in the shed. Only tried a couple of games so far. Captain Commando doesn't display unfortunately but Shadow Dancer is running ok. Big thanks to you guys for your work
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: yoshi41 on January 02, 2017, 12:37:33 pm
Do you have a DAT file please?

Can't test anything. Always getting no roms found error message.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: dcervi on January 02, 2017, 02:08:40 pm
Do you have a DAT file please?

Can't test anything. Always getting no roms found error message.
Did you change the roms extension to .mz?

Enviat des del meu D5803 usant Tapatalk

Title: Re: Gemei A330 MAME4ALL on its way!
Post by: yoshi41 on January 02, 2017, 04:00:25 pm
Yes, I did.

I was actually able to play a couple of games. Then I added some more ROMs. Now it doesn't find any games. Also deleted the files in the frontend directory, no luck.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: slaanesh on January 02, 2017, 10:03:34 pm
From the frontend, press <SELECT> to re-scan ROM list once you add new ROMs.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: chevette on January 03, 2017, 01:26:17 am
I'm lovin me some Frogger on the Gemei A330.......thanks again slaanesh.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: jutley on January 09, 2017, 10:56:11 am
Because of this release i waited so many years lol i had to buy a A330 now just for this thanks slanesh. If anyone wants to buy one now at a decent price i have put links up on the forum.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: slaanesh on January 09, 2017, 11:51:54 am
I've made quite a few improvements since the beta so will release a new version shortly.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: slaanesh on January 15, 2017, 11:37:41 am
Here's the clrmame.dat file to try out:
https://www.dropbox.com/s/tnwywj7vrtp2x5w/clrmame.dat?dl=0
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: trasric on January 15, 2017, 01:37:06 pm
I get an ''Found an incomplete datfile'' error from clrmamepro.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: slaanesh on January 15, 2017, 09:06:15 pm
I'll check it tonight
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: dcervi on January 15, 2017, 09:42:27 pm
There's many <unknown>" definitions in the file. Replacing them by unknown" (without the angle brackets) solves the error.

I'm a total noob with clrmamepro, but I've noticed all Neo Geo roms are not defined in the dat file.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: slaanesh on January 16, 2017, 12:00:59 am
Thanks for having a look! Yes, that's what I get for not testing it myself, sorry everyone!

To create the file, I'm getting my Pandora version of Mame4all to generate the file.
I haven't had time to actually check the file using ClrMamePro, in fact I've not used it for years.

I've made the fixes to the code and will generate a new file tonight AND check it myself in ClrMamePro.

As pointed out, I will also include Neo Geo ROMs. The reason they aren't included is because there are two Mame4all executables that run on Linux - one for Neo Geo and the other for everything else. I think I will merge them together on Linux systems as it's not really necessary to have them separate on the more capable handhelds anyway.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: Radioboy86 on January 16, 2017, 06:48:34 pm
Bro, seriously this work you are doing is just awesome. I am so glad I did not goodwill this Gemei GA330! :D
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: slaanesh on January 17, 2017, 02:04:21 am
yoshi41 has pointed out some other enhancements for the clrmame.dat in regards to handling clone ROMs so will implement that as well.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: Radioboy86 on January 17, 2017, 11:24:12 am
Hey guys I am curious how can you tell which Gemei A330 model you own? The Fashion models and others called Dingoo are not the same. There are even models without the Wifi 2 Player mode. This device is so confusing to me.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: slaanesh on January 19, 2017, 10:23:30 am
I own both versions.

My "fashion" version was originally v1.0 and I believe it was identifable in the system setup->about screen.
I've since updated it to v1.1 and it's lost this identification.

My "full" version came as v1.1 but I haven't used it for a few months now.
So can't really help you.

clrmame.dat
In the mean time I've created two new clrmame.dat files. Bugs have been removed, I've loaded them into ClrMamePro without error.

Both files contain all games which are supported by Mame4All Pandora - the Gemei A330 uses a 95% subset of these.
Each .dat file handles the ROMs used to make up the games a little different - you can choose your preference.

Let me explain.

Arcade games often get multiple released versions - usually for different international regions containing localization features.
The authors of the MAME driver selects one of these versions as the main parent game - the others are clones.

1). Parent Game: the original or most common version of a game. Often the US version of the game. ie. 1943.zip
2). Clone Game: is a variation of the associated parent game. The differences can be very minor or major. The clone game makes use of at least one ROM from it's parent game and often almost all of them. ie. 1943j.zip

Mame4All knows which games are parents or clones. A parent game must have all it's ROMs in one .zip file. A clone game may have it's ROMs in the clone .zip file and/or the parent .zip.

So, both versions of these clrmame.dat files treat parent games exactly the same.

This clrmame.dat treats clone games as parent games - all ROMs required to run the game are contained in the clone ROM set, even if they are duplicated in the parent. This makes clone games fully independent of it's parent but takes up more space.
clrmame.dat (https://www.dropbox.com/s/tnwywj7vrtp2x5w/clrmame.dat?dl=0)

The clrmame_split.dat only stores the ROMs for a clone game which are different from the parent game. This means the clone games will be fully dependent on it's parent ROM to play. The advantage is that the clone games take up less space. This is the method I prefer.
clrmame_split.dat (https://www.dropbox.com/s/ait079z7zfiwvsi/clrmame_split.dat?dl=0)
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: trasric on January 20, 2017, 04:58:22 am
There is a problem with your split dat file. The parent/clone relationships are not correct and as a result the clrmame
cant let you choose the "split set" option. For example the Lines in your dat looks like this:

<game name="puckmod">
      <description>"PuckMan (harder?)"</description>
      <year>1981"</year>"
      <manufacturer>"Namco"</manufacturer>
      <cloneof>"puckman"</cloneof>
      <romof>"puckman"</romof>

And the right way must be like this:

<game name="puckmod" clone of="puckman" romof="puckman">
      <description>PuckMan (harder?)
</description>
      <year>1981</year>
      <manufacturer>Namco</manufacturer>

Anyway way it's no big deal.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: slaanesh on January 20, 2017, 05:13:57 am
No it is a big deal!
Thanks will fix it!

There's also still another issue with some file sizes being incorrect. Fixing this as well.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: trasric on January 21, 2017, 04:43:48 pm
After a few hours inserting and fixing roms, cause the mame4all from slaanesh as i can see has a romset mix from different versions of mame, i made a full set of correct roms based on his dat file. There is 2914 games. Now its time for test on Gemei!

Also i fixed the wrong size issues in his clrmame.dat(no the split one).
Here it is:
http://www.megafileupload.com/cu8j/clrmamepro.dat

Again thank you slaanesh!
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: slaanesh on January 23, 2017, 02:12:29 am
I've fixed my code too which generates the clrmame.dat file in the first place, so it should be okay now.

I might just stick with the split version - unless there is popular demand to have both versions.

Next step is to list which Modules contain which games.

This document will be generic and cover all MAME4ALL v2.0 ports.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: dcervi on January 23, 2017, 11:16:32 am
Well, if the dat file includes proper information about parent and clone roms, clrmamepro will allow you to create merged, non-merged, and split romsets.

I personally prefer non-merged sets because I only want to keep one version for each game. IE, if I want to have TNMT 2 player version, I only need to have tnmt2po.zip (if I was using split sets, I would need to also have tnmt.zip, and they will appear as 2 separated entries in Mame4All game selection).
 
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: slaanesh on March 28, 2017, 06:02:44 am
I've been away from the Gemei A330 code for a few weeks, bring the Dingoo A320 version up to speed a bit.

Good news if you have an A320 as well as I've implemented hardware screen scaling - which is very nice!

Now both the Gemei A330 and Dingoo A320 will have hardware screen scaling!
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: gapan on March 30, 2017, 11:57:17 am
slaanesh's link on post #19 doesn't work anymore. Anyone has a working link?
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: slaanesh on March 30, 2017, 12:13:42 pm
Try this one:

MAME4ALL_beta3_gemei_a330.zip (https://www.dropbox.com/s/wkzpixyza8ry8di/MAME4ALL_beta3_gemei_a330.zip?dl=0)
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: chevette on March 30, 2017, 11:24:17 pm
slaanesh: just quickly tried out Beta 3. So far works fantastic. Zaxxon and Congo Bongo now work great. Exiting a game still takes a while. ROMS and Samples still have to be renamed from .zip to .mz. Maybe I have a bad ROM, but couldn't get Donkey Kong to run. All in all, this is a great new release for the Gemei A330. Thanks slaanesh for your 'magic'.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: trasric on March 31, 2017, 01:14:58 pm
Maybe I have a bad ROM, but couldn't get Donkey Kong to run.

I dont have any problem with donkey kong, it running very good. Maybe if u show me the files inside the zip ill tell you what is wrong.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: chevette on March 31, 2017, 10:57:38 pm
I tried a different ROM and it works fine now. Thanks trasric for your help. A very impressive emulator for the Gemei A330.....thanks again slaanesh.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: slaanesh on April 01, 2017, 07:16:48 am
Try some of the new games: macross, macross2, tinklpit
Loads of other new games too.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: gapan on April 01, 2017, 10:08:42 am
Try this one:

MAME4ALL_beta3_gemei_a330.zip (https://www.dropbox.com/s/wkzpixyza8ry8di/MAME4ALL_beta3_gemei_a330.zip?dl=0)
Thank you so much!
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: chevette on April 04, 2017, 01:09:41 am
Just wondering.........what is the correct ROM set to use for this release? And what is the purpose on the included Mame4all.dat which is part of the MAME4ALL_beta3_gemei_a330.zip? Does it get copied to the Gemei somewhere?      Thanks
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: slaanesh on April 04, 2017, 10:58:50 am
Just wondering.........what is the correct ROM set to use for this release? And what is the purpose on the included Mame4all.dat which is part of the MAME4ALL_beta3_gemei_a330.zip? Does it get copied to the Gemei somewhere?      Thanks

A good question.

There is no absolutely correct ROM set anymore. The Mame 0.37b5 ROM set is the closest (from the GP2X) and will serve you well for most games.

You can however create a perfect set by using clrmampro or some other equivalent tool to create your own ROM set.

You will need:

ROM sets: Mame 0.37b5, 0.84 and 0.148 (or later).
Dat file: mame4all.dat supplied
Utility: https://mamedev.emulab.it/clrmamepro/#downloads (https://mamedev.emulab.it/clrmamepro/#downloads)
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: slaanesh on April 06, 2017, 03:56:36 am
If you've tried Gemei A330 MAME4ALL then I'm sure you will know that exiting a game takes a while - about 20 seconds or so until you are back at the frontend.

It's annoying and I would like to resolve it.

Can anyone tell me if other A330 homebrew exhibits the same symptoms?

ie. the SNES or SMS emulators?
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: chevette on April 06, 2017, 11:32:59 am
slaanesh - I'm pretty sure I have all the available emulators running on my A330. Of course the stock ones, and the GameBoy, Sega Master System / GameGear, and the SNES ones that came later, MAME4All is the only one that takes long to exit. Thanks for your releases.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: trasric on April 06, 2017, 02:39:59 pm
I have a question guys if anyone knows. Most Neo Geo games like Metal Slug give me the message ''bad rom''. I tried many roms from different mame versions with no luck. The problem is cause of Mame itself or something else?
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: chevette on April 06, 2017, 07:39:40 pm
I'm pretty sure they don't run (NeoGeo) on mame4all. Use the native one which works fine.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: trasric on April 06, 2017, 08:13:16 pm
I'm pretty sure they don't run (NeoGeo) on mame4all. Use the native one which works fine.

I know i can use the native neo geo emu. Just asking for completion reasons because im trying to make a rom set for Gemei's Mame4All emu with all possible working games.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: slaanesh on April 06, 2017, 09:29:33 pm
Neo Geo games should work on Mame4all. Have you tried using the Mame4all.dat fi?E to construct the ROMs including the neogeo.zip? Also make sure that your ROMs are renamed to .mz

EDIT:

The error message you are getting isn't quite right - sorry.

Okay, I can see the problem with Metal Slug. It's just too big. There is one ROM chunk which is 16MB in size. You would think that the A330 having 64MB of RAM that this would not be a problem. Unfortunately, that's not the case. The RAM isn't contiguous, it's scattered over three chunks.

Also I think I may have figured out why it's taking the Gemei so long to exit. I originally thought it was the sound thread - but it appears to be right at the very end literally on "exit".

The Gemei seems to spend a fair amount of time looking at the filesystem which it changes. Mame4all is always updating config files so it could be that writing out anything is causing these slow downs. I will confirm this today.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: trasric on April 06, 2017, 10:16:47 pm
Neo Geo games should work on Mame4all. Have you tried using the Mame4all.dat fi?E to construct the ROMs including the neogeo.zip? Also make sure that your ROMs are renamed to .mz

Some neo geo games work while others not. Yes all roms are based on Mame4all.dat file. I'll be very thankfull if u can include the neogeo.zip files that the each game needs because may some olders games use different neogeo.zip than other newest games. As we know files inside neogeo.zip get changes over time like the files of the games. Anyway i tried some older neogeo.zip roms but as i said i have no luck with some neo geo games. Not all neo geo games but most of them.

Edit: Sry i didnt see your previous edit. Now i can understand the problem.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: slaanesh on April 07, 2017, 01:02:29 am

Also I think I may have figured out why it's taking the Gemei so long to exit. I originally thought it was the sound thread - but it appears to be right at the very end literally on "exit".

The Gemei seems to spend a fair amount of time looking at the filesystem which it changes. Mame4all is always updating config files so it could be that writing out anything is causing these slow downs. I will confirm this today.

Yep I can confirm that this is the issue. When writing nothing to the filesystem, MAME4ALL exits very quickly.

I will add an option to the frontend menu - if selected MAME4ALL will not write out anything to the filesystem.

So what does MAME4ALL usually write out?

config, hi scores, screen snap shots, memcard saves, etc.

Mind you you probably want MAME4ALL to write out config files the first time you run any game; set up the options and controls, etc otherwise it will keep using defaults.

The frontend also writes out frontend config (including the last game played).
If these don't change then it doesn't write anything.
However I will make it that frontend option also applies to these config files.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: dcervi on April 07, 2017, 05:53:28 pm
Slaanesh, isn't it possible to return to Mame4all menu when exiting a game?

And have a look if it's possible to close the sound thread before anything else when you press the key combination for exiting a game. It's annoying to keep hearing the last played note until it finally exits. (I didn't had time to try the latest beta. Maybe it has already been solved)

Enviat des del meu D5803 usant Tapatalk
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: trasric on April 07, 2017, 09:58:38 pm
Guys i made a complete rom set with all working games for the recent version of the awesome Mame4All emu for Gemei by Slaanesh. Of course for obvious reasons i cant post a link here. So if anyone has interest for the set just pm me.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: slaanesh on April 07, 2017, 10:12:04 pm
Slaanesh, isn't it possible to return to Mame4all menu when exiting a game?

And have a look if it's possible to close the sound thread before anything else when you press the key combination for exiting a game. It's annoying to keep hearing the last played note until it finally exits. (I didn't had time to try the latest beta. Maybe it has already been solved)

Enviat des del meu D5803 usant Tapatalk
Yes this is solved now :)
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: slaanesh on April 13, 2017, 07:09:24 am
Back on the Gemei for a bit I've cleaned up a whole suite of minor/major things.

Finally have the audio sounding very nicely IMHO. Still has some inherent laggy behaviour though despite trying another API - but with the same results.

In the sound setup code there was a small rounding problem which would mean there was a 1 sample discrepancy between what was generated and what was played. Doesn't sound (pun intended) like much - but I found that you could actually hear it.

I found it when I  was working on updating the older williams games - most of the common ones were fine (Defender, Robotron) but Blaster and Joust 2 were really slow.

So I sorted these out by updating the video driver to a later version and both play quite well now - Blaster especially nicely. I think it's the first time I've played Blaster on a handheld and had quite a bit of fun with it. But I noticed a really annoying regular ticking sound in Joust 2 when ever it was quiet in game. This wasn't happening for other builds like the GP2X or Dingoo A320.

Anyway it's been fixed and have found that a few other games have benefited too.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: dcervi on April 13, 2017, 10:45:47 pm
Thanks for the news Slaanesh. You're doing a great job!

Enviat des del meu D5803 usant Tapatalk

Title: Re: Gemei A330 MAME4ALL on its way!
Post by: chevette on April 13, 2017, 11:22:50 pm
Thanks slaanesh.....eagerly waiting for the next release
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: Igor Raz on April 20, 2017, 06:50:55 pm
Every time I switched off the console I had troubles in running MAME4ALL - NO Roms found. All files had .mz extension )

I had to switch it over and over again, Update Jukebox, reconnect to PC to get Mame back to work.

Finally I found out that changing CC extention to c3s will do the trick.

Now I run all Mame from GBA and 3D games menu.

Hope it'll help someone.


Title: Re: Gemei A330 MAME4ALL on its way!
Post by: trasric on April 20, 2017, 09:31:59 pm

Finally I found out that changing CC extention to c3s will do the trick.


Yea it depends on what Firmware u have. Some Firmware versions supports .cc extensions while some others .c3s extensions.

Also Igor check ur messages.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: Melquiades on May 03, 2017, 06:54:12 am
Looking forward to trying this as soon as possible.

What are your plans after this? Please be Temper... although  a modification of the Genesis emulator to allow for double buffer to increase framerrate, just like they did with the Dingoo A330 would be almost as good.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: slaanesh on May 03, 2017, 07:17:43 am
Temper would be awesome and possibly fairly easy  :)
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: Melquiades on May 03, 2017, 01:51:44 pm
Wow. I have just tried some roms and I am  blown away. Good work people! Thank you very much!

Neo Geo roms with heavy scaling are not slowed down at all, and games like ghosts and goblins run at good framerrate. I will try tonight heavyweights like dodonpachi and such and revert. Right now I just can say that this is fairly impressive. Who could have guess the gemei would have a comeback like this! 

Now, after seeing what you can done, surprise us with Temper. Even the Dingoo A320/A330 run it very well so it should not be a problem. Thinking about having the PCE castlevania in my hands again make me tremble.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: chevette on May 03, 2017, 04:24:43 pm
Has the newest Mame4All been released? I think I'm using Beta 3......I would love to see an Atari 2600 release for the Gemei A330. Thanks slaanesh for your great releases.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: trasric on May 04, 2017, 05:06:01 pm
Slaanesh i have a question. As Melquiades also noticed, in .dat file there is some ''Cave'' games like DonPachi and DoDonPachi. But these game cant be found in any of the emulator game categories. You have any clue about that?
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: slaanesh on May 05, 2017, 03:00:48 pm
That's because that dat file is generated by the Pandora version of Mame4all. I'll add cave in and see how it runs. Should be fine.

Title: Re: Gemei A330 MAME4ALL on its way!
Post by: slaanesh on May 09, 2017, 01:22:28 am
Okay I've added DonPachi to the "Neogeo" module as it has the largest amount of spare ram.

I've tested:
DonPachi, Hotdog Storm and Mazinger which all work very nicely.
DonPachi is a lot of fun - one of my favorite shooters from the early 90s. Up there with Raiden and Twin Cobra.

Air Gallet and Dangun Feveron should also work. May also be too big.

The others: DoDonPachi, Uo Poko and Guwange are just too big.

Are there any other issues?
Missing games?
Games not yet implemented from more advanced versions of MAME?
Bear in mind that about 10-12MB of EXPANDED ROM size is the maximum we can handle.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: slaanesh on May 09, 2017, 02:25:30 am
Just having a look at how the cave.c vidhrdw driver works. Typically, not very efficient in terms of memory usage.
It's possible to halve some elements of the sprite graphics storage so I'm looking into doing this and hopefully get some more cave.c games to work.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: trasric on May 09, 2017, 03:39:35 am
Thank you very much slaanesh. DonPachi and Raiden are some of my favorite games too.
I'm checking all games and i let you know if i find something to mention.
So far i found that i cant insert coins in ''Indiana Jones temple of doom''.
Also its possible to add ''Chase HQ'' from Taito? I like so much this game!
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: slaanesh on May 09, 2017, 04:42:19 am
Ah good old Indy!
I did some fixes for this for the Dingoo A320 version - something to do with previous PC for the M68000.

I'll have a look.
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: Melquiades on May 09, 2017, 06:42:45 am
Ah good old Indy!
I did some fixes for this for the Dingoo A320 version - something to do with previous PC for the M68000.

I'll have a look.

Thanks for all this work Slaanesh, looking forward to "Beta 4"...

Anyway, since you ask I can see there are some other games in the list that do not show up when running any of the cc/c3s files:
- MK2
- EspRade, Gunbird
- Joe & Mac :cave man ninja
- Shadow Dancer / Shinobi
- Vigilante

Other games I think should be possible to run although they may be on the limit are Guardians (Denjin Makai II) -what a  masterpiece by the way-, Golden Axe Revenge of Death Adder, Methamorphic Force, Ninja Baseball Bat Man, Gaia Crusaders,  Night Slashers, Mutant Fighter, Secret Agent. All of them are below the 12 mb limit and I believe they have been in MAME since times immemorial so maybe it can be done.

What I think it won't be possible at all is to add any IGS/PGM games, a shame, as some are really good (demon's front, Knights of valour,...).

But anyway, and again, thanks a lot. I was playing yesterday Gradius II, something I sorely missed since I sold my Saturn last year, and it blew my mind off how well it runs.

Title: Re: Gemei A330 MAME4ALL on its way!
Post by: slaanesh on May 09, 2017, 06:58:19 am
Ah good old Indy!
I did some fixes for this for the Dingoo A320 version - something to do with previous PC for the M68000.

I'll have a look.

Thanks for all this work Slaanesh, looking forward to "Beta 4"...

Anyway, since you ask I can see there are some other games in the list that do not show up when running any of the cc/c3s files:
- MK2
- EspRade, Gunbird
- Joe & Mac :cave man ninja
- Shadow Dancer / Shinobi
- Vigilante

Other games I think should be possible to run although they may be on the limit are Guardians (Denjin Makai II) -what a  masterpiece by the way-, Golden Axe Revenge of Death Adder, Methamorphic Force, Ninja Baseball Bat Man, Gaia Crusaders,  Night Slashers, Mutant Fighter, Secret Agent. All of them are below the 12 mb limit and I believe they have been in MAME since times immemorial so maybe it can be done.

What I think it won't be possible at all is to add any IGS/PGM games, a shame, as some are really good (demon's front, Knights of valour,...).

But anyway, and again, thanks a lot. I was playing yesterday Gradius II, something I sorely missed since I sold my Saturn last year, and it blew my mind off how well it runs.

Unfortunately the games you mention are all fairly big. The size limit is the expanded size after it's been uncompressed.

For example guardians (grdians.zip) is about 14MB but uncompressed the files inside are 36MB. Too big for our little Gemei A330. I know what you are thinking - but it's got 64MB! But it doesn't really and the memory it does have is not contiguous. Ie. about 20MB block is the largest single block.

Other games you mention: MK2, EspRade, Gunbird, etc are too big.
All these games would work on a GCW-Zero or Pandora though and run very nicely.

"Ninja Baseball Bat Man" should actually be included in DeasIrem module but it's dead slow running.
Tried some improvements to it but it's just too much.
"Secret Agent" exists - look at "Sly Spy" in DeasIrem.
"Joe and Mac" is Caveman Ninja in DeasIrem.
"Vigilante" should  also be in DeasIrem.
"Shadow Dancer" in VectSega.

Any others you are interested in? Best bet are games up until the early 90s.
I've tried getting Enduro Racer going but it's such a pain!
Title: Re: Gemei A330 MAME4ALL on its way!
Post by: slaanesh on May 12, 2017, 03:46:26 am
Cave games status on Gemei A330.
The basic problem still is lack of RAM despite halving some of the RAM requirements for the sprite graphics.

Working:
DonPachi, Hotdog Storm, Mazinger, Dangun Feveron

Almost working:
DoDonPachi, Air Gallet

Not going to work:
EspRade, Guwange, Uo Poko