Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: Buddabing on February 14, 2005, 12:37:27 pm

Title: BuddaMAME v0.92 released
Post by: Buddabing on February 14, 2005, 12:37:27 pm
Hello,

My build of MAME version 0.92, which incorporates:

- MAME Movie Maker
- CPMaker
- code to display controls artwork when paused
- skip_warnings patch

is available here (http://cpmaker.mameprojects.com/files/MAME092.ZIP). If you want to compile it, source is included.

Please post any compile issues to this thread.

Regards,
Buddabing
Title: Re: BuddaMAME v0.92 released
Post by: 2600 on February 14, 2005, 01:39:28 pm
Here's an error I'm getting.  Can't believe you got this out so fast.


Compiling src/common.c...
src/common.c: In function `save_movie_snapshot':
src/common.c:2049: error: structure has no member named `movieskipblack'
src/common.c: In function `snap_is_black':
src/common.c:2679: error: structure has no member named `movieskipblack'
src/common.c:2728: error: structure has no member named `movieskipblack'
src/common.c:2768: error: structure has no member named `movieskipblack'
src/common.c:2804: error: structure has no member named `movieskipblack'
src/common.c:2845: error: structure has no member named `movieskipblack'
src/common.c:2878: error: structure has no member named `movieskipblack'
make: *** [obj/mamepp/common.o] Error 1


EDIT: I think I fixed it, "int movieskipblack" needed to be added in mame.h with the other options.  Correct?
Title: Re: BuddaMAME v0.92 released
Post by: 2600 on February 14, 2005, 02:27:41 pm
Well thought I was good until I got this while linking:

obj/mamepp/artwork.o(.text+0x6a90):artwork.c: undefined reference to `makectrl'
collect2: ld returned 1 exit status
make: *** [mamepp.exe] Error 1


So close.

Edit:  Ok, I think this is due to the makefile missing the cpmaker stuff.
Title: Re: BuddaMAME v0.92 released
Post by: papaschtroumpf on February 14, 2005, 02:38:48 pm
you guys upgraded MingW right? 0.92 requires yet another version.
I'll try and build mine this afternoon
Title: Re: BuddaMAME v0.92 released
Post by: Buddabing on February 14, 2005, 02:43:43 pm
Well thought I was good until I got this while linking:

obj/mamepp/artwork.o(.text+0x6a90):artwork.c: undefined reference to `makectrl'
collect2: ld returned 1 exit status
make: *** [mamepp.exe] Error 1



So close.

It's your makefile. I didn't include it. :(

There are three places you should see CPMaker:
1)
# uncomment next line to build the internal control panel artwork generator
# CPMAKER = 1


2) This is after the various .mak files are included
ifdef CPMAKER
CPOBJ=$(OBJ)/cpmaker
CPSRC=src/cpmaker
include src/cpmaker.mak
else
OBJS += $(OBJ)/ncpmaker.o
endif
 
3) addition of CPMaker libraries:
# primary target
$(EMULATOR): $(OBJS) $(COREOBJS) $(OSOBJS) $(DRVLIBS) $(EXPAT) $(ZLIB) $(CPMAKER_LIBS)

I've added the makefile to the zip and uploaded it.

You worked out the problem with mame.h. I updated that too.
Title: Re: BuddaMAME v0.92 released
Post by: papaschtroumpf on February 14, 2005, 06:52:47 pm
I get the following error:

Compiling src/cpmaker/libs/magick/utility.c...
Compiling src/cpmaker/libs/magick/cache.c...
src/cpmaker/libs/magick/cache.c:59:18: zlib.h: No such file or directory
make: *** [obj/mameatxp/cpmaker/libs/magick/cache.o] Error 1


Title: Re: BuddaMAME v0.92 released
Post by: Buddabing on February 14, 2005, 07:38:05 pm
I get the following error:

Compiling src/cpmaker/libs/magick/utility.c...
Compiling src/cpmaker/libs/magick/cache.c...
src/cpmaker/libs/magick/cache.c:59:18: zlib.h: No such file or directory
make: *** [obj/mameatxp/cpmaker/libs/magick/cache.o] Error 1




zlib.h is part of the mingw tools. Do you have the latest compile tools from mame.h? They changed in version 0.92.

Do you have the environment variable MINGDIR set to your mingw directory?

Title: Re: BuddaMAME v0.92 released
Post by: Tiger-Heli on February 17, 2005, 12:41:11 pm
Hello,

My build of MAME version 0.92, which incorporates:

- MAME Movie Maker
- CPMaker
- code to display controls artwork when paused
- skip_warnings patch

is available here (http://cpmaker.mameprojects.com/files/MAME092.ZIP). If you want to compile it, source is included.

Please post any compile issues to this thread.

Regards,
Buddabing

Hi Budda,

Couple of quick questions -
No Name MAME included a -skipbaddumps option along with -skipgamewarnings.

Does BuddaMAME include this?

Any plans to add the other options from NoNAME such a -faststartupframes and the Analog Plus options?

Thanks in advance!!!
Title: Re: BuddaMAME v0.92 released
Post by: Buddabing on February 17, 2005, 01:48:01 pm
Hello,

My build of MAME version 0.92, which incorporates:

- MAME Movie Maker
- CPMaker
- code to display controls artwork when paused
- skip_warnings patch

is available here (http://cpmaker.mameprojects.com/files/MAME092.ZIP). If you want to compile it, source is included.

Please post any compile issues to this thread.

Regards,
Buddabing

Hi Budda,

Couple of quick questions -
No Name MAME included a -skipbaddumps option along with -skipgamewarnings.

Does BuddaMAME include this?

Any plans to add the other options from NoNAME such a -faststartupframes and the Analog Plus options?

Thanks in advance!!!

The skip_warnings includes warnings about bad dumps. There is no separate option for this.

I didn't have any plans to include other NoName stuff with BuddaMAME, I was hoping TGoB would do that. I'll look at the code and I'll see how involved it would be to port it to 0.92.

Title: Re: BuddaMAME v0.92 released
Post by: DreamWeb on February 19, 2005, 10:54:37 pm
Ok.. I'm a bit of a newb here.  But, I tried this... and it still wants me to type "OK before every game.  I thought your version allowed me to skip this?  Any ideas?

d.
Title: Re: BuddaMAME v0.92 released
Post by: Buddabing on February 19, 2005, 11:09:44 pm
Ok.. I'm a bit of a newb here.  But, I tried this... and it still wants me to type "OK before every game.  I thought your version allowed me to skip this?  Any ideas?

d.

Do you have the appropriate entries in your mame.ini?

skip_validitychecks 1
skip_gameinfo 1
skip_disclaimer 1
skip_warnings 1



Title: Re: BuddaMAME v0.92 released
Post by: DreamWeb on February 20, 2005, 02:43:58 am
Thank you :)  That got it.
Title: Re: BuddaMAME v0.92 released
Post by: vibez on February 20, 2005, 06:54:28 am
Hi,

I've never used this before. How do I get cpmaker to run? I downloaded your mame092 & copied it over my regular mame build. What else do I need to do?

EDIT:

Ok I've got it working. The only trouble is that the text is often too small to read. I've played around with the textconstraint,3, parameter. But the effects are still less than desirable
Title: Re: BuddaMAME v0.92 released
Post by: Buddabing on February 20, 2005, 11:05:57 am
Hi,

I've never used this before. How do I get cpmaker to run? I downloaded your mame092 & copied it over my regular mame build. What else do I need to do?

EDIT:

Ok I've got it working. The only trouble is that the text is often too small to read. I've played around with the textconstraint,3, parameter. But the effects are still less than desirable

Do you have -artres 2 set in your mame.ini file?

You'll have to play with your label editor (Johnny5 or CPViewer) to get the label text to appear how you like it.
Title: Re: BuddaMAME v0.92 released
Post by: vibez on February 20, 2005, 11:53:28 am
Hi,

I've never used this before. How do I get cpmaker to run? I downloaded your mame092 & copied it over my regular mame build. What else do I need to do?

EDIT:

Ok I've got it working. The only trouble is that the text is often too small to read. I've played around with the textconstraint,3, parameter. But the effects are still less than desirable

Do you have -artres 2 set in your mame.ini file?

You'll have to play with your label editor (Johnny5 or CPViewer) to get the label text to appear how you like it.


Yep I set that but it didnt make much difference. Do I have to create a cpviewer layout for every possible config? Or can I just use the one layout?
Title: Re: BuddaMAME v0.92 released
Post by: Buddabing on February 20, 2005, 03:10:39 pm
Hi,

I've never used this before. How do I get cpmaker to run? I downloaded your mame092 & copied it over my regular mame build. What else do I need to do?

EDIT:

Ok I've got it working. The only trouble is that the text is often too small to read. I've played around with the textconstraint,3, parameter. But the effects are still less than desirable

Do you have -artres 2 set in your mame.ini file?

You'll have to play with your label editor (Johnny5 or CPViewer) to get the label text to appear how you like it.


Yep I set that but it didnt make much difference. Do I have to create a cpviewer layout for every possible config? Or can I just use the one layout?

Just one layout should do it if you have only one panel. The unused labels won't display.

Title: Re: BuddaMAME v0.92 released
Post by: vibez on February 20, 2005, 06:55:44 pm
I'm having problems figuring out how to setup bubbamame to use my cpviewer layout. All I want it to do it use the 1 layout file & jpg that I use in cpviewer. But I cant quite understand what to create/edit.... regarding the ini/lof/txt files etc in the panel folder
Title: Re: BuddaMAME v0.92 released
Post by: Tiger-Heli on February 21, 2005, 07:02:36 am
bubbamame
Cute!!!
Title: Re: BuddaMAME v0.92 released
Post by: vibez on February 21, 2005, 09:13:42 am
bubbamame
Cute!!!

lol, just goes to show how we read what we want to read :)
Title: Re: BuddaMAME v0.92 released
Post by: Buddabing on February 21, 2005, 09:35:44 am
I'm having problems figuring out how to setup bubbamame to use my cpviewer layout. All I want it to do it use the 1 layout file & jpg that I use in cpviewer. But I cant quite understand what to create/edit.... regarding the ini/lof/txt files etc in the panel folder

You need:

1) a ctrlr file - tells MAME how to map keycodes onto controls
2) a control layout file - either a .lof (Johnny) or .lay (CPViewer) file. It controls where the text labels are printed for each control.
3) images of the control panel parts and background image. I've provided some samples
4) a panel file - describes where your controls are
5) cpmaker.ini - tells where all the various files are and sets options.

I've provided samples of all these.

Writing a panel editor application is a very large project. It's on the back burner at the moment.

I've provided several examples for you. Just pick one and start playing around with it. I would start by laying out your panel first. Put however many buttons you have, 80 or so pixels apart, and your joysticks and other controls, and play with it until it looks right to you.

If you use Johnny make sure your background image is jpg. (Johnny chokes on pngs).

 
Title: Re: BuddaMAME v0.92 released
Post by: vibez on February 21, 2005, 11:26:48 am
Thanks. I obviously missed some important steps out. I'll have a play with the samples & see how I get on
Title: Re: BuddaMAME v0.92 released
Post by: papaschtroumpf on February 25, 2005, 04:37:42 pm
I get the following error:

Compiling src/cpmaker/libs/magick/utility.c...
Compiling src/cpmaker/libs/magick/cache.c...
src/cpmaker/libs/magick/cache.c:59:18: zlib.h: No such file or directory
make: *** [obj/mameatxp/cpmaker/libs/magick/cache.o] Error 1


zlib.h is part of the mingw tools. Do you have the latest compile tools from mame.h? They changed in version 0.92.

Do you have the environment variable MINGDIR set to your mingw directory?


I still have this problem, everything builds fine if I leave the CPMAKER=1 line commented out,

I've set MINGDIR to C:\MinGW" and I've made sure that C:\MinGW\bin is at the head of my path because I have other compile environments on my machine (Visual C++ and cygwin).

I'll try and debug the problem but any guidance would be appreciated.
Title: Re: BuddaMAME v0.92 released
Post by: papaschtroumpf on February 25, 2005, 05:10:50 pm
This is the (end of the) output when doing a make -d:

       Finished prerequisites of target file `obj/mameatxp/cpmaker/libs/magick/cache.o'.
      Must remake target `obj/mameatxp/cpmaker/libs/magick/cache.o'.
CreateProcess(c:\MinGW\bin\echo.exe,echo Compiling src/cpmaker/libs/magick/cache.c...,...)
Putting child 0x00b49b88 (obj/mameatxp/cpmaker/libs/magick/cache.o) PID 11846072 on the chain.
Live child 0x00b49b88 (obj/mameatxp/cpmaker/libs/magick/cache.o) PID 11846072
Compiling src/cpmaker/libs/magick/cache.c...
Reaping winning child 0x00b49b88 PID 11846072
CreateProcess(c:\MinGW\bin\gcc.exe,gcc -Isrc/cpmaker/libs -Isrc/cpmaker/libs/magick -Isrc/cpmaker/libs/wand -Isrc/cpmaker/libs/ttf/include -D_LIB -c src/cpmaker/libs/magick/cache.c -o obj/mameatxp/cpmaker/libs/magick/cache.o,...)
Live child 0x00b49b88 (obj/mameatxp/cpmaker/libs/magick/cache.o) PID 11846072
src/cpmaker/libs/magick/cache.c:59:18: zlib.h: No such file or directory
Reaping losing child 0x00b49b88 PID 11846072
make: *** [obj/mameatxp/cpmaker/libs/magick/cache.o] Error 1
Removing child 0x00b49b88 PID 11846072  from chain.



zlib.h exists in src/zib, src/cpmaker/libs/zlib, and src/cpmaker/libs/ttf/src/gzip, none of which are in the include path the the gcc command line (unless -I is recursive).  There is no zlib.h in my c:\MinGW directory (and subdirectories), and yes I have the development set from mame.net for 0.92.

Title: Re: BuddaMAME v0.92 released
Post by: Buddabing on February 26, 2005, 11:21:12 pm
This is the (end of the) output when doing a make -d:

       Finished prerequisites of target file `obj/mameatxp/cpmaker/libs/magick/cache.o'.
      Must remake target `obj/mameatxp/cpmaker/libs/magick/cache.o'.
CreateProcess(c:\MinGW\bin\echo.exe,echo Compiling src/cpmaker/libs/magick/cache.c...,...)
Putting child 0x00b49b88 (obj/mameatxp/cpmaker/libs/magick/cache.o) PID 11846072 on the chain.
Live child 0x00b49b88 (obj/mameatxp/cpmaker/libs/magick/cache.o) PID 11846072
Compiling src/cpmaker/libs/magick/cache.c...
Reaping winning child 0x00b49b88 PID 11846072
CreateProcess(c:\MinGW\bin\gcc.exe,gcc -Isrc/cpmaker/libs -Isrc/cpmaker/libs/magick -Isrc/cpmaker/libs/wand -Isrc/cpmaker/libs/ttf/include -D_LIB -c src/cpmaker/libs/magick/cache.c -o obj/mameatxp/cpmaker/libs/magick/cache.o,...)
Live child 0x00b49b88 (obj/mameatxp/cpmaker/libs/magick/cache.o) PID 11846072
src/cpmaker/libs/magick/cache.c:59:18: zlib.h: No such file or directory
Reaping losing child 0x00b49b88 PID 11846072
make: *** [obj/mameatxp/cpmaker/libs/magick/cache.o] Error 1
Removing child 0x00b49b88 PID 11846072  from chain.



zlib.h exists in src/zib, src/cpmaker/libs/zlib, and src/cpmaker/libs/ttf/src/gzip, none of which are in the include path the the gcc command line (unless -I is recursive).  There is no zlib.h in my c:\MinGW directory (and subdirectories), and yes I have the development set from mame.net for 0.92.



I would just copy src\zlib\zlib.h and src\zlib\zconf.h out of your MAME source to \mingw\include.

Or you could edit the makefile and add -Isrc/zlib to the compile line.

Title: Re: BuddaMAME v0.92 released
Post by: papaschtroumpf on February 27, 2005, 12:02:10 am
yeah, sorry I didn't post an update but that's basically what I did, I added the option to cpmaker.mak in the $(CPLIBOBJ)/magick/%.o, $(CPLIBOBJ)/coders/%.o,and  $(CPLIBOBJ)/png/%.o: rules.
What threw me off for a while is that I started "from the top" and the makefile does add src/zlib to CFLAGS so I was a little surprised but it turns out cpmaker.mak ignores CFLAGS, or at least does for some of the rules including the rules above.

It probably would have been easier to add the header file to the MinGW/includes but that would "taint" the compile environment,.

By the way as a nitpick, the comment at the top of cpmaker.mak should say "CPOBJ and CPSRC must be defined before including this file" instead of CPLIBOBJ and CPLIBSRC.