Dingoonity.org

Dingux (Dingoo Linux) => Releases => Topic started by: alekmaul on October 21, 2012, 02:38:06 pm

Title: mame4All for OD Version 1.0
Post by: alekmaul on October 21, 2012, 02:38:06 pm
Hello all,
Here is a new emulator for OpenDingux, it is Mame4All, the multiple game arcade emulator :)
Some games are  full speed on A320, lot's of games run slow, sorry about that ...

Picture (from Windows SDL version, the source code is compatible) :
(http://www.portabledev.com/media/DINGOO/mame4all-od/Mame4All_v10-od_0.png) (http://www.portabledev.com/media/DINGOO/mame4all-od/Mame4All_v10-od_1.png) (http://www.portabledev.com/media/DINGOO/mame4all-od/Mame4All_v10-od_2.png) (http://www.portabledev.com/media/DINGOO/mame4all-od/Mame4All_v10-od_3.png)

You can download here :
- mame4all-od v1.0 : Mame4All executables (http://www.portabledev.com/modules/download_gallery/dlc.php?file=503&id=1350826208)
- mame4all-od v1.0 source code : Mame4All source code (http://www.portabledev.com/modules/download_gallery/dlc.php?file=504&id=1350826638)

Enjoy :) !
Title: Re: mame4All for OD Version 1.0
Post by: Pingouin on October 21, 2012, 04:31:01 pm
Awesome, thanks! ;D
I tried "Toki" and "Legend of Hero Tonma", and they were both slow, so I'll try some older games later.
Title: Re: mame4All for OD Version 1.0
Post by: Shin-NiL on October 21, 2012, 04:40:05 pm
Thank you Alekmaul, I liked the GUI style ;D

What's the fastest configuration? I tried SFIICE and Sunset Riders, but both are running very slow :'(
Title: Re: mame4All for OD Version 1.0
Post by: alekmaul on October 21, 2012, 04:46:04 pm
Yeah, need to find a way to speed up every thing.
Just tested old games (pacman, donkey knog, and so on), they are fast.
Title: Re: mame4All for OD Version 1.0
Post by: ruffnutts on October 21, 2012, 06:15:55 pm
is it me or is alekmaul a wizard?
Title: Re: mame4All for OD Version 1.0
Post by: naxeras on October 21, 2012, 08:15:11 pm
It? more fast than legacy dingux mame?
Title: Re: mame4All for OD Version 1.0
Post by: samir on October 21, 2012, 08:18:23 pm
Thansk Alekamaul!! Downloading!  ;D
Title: Re: mame4All for OD Version 1.0
Post by: samir on October 21, 2012, 09:10:36 pm
Works Full speed with games of the 70?s and earliest 80?s (Pac-Man, Donkey Kong,etc). Toki works in slow motion  :'( Qbertaddict, please test this emulator with the GCW Zero!!
Title: Re: mame4All for OD Version 1.0
Post by: Gaku_Kano on October 22, 2012, 06:26:01 am
Works Full speed with games of the 70?s and earliest 80?s (Pac-Man, Donkey Kong,etc). Toki works in slow motion  :'( Qbertaddict, please test this emulator with the GCW Zero!!
Some Konami games (the simpsons, tmnt) runs good too. I've only tested with overclock.
Title: Re: mame4All for OD Version 1.0
Post by: Pingouin on October 22, 2012, 10:41:58 pm
1942, 1943 and Bombjack work great :)
Green Beret is ok.
1941 and Golden Axe are a bit slow.
Title: Re: mame4All for OD Version 1.0
Post by: Articus on October 23, 2012, 04:53:59 am
Any chance we can get GGPO running on GCW Zero?  Hopefully one day we can play multiplayer MAME games through wifi via GGPO.  Alekmaul, you think this could be a possibility?  I know, main focus first would be to finish porting MAME, but in theory, can it be done?
Title: Re: mame4All for OD Version 1.0
Post by: zear on October 23, 2012, 10:52:01 am
GGPO looks like Adobe AIR thingy (at least the client part). So no, not possible to port.
Title: Re: mame4All for OD Version 1.0
Post by: Jenova on October 24, 2012, 01:33:30 am
hey everyone. i just installed mame4all for OpenDingux on my a320 dingoo successfully. however, the emulator does not seem to read the zipped file games for some reason... any thoughts/ideas/help??

thanks!
Title: Re: mame4All for OD Version 1.0
Post by: Gaku_Kano on October 24, 2012, 02:06:01 am
hey everyone. i just installed mame4all for OpenDingux on my a320 dingoo successfully. however, the emulator does not seem to read the zipped file games for some reason... any thoughts/ideas/help??

thanks!
you need to use the mame 0.37b romset.
Title: Re: mame4All for OD Version 1.0
Post by: dwight2048 on October 24, 2012, 06:49:11 am
How to build frontend? Makefile don't do it automatic.

sorry, just need to type make -f makefile.opendingux mame.dge

it also work on linux
(http://imageshack.us/a/img69/2786/78555590.jpg)
Title: Re: mame4All for OD Version 1.0
Post by: Articus on October 25, 2012, 05:25:53 am
hey everyone. i just installed mame4all for OpenDingux on my a320 dingoo successfully. however, the emulator does not seem to read the zipped file games for some reason... any thoughts/ideas/help??

thanks!
you need to use the mame 0.37b romset.

Please PM me.  I can only find 1.29, 1.38, then 1.38 - 1.47 update packs
Title: Re: mame4All for OD Version 1.0
Post by: alekmaul on October 25, 2012, 06:10:08 am
How to build frontend? Makefile don't do it automatic.

sorry, just need to type make -f makefile.opendingux mame.dge

it also work on linux
It's in readme file. Same compilation than others consoles.
You must know that it also works on windows, see my screeshots from w7 ...
Currently, i fixed some few bugs and try to add a fast 68000 cpu, some faster blitting functions.
Title: Re: mame4All for OD Version 1.0
Post by: samir on October 25, 2012, 12:54:04 pm

[/quote]
Currently, i fixed some few bugs and try to add a fast 68000 cpu, some faster blitting functions.
[/quote]

Cool!
Title: Re: mame4All for OD Version 1.0
Post by: slaanesh on October 28, 2012, 03:37:30 am
ARe you using FAME/C for the M68000?
It's pretty good and have tried it with MAME4ALL on Legacy Dingux for never released v1.3.
It was somewhat faster tough less compatible.

Unfortunately, MAME4ALL doesn't lend itself for hardware double buffering due to the host of different resolutions which would really help speed things up.

Anyway, nice release. Ive finally installed Open Dingux and congrats to the developers. It's a huge improvement over Legacy Dingux! I really like it. It's got loads of cool things that really were critically missing with the Legacy version.
Title: Re: mame4All for OD Version 1.0
Post by: alekmaul on October 28, 2012, 06:21:20 am
Hi Slaneesh,
yes, i'm trying to add fame/c but the memory mapping is a bit weird for me for fame structure.
If you did the job for your Dingux verison, Could you please share the part of code where you did the storage of data in sv_read_byte, sv_fetch, ... for the Fame structure.
Thanks in advance.
Title: Re: mame4All for OD Version 1.0
Post by: slaanesh on October 29, 2012, 05:10:49 am
On it's way tonight once I am home from work.

I was just coincidently doing the same changes to the Dingoo Native version just last night too.

Have been running a few games with FAME/C and many M68K games are quite a bit faster (25%?)
Title: Re: mame4All for OD Version 1.0
Post by: alekmaul on October 29, 2012, 09:12:46 am
Great, can't wait to see how you managed to add it to Mame4All.
As I saw, fame/c uses direct access to data in supervisor/user mode of the 68000.
I tried to mimic data access to a fake memory data structure and then hooked it to acess the current game roms with no success :(
Title: Re: mame4All for OD Version 1.0
Post by: naxeras on October 29, 2012, 01:21:09 pm
On it's way tonight once I am home from work.

I was just coincidently doing the same changes to the Dingoo Native version just last night too.

Have been running a few games with FAME/C and many M68K games are quite a bit faster (25%?)

Incredible work slaness, 25% of speedup!!

Your mame version is for native or OD?
Title: Re: mame4All for OD Version 1.0
Post by: slaanesh on October 29, 2012, 11:53:45 pm
The version I am working on is for Native.
You can thank FAME/C and the original author 'chui' for that.

Capcom and Sega games seem to benefit the most - as do other M68000 games of course. Atari games don't seem to work at all - but I think I know why these are the problem - may be able to fix these later. I remember when Franxis was using Cyclone on the GP2X he has similar problems with some M68000 games.

Anyway, I'm going to wrap up v1.1 Native so should have something on the weekend I think.


I'm sure Alek will have a new v1.1 for OD too.

Alek, to use FAME/C modify the M68000 section in rules.mak:

I had it setup to be able to compile either the standard M68000 (Musashi) or FAME - but this version of FAME includes Musashi so being able to easily compile with either isn't required. I think RoadBlasters breaks though, will test it shortly.

A new option will be available from the frontend to use either M68K core.

Compatible = Musashi (existing core)
Fast = FAME/C (new core)


Code: [Select]
CPU=$(strip $(findstring [email protected],$(CPUS)))
ifneq ($(CPU),)
CPU=$(strip $(findstring [email protected],$(CPUS)))
ifneq ($(CPU),)
OBJDIRS += $(OBJ)/cpu/fame
CPUDEFS += -DHAS_M68000 -DHAS_M68000_FAME -DFAME_PREFIX=fame68k
OBJDIRS += $(OBJ)/cpu/fame
CPUOBJS += $(OBJ)/cpu/fame/m68kmame.o $(OBJ)/cpu/fame/famec.o $(OBJ)/cpu/fame/fame_mame.o
$(OBJ)/cpu/fame/m68kmame.o: m68k.h m68kconf.h m68kcpu.inc m68kcpu.h m68kmame.c m68kmame.h m68kopac.inc m68kopdm.inc m68kopnz.inc m68kops.inc m68kops.h m68000.h
$(OBJ)/cpu/fame/famec.o: famec.c famec_opcodes.h
$(OBJ)/cpu/fame/fame_mame.o: fame_mame.c fame.h
endif
endif
Title: Re: mame4All for OD Version 1.0
Post by: pcercuei on October 30, 2012, 01:19:40 am
Fox68k is the author of Fame/C, not Chui (but Chui participated). Just wanted to give the credit to the right person.
Title: Re: mame4All for OD Version 1.0
Post by: alekmaul on October 30, 2012, 06:39:12 am
Thanks for reply slaanesh, I saw also your mail, and have before it a working version of mame4all OD.
I tested gauntlet and it works. Outrun doesn't, (perhaps because of multi 68000 cpus).
Will continue to investigate.
Also, as I replied byt email, my last question is : what is the purpose of this function (why using different numbers) :
Quote
      put_default_handlers(14);

And I find a little bug in your fame_mame.c file :
Quote
void m68000_set_pc(unsigned val)
{
#ifdef DEBUG_FAME
   printf("m68000_set_pc %i/%i\n",cpu_getactivecpu(),using_always_musashi); fflush(stdout);
#endif
   if (cpu_getactivecpu() || using_always_musashi)
      fame_m68ks_set_pc(val);
   else
      fame68k_get_pc();
}
It's certainy fame68k_set_pc(); instead of get_pc.
Title: Re: mame4All for OD Version 1.0
Post by: naxeras on October 31, 2012, 02:20:18 pm
Works altered beast and Alien Storm?

Title: Re: mame4All for OD Version 1.0
Post by: slaanesh on November 01, 2012, 11:00:30 pm
Yes Altered Beast works... Alien Storm? Most likely. I haven't tried that one though.

Pretty much everything I've tried works except for Outrun.
Title: Re: mame4All for OD Version 1.0
Post by: naxeras on November 02, 2012, 11:24:26 am
Ohhh, golden axe and altered beast playable in dingoo at last!!!

What about memory problems?

It runs the simpsons or do donpachi for example?

?Runs Neo-Geo games?

I can't wait!!!
Title: Re: mame4All for OD Version 1.0
Post by: naxeras on November 15, 2012, 08:45:41 am
Any news?
Title: Re: mame4All for OD Version 1.0
Post by: dclark61 on January 22, 2013, 02:29:27 pm
Does button mapping work with this version of Mame4All?  I don't seem to be able to map the A button to P1 Right/Right (needed for games like Robotron 2084!).  Thanks.
Title: Re: mame4All for OD Version 1.0
Post by: dclark61 on January 22, 2013, 03:23:45 pm
Actually what I found is that the last button to be mapped remains unmapped, so if I map an additional button, I'm able to map all the buttons I want, including "A".

But, for some reason, Mame4All doesn't save the configuration.  Upon restarting Mame4All, the remapping has been lost.  I also notice that no "robotron.cfg" file is saved in the cfg folder.

Help?
Title: Re: mame4All for OD Version 1.0
Post by: GeneralJefe on March 08, 2013, 01:57:02 am
I downloaded the "MAME4all complete 0.37b5 rom set" but whenever I select any of the roms in the select screen it just closes out the emulator. Any ideas to why it would do this? Thanks.

Edit: Any one have any idea as to why this wouldn't work?
Title: Re: mame4All for OD Version 1.0
Post by: k0en on March 15, 2013, 09:42:10 am
@GeneralJeff : Have you got the bios files?
Title: Re: mame4All for OD Version 1.0
Post by: alekmaul on March 15, 2013, 10:11:32 am
Well, k0en, there is no bios, only rom files.
GeneralJefe, explain more , which game, what is your installation directory , and so on ...
Title: Re: mame4All for OD Version 1.0
Post by: GeneralJefe on March 22, 2013, 12:11:23 am
Well, k0en, there is no bios, only rom files.
GeneralJefe, explain more , which game, what is your installation directory , and so on ...
Well I made a mame folder in the emulator directory. I put a series of games including Galaga 3, Donkey Kong, etc. i ended up putting the roms in "/mmcblk0p2/local/home/emulators/mame/roms" I go into my system, the games show up in the rom list. i select one, the emulator closes.
Title: Re: mame4All for OD Version 1.0
Post by: h3x on March 28, 2013, 01:21:28 pm
I find Ninja Baseball Batman (USA)            (c) 1993 Irem America Corp  in m92.cpp.
In fact,it can't be  recognized  by emulator.
Title: Re: mame4All for OD Version 1.0
Post by: alekmaul on May 10, 2013, 09:06:02 am
OK, new version is on the way, with full 60 fps on GCW0 for lot's of games. Lot's of improvment were made regarding sound and video (just take a look at last qbert video, you will also see neo geo games with 60fps running  ;)).
h3x, i will check that.
GeneralJefe, that's strange, Donkey Kong works fine for me.
Are you sure mame executable has +x right (do a ls -al in mame folder).
Title: Re: mame4All for OD Version 1.0
Post by: naxeras on May 12, 2013, 09:58:01 am
OK, new version is on the way, with full 60 fps on GCW0 for lot's of games. Lot's of improvment were made regarding sound and video (just take a look at last qbert video, you will also see neo geo games with 60fps running  ;)).
h3x, i will check that.
GeneralJefe, that's strange, Donkey Kong works fine for me.
Are you sure mame executable has +x right (do a ls -al in mame folder).

No dingoo version will be available?
Title: Re: mame4All for OD Version 1.0
Post by: alekmaul on May 14, 2013, 02:26:38 pm
Yes, of course a dingoo version will be available, there will be two distribution, OD and GCW0.

Slaanesh, if you want, we can share the same source code to do an unique release with your updates and my updates (i did a lot of fix on non working games, and also added neogeo games).
Title: mame4All for OD Version 1.0
Post by: slaanesh on May 22, 2013, 10:38:52 pm
Sounds good how do you want to proceed?
Title: Re: mame4All for OD Version 1.0
Post by: alekmaul on May 26, 2013, 09:06:53 am
Well, i will update my github this weekend and add you as a collaborator.

Here is my current list of what's new :
Quote
   Added : video depth option
   Added : Fame core for 68000 CPU (just choose it as option, thanks Slaanesh for help to add it in my OD version)
   Added : neomame executable
   Added : Analog joystick management for gcw0
   Added : Pirate Pete and Jungle Hunt (Brazil) from Mame 0.68
   Added : Metal Slug X, Garou, King Of Fighter 99, Captain Tomaday because they were not in the neogeo list
   Added : m90 driver, added games Bomber Man World, BomberMan, Dynablaster, Hasamu (from Mame 037b8 et 078)
   Fixed : bug of SDL_Init after video mode set
   Fixed : Optimize some functions
   Fixed : Fix bug (seg fault) when leaving game to return to menu (L+R+START)
   Fixed : bug (seg fault) for mk3 game
   Updated : Change L & R to Left/Right for game browsing
   Updated : Change LockAudio for mutex management
   Updated : button configuration (B/A/Y/X for #1..4 now)
   Updated : Change video blitting, now, just using a direct video surface, no more layer
   updated : Thunder Cross & Thunder Cross (Japan) now work correctly
   updated : FireTrap now works correctly (from Mame 0.64 8751 protection simulation)
   updated : Kick Start Wheelie King now works correctly (from Mame 0.68)
   updated : port settings in taitosj driver (from Mame 0.68)
   updated : The Bounty now works correctly (from Mame 0.68)
   updated : Change galaga cpu frequency to 3.072 Mhz
   updated : Add sound to zaccaria driver (from Mame 0.56)
   updated : Aeroboto and FormationZ now works correctly (from Mame 0.68) but you need last rom set (prom roms are needed).
   updated : Fixed colors and other things in Arabian (from Mame 0.37b16)
   updated : Fixed colors in World Tennis (from Mame 0.37b16)
   updated : Fixed colors in battle Lane (from Mame 0.37b16)

   Added : Combat Hawk from Mame 0.115 (same drivers as 'Bank Panic' and similar kind of game) (from A320 Slaanesh Native version)
   Added : Mermaid collision detection from Mame 0.125 to make game fully playable. Also added Rougien, a neat very 80's space game (from A320 Slaanesh Native version)

   Updated : sn76496 noise feedback chaned to 0x14002 (from A320 Slaanesh Native version)
   Updated : Ali Baba colors, will make use of later versions of the ROM (>= Mame 0.79) to display the correct colors (from A320 Slaanesh Native version)
   Updated : Green Beret and Mr Goemon graphics rendering. Should be perfect now (from A320 Slaanesh Native version)
   Updated : Time Pilot graphics rendering. Perfect emulation now (from A320 Slaanesh Native version)
   Updated : Popeye (set 1 & 2). Decrypted from Mame 0.53 (from A320 Slaanesh Native version)
   Updated : Yie Ar Kung Fu speech is now correct (from A320 Slaanesh Native version)
   Updated : Wiz for the correct background color (from A320 Slaanesh Native version)
   Updated : Bank Panic CPU and sound frequencies (from A320 Slaanesh Native version)
   Updated : vlm5030 speech generator from Mame 0.66. Fixes speech/effects in many games (from A320 Slaanesh Native version)
   Updated : Crazy Balloon. Imrpoved sound (from A320 Slaanesh Native version)
   Updated : Improved handling of AY8910 for FM sound chips that use it (ie. ym2203, ym2608 and ym2610) (from A320 Slaanesh Native version)
   Updated : World Cup 90 now has correct sound (ie. ym2203, ym2608 and ym2610) (from A320 Slaanesh Native version)
   updated : Sunset Riders protection issues from Mame 0.81. Should be more playable now (from A320 Slaanesh Native version)
   updated : Nintendo 8080 games: Sheriff, Bandido, Space Fever and Helifire now have sound (from A320 Slaanesh Native version)
   updated : DISCRETE SOUND from MAME 0.81 which allows many more games to have DISCRETE sound now (from A320 Slaanesh Native version)
   updated : Night Driver. Now with sound and flashing screen on crash from Mame 0.89 (from A320 Slaanesh Native version)

The good way then is to focus on a driver to update or adding new games.
We also need to add all the features you updated in native version ...
The big issue is the memory management that was really update after 037b5 to use 8/16/32 different memory managers. I will certainly try to update memory.cpp to use such feature before adding other games.

*EDIT* Done, and I added your github user as collaborator

*EDIT AGAIN* github entry is here : https://github.com/alekmaul/mame4all
Title: Re: mame4All for OD Version 1.0
Post by: qbertaddict on May 26, 2013, 05:14:43 pm
Works Full speed with games of the 70?s and earliest 80?s (Pac-Man, Donkey Kong,etc). Toki works in slow motion  :'( Qbertaddict, please test this emulator with the GCW Zero!!
Already have. I will do a video soon. You should like the results