It is currently 25 Apr 2024, 17:41
   
Text Size

Microprose PicViewer and Image Conversion Tools

Continuing Development of MicroProse's Magic: The Gathering!

Moderators: BAgate, drool66, Aswan jaguar, gmzombie, stassy, CCGHQ Admins

Microprose PicViewer and Image Conversion Tools

Postby CirothUngol » 15 Jul 2012, 02:48

Have you ever wished there was an app for viewing the proprietary .PIC image files found in the original Magic: The Gathering (and other games) from Microprose?
Or perhaps you've wanted to convert them to BitMaps so you could examine and manipulate them further?
...me too!

I've (mostly) succeeded in adding support for Magic: The Gathering to Joel "Quadko" McIntyre's Darklands PicViewer. I say "mostly" because a few of the files will still give it fits (notably Cstline1.pic, Dungeon.pic, and Magic.pic). They either look wonky or cause an out-right crash, so I'm still doing something wrong. Of course, Quadko himself didn't exactly understand the de-compression routine, so I shouldn't feel too bad. (he said that it was "greatly demystified from assembly, and I cannot seem to get the big picture of it." Me neither. ^_^)

I've pre-loaded the proper palette for all non-Shandalar images by default. It will also properly show any Shandalar .PIC files that contain palette information, and you just need to load an image containing the proper palette before viewing any that don't (the file WinBak01.pic contains a mostly-compatible palette for many of the images in the program folder, try loading that one first. The actual palette is contained in the text file TodPal.tr.). I've amended Quadko's PicFileFormat.txt file to reflect new info about the file structure and included the updated sources (they were written using Visual C++ 6.5).

I've also made a tiny app that will copy the palette information from Microprose's .PIC files and create "duel.plogpal" files for use with the Magic: the Gathering image decoding tools from CTPAX-X.
...and to get that proper Shandalar palette, I wrote an even tinier app that converts the text file TodPal.tr to a palette file for use with the same tools.

All of this is included in my updated MtG_PicTools archive below. You can also find converted BitMaps with proper palettes for all .PIC files from MtG in the \Manalink 3.0\Utilities\ folder on MediaFire, if anyone is interested. Please let me know if you have any issues using the tools.

Code: Select all
This is a list of all the Shandalar .PIC
files that contain palette information, so PicViewer 3.1
will display these images properly. Any files not on this
list will need an image with the correct palette to be
loaded before they will display properly.
All non-Shandalar images use PicViewer's default palette,
but none of them contain any palette information.

Art
Art1
Cstline
*Cstline1
Dbox
*Dungeon
*Magic
Ter
Ter1
Ter2
Ter3
Terrain
Terrain1
Tiles
Title1
Win
Win1
Wiz3
Wizdude2
Wizdude
Wizz1

5thwiz
Advfac64
Advinter
Advinter1024
Advinter800
Buycards
Cavebkgd
Celeb
Cityinfo
Clueback
Dung_Bd
Face
Infobar
Lodedul2
Mapbttns
Menopt
Menu2
Menu3
Menu4
Menubak
Namepick
Pedstls
Prdblk
Prdblu
Prdfrma
Prdfrmb
Prdgrn
Prdrd
Prdred
Prdwht
Prdwt
Statbak
Status
Title
Uth-arz
Uthdar
Winbak01
Wingame

*These files either display improperly
 or will cause PicViewer to crash.
Edit:
Updated file to correct the icons on my tiny apps; the transparency was incorrect.
Attachments
MtG_PicTools_v3.zip
Viewing and Conversion Tools for Microprose's proprietary .PIC image files.
(611.41 KiB) Downloaded 1297 times
"I thought the day had brought enough horrors for our ragged band, but the night was far worse."
-Lucilde Fiksdotter


Shandalar 2012 Revisited
Magic: The Gathering Abandonware
User avatar
CirothUngol
Programmer
 
Posts: 431
Joined: 13 May 2009, 21:34
Location: Gulf Coast, Texas, USA
Has thanked: 106 times
Been thanked: 107 times

Re: Microprose PicViewer and Image Conversion Tools

Postby luckylavs » 12 Jun 2013, 19:47

Hi CirothUngol,

I have a question regarding whether it would be possible to replace an image of a specific magic card with a different image entirely (a custom image that I have created, for example), using these tools.

As I have gathered from your description above, these tools can be used to extract .pic images and change them into .bmp format. If I custom-edit the .bmp, then with these tools, will it be possible to convert the edited .bmp back to a .pic format for the game to be able to read it?

I'm also a little confused about what is going on with palettes. I have inferred from the above statements that before you can load an image, you must first load the proper palette. The proper palette is already preloaded for all non-Shandalar images. For Shandalar images, certain images already contain the palette information inside them, while others you have to locate and load the palette first-- and that the tiny app or the tinier app (not sure which) is used for this purpose.

Is that correct?

Thanks

EDIT 7/31 -- Nevermind the above question. The card images are .jpgs -- very easy to replace.
luckylavs
 
Posts: 25
Joined: 10 Jun 2013, 19:08
Has thanked: 0 time
Been thanked: 0 time


Return to ManaLink 3.0

Who is online

Users browsing this forum: No registered users and 22 guests


Who is online

In total there are 22 users online :: 0 registered, 0 hidden and 22 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 22 guests

Login Form