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.
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
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.
Foone🏳️⚧️
in reply to Foone🏳️⚧️ • • •This isn't to be confused with Mah Jongg by Nels Anderson.
I'm also hacking that one, but not in THIS thread.
Foone🏳️⚧️
in reply to Foone🏳️⚧️ • • •And it's all this lovely amateur pixelart so naturally I gotta collect it.
Foone🏳️⚧️
in reply to Foone🏳️⚧️ • • •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.
Foone🏳️⚧️
in reply to Foone🏳️⚧️ • • •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
Foone🏳️⚧️
in reply to Foone🏳️⚧️ • • •Foone🏳️⚧️
in reply to Foone🏳️⚧️ • • •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
Foone🏳️⚧️
in reply to Foone🏳️⚧️ • • •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.
Foone🏳️⚧️
in reply to Foone🏳️⚧️ • • •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
Foone🏳️⚧️
in reply to Foone🏳️⚧️ • • •Foone🏳️⚧️
in reply to Foone🏳️⚧️ • • •Foone🏳️⚧️
in reply to Foone🏳️⚧️ • • •Foone🏳️⚧️
in reply to Foone🏳️⚧️ • • •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
Foone🏳️⚧️
in reply to Foone🏳️⚧️ • • •Foone🏳️⚧️
in reply to Foone🏳️⚧️ • • •Foone🏳️⚧️
in reply to Foone🏳️⚧️ • • •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.
Foone🏳️⚧️
in reply to Foone🏳️⚧️ • • •that's Carol Alt, Cheryl Tiegs, and Christie Brinkley.
thanks to @ann3nova@corteximplant.comm
Foone🏳️⚧️
in reply to Foone🏳️⚧️ • • •