Page 2 of 3

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

Posted: Tue Jun 05, 2018 5:09 am
by DFN
[&o][&o][&o][&o][&o][&o]

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

Posted: Tue Jun 05, 2018 7:06 pm
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.

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

Posted: Wed Jun 06, 2018 5:28 am
by traskott
[:)] Thanks!!!

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

Posted: Wed Jun 06, 2018 10:19 am
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?

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

Posted: Wed Jun 06, 2018 4:59 pm
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?


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

Posted: Fri Jun 08, 2018 9:21 pm
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

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

Posted: Sat Jun 09, 2018 7:56 pm
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.

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

Posted: Sun Jun 10, 2018 7:39 pm
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.

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

Posted: Tue Jun 12, 2018 10:18 pm
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.

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

Posted: Thu Jun 14, 2018 9:20 am
by traskott
.

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

Posted: Mon Jun 18, 2018 8:21 am
by traskott
Well. I got an error every time I tried to load a csv...[:(]

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

Posted: Mon Jun 18, 2018 6:40 pm
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?

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

Posted: Mon Jun 18, 2018 6:47 pm
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.



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

Posted: Mon Jun 18, 2018 6:48 pm
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


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

Posted: Mon Jun 18, 2018 6:50 pm
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?

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

Posted: Mon Jun 18, 2018 6:57 pm
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

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

Posted: Mon Jun 18, 2018 7:02 pm
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

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

Posted: Mon Jun 18, 2018 7:23 pm
by traskott
This is how it is in my excel. Still same message...

Image

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

Posted: Mon Jun 18, 2018 7:30 pm
by RyanCrierie
Would you mind uploading your CSV inside a zip file or sending it to me via email? PM sent.

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

Posted: Mon Jun 18, 2018 7:48 pm
by traskott
email sent