Discussion in 'Fan Projects & Editing' started by UnnamedCharacter, Feb 26, 2015.
I must not be awake.
I've unziped this in my gamedat directory, and in command prompt I typed [image.exe -extract-all briefing.vga] in many different ways and no joy. What am I doing wrong?
Thanks for anyone's help.
What's the console output? Can't try myself right now, though
I've tried it may different ways and had many different errors: Multiple input files specified, bad image offset, no output file specified for -o, no such file or directory.
That's my bad for not being clear.
The image executable works on image sets that have already been extracted from the resource archives. The briefing.vga file is a resource archive, not an image set. Before you can extract any images, you'll need to extract the resources from the archive. That's where the resource executable comes in.
resource -extract-all briefing.vga -o briefing
This will create a new directory called briefing; inside, you'll see a bunch of numbered files without any extensions. Those are the individual resources from briefing.vga. It happens that all of those are image sets. For each one, you can do this:
image -extract-all 0 -prefix 0_
That will pull all of the images out of the file named 0; each image will be named 0_0.png, 0_1.png, etc.
Thanks, I'll try again next weekend when I have some free time.
Another update to the WCLibrary: added VGA image encoding support.
See the initial post for attachment.
@Stinger I was able to get the resource to extract but it did not create a directory I had to create it myself.
The image, however, keeps giving me "Error: Class not registered"
What am I doing wrong?
What operating system are you using?
Edit: Never mind, I found the issue; I was unwittingly using CLSID_WICImagingFactory2, which was introduced Windows 8. I only needed CLSID_WICImagingFactory1, which is available in XP SP2. I've rebuilt the image program and attached it to this post.
Just to note I was using the Command Prompt in Win7-64bit.
Image.exe doesn't put the pictures in the directory specified but it does place the images in the user directory.
One of these days I should try testing my software before distributing it...
Pfft, waste of time. Why do something that your end users can do for you?
Another update to the WCLibrary: added compression support to the VGA image encoder.
See first post for attachment.
Hey @UnnamedCharacter, do you have xsd files for the xml files available?
It would make marshalling in other languages much easier.
Keep up the great work @UnnamedCharacter! I'd love to see more more of this!
Sorry for the slow response, but no I do not have any XML schemas; I am making this up as I go along.
It has been a while since an update, but work on the library has continued. This update includes support for more files: COCKPIT and MID. It also adds writing support for the following files: PAL (GAME), PCSHIP, and SHIPTYPE.
See first post for the complete list new features and file attachment.
Thanks for the update!
The latest update includes partial support for EGA and TGA image files; just for fun as there is no value in supporting these files. For the curious, here are examples comparing EGA and VGA; I did not include TGA because, visually, EGA and TGA are identical.
Interesting, I have never looked at it in EGA. It just proves how beautiful VGA really is.
Separate names with a comma.