PyMS
v1.2.1

By: poiuy_qwert
  1. Introduction
  2. PyGRP v3.8
  3. PyPAL v1.5
  4. PyLO v1.6
  5. PyTBL v1.7
  6. PyTRG v2.6
  7. PyDAT v1.11
  8. PyGOT v1.2
  9. PyAI v2.4
  10. PyICE v1.8
  11. PyFNT v1.2
  12. PyTILE v1.3
  13. PyPCX v1.0
  14. PyMPQ v1.0
PyGRP v3.8

PyGRP converts StarCraft GRP files to and from BMP files. It supports compressed and uncompressed GRP's, converting all frames to and from a single BMP file, and reading RLE compressed BMP files.
  1. Changes
  2. Commandline Options
  3. Example Usage


Changes^

PyGRP v3.8 PyGRP v3.7 PyGRP v3.6 PyGRP v3.5 PyGRP v3.4 PyGRP v3.3 PyGRP v3.2 PyGRP v3.1 PyGRP v3.0 PyGRP v2.1 PyGRP v2.0 PyGRP v1.5 PyGRP v1.2 PyGRP v1.1 PyGRP v1.0

Commandline Options^

Option Long Option Description
-h --help Display the command line format and options with small descriptions.
-p <pal> --palette <pal> Tells the program to use the palette <pal> from the Palettes folder (The file name can but doesn't need to have the ".pal" extension), and be wrapped in quotes if it contains spaces. Default: units.pal
-g --grptobmp Tells the program you want to convert from GRP to BMP. This will make <inp> be the GRP file, and [out] will be the name used for the BMP's. When the BMP's are saved they will be "[out] ###.bmp" where ### is the frame number zero padded to the left (so 1 would be 001). If [out] is not supplied it will use the file name of the <inp> file. Default
-b --bmptogrp Tells the program you want to convert a list of BMP's to a GRP. This will make <inp> be the first BMP in the frame list, and [out] will be the GRP file. The BMP files should be formatted like "name ***.bmp", where name is a name, and *** is the frame number (so frame 0 of "marine.grp" could be "marine 000.bmp" or "marine 0.bmp"). If [out] is not supplied it will use the name part of the BMP files as the GRP file name (frame number not included).
-u --grpuncompress Tells the program you want the GRP used to be uncompressed (used both when converting from GRP to BMP's, or BMP's to GRP). Most GRP files are supposed to be compressed, but StarCraft sometimes needs them to be uncompressed (for example the grp 'game\icons.grp'). If your GRP wont convert to BMP's, try using this option. If your GRP only converts with this option, remember to convert the BMP's back with this option.
--gui Opens a file with the GUI


Example Usage^

Here is an example of converting marine.grp to a bmp, then back to a grp:
Command Line
python PyGRP.pyw marine.grp
   ..edit images..
python PyGRP.pyw -b "marine 000.grp"

Some GRP's are uncompressed, for example 'game\icons.grp':
Command Line
python PyGRP.pyw -u "C:\Program Files\StarCraft\My Mod\mpq\game\icons.grp" myicons
   ..edit images..
python PyGRP.pyw -u -b "C:\Program Files\StarCraft\My Mod\mpq\game\myicons 000.bmp" icons

The default palette is 'units.pal'. If you are converting something that uses another palette, like Dark Swarm, you would do something like:
Command Line
python PyGRP.pyw -p gfire.pal Project\dswarm.grp
   ..edit images..
python PyGRP.pyw -p gfire.pal -b "Project\dswarm 000.bmp"




« Introduction PyGRP PyPAL »