ImageServer

From OuroDev
Revision as of 17:03, 13 May 2019 by BubbleWrap (talk | contribs) (Created page with "ImageServer is a command line option to the city of heroes client program that causes it to output image files from costume csv files. There are two ways to generate these fil...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

ImageServer is a command line option to the city of heroes client program that causes it to output image files from costume csv files. There are two ways to generate these files at present - use the MapServer CharInfo Mode or use the /costume_save command.

To save your costume using the command, be logged in on a level 9 user and enter the following to export your current costume.

/costume_save "absolute\path\to\file.csv"

The client takes two parameters for imageserver, in and out:

cityofheroes.exe -project coh -imageserver "absolute\path\to\in\dir" "absolute\path\to\out\dir"

You can also start imageserver in-game on *any* account (its level 0), using:

/imageserver "absolute\path\to\in\dir" "absolute\path\to\out\dir"

Once imageserver is started, it cannot be stopped until the client exits. It will continally monitor the in directory and parse any csv file that appears, so you can change costumes and save them and it will immediately parse them, or you can save them all first and it will parse the whole lot in one go when you start the imageserver.

Any csv file found in the in directory will be processed and saved as an image in the out directory.

There are two additional options:

-notga
-nojpg

The former supresses the output of TGA files in the output directory. The latter suppresses the output of JPG files ((Where? Are these in the out dir or the charinfo dir, need to check)). The CSV file itself can have parameters added to the top. ((Todo: List some examples - charinfo spits some out, find the code that handles them))