Jump to content
IGNORED

Stella 4.6.5 released


stephena

Recommended Posts

I decided that since I have some work to do around the house for the next few days, I will do the new release now. So 4.6.7 is now available, with changes as follows:

 

* Fixed bug when using real paddles plugged into a Stelladaptor 2600-daptor device; the movement was very erratic.

* Fixed small logic error in 'MDM' bankswitching scheme.

 

As usual, comments, bug reports, etc can be done here, or by PM. Donations are welcome, and the download is available here.

  • Like 3
Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

Not 100% certain whether this is a Stella issue or a Blissbox issue, but Stella refuses to save input config for 2600 joysticks via BlissBox and it doesn't automatically work with them without config.

 

Edit: Fixed for joysticks. For some reason it finally worked after setting Compatibility to both admin -and- windows 7 (even though I'm in Windows 7) and simply selecting default.

 

However, issue remains for Keyboard Controller/Kid's Controller/Video Touch Keypad :(

Edited by Avar
Link to comment
Share on other sites

  • 1 month later...

I found a bug in Stella emulation regarding the "playfield SCORE mode".

On real hardware, when the SCORE bit (D1 od CTRLPF) is set, the left half of the playfield gets color and priority of Player0, while the right half gets color and priority of Player1. In Stella, instead, the playfield gets the players' colors but keeps the same priority as the ball.

Here is a simple test rom to show the problem:
score_mode_test_NTSC.bin

score_mode_test_PAL.bin

In the test rom the left difficulty switch sets/resets the SCORE bit, while the right difficulty switch sets/resets the PFP bit (Playfield Priority, D2 of CTRLPF).
P0 = green vertical bars
P1 = blue vertical bars
BL = thin grey diagonal lines
PF = checkerboard pattern


Here are comparision pictures of the rom running in stella and on real hardware:
SCORE bit (left diff) set, PFP bit (right diff) unset:

post-10599-0-55048700-1451566995_thumb.jpgpost-10599-0-08538500-1451567021_thumb.png

Note how on real hardware P1 (in blue) in the left part of the screen is behind the PF but in front of the ball

SCORE bit (left diff) unset, PFP bit (right diff) unset:

post-10599-0-46294300-1451566992_thumb.jpgpost-10599-0-07377600-1451567020_thumb.png
both players in front of the playfield and ball. Correctly emulated in Stella.

PFP bit (right diff) set (SCORE bit/left diff doesn't matter in this case):

post-10599-0-99255500-1451567504_thumb.jpgpost-10599-0-96275200-1451567021_thumb.png
both players behind playfield and ball. Correctly emulated.

If we call S0 and S1 the left and right halves of the Playfield when the SCORE mode is enabled, then these are the correct priority assignements:

Normal priority (CTRLPF D2=0, D1=0)
Highest Priority: P0,M0
Second Highest: P1,M1
Third Highest: PF,BL
Lowest Priority: BK

PFP set (CTRLPF D2=1, D1=don't care)
Highest Priority: PF,BL
Second Highest: P0,M0
Third Highest: P1,M1
Lowest Priority: BK

SCORE mode (CTRLPF D2=0, D1=1)
Highest Priority: P0,M0,S0
Second Highest: P1,M1,S1
Third Highest: BL
Lowest Priority: BK

Edited by alex_79
  • Like 1
Link to comment
Share on other sites

Not sure that this is a really a Stella bug, but have ran into a paddle dead zone with 2600- and Stella-daptor's in linux (ubuntu). I'm pretty sure this is an analog joystick center dead zone, which I see when running jstest-gtk. I edit the calibration, setting center min/max values the same, and the dead zone is then gone from the jstest-gtk test screen, but still there in Stella. Searching found suggestions to add SDL_JOYSTICK_DEVICE=/dev/input/js0 to /etc/environment, but still getting the dead zone in Stella.

 

Anyone using paddles in Stella on Linux? I am surprised this has not come up before. Maybe a "feature" of SDL2?

 

Tom

http://2600-daptor.com

Link to comment
Share on other sites

Not sure that this is a really a Stella bug, but have ran into a paddle dead zone with 2600- and Stella-daptor's in linux (ubuntu). I'm pretty sure this is an analog joystick center dead zone, which I see when running jstest-gtk. I edit the calibration, setting center min/max values the same, and the dead zone is then gone from the jstest-gtk test screen, but still there in Stella. Searching found suggestions to add SDL_JOYSTICK_DEVICE=/dev/input/js0 to /etc/environment, but still getting the dead zone in Stella.

 

Anyone using paddles in Stella on Linux? I am surprised this has not come up before. Maybe a "feature" of SDL2?

 

Tom

http://2600-daptor.com

 

This looks to be a SDL2/linux problem. Was able to get the paddles working smoothly in Stella 3.9.3, last release prior to SDL2. Requires putting SDL_JOYSTICK_DEVICE=/dev/input/js0 to /etc/environment, and using jstest-gtk to edit the calibration and set all center min/max values to 2047.

 

Going to Stella 4.0 and SDL2, and the paddle dead zone is back. Appears linux applies a calibration to anything that is an analog joystick, and the default calibration includes an axis center dead zone. Don't know of a way to change the calibration on the /dev/input/eventX that SDL2 uses - jstest-gtk seems to only work on /dev/input/js0. And SDL2 seems to be ignoring the SDL_JOYSTICK_DEVICE=/dev/input/js0.

 

Tom

http://2600-daptor.com

Link to comment
Share on other sites

  • 3 weeks later...

I found a bug in Stella emulation regarding the "playfield SCORE mode".

 

On real hardware, when the SCORE bit (D1 od CTRLPF) is set, the left half of the playfield gets color and priority of Player0, while the right half gets color and priority of Player1. In Stella, instead, the playfield gets the players' colors but keeps the same priority as the ball.

 

Confirmed, and currently working on fixing this for the next release.

Link to comment
Share on other sites

Feature request: ability to change bankswitch on the fly, or at least without having to exit to the launcher - ok if a reset is done.

 

What is the use case for this? I suppose it's easy enough to handle; just cycle through the bankswitch schemes and do a reload, all tied to a key-combo. I just don't see the point of it.

Link to comment
Share on other sites

I found a bug in Stella emulation regarding the "playfield SCORE mode".

 

On real hardware, when the SCORE bit (D1 od CTRLPF) is set, the left half of the playfield gets color and priority of Player0, while the right half gets color and priority of Player1. In Stella, instead, the playfield gets the players' colors but keeps the same priority as the ball.

 

This is now fixed, and will be present in the next release.

Link to comment
Share on other sites

It seems that the CX22 is much less sensitive (50%) to movement than CX80 and Amiga mouse. Maybe you can consider this for Stella too.

 

Do you have an idea of how to fix this? I ask because the relevant code is from z26, which you probably worked on at some point.

Link to comment
Share on other sites

Do you have an idea of how to fix this? I ask because the relevant code is from z26, which you probably worked on at some point.

Unfortunately I only tested what Eckhard had developed.

 

But from looking at the code:

void TrackBall::update()
  ...
  myTrakBallCountH = abs(myVCounter >> 1);
  myTrakBallCountV = abs(myHCounter >> 1);
probably a right shift by 2 (instead of 1) in case of a CX22 would do.
But those shifts (even the existing ones) create a problem: Very slow mouse movements are ignored completely. But only in case of positive values (1 >> 1 becomes 0; -1 >> 1 is still -1 (is it?)), so that the cursor would have a preference into left or right and up or down. Not sure if it becomes obvious now. If that's the case, the counters would have to be adjusted before shifting in case of positive values.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...