The NEW Build Your Own Arcade Controls

Main => Software Forum => Topic started by: ErikRuud on April 14, 2004, 08:07:17 pm

Title: FireFox/Mach3 Patch
Post by: ErikRuud on April 14, 2004, 08:07:17 pm
I am trying to get this patch to work with NoNameMAME.
http://www.boldtower.com/mach3/

I am using verions 0.79u4.05.

I'm stuck again.

I applied the patch and tried to compile the patched code.

I had a problem with the mpeg libs, but I copied them to the correct place and got past that.

Now I am getting this error:
$ make OS=win
Compiling src/vidhrdw/laserdsk.c...
cc1.exe: warnings being treated as errors
src/vidhrdw/laserdsk.c: In function `init_mpeg':
src/vidhrdw/laserdsk.c:256: warning: passing arg 2 of `load_frame_ptrs' discards                      qualifiers from pointer target type
src/vidhrdw/laserdsk.c: At top level:
src/vidhrdw/laserdsk.c:270: warning: declaration of `buffer' shadows a global de                      claration
src/vidhrdw/laserdsk.c:45: warning: shadowed declaration is here
src/vidhrdw/laserdsk.c:301: warning: declaration of `buffer' shadows a global de                      claration
src/vidhrdw/laserdsk.c:45: warning: shadowed declaration is here
src/vidhrdw/laserdsk.c:334: warning: declaration of `buffer' shadows a global de                      claration
src/vidhrdw/laserdsk.c:45: warning: shadowed declaration is here
c:\mingw\bin\make.exe: *** [obj/noname/vidhrdw/laserdsk.o] Error 1


Anyone have any thoughts on this?

I'll keep trying, but I am not really a C programmer so it could take a while.  
 
 
Title: Re:FireFox/Mach3 Patch
Post by: Howard_Casto on April 14, 2004, 11:08:00 pm
First suggestion.... use stock mame.  Patches don't play nice wiht other patches and as noname is a bunch of patches you are just kidding yourself.  

You'll want to setup firefox/mach3 as dedicated builds anyway as I belevie they hack some core functions to get it running.

You didn't hear it from me, but the developer's source of daphne supports these games.  I would probably make more sense to compile those than this.
Title: Re:FireFox/Mach3 Patch
Post by: ErikRuud on April 14, 2004, 11:53:44 pm
I have seen the posts about the developer build of Daphne.  I thought they had removed that from there site.

What can I say, I decided to take on the challenge.

I did the same thing with the "Faked" Tailgunner samples, and that led to real samples becoming an official part of MAME.

Title: Re:FireFox/Mach3 Patch
Post by: NickS on April 15, 2004, 05:40:08 am
Yes Mach 3, Firefox and DL2 all work on the cvs version.
Title: Re:FireFox/Mach3 Patch
Post by: Lilwolf on April 15, 2004, 08:18:00 am
SWEET!  

I'm VERY excited about that!  I LOVE firefox!  
Title: Re:FireFox/Mach3 Patch
Post by: ErikRuud on April 15, 2004, 09:34:30 am
I got a response back from Scott at Boldtower and I have gotten past the errors in laserdsk.c

I just ran into errors in chdman.c, but that looks like an include is not in the correct place.

I checked and the cvs access for Daphne is still available.  I had seen a post about them removing it, but I guess they weren't serious.  I'll have to setup Visual Studio to compile it.

Of course I also have to acquire the .flac and .lsr files for Mach3 and FireFox before I can test either program.

 
Title: Re:FireFox/Mach3 Patch
Post by: Buddabing on April 15, 2004, 10:12:27 am
I am trying to get this patch to work with NoNameMAME.
http://www.boldtower.com/mach3/

I am using verions 0.79u4.05.

I'm stuck again.

I applied the patch and tried to compile the patched code.

I had a problem with the mpeg libs, but I copied them to the correct place and got past that.

Now I am getting this error:
$ make OS=win
Compiling src/vidhrdw/laserdsk.c...
cc1.exe: warnings being treated as errors
src/vidhrdw/laserdsk.c: In function `init_mpeg':
src/vidhrdw/laserdsk.c:256: warning: passing arg 2 of `load_frame_ptrs' discards                      qualifiers from pointer target type
src/vidhrdw/laserdsk.c: At top level:
src/vidhrdw/laserdsk.c:270: warning: declaration of `buffer' shadows a global de                      claration
src/vidhrdw/laserdsk.c:45: warning: shadowed declaration is here
src/vidhrdw/laserdsk.c:301: warning: declaration of `buffer' shadows a global de                      claration
src/vidhrdw/laserdsk.c:45: warning: shadowed declaration is here
src/vidhrdw/laserdsk.c:334: warning: declaration of `buffer' shadows a global de                      claration
src/vidhrdw/laserdsk.c:45: warning: shadowed declaration is here
c:\mingw\bin\make.exe: *** [obj/noname/vidhrdw/laserdsk.o] Error 1


Anyone have any thoughts on this?

I'll keep trying, but I am not really a C programmer so it could take a while.  
 

Thanks for that link. I've written a Dragon's Lair/Space Ace driver for MAME but it wasn't quite working right, the MAME sample source doesn't allow seeking within samples so my audio and video got unsynced. This will help me.

Buddabing

Title: Re:FireFox/Mach3 Patch
Post by: ErikRuud on April 15, 2004, 01:05:19 pm
Buddabing,

Glad I could help.  :)

Howard,

I took you suggestion and tried using regular MAME, and I got a good compile.

Now I just have to get the .flac and .lsr files.



Title: Re:FireFox/Mach3 Patch
Post by: jimmyjet on April 15, 2004, 03:40:54 pm
I didn't follow any of that.  If you get it working could I get a copy or something?  Thanks.
jimmyjet
Title: Re:FireFox/Mach3 Patch
Post by: TheGatesofBill on April 15, 2004, 07:09:35 pm
Hmm... I'll look into that and see how feasable it would be to add to No Name MAME.
Title: Re:FireFox/Mach3 Patch
Post by: ErikRuud on April 16, 2004, 10:12:05 am
I got another response back from Scott at boldtower.

He said: Looks like a link option -lflac is missing from the chdman link options your makefile.  You may also need the -L<path to libflac.a> in there as well.

Well that was the problem.

I now have versions of MAME 0.79, NoNameMAME 079u4.05, DAPHNE 99.7 that should all be capable of running MACH3 and FireFox as soon as I acquire the proper videos.
Title: Re:FireFox/Mach3 Patch
Post by: Lilwolf on April 16, 2004, 10:22:11 am
I have only seen them on IRC (and a slow one at that) ages ago.

but watch the talk here... very similar to a rom request... (not that I wouldn't appreciate if someone happened to PM with a bit torrent link)
Title: Re:FireFox/Mach3 Patch
Post by: ErikRuud on April 16, 2004, 10:51:54 am
I was not asking.

I do have a non IRC source.

I need to solve my registry problems (http://www.arcadecontrols.org/yabbse/index.php?board=3;action=display;threadid=18296) before I do anything else.
Title: Re:FireFox/Mach3 Patch
Post by: TheGatesofBill on April 16, 2004, 12:30:29 pm
I just finished adding in the Megadriver stuff, I'll take a look at that now.
Title: Re:FireFox/Mach3 Patch
Post by: ErikRuud on April 16, 2004, 12:49:38 pm
Did you see my previous post 4 posts back?

I got it working in 0.79u4.05.

The two stumbling blocks were the -Werror flag that is used in your makefile.  I had to remove it.  And the patch did not add the -lFLAC and -L references to the link for chdman.

I can send you the modified code if you want.

Title: Re:FireFox/Mach3 Patch
Post by: Tiger-Heli on April 16, 2004, 01:07:42 pm
Did you see my previous post 4 posts back?

I got it working in 0.79u4.05.

The two stumbling blocks were the -Werror flag that is used in your makefile.  I had to remove it.  And the patch did not add the -lFLAC and -L references to the link for chdman.

I can send you the modified code if you want.
Three questions - Do you need .lsr and .flak files or .chd or .iso (?).

Same files for Daphne and MAME?

Any idea on hardware requirements?  (Is a Duron 850Mhz woefully inadequate?)  (Never messed with Daphne before).
Title: Re:FireFox/Mach3 Patch
Post by: ErikRuud on April 16, 2004, 01:28:39 pm
For the MAME patch it is .flac and .lsr

For Daphne it should be .mp2 and .ogg

I'm not sure about peformance specs.  I would guess that if you can run the othe Daphne stuff, you should be OK. This is from the Daphne documentation: Get a faster CPU. An Athlon 800 should give almost perfect performance (no dropped frames). Some games need a faster CPU than others
Title: Re:FireFox/Mach3 Patch
Post by: screaming on April 16, 2004, 02:30:07 pm
For the MAME patch it is .flac and .lsr

For Daphne it should be .mp2 and .ogg

I'm not sure about peformance specs.  I would guess that if you can run the othe Daphne stuff, you should be OK. This is from the Daphne documentation: Get a faster CPU. An Athlon 800 should give almost perfect performance (no dropped frames). Some games need a faster CPU than others

  The LSR file is still the same MPEG2 stream that daphne uses, so no difference there. Generally speaking, the FLAC format takes a little less CPU than OGG does to decode, but not much.

  The big difference would come down to how good the MAME decoders are versus the Daphne ones.

  This really doesn't answer the question, I suppose, but it might help you to gain a little insight if you're curious and want to take it further.

/Steve
Title: Re:FireFox/Mach3 Patch
Post by: btoddkelley on April 18, 2004, 06:39:17 pm
an 800 duron  will play DL fine but I doubt you would be able to play firefox. Games that nedd to seek quickly (astron belt, galaxy ranger) need somewhere around a 1.5 or the screen will freeze from time to time. Firefox will most likely need even more as the original player was really fast.


Todd
Title: Re:FireFox/Mach3 Patch
Post by: ErikRuud on April 20, 2004, 10:41:55 am
I have not been able to test it yet, but FireFox is listed as "Not working yet" in the 0.99.7cvs version of Daphne.
Title: Re:FireFox/Mach3 Patch
Post by: btoddkelley on April 20, 2004, 10:53:18 am
I have played mach 3, us vs them and dl2 in the cvs but I do not have an mpeg for firefox to test it yet. I was suprised to hear that it was working. Has anyone avtually played firefox in daphne? Howard?


Thanks
Todd
Title: Re:FireFox/Mach3 Patch
Post by: ErikRuud on April 20, 2004, 11:30:10 am
Look at the DaphneLoaderInfo.ini file.  The Gamelist has a few interesting tidbits at the end.
Title: Re:FireFox/Mach3 Patch
Post by: Howard_Casto on April 20, 2004, 07:44:43 pm
Sorry guys, I'm trying to save hd space right now or else I'd look into it.  
Title: Re:FireFox/Mach3 Patch
Post by: Dartful Dodger on April 21, 2004, 01:25:07 pm
Sorry guys, I'm trying to save hd space right now or else I'd look into it.  
We understand, that new Paris Hilton video takes up a lot of space.
Title: Re:FireFox/Mach3 Patch
Post by: Buddabing on April 21, 2004, 02:39:22 pm
Did you see my previous post 4 posts back?

I got it working in 0.79u4.05.

The two stumbling blocks were the -Werror flag that is used in your makefile.  I had to remove it.  And the patch did not add the -lFLAC and -L references to the link for chdman.

I can send you the modified code if you want.

Eric,

Would it be possible for you to migrate any changes to version 0.81u5.10 of No Name MAME?

Did you have to compile the flac library separately, or did you create a flac.mak?

Thanks,
Buddabing
Title: Re:FireFox/Mach3 Patch
Post by: ErikRuud on April 21, 2004, 02:49:18 pm
I am going to wait until I can get it working in the regular version of 0.79s before I try anything else.

So far it is not working.  The game starts, I see the disk initialization screen, then the first frame of the video, and then it crashes.
Code: [Select]
C:\mame>mame mach3 -v -r 640x480
parsing mame.ini...OK.
parsing gottlieb.ini...N/A
parsing mach3.ini...N/A
Using DirectInput 7
Keyboards=1  Mice=1  Joysticks=0 Lightguns=0
trying to parse ctrlr file windows.ini
Mouse support disabled
Joystick support disabled
Keyboards=1  Mice=0  Joysticks=0
frame file not a multiple of struct size
Best mode = 640x480x32 @ default Hz
Primary surface created: 640x480x32 (R=00ff0000 G=0000ff0
Primary buffer: 44100 Hz, 16 bits, 1 channels
SSE supported

-----------------------------------------------------
Exception at EIP=007BB1BE: ACCESS VIOLATION
While attempting to read memory at FFFFFFC0
-----------------------------------------------------
EAX=00000000 EBX=FFFFFFFD ECX=FFFFFFC0 EDX=00000000
ESI=00000000 EDI=00000003 EBP=00000000 ESP=0022F990

C:\mame>

I built the flac library seperately according to the directions on the website.  But then I had to copy the .h .a .la files to the proper place in the MinGW directories.

Also the patch undoes some of the patches in NoNameMAME.  Mostly for some of the new switch options.


By the way, the mach3.lsr is at a resolution that Daphne does not like.
Title: Re:FireFox/Mach3 Patch
Post by: TheGatesofBill on April 21, 2004, 05:40:18 pm
If you get it working in the new No Name MAME, let me know and I'll try to include it. I took a look at it, but it'll take more time than I'd like to spend tright now.
Title: Re:FireFox/Mach3 Patch
Post by: Aceldamor on April 21, 2004, 05:44:07 pm
Man...this is awsome. Keep up the extremely awsome work.   ;D


Title: Re:FireFox/Mach3 Patch
Post by: ErikRuud on April 22, 2004, 03:36:01 pm
Just for the halibut, I tried the frame.bin file that is supposed to be for FireFox and the game ran without crashing.  Unfortunately the video was out of synch with the game ???

I'm waiting to see if I can get anymore help from Scott at Boldtower.

I should have time to convert and test the FireFox video tonight.

Title: Re:FireFox/Mach3 Patch
Post by: Lilwolf on April 23, 2004, 08:34:57 am
Out of sync?  Is it really bad or a second or less off?  Try it in Dalphne cvs version yet?

btw, I'm assuming that the videos aren't the same for both the mame version and the Daphne version?   Can you convert between them?

I still haven't had a chance to test them out..  Still hoping for some newsgroup lovin...
Title: Re:FireFox/Mach3 Patch
Post by: ErikRuud on April 23, 2004, 09:27:01 am
It appears to playing the wrong portion of the video so the trageting squares don't line up with anything that makes sense.  In the bomber game where you should be hitting the planes parked along the airstrip, it is actually showing the shipyard. I think that the frame.bin file for Mach3 on the boldtower site is hosed. Scott has not replied to my last email yet.

I tried FireFox in MAME last night.  The game runs, but I don't think my 1.6 Duron is strong enough to render the video fast enough.  The overlay graphics are kind of jerky, and the video ends up being more like a series of still shots.  Sometime over the weekend, I'll copy it to my main PC with a 2.0 ghz P4 and try it out.

I will also be trying out MACH3 in Daphne over the weekend.

Title: Re:FireFox/Mach3 Patch
Post by: btoddkelley on April 23, 2004, 01:42:29 pm
mach 3 plays great on Daphne cvs, so does us vs them. Check out firefox on daphne if you could. I do not have a rip of that to test yet.
Thanks
Todd
Title: Re:FireFox/Mach3 Patch
Post by: firefoxfans on April 23, 2004, 03:59:57 pm
Hi guys,

I have tried firefox of boldtower and audio-video are syncronized because they has need to be the correct size:
firefox.lsr (1836320618 bytes)
firefox.flac (152516876 bytes)
I have tried it on:
AthlonXP 3200+ with Geoforce 2 32MB and fps are 30-34
the game is playable but the video and the audio are not very fluid
if I could have a program x windows that produces the file frame.bin I could convert the video and the audio in a smaller format.
Can someone tell me where x to be able a generator of frame.bin windows to find it?
What is Daphne cvs?  
could someone send me it so I could also try with it?
excuse my bad English but I am Italian

Best Regards,
firefoxfan
Title: Re:FireFox/Mach3 Patch
Post by: ErikRuud on April 23, 2004, 10:06:44 pm
Daphne CVS is latest "in development" version of Daphne.

You have to get the source code from the Daphne site and compile it yourself.

I have know idea how the frame.bin files are created.
Title: Re:FireFox/Mach3 Patch
Post by: firefoxfans on April 24, 2004, 05:57:05 am
Hi,

for To compile it is necessary Visual Studio 6 or 7 or enough MingW?  
Which idea do you have for the frame.bin? Would you have a program to give me that it creates it, thanks?  
Do you possess the version of compiled Daphne? you know I have difficulty to compile it.

Best Regards,
firefoxfans
Title: Re:FireFox/Mach3 Patch
Post by: ErikRuud on April 24, 2004, 09:13:10 am
I'm sorry I wrote that wrong.

I have NO idea how to create the frame.bin files.

I am trying to get more information from the author of the patch.
Title: Re:FireFox/Mach3 Patch
Post by: firefoxfans on April 24, 2004, 10:14:12 am
ok thanks ErikRuud. I hope that someone can tell me how I can make the file frame.bin.
Has someone compiled Daphne CVS?
Someone sends me it to my email please: antlarocca@email.it
also only the files daphne.exe, daphne loader end .ini files too, Thanks!

Best Regards to everyone.
firefoxfans
Title: Re:FireFox/Mach3 Patch
Post by: Chazz on April 25, 2004, 12:48:16 pm
 ;D
http://members.rogers.com/lithiumdesign/pics/arcade/mach1.jpg

http://members.rogers.com/lithiumdesign/pics/arcade/mach2.jpg

http://members.rogers.com/lithiumdesign/pics/arcade/mach3.jpg

http://members.rogers.com/lithiumdesign/pics/arcade/mach4.jpg
Title: Re:FireFox/Mach3 Patch
Post by: ErikRuud on April 26, 2004, 09:58:04 am
Chazz,

Are those from the MAME patch or the Daphne CVS?
Title: Re:FireFox/Mach3 Patch
Post by: Chazz on April 26, 2004, 02:28:33 pm
Daphne CVS.  Dragon's Lair and Space Ace run smooth on my cab, but MACH runs super slow.
Title: Re:FireFox/Mach3 Patch
Post by: firefoxfans on April 26, 2004, 02:38:04 pm
I have finally compiled the version cvs of Daphne but unfortunately Firefox doesn't work well: LDP is not emulated. There is fortunately the patch for Mame and with it Firefox work even if it is slow, I am making some tests to improve his speed.

firefoxfans
Title: Re:FireFox/Mach3 Patch
Post by: ErikRuud on April 27, 2004, 10:59:17 am
I have exchanged a few emails with Scott at boldtower and confirmed that I have the correct frame.bin files.  Re-download them from his site if you want to be sure that you have the correct ones.

Scott sent me a copy of his .exe for a quick test.

With his .exe and the correct frame.bin, I can run MACH# and it plays well, but then I get the "...Stay Put" error at the high score screen after a game.  I'm not sure yet why my .exe does not want to work with it.  I think I will try starting over from scratch with regular mame 0.79s and adding the patch again.

I reformatted my mpegs to match the resolutions that Daphne CVS is looking for, and tried to run them that way.  MACH3 starts up OK and displys the High Score screen.  I can add credits, but I can't seem to get the game to actually start.  None of the defined keys seem to start the game.  Hitting '2' causes the coin drop sound to play, but an additional credit does not appear.

FireFox starts up, displays the first frame of the mpeg and that's as far as it gets.  When you start it, Daphne says that the inputs and VLDP are not working yet.



Title: Re:FireFox/Mach3 Patch
Post by: firefoxfans on April 27, 2004, 03:28:07 pm
yes you must to use new patch with mame 79s and firefox work but it is not perfect and audio video are a slow.
Title: Re:FireFox/Mach3 Patch
Post by: firefoxfans on April 27, 2004, 03:45:24 pm
Hi Jason,

give me your email, my email is in the preceding topic.

firefoxfans