yoshisuga / MAME4iOS

Multiple Arcade Machine Emulator for iOS, iPadOS, tvOS, macOS (Catalyst)
Other
635 stars 103 forks source link

HUD doesn't show 1P,2P,3P,4P Start for some 3 to 4 Player Arcade Games. #393

Closed RussellKR closed 2 years ago

RussellKR commented 2 years ago

Hi ToddLa, It's been a while since I play multi player games and I realized that some of them not showing player starts at all! These are not showing: Sunset Riders (ssriders.zip), Vendetta (vendetta.zip)

So far, these are showing: Captain Commando (captcomm.zip), Dungeons & Dragons (ddsom.zip), X-Men (xmen.zip), Cadillacs and Dinosaurs (dino.zip)

I'll check more...

if anyone interested in 3 to 4 Player games, I found a good video: https://youtu.be/4UdPru-jxX0

In the video description, explain how to enable for multi player if it is not default by game.

ToddLa commented 2 years ago

Will need to check out those games, we "sniff" the input profile to determine how many players a game has. If the game does not look for input on player 3 or 4 we assume it is only a single. Or two player. Of course there are turn based machines, but we only show him players based on input profile.

ToddLa commented 2 years ago

Yea captain commando should be detected as 4 player, will take. Look

http://adb.arcadeitalia.net/dettaglio_mame.php?game_name=captcomm&arcade_only=0&autosearch=1

ToddLa commented 2 years ago

image

I see 4P on the 139 version ...and also 4P on the 241 version.

This is with MAME4iOS 2022.1

???

RussellKR commented 2 years ago

Yes that is correct, HUD shows the players Start for Captain Commando, but enabling the 4 characters in the game requires a DIPSWITCH setting, which is in the MAME config menu. For instance, this game also shows 4 players Start on the HUD, Dungeons & Dragons (ddsom.zip) to enable the players in the game is in the Service (the game's settings)

You may recall, while you were adding 1P and 2P Start to M4i, I asked for 3P and 4P for these games: Cadillacs and Dinosaurs (dino.zip), Sunset Riders (ssriders.zip)

dino is still OK it shows 3 players Start, but Sunset Riders (parent rom) doesn't show at all. It was showing before when you added first! There are 2 and 4 players clones for Sunset Riders. 2 players are OK This is interesting: these two clones 'ssridersadd and ssridersuda' show 4 players on the HUD The rest of them same as parent rom!

I'm using 241, MAME4iOS 2022.1

ToddLa commented 2 years ago

Getting into the dipswitches is two complex.

All we do is count the number of start buttons the machine is looking for in its input profile, and use that as a best guess to how many players supported.

RussellKR commented 2 years ago

I did check ALL of them one by one in that video Most of them are OK. Here's the list of games has no Players Start on the HUD, and some of them shows incorrect!

4 Players:

3 Players:

All we do is count the number of start buttons the machine is looking for in its input profile, and use that as a best guess to how many players supported.

OK now I understand, according to the 'input profiles' in M4i, your codes work just fine.

For example: Captain America and The Avengers captaven.zip shows 2P its in input profile have 2 Players Start, but the game 4 players.

Rampage: World Tour rmpgwt.zip shows 4P 'coz its in input profile have 4 Players Start, but the game 3 players.

And some of them has NO Player Start its in input profile...

We can ignore this issue no problem, all these games are playable. Thank you for the heads-up.