DerKoun / bsnes-hd

bsnes fork that adds HD video features
GNU General Public License v3.0
626 stars 35 forks source link

Super Scope right screen border fix #12

Open eadmaster opened 4 years ago

eadmaster commented 4 years ago

for some reason when playing Super Scope lightgun games with the default settings the mouse aiming range seems shorter as it should be: i cannot aim near the right border of the screen.

DerKoun commented 4 years ago

Does it depend on settings, like scale and/or widescreen? Also does it work in bsnes with the same settings (as far as they have been merged upstream)?

eadmaster commented 4 years ago

i've tried disabling the widescreen option, but i still cannot aim in the right part of the screen. I've also tried with vanilla bsnes, and it let me aim the whole screen.

DerKoun commented 4 years ago

If widescreen isn't the cause, could you please also try the following, restarting the program after every change:

(Each will disable more of my code) Also does it work with bsnes v107? How wide is the 'margin' that does not work? And is it the same width from top to bottom? Sorry for coming back with so many questions. I hope the issue will be solved when I merge the current bsnes trunk code into my fork. But if I really broke something, I want pinpoint and solve it. Thanks for your help.

eadmaster commented 4 years ago

setting scale to 1x and restarting seems to fix the issue, although now the cursor is a bit off near the borders.

Also does it work with bsnes v107?

With vanilla bsnes v109 i can play @ 720p scale without issues (but it's missing widescreen).

How wide is the 'margin' that does not work? And is it the same width from top to bottom?

About 1/5th of the screen, same width from top to bottom.

DerKoun commented 4 years ago

Thanks for all your effort. I really hope I can fix this. Haven't looked into that particular code, yet. Fair warning: I had planned to get back to coding in a few days, after taking a break for some weeks. But I self-misdiagnosed a flu as allergy and that currently got me out. So I guess I'll be back to coding and research some time late October. Just so you know it may very well turn November until I have something solid here.

DerKoun commented 4 years ago

OK, new release is out, but I didn't get to this one. Could you please verify this issue with beta 10? (it could have gotten better or worse)

eadmaster commented 4 years ago

I've tested the latest beta 10 on Ubuntu Linux and i can now aim the whole screen, although the cursor randomly freezes in fullscreen mode (in window mode is fine).

Another issue i've found is bsnes crashes as soon i pause the emulation or open the settings (segfault).

DerKoun commented 4 years ago

Does the cursor issue only happen in widescreen? If not, does it happen in bsnes trunk? I assume the seg fault is a more extreme effect of #24. Will look into that definitively.

eadmaster commented 4 years ago

I've just tried the same game ("Yoshi's Safari (U) [!]") on another machine running Windows 10 and here is working fine both in windowed and exclusive fullscreen mode. I'll try again on Linux tomorrow and report you the results.

DerKoun commented 4 years ago

Thanks for the detailed tesing

eadmaster commented 4 years ago

On Linux similar issue in fullscreen mode with widescreen disabled (the crossaim freezes randomly).

Btw if i maximize the window it becomes quite playable...

DerKoun commented 4 years ago

Does the same happen in regular bsnes 114? If it's only in my fork I'll look into it. But, to be honest, it won't be highest priority. But I'll try.

DerKoun commented 4 years ago

OK, I need some help. Can someone explain to me how to configure bsnes(-hd) so I can play Yoshi's Safari at all? I just can't get it to recognize clicks.

eadmaster commented 3 years ago

sorry, just read it now...

Can someone explain to me how to configure bsnes(-hd) so I can play Yoshi's Safari at all? I just can't get it to recognize clicks.

  1. set "Super Scope" in Controller Port 2
  2. menu Settings->Input
  3. Port: Controller Port 2, Device: Super Scope
  4. Assign Trigget, Cursor and pause to mouse buttons

Step 4. seems to crash the GUI on Linux. If you can't setup this way paste this in settings.bml:

    SuperScope
      X-axis: 0x2/0/0
      Y-axis: 0x2/0/1
      Trigger: 0x2/1/0
      Cursor: 0x2/1/2
      Turbo
      Pause: 0x2/1/1

Another issue i've found is bsnes crashes as soon i pause the emulation or open the settings (segfault).

An update on this: fixed in the latest v10.4, although it became slower on my notebook (Core i5-4200U).