Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zero Point 2 (zeropnt2): reload issue #1253

Open
StormedBubbles opened this issue Dec 23, 2021 · 4 comments
Open

Zero Point 2 (zeropnt2): reload issue #1253

StormedBubbles opened this issue Dec 23, 2021 · 4 comments

Comments

@StormedBubbles
Copy link

Hi again,

The two games mentioned in the title work very well in this emulator aside from reload issues. I get shots registered on the edges of the screen when trying to reload in both of these games for the vast majority of reload attempts. It will work occasionally, but I can't pinpoint the conditions.

It doesn't appear that newer MAME versions introduced any fixes for this particular issue for these two games, so hopefully this doesn't require any back-porting to fix 😊

@mahoneyt944
Copy link
Collaborator

Lethalj returns the value here

READ16_HANDLER( lethalj_gun_r )
{
data16_t result = 0;
int beamx, beamy;
switch (offset)
{
case 4:
case 5:
/* latch the crosshair position */
get_crosshair_xy(offset - 4, &beamx, &beamy);
gunx = beamx;
guny = beamy;
blank_palette = 1;
break;
case 6:
result = gunx/2;
break;
case 7:
result = guny + 4;
break;
}
log_cb(RETRO_LOG_DEBUG, LOGPRE "%08X:lethalj_gun_r(%d) = %04X\n", activecpu_get_pc(), offset, result);
return result;
}

Would have to determine what value forces a reload. And check against a threshold.

@StormedBubbles
Copy link
Author

StormedBubbles commented Dec 23, 2021

I should also mention that Zero Point 2 has a dipswitch to disable the need for reloading. If getting reload to work for that game is too much of a hassle, disabling reload is a good option. That makes the game play like the first Zero Point anyway.

EDIT: and in Lethal Justice, reloading appears to be isolated to the corners of the screen instead of the whole border.

@StormedBubbles
Copy link
Author

863389f resolved the issues with lethalj. Thanks! zeropnt2 still has some erratic behavior when reloading is attempted. Some offscreen shots register as on screen, and some on-screen shots register as off screen. A similar issue with this game was recently fixed in FBNeo.

@mahoneyt944
Copy link
Collaborator

mahoneyt944 commented Apr 27, 2022

Appears to be game specific, thanks for linking a good resource.

@mahoneyt944 mahoneyt944 changed the title Lethal Justice (lethalj) and Zero Point 2 (zeropnt2): reload issues Zero Point 2 (zeropnt2): reload issue Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants