QUOTE
1239 PORT_DIPNAME(0x80, 0x80, DEF_STR( Cabinet ) )
1240 PORT_DIPSETTING( 0x80, DEF_STR( Upright ) )
1241 PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) )
to:
QUOTE
1239 PORT_DIPNAME(0x80, 0x00, DEF_STR( Cabinet ) )
1240 PORT_DIPSETTING( 0x80, DEF_STR( Upright ) )
1241 PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) )
Which is making the game then load directly into cocktail mode. (All of these are slightly different, but it's the same principal for each one)
But, as we already know, when you do cocktail mode the second player is upside-down. The problem I have at this point is that I apparently have not pinpointed the source of the screenflipping in the source code. I have been able to comment out code in two spots in generic.c and the 3DRender driver which successfully fixed 1942, Black Tiger and all CPS1 games (I'm sure a lot more were fixed with this, but I don't really want to test more roms until I finish this fix in case I break something else in the process).
This also partially fixed all the games on the Bagman.c driver too when I commented out those two spots, but this made both players upside down. It took me a while to figure out about the ROT270 function at the bottom of the driver. That was put there because originally the rom needed to be rotated 270 degrees to display correctly and my editing out the code broke that. I had to change the ROT270 to ROT90 and these games then worked perfect as well.
QUOTE
GAME( 1982, bagman, 0, bagman, bagman, 0, ROT270, "Valadon Automation", "Bagman", 0 )
QUOTE
GAME( 1982, bagman, 0, bagman, bagman, 0, ROT90, "Valadon Automation", "Bagman", 0 )
Recently, I tried to comment out a line in the writemem section on the unfixed drivers that pertains to flipscreen:
QUOTE
AM_RANGE(0x5003, 0x5003) AM_MIRROR(0xaf38) AM_WRITE(pacman_flipscreen_w)
This code is a little different because I had to pull it from the new build on mamedev.org since I'm not at home now, but you get the idea.This worked perfect for Mad Alien, but the weirdest thing happens on Mr Do, Pac-Man and all of the other games on those drivers. It keeps the background from flipping, such as the maze in Pac-Man, but all of the sprites are upside down as if cocktail mode was working like normal for them. It's the strangest thing to see the ghosts upside down in the maze and when Pac-Man goes down on the left side of the screen the dots are disappearing upwards on the right side of the screen. Same with Mr Do and all of the other games. For the life of me I just can't figure out where the writemem code controlling the sprites is.
If there is a single place, or a few that would fix all of these games though, that would be much better than messing around with writemem code for hundereds of games. I'm open to any ides you've got, and I really hope that this dialogue can be kept up.
Regards,
~Rx