It is currently Mon Nov 20, 2017 7:52 pm

All times are UTC - 7 hours





Post new topic Reply to topic  [ 15 posts ] 
Author Message
PostPosted: Tue Jul 25, 2017 3:32 pm 
Offline

Joined: Thu May 19, 2005 11:30 am
Posts: 311
All emulators that have lightgun support can run Duck Hunt and Hogan's Alley, but there are some tough-to-emulate light gun games from unlicensed publishers that pose a greater challenge.

The most difficult seems to be a game called "Top Hunter", which only exists on the Asder 20-in-1 multicart, although an extracted mapper 0 ROM image of the game can be found on the net for emulators that do not bother to implement this particular multicart mapper (which only exists as a UNIF board mapper so far). Only FCEUX with its Old PPU emulation seems to be able to run the game past the title screen, all other emulators that I have tried fail, including FCEUX with its New PPU emulation. The game has been reported to work well on actual hardware.


Top
 Profile  
 
PostPosted: Tue Jul 25, 2017 3:50 pm 
Offline
User avatar

Joined: Sun Jan 22, 2012 12:03 pm
Posts: 5824
Location: Canada
Top hunter seems to do the following:

1. Full white screen with a timed loop to identify the first scanline where the zapper registers. (Y detection)
2. Series of narrow white blobs moving horizontally across the detected Y position. (X detection)

Image demonstrating:
Attachment:
top_hunter_hit_detection.png
top_hunter_hit_detection.png [ 6.44 KiB | Viewed 1211 times ]


I'm noticing that with New PPU on, the Y position is detected a little bit lower than with Old PPU. Even in Old PPU mode the position is a bit low, but with New PPU the X detection pass is just too low for it to register.

I haven't looked into how FCEUX registers a zapper hit, but this seems to be the problem. Operation Wolf has a very similar detection scheme, but it appears to work because its Y detection isn't so low, so the difference doesn't cause a problem.


Top
 Profile  
 
PostPosted: Tue Jul 25, 2017 3:55 pm 
Offline
User avatar

Joined: Sun Jan 22, 2012 12:03 pm
Posts: 5824
Location: Canada
Both Old and New PPU seem to give very good Y tracking with tepples' zapper stuff in Action 53, though. Maybe Top Hunter does something exceptionally unusual?


Top
 Profile  
 
PostPosted: Tue Jul 25, 2017 4:19 pm 
Offline

Joined: Mon Dec 12, 2011 8:15 pm
Posts: 352
Attachment:
20170726071747.png
20170726071747.png [ 27.28 KiB | Viewed 1199 times ]

Attachment:
20170726071740.png
20170726071740.png [ 17.58 KiB | Viewed 1199 times ]

Attachment:
0170726071754.png
0170726071754.png [ 30 KiB | Viewed 1199 times ]


Top
 Profile  
 
PostPosted: Tue Jul 25, 2017 4:29 pm 
Offline

Joined: Sun Apr 13, 2008 11:12 am
Posts: 6447
Location: UK (temporarily)
So, playing a little bit around with Mesen's debugger...

I think it's an interaction of two "sorta" bugs, one in the game, and one in how most emulators implement the Zapper.
#1 The game draws the horizontal scans a couple scanlines below where the mouse is pointing. On hardware, the bit goes true a few scanlines after light is sensed, and so the game should scan for X position a few scanlines higher than it does.
#2 Many emulators only check the single pixel under the mouse cursor, instead of the comparatively large area that the Zapper actually sees.

So the two together mean that the game gets a Y coordinate in the first frame, and no X coordinate at all in the following six.


Top
 Profile  
 
PostPosted: Wed Jul 26, 2017 3:37 pm 
Offline

Joined: Sun Feb 07, 2016 6:16 pm
Posts: 299
As far as I can tell, changing Mesen's code to check for any single "bright" pixel in a 3x3 or 5x5 grid around the mouse's position seems to fix the game (the targeting is kind of bad, but that might be the game's fault). Doing this makes most of the vertical/horizontal pattern tests in Zap Ruder behave more or less like a solid white block, though. I'd be curious to see how those patterns behave on an actual CRT+Zapper...


Top
 Profile  
 
PostPosted: Wed Jul 26, 2017 4:19 pm 
Offline

Joined: Sun Apr 13, 2008 11:12 am
Posts: 6447
Location: UK (temporarily)
I guess I only have the subset of tests in A53v1, but I do have a CRT and Zapper. (I suspect other people will have both and the ability to run Zap Ruder v3 itself)

What specifically are you looking for?

Zap Ruder doesn't seem to contain a "focus size" test. I (or someone else) can probably figure out some way to make one?


Top
 Profile  
 
PostPosted: Wed Jul 26, 2017 5:17 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19237
Location: NE Indiana, USA (NTSC)
All Action 53 tests are in the cartridge as unused data. You could use a Game Genie code to change the ZapPing entry point to the main menu entry point.


Top
 Profile  
 
PostPosted: Wed Jul 26, 2017 5:27 pm 
Offline

Joined: Sun Feb 07, 2016 6:16 pm
Posts: 299
I'm mostly curious how a zapper would behave on the thinner lines at a reasonable distance.
e.g can it actually pick up the light from those tiny bars? And does it just pick up the light from those bars no matter where you aim inside the pattern? If so, the vertical tracking in both tests would work despite aiming at the black portions of the pattern.

In that case, it would make sense to expand the tracking in Mesen to a ~5x5 grid, since that's pretty much how the tests behave with a 5x5 grid.
In contrast, at the moment (in emulators), as soon as you put the mouse into the black areas, the tracking arrows reset to their default position at the bottom of the screen (and I doubt the zapper itself is precise enough to do this unless you stick it to the screen of a 30" CRT..)


Top
 Profile  
 
PostPosted: Wed Aug 02, 2017 5:54 am 
Offline

Joined: Mon Dec 12, 2011 8:15 pm
Posts: 352
Sour wrote:
I'm mostly curious how a zapper would behave on the thinner lines at a reasonable distance.
e.g can it actually pick up the light from those tiny bars? And does it just pick up the light from those bars no matter where you aim inside the pattern? If so, the vertical tracking in both tests would work despite aiming at the black portions of the pattern.

In that case, it would make sense to expand the tracking in Mesen to a ~5x5 grid, since that's pretty much how the tests behave with a 5x5 grid.
In contrast, at the moment (in emulators), as soon as you put the mouse into the black areas, the tracking arrows reset to their default position at the bottom of the screen (and I doubt the zapper itself is precise enough to do this unless you stick it to the screen of a 30" CRT..)



Mesen, The latest source code to compile successfully and run error. vs2015.

You use ~5x5 grid, Can choose 2 player ?


Top
 Profile  
 
PostPosted: Wed Aug 02, 2017 1:45 pm 
Offline

Joined: Sun Feb 07, 2016 6:16 pm
Posts: 299
zxbdragon wrote:
Mesen, The latest source code to compile successfully and run error. vs2015.
You use ~5x5 grid, Can choose 2 player ?
It's normal for it to crash at the moment - you will need to delete your settings.xml file to fix it.
The grid size is customizable - selecting a zapper in the input devices now enables the "Setup" button and lets you pick the radius (1x1, 3x3, 5x5 or 7x7). The radius setting is shared by all connected zappers.


Top
 Profile  
 
PostPosted: Wed Aug 02, 2017 6:07 pm 
Offline

Joined: Mon Dec 12, 2011 8:15 pm
Posts: 352
Sour wrote:
zxbdragon wrote:
Mesen, The latest source code to compile successfully and run error. vs2015.
You use ~5x5 grid, Can choose 2 player ?
It's normal for it to crash at the moment - you will need to delete your settings.xml file to fix it.
The grid size is customizable - selecting a zapper in the input devices now enables the "Setup" button and lets you pick the radius (1x1, 3x3, 5x5 or 7x7). The radius setting is shared by all connected zappers.


thank you ,delete setting.xml OK
fceux mouse right click,choose 2 Player mode.
Mesen right click no response?


Top
 Profile  
 
PostPosted: Thu Aug 03, 2017 7:36 pm 
Offline

Joined: Sun Feb 07, 2016 6:16 pm
Posts: 299
zxbdragon wrote:
fceux mouse right click,choose 2 Player mode.
Mesen right click no response?
Ah, I had to try it in the game to understand - I thought there was some option about 2-player zapper mode in the FCEUX right-click menu.

You can do the same in Mesen - you need to hold down the right button and then click the left button.
Basically while the right button is held, the zapper can't detect any light, and pressing the left button acts as it always does.


Top
 Profile  
 
PostPosted: Thu Aug 03, 2017 7:53 pm 
Offline

Joined: Mon Dec 12, 2011 8:15 pm
Posts: 352
Sour wrote:
zxbdragon wrote:
fceux mouse right click,choose 2 Player mode.
Mesen right click no response?
Ah, I had to try it in the game to understand - I thought there was some option about 2-player zapper mode in the FCEUX right-click menu.

You can do the same in Mesen - you need to hold down the right button and then click the left button.
Basically while the right button is held, the zapper can't detect any light, and pressing the left button acts as it always does.



fceux right button menu can be closed.
Attachment:
2017-08-04_10-51-23.jpg
2017-08-04_10-51-23.jpg [ 63.75 KiB | Viewed 770 times ]

If fceux is correct, then right-click should be able to select 2 p mode


Top
 Profile  
 
PostPosted: Fri Aug 04, 2017 3:44 pm 
Offline

Joined: Fri Oct 26, 2012 5:27 pm
Posts: 76
NewRisingSun wrote:
All emulators that have lightgun support can run Duck Hunt and Hogan's Alley, but there are some tough-to-emulate light gun games from unlicensed publishers that pose a greater challenge.

The most difficult seems to be a game called "Top Hunter", which only exists on the Asder 20-in-1 multicart, although an extracted mapper 0 ROM image of the game can be found on the net for emulators that do not bother to implement this particular multicart mapper (which only exists as a UNIF board mapper so far). Only FCEUX with its Old PPU emulation seems to be able to run the game past the title screen, all other emulators that I have tried fail, including FCEUX with its New PPU emulation. The game has been reported to work well on actual hardware.


Works fine in bizhawk, and it doesn't do anything particularly special for lightgun...


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group