WBimager

The ability to display image and text while playing Warbirds has been there for a long time through the utilization of the game's scripting. However, scripting was designed for making offline missions and not necessarily for online use. While possible to use online, it is very tedious. This is where WBimager comes in.

WBimager is a very simple application that sets up the scripts you will need to view files. So, a user puts all the files they want to view into a 'playerfiles' folder and then runs the program before playing the game. Once in the game they merely make a dotfile request and then pick the file to view from a list. This could be used to view orders, maps, etc.

Download Option #1: Written in VB.net version 2. Most XP machines have version 1 installed. You may have to do a Windows Update, pick custom, and choose to install .Net version 2. It takes a little bit of time to install.

Download Option #2: This one is written in VB 5.0 and will work on most Windows machines.

Option #3: (see below if you cannot meet these requirements)

Installation
  • Unzip the file, from above, into your root WB folder (the one with the WB3.exe in it). This should create a folder named 'playerfiles' with some files in it.
  • Put any TGA or TXT files you want to be able to view from in the game into the 'playerfiles' folder.
  • Double click on WBimager.exe located in the 'playerfiles' folder. You may see a flash and some files created as it does its thing.
  • Once in the game, at anytime, type ".dotfile pf.dtf" without the quotes. 'pf' stands for player files.
  • A list box will come up and allow you to choose which file to view, click on one and choose OK.
  • The file is shown inside a Warbirds styled window. When you are done viewing it, click OK or hit the enter key to close it.
The only time you need to rerun WBimager.exe is if you add, delete, or rename files, or if you change the dimensions of an image.

Write the Scripts Yourself

All WBimager does is write Warbirds scripting code for you. If you are unable to use WBimager, you could always write your own scripting. In this file, wbiscripts.zip, I have an example of some scripts you can write to view images. Unzip it into your root Warbirds folder. Using a text editor, edit the playerfiles.lst file in 'playerfiles' and create the necessary files in the 'support' directory. Try to emulate what I did with readme.txt and test.tga. Note that viewing TXT files is slightly different from TGA files. Also note the numbers at the end of the displayfile command. Basically the last 2 numbers are the width and height of the window with the image. You want to add about 150 to the actual TGA dimensions to make sure the window is big enough to hold the image. Again, really try to copy what I have done in this example to view other images.

Extra Credit

There is a way to view images inline with text files. The key is to have a TXT file in the 'playerfiles' folder along with a TGA image. In the TXT file use the following code to place the image in the text:
    [IMG]playerfiles\image.tga[/IMG]
After running WBimager you can bring up the TXT file in the viewer and it will also show the image embedded in it.

back