Menu

#106 Support for SRx files with 256 lines

None
closed-fixed
MSX (20)
5
2025-05-01
2025-04-29
SD Snatcher
No

Please add support for .SRx images with 256 lines. These are used for game development on the MSX2/2+, since it fills a whole VRAM page.

They work just like a normal .SRx file, but contain 256 lines instead of the usual 212.

I added some sample files here for testing.

1 Attachments

Discussion

  • SD Snatcher

    SD Snatcher - 2025-04-29

    Samples for the screen-10 and screen-12.

     
  • Piotr Fusik

    Piotr Fusik - 2025-04-29
    • status: open --> accepted
    • assigned_to: Piotr Fusik
    • Group: -->
     
  • Piotr Fusik

    Piotr Fusik - 2025-04-29

    RECOIL displays most of these. I understand the goal is to display all 256 lines and not crop to 212 ?

    SR5-SR7 examples have strange palettes.

    RECOIL doesn't handle the SRA extension. Is it supported by "Graph Saurus" ?

     
    • SD Snatcher

      SD Snatcher - 2025-04-29

      Yes, what's needed is to display all 256 lines, without cropping to 212.

      Files with less than 256 lines will still be cropped.

      RECOIL doesn't handle the SRA extension. Is it supported by "Graph Saurus" ?

      No. The SRA extension is only supported by development tools.

       
  • Piotr Fusik

    Piotr Fusik - 2025-04-30

    Do you mean that if the file size says 213-255 lines, we should display 212?
    Are SRA files always 256-line?

     
  • SD Snatcher

    SD Snatcher - 2025-04-30

    Do you mean that if the file size says 213-255 lines, we should display 212?

    Yes

    Are SRA files always 256-line?

    No. They work the same way as the others.

     
  • Piotr Fusik

    Piotr Fusik - 2025-05-01

    I see the palette files start with a 7-byte header.

    How to tell 256-line files from files with sprites? E.g. examples.zip contains TSTSPRI2.SC5 and TSTSPRI2.SC6 which are also 32775 bytes long and with the same header. Should I look at the filename extension? (SC? = sprites, SR? = 256 lines) ?

     
    • SD Snatcher

      SD Snatcher - 2025-05-01

      Ops, sorry! I didn't notice that the image conversion tool I used added this 7 byte header to the palettes. This is incorrect. Please strip it from the PLx files.

       

      Last edit: SD Snatcher 2025-05-01
    • SD Snatcher

      SD Snatcher - 2025-05-01

      How to tell 256-line files from files with sprites?

      SRx files don´t support neither embedded sprites or palette. Only SCx files have them.

      OTOH, SCx can't support 256 lines, because they use areas of the VRAM above the 212th line to store the sprites and palette.

      So yes, the extension is the way you differentiate the features between them.

       

      Last edit: SD Snatcher 2025-05-01
  • Piotr Fusik

    Piotr Fusik - 2025-05-01
    • status: accepted --> closed-fixed
     
  • Piotr Fusik

    Piotr Fusik - 2025-05-01

    Implemented, thanks!

     

Log in to post a comment.

MongoDB Logo MongoDB