Friendica
Foone🏳️‍⚧️
Foone🏳️‍⚧️

Foone🏳️‍⚧️

foone@digipres.club

Foone🏳️‍⚧️

foone@digipres.club
Hardware / software necromancer, collector of Weird Stuff, maker of Death Generators. (she/they🏳️‍⚧️)
ActivityPub
2025-04-23 17:35:27 2025-04-23 17:35:23 2025-04-23 08:03:46 7554323

Foone🏳️‍⚧️
Foone🏳️‍⚧️
hometown - Link to source

Foone🏳️‍⚧️

4 months ago • •

Foone🏳️‍⚧️

4 months ago • •


So I'm hacking on Mahjongg VGA by Ron Balewski.
Like you do.
Title screen for MAH JONGG VGA version 3.1, Copyright 1988-91 Ron Balewski
  •  Languages
  •  Search Text
  •  Share via ...
in reply to Foone🏳️‍⚧️

Foone🏳️‍⚧️
hometown - Link to source

Foone🏳️‍⚧️

in reply to Foone🏳️‍⚧️ • 4 months ago • •

This isn't to be confused with Mah Jongg by Nels Anderson.

I'm also hacking that one, but not in THIS thread.

Titlescreen for Mah Jongg by Nels Ansderson, Copyright 1987-1991.
Release 3.5
  •  Languages
  •  Search Text
  •  Share via ...
in reply to Foone🏳️‍⚧️

Foone🏳️‍⚧️
hometown - Link to source

Foone🏳️‍⚧️

in reply to Foone🏳️‍⚧️ • 4 months ago • •
The cool thing about this game is that there's a ton of user-made tilesets for it that have been preserved on old BBS-shovelware CDs.
And it's all this lovely amateur pixelart so naturally I gotta collect it.
A game of Mahjong solitaire, but all the tiles are replaced with pixel-art The Simpsons characters.
  •  Languages
  •  Search Text
  •  Share via ...
in reply to Foone🏳️‍⚧️

Foone🏳️‍⚧️
hometown - Link to source

Foone🏳️‍⚧️

in reply to Foone🏳️‍⚧️ • 4 months ago • •

so I'm building a tool to convert the tile files to PNGs.

The files are TIS files, which are made of:
1. one metadata string
2. 44 TIL files.
3. PAL.CFG

There's PAKTIL.COM and UNPAKTIL.COM to separate out/rejoin the TIL files. So I gotta figure out how TIL files work.

This entry was edited (4 months ago)
  •  Languages
  •  Search Text
  •  Share via ...
in reply to Foone🏳️‍⚧️

Foone🏳️‍⚧️
hometown - Link to source

Foone🏳️‍⚧️

in reply to Foone🏳️‍⚧️ • 4 months ago • •

it turns out they're a 6-byte header and then they're a 48x60 image, but they're vertically planar: The first row is the least significant bit, fourth row is the most significant bit, and so on.

This indexes into the palette, which is stored in PAL.CFG

A vertically stretched monochrome image of a floppy disk mahjong tile
  •  Languages
  •  Search Text
  •  Share via ...
in reply to Foone🏳️‍⚧️

Foone🏳️‍⚧️
hometown - Link to source

Foone🏳️‍⚧️

in reply to Foone🏳️‍⚧️ • 4 months ago • •
The TIL files are 48x60, but the tiles are not. They're 44x60. The extra 4 columns of pixels are ignored
  •  Languages
  •  Search Text
  •  Share via ...
in reply to Foone🏳️‍⚧️

Foone🏳️‍⚧️
hometown - Link to source

Foone🏳️‍⚧️

in reply to Foone🏳️‍⚧️ • 4 months ago • •

PAL.CFG is simple: It's a 16-line text file, each line containing 3 numbers separated by spaces.

As is common for VGA-only software, it's 6-bit VGA, so the RGB is 0-63 instead of 0-255

  •  Languages
  •  Search Text
  •  Share via ...
in reply to Foone🏳️‍⚧️

Foone🏳️‍⚧️
hometown - Link to source

Foone🏳️‍⚧️

in reply to Foone🏳️‍⚧️ • 4 months ago • •

the DRAFTSMN.DOC file explains some of the special palette entries:

0 is used for the screen background
1 is used for tile backgrounds
7 is used for the tile edges
11 is used for numbers
15 is used for menus

so really you get 11 colors.

  •  Languages
  •  Search Text
  •  Share via ...
in reply to Foone🏳️‍⚧️

Foone🏳️‍⚧️
hometown - Link to source

Foone🏳️‍⚧️

in reply to Foone🏳️‍⚧️ • 4 months ago • •

some very ugly python code using strings rather than some smart bitshifting code, but it worked first time.

now I just need to wrap this up into a script that unpacks each file one by one, then converts each TIL, then merges them together into a spritesheet

A single mahjong tile of a red 5.25" floppy disk
  •  Languages
  •  Search Text
  •  Share via ...
in reply to Foone🏳️‍⚧️

Foone🏳️‍⚧️
hometown - Link to source

Foone🏳️‍⚧️

in reply to Foone🏳️‍⚧️ • 4 months ago • •
mass-processing, I found a corrupted one! This is supposed to be "People on TV #2", but it crashes VIEWTILE (and my converter). Works in MJVGA31, but it does crash when you exit.
A Mahjong tile set where all tiles are monochrome and pink. You can tell that they're supposed to be photos of people, but they don't actually load properly
#2
  •  Languages
  •  Search Text
  •  Share via ...
in reply to Foone🏳️‍⚧️

Foone🏳️‍⚧️
hometown - Link to source

Foone🏳️‍⚧️

in reply to Foone🏳️‍⚧️ • 4 months ago • •
I need to write a simple font engine. TIME ME
  •  Languages
  •  Search Text
  •  Share via ...
in reply to Foone🏳️‍⚧️

Foone🏳️‍⚧️
hometown - Link to source

Foone🏳️‍⚧️

in reply to Foone🏳️‍⚧️ • 4 months ago • •
done
  •  Languages
  •  Search Text
  •  Share via ...
in reply to Foone🏳️‍⚧️

Foone🏳️‍⚧️
hometown - Link to source

Foone🏳️‍⚧️

in reply to Foone🏳️‍⚧️ • 4 months ago • •

I made the foolish mistake that all tilesets would define a remotely sensible palette

that was a mistake. several of them do black on black text

  •  Languages
  •  Search Text
  •  Share via ...
in reply to Foone🏳️‍⚧️

Foone🏳️‍⚧️
hometown - Link to source

Foone🏳️‍⚧️

in reply to Foone🏳️‍⚧️ • 4 months ago • •
I wasted time make it match the correct background/foreground color and it's not even visible half the time!
  •  Languages
  •  Search Text
  •  Share via ...
in reply to Foone🏳️‍⚧️

Foone🏳️‍⚧️
hometown - Link to source

Foone🏳️‍⚧️

in reply to Foone🏳️‍⚧️ • 4 months ago • •
Reverted back to plain DOS colors
A display of all the tiles of a mahjong tile set
  •  Languages
  •  Search Text
  •  Share via ...
in reply to Foone🏳️‍⚧️

Foone🏳️‍⚧️
hometown - Link to source

Foone🏳️‍⚧️

in reply to Foone🏳️‍⚧️ • 4 months ago • •

who thought this tileset was a good idea? because they were very wrong.

it's tiled "Carol, Cheryl and Christie" and I have no idea who those women are.

a mahjong tile set where all the tiles have been replaced with B&W scans of the faces and bodies of some swimsuit models
This entry was edited (4 months ago)
  •  Languages
  •  Search Text
  •  Share via ...
in reply to Foone🏳️‍⚧️

Foone🏳️‍⚧️
hometown - Link to source

Foone🏳️‍⚧️

in reply to Foone🏳️‍⚧️ • 4 months ago • •

that's Carol Alt, Cheryl Tiegs, and Christie Brinkley.

thanks to @ann3nova@corteximplant.comm

  •  Languages
  •  Search Text
  •  Share via ...
in reply to Foone🏳️‍⚧️

Foone🏳️‍⚧️
hometown - Link to source

Foone🏳️‍⚧️

in reply to Foone🏳️‍⚧️ • 4 months ago • •
The creator of this one is truly an evil person
A soup-themed Mahjong tileset, with tiny text the only thing that tells the nearly identical Campbell's Soup cans apart
  •  Languages
  •  Search Text
  •  Share via ...
⇧