ARTPACK -- A WITP:AE Plane Art Repacker

Please post here for questions and discussion about scenario design, art and sound modding and the game editor for WITP Admiral's Edition.

Moderators: wdolson, MOD_War-in-the-Pacific-Admirals-Edition

DFN
Posts: 15
Joined: Sun May 07, 2017 1:56 pm

RE: ARTPACK -- A WITP:AE Plane Art Repacker

Post by DFN »

[&o][&o][&o][&o][&o][&o]
User avatar
RyanCrierie
Posts: 1321
Joined: Fri Oct 14, 2005 7:15 am
Contact:

RE: ARTPACK -- A WITP:AE Plane Art Repacker

Post by RyanCrierie »

Block IVC -- 105 MB ZIP

NOTE: If you downloaded Block IV, Block IVA, Block IVB, redownload again, Block IVC has some improved ship ripping algos.

What's New

Minor changes to the PLANE_RIP.exe program, it now uses underscores _ as a sorting method. For example, if you enter Planes_WITP-AE as the name of the CSV file, it will strip everything before _ so that the outputted dump files will have JAP A6M2 WITP-AE for names, instead of JAP A6M2 Planes_WITP-AE. This was made necessary by a new program...

SHIP_RIP. It looks inside ART for files inside:

AlliedShip_Back
AlliedShip_Transp
JapShip_Back
JapShipShills_transp

and then rips them, using a WITPLOADAE.exe csv dump file to name them correctly.

A premade WITP-AE Scenario 1 dump file is available as Ships_WITP-AE.csv. It uses the underscore strip method -- it will strip everything before _ so that the outputted dump files will have AUS CA Australia 1941-12 WITP-AE for names, instead of AUS CA Australia 1941-12 Ships_WITP-AE.

There's one big problem with my sorting algorithm though. It rips each individual ship class, and so there's a TON of duplicate art files looking exactly the same; because there was no unique image ID for every class refit.

EDIT: I created an algorithm that took advantage of the fact that ship classes were grouped together, it checks to see if a bitmap has been reused by a prior line; if so, it skips that line. This reduced my dump from 1,600+ files to 1,000~ files; still a bit more than the 899 official files; probably because there are duplicates elsewhere that are not contiguous. I also slightly modified the filename generation code to pad months to two zeroes, e.g. May is 05 not 5, which makes sorting in MS Windows easier.

EDIT II: I improved the algorithm so that it skips a line if it can't find artwork for it; improving rip-dumps of partial shipsets, like those distributed via mods.
User avatar
traskott
Posts: 1571
Joined: Mon Jun 23, 2008 8:30 am
Location: Valladolid, Spain

RE: ARTPACK -- A WITP:AE Plane Art Repacker

Post by traskott »

[:)] Thanks!!!
DFN
Posts: 15
Joined: Sun May 07, 2017 1:56 pm

RE: ARTPACK -- A WITP:AE Plane Art Repacker

Post by DFN »

RyanCrierie - paving the way to a unified aircraft and ship database since 2009?!?!?


Thank you for your efforts and contributions.

You dont happen to have Pandora's Box Mod for WPO, do you?
User avatar
RyanCrierie
Posts: 1321
Joined: Fri Oct 14, 2005 7:15 am
Contact:

RE: ARTPACK -- A WITP:AE Plane Art Repacker

Post by RyanCrierie »

DFN, I have:

WPO Cautionaries v1.5
WPO Great Pacific War v1.1

But not Pandora's Box Mod.

Does anyone else have it?

User avatar
RyanCrierie
Posts: 1321
Joined: Fri Oct 14, 2005 7:15 am
Contact:

RE: ARTPACK -- A WITP:AE Plane Art Repacker

Post by RyanCrierie »

Preliminary Mock-up of some core elements for SHIP PACK underway.
1) Childress Clear Sky
2) Childress Scattered Clouds
3) Childress Overcast Sky
4) Childress Twilight Sky

Choose Sky Type: 2

Input Ship Art Name: NIMITZ

1) Stock WITP-AE Sea
2) Mediterranean Sea
3) North Atlantic

Choose Sea Type: 3

Choose FLAG: Flag_Italy

Image
Attachments
Nimitz_Example.gif
Nimitz_Example.gif (7.96 KiB) Viewed 377 times
User avatar
John 3rd
Posts: 17459
Joined: Thu Sep 08, 2005 5:03 pm
Location: La Salle, Colorado

RE: ARTPACK -- A WITP:AE Plane Art Repacker

Post by John 3rd »

That is a fantastic work. I've always shied away from working to implement the new air frames we created with the whole air art pack. You've made a great beginning in helping here. Well done.
Image

Member: Treaty, Reluctant Admiral and Between the Storms Mod Team.
User avatar
RyanCrierie
Posts: 1321
Joined: Fri Oct 14, 2005 7:15 am
Contact:

RE: ARTPACK -- A WITP:AE Plane Art Repacker

Post by RyanCrierie »

I refined Plane and Ship Dumping by including the file hashes for all the "official" stock stuff, so that you have an option to only dump "non stock" stuff -- i.e. modded stuff, because, especially with ship sides/alphas, so many modders Cut N paste their whole folder for distribution with their mod to make sure they don't miss anything.
User avatar
RyanCrierie
Posts: 1321
Joined: Fri Oct 14, 2005 7:15 am
Contact:

RE: ARTPACK -- A WITP:AE Plane Art Repacker

Post by RyanCrierie »

Block V Basic Files -- 44~ MB ZIP
Block V Artwork Files -- 82~ MB ZIP

I'm still refining/adding to/cleaning the artwork files, so I wouldn't go and use them for anything definitive yet.
User avatar
traskott
Posts: 1571
Joined: Mon Jun 23, 2008 8:30 am
Location: Valladolid, Spain

RE: ARTPACK -- A WITP:AE Plane Art Repacker

Post by traskott »

.
User avatar
traskott
Posts: 1571
Joined: Mon Jun 23, 2008 8:30 am
Location: Valladolid, Spain

RE: ARTPACK -- A WITP:AE Plane Art Repacker

Post by traskott »

Well. I got an error every time I tried to load a csv...[:(]
User avatar
RyanCrierie
Posts: 1321
Joined: Fri Oct 14, 2005 7:15 am
Contact:

RE: ARTPACK -- A WITP:AE Plane Art Repacker

Post by RyanCrierie »

Traskott, sorry for taking so long to get back to you; my internet was down for a few days then I was away for the weekend.

What CSV are you trying to load and getting errors?

I assume you are trying to use PLANE_PACK.exe?
User avatar
RyanCrierie
Posts: 1321
Joined: Fri Oct 14, 2005 7:15 am
Contact:

RE: ARTPACK -- A WITP:AE Plane Art Repacker

Post by RyanCrierie »

Here's how to use PLANE_PACK.exe:

PLANEPACK_WITP-AE_Allied.csv
and
PLANEPACK_WITP-AE_Axis.csv

are the "Stock" WITP AE planepacks.

Within that CSV file, the only columns that are actually used by the program are:

Column A (SLOT ID)
and
Column D (FILENAME)

The rest are for descriptive fluff (DESCRIPTION and NATIONALITY) to help you remember what that slot was used for years later when you return to it.

PLANEPACK is hardcoded to look in the PLANES folder, to reduce the length of paths for filenames.

If you're having problems with PLANEPACK, create a batch file:

"PLANE_PACK_Hold_On_Exit - Copy.bat"

and fill it with this command

"C:\WINDOWS\system32\cmd.exe /K PLANE_PACK.exe"

This will prevent the command line window from closing if PLANEPACK develops an error. I use it myself.


User avatar
traskott
Posts: 1571
Joined: Mon Jun 23, 2008 8:30 am
Location: Valladolid, Spain

RE: ARTPACK -- A WITP:AE Plane Art Repacker

Post by traskott »

First: Thank you :)

This is the message I got:

Traceback (most recent call last):
File "PLANE_PACK.py", line 55, in <module>
KeyError: 'Slot_ID'
Failed to execute script PLANE_PACK

User avatar
traskott
Posts: 1571
Joined: Mon Jun 23, 2008 8:30 am
Location: Valladolid, Spain

RE: ARTPACK -- A WITP:AE Plane Art Repacker

Post by traskott »

Sorry, didn't see the next answer:

If I edited PLANEPACK_WITP-AE_Allied.csv can I remake the Art? Doesn't work with the blank_allied.csv?
User avatar
RyanCrierie
Posts: 1321
Joined: Fri Oct 14, 2005 7:15 am
Contact:

RE: ARTPACK -- A WITP:AE Plane Art Repacker

Post by RyanCrierie »

My dear traskott, I have reproduced it.

The highlighted column in yellow needs to contain slot numbers 1, 2, 3, 4, 5 ...etc

It's how the program knows which slot to place the artwork in.

Trying to run it without the #s in the slot ID's makes this appear:

Traceback (most recent call last):
File "PLANE_PACK.py", line 55, in <module>
KeyError: 'Slot_ID'
Failed to execute script PLANE_PACK


Image
Attachments
PythonIssue.gif
PythonIssue.gif (61.45 KiB) Viewed 374 times
User avatar
RyanCrierie
Posts: 1321
Joined: Fri Oct 14, 2005 7:15 am
Contact:

RE: ARTPACK -- A WITP:AE Plane Art Repacker

Post by RyanCrierie »

ORIGINAL: traskott

Sorry, didn't see the next answer:

If I edited PLANEPACK_WITP-AE_Allied.csv can I remake the Art? Doesn't work with the blank_allied.csv?

Blank_Allied.csv should work --

I've highlighted:

non changeable (program needs these to function) fields in RED
changeable (you can change them) fields in GREEN

Image
Attachments
Changeable.gif
Changeable.gif (33.08 KiB) Viewed 374 times
User avatar
traskott
Posts: 1571
Joined: Mon Jun 23, 2008 8:30 am
Location: Valladolid, Spain

RE: ARTPACK -- A WITP:AE Plane Art Repacker

Post by traskott »

This is how it is in my excel. Still same message...

Image
Attachments
screenshot.jpg
screenshot.jpg (189.82 KiB) Viewed 374 times
User avatar
RyanCrierie
Posts: 1321
Joined: Fri Oct 14, 2005 7:15 am
Contact:

RE: ARTPACK -- A WITP:AE Plane Art Repacker

Post by RyanCrierie »

Would you mind uploading your CSV inside a zip file or sending it to me via email? PM sent.
User avatar
traskott
Posts: 1571
Joined: Mon Jun 23, 2008 8:30 am
Location: Valladolid, Spain

RE: ARTPACK -- A WITP:AE Plane Art Repacker

Post by traskott »

email sent
Post Reply

Return to “Scenario Design and Modding”