Event picture file location
Posted: Thu Jun 11, 2015 4:33 am
where are the event picture files located, I ask as it would be nice to be able to reference them quickly when creating event triggers in my scenarios.
Unity Assets Explorer (for use in conjunction with OOB)
Download the program at http://forum.xentax.com/viewtopic.php?f=10&t=10085 - the latest version is 1.5 (despite what the author says in the opening post). It is a stand-alone executable file; that is, it runs without actually installing itself.
How to work with the program:
1. Open Assets-file in program. To do this, click "Open Assets-file" and select file (e.g., C:\Slitherine\Order of Battle - Pacific\Order of Battle - Pacific_Data\resources.assets)
2. Program will read the file and a list of files in the window. It may take a while to read all of the files contained within; there are currently 69,404 files in resources.assets.
3. To extract all the files you can use button "Extract All". This will extract all the files into a folder with the name of opened assets-file ("resources"). You don't want to Extract All, really, unless you plan to spend a large amount of time waiting.
4. To extract a single file, select it in the list, click the right mouse button and choose "Extract This File". Use the search box to find the name of the picture you are looking for; the file names are shown on the image available here: http://the-artistocrats.com/files/Modding/events.jpg
5. To convert TEX-files to DDS-files (when extracting), you must checked "convert TEX to DDS". (Works with extraction of all files, and with extract a single file). This is a must, because your photo editor will recognize the DDS format but not the TEX format.
6. Open the DDS file in a photo editor like paint.net. It should open normally and the picture will be visible and be in the correct size of 512 x 415 pixels.
7. File, Save As the picture in PNG format if you are using the picture for a scenario event.
8. To import a changed DDS image back into the archive:
a) As above, extract image from the archive (with converting it into the DDS format).
b) Edit it in a photo editor. Make sure that you saved it in the right format (the same as the original), and that the file size is the size of the original file.
c) Save the modified image in the same location where the original image was extracted.
d) Find in the program window the TEX-file, click it with the right mouse button and select "Import This File from DDS". The image will be imported into assets-file in place of the original picture.
e) To save the new assets-file, click "Save as Assets-file."