Wing Commander Toolbox

Discussion in 'Fan Projects & Editing' started by UnnamedCharacter, Feb 26, 2015.

  1. Shades2585

    Shades2585 none

    Messages:
    591
    Likes Received:
    21
    Trophy Points:
    26,185
    Cool, Thanks! :D
     
  2. Shades2585

    Shades2585 none

    Messages:
    591
    Likes Received:
    21
    Trophy Points:
    26,185
    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.
     
  3. delMar

    delMar Rear Admiral

    Messages:
    274
    Likes Received:
    43
    Trophy Points:
    22,635
    Gender:
    Male
    Location:
    Austria
    What's the console output? Can't try myself right now, though
     
  4. Shades2585

    Shades2585 none

    Messages:
    591
    Likes Received:
    21
    Trophy Points:
    26,185
    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.
     
  5. Stinger

    Stinger Vice Admiral

    Messages:
    823
    Likes Received:
    93
    Trophy Points:
    28,685
    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.

    Do this:
    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.
     
    Last edited: Mar 29, 2015
  6. Shades2585

    Shades2585 none

    Messages:
    591
    Likes Received:
    21
    Trophy Points:
    26,185
    Thanks, I'll try again next weekend when I have some free time.
     
  7. UnnamedCharacter

    UnnamedCharacter Master Chief Petty Officer

    Messages:
    91
    Likes Received:
    49
    Trophy Points:
    1,235
    Another update to the WCLibrary: added VGA image encoding support.

    See the initial post for attachment.
     
  8. Shades2585

    Shades2585 none

    Messages:
    591
    Likes Received:
    21
    Trophy Points:
    26,185
    @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?
     
  9. Stinger

    Stinger Vice Admiral

    Messages:
    823
    Likes Received:
    93
    Trophy Points:
    28,685
    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.
     

    Attached Files:

    Last edited: Apr 11, 2015
    Shades2585 likes this.
  10. Shades2585

    Shades2585 none

    Messages:
    591
    Likes Received:
    21
    Trophy Points:
    26,185
    Thanks! :D
    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.
     
  11. Stinger

    Stinger Vice Admiral

    Messages:
    823
    Likes Received:
    93
    Trophy Points:
    28,685
    One of these days I should try testing my software before distributing it...
     
  12. Quarto

    Quarto Unknown Enemy

    Messages:
    11,763
    Likes Received:
    231
    Trophy Points:
    69,385
    Location:
    Poland
    Pfft, waste of time. Why do something that your end users can do for you? :)
     
  13. UnnamedCharacter

    UnnamedCharacter Master Chief Petty Officer

    Messages:
    91
    Likes Received:
    49
    Trophy Points:
    1,235
    Another update to the WCLibrary: added compression support to the VGA image encoder.

    See first post for attachment.
     
    delMar likes this.
  14. delMar

    delMar Rear Admiral

    Messages:
    274
    Likes Received:
    43
    Trophy Points:
    22,635
    Gender:
    Male
    Location:
    Austria
    Hey @UnnamedCharacter, do you have xsd files for the xml files available?
    It would make marshalling in other languages much easier.
    Just asking
    Thanks
     
  15. Shades2585

    Shades2585 none

    Messages:
    591
    Likes Received:
    21
    Trophy Points:
    26,185
  16. UnnamedCharacter

    UnnamedCharacter Master Chief Petty Officer

    Messages:
    91
    Likes Received:
    49
    Trophy Points:
    1,235
    @delMar,

    Sorry for the slow response, but no I do not have any XML schemas; I am making this up as I go along. :)
     
  17. UnnamedCharacter

    UnnamedCharacter Master Chief Petty Officer

    Messages:
    91
    Likes Received:
    49
    Trophy Points:
    1,235
    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.
     
  18. Shades2585

    Shades2585 none

    Messages:
    591
    Likes Received:
    21
    Trophy Points:
    26,185
    Thanks for the update! :D
     
  19. UnnamedCharacter

    UnnamedCharacter Master Chief Petty Officer

    Messages:
    91
    Likes Received:
    49
    Trophy Points:
    1,235
    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.


    BRIEFING.xGA-Block000-Image000.png

    BRIEFING.xGA-Block002-Image000.png SHIP.x08-Block025-Image000.png
     
    delMar likes this.
  20. Shades2585

    Shades2585 none

    Messages:
    591
    Likes Received:
    21
    Trophy Points:
    26,185
    Interesting, I have never looked at it in EGA. It just proves how beautiful VGA really is. :D
     

Share This Page