ARTPACK -- A WITP:AE Plane Art Repacker
Moderators: wdolson, MOD_War-in-the-Pacific-Admirals-Edition
RE: ARTPACK -- A WITP:AE Plane Art Repacker
[&o][&o][&o][&o][&o][&o]
- RyanCrierie
- Posts: 1321
- Joined: Fri Oct 14, 2005 7:15 am
- Contact:
RE: ARTPACK -- A WITP:AE Plane Art Repacker
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.
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
[:)] Thanks!!!
RE: ARTPACK -- A WITP:AE Plane Art Repacker
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?
Thank you for your efforts and contributions.
You dont happen to have Pandora's Box Mod for WPO, do you?
- RyanCrierie
- Posts: 1321
- Joined: Fri Oct 14, 2005 7:15 am
- Contact:
RE: ARTPACK -- A WITP:AE Plane Art Repacker
DFN, I have:
WPO Cautionaries v1.5
WPO Great Pacific War v1.1
But not Pandora's Box Mod.
Does anyone else have it?
WPO Cautionaries v1.5
WPO Great Pacific War v1.1
But not Pandora's Box Mod.
Does anyone else have it?
- RyanCrierie
- Posts: 1321
- Joined: Fri Oct 14, 2005 7:15 am
- Contact:
RE: ARTPACK -- A WITP:AE Plane Art Repacker
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
- Attachments
-
- Nimitz_Example.gif (7.96 KiB) Viewed 376 times
RE: ARTPACK -- A WITP:AE Plane Art Repacker
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.
Member: Treaty, Reluctant Admiral and Between the Storms Mod Team.
- RyanCrierie
- Posts: 1321
- Joined: Fri Oct 14, 2005 7:15 am
- Contact:
RE: ARTPACK -- A WITP:AE Plane Art Repacker
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.
- RyanCrierie
- Posts: 1321
- Joined: Fri Oct 14, 2005 7:15 am
- Contact:
RE: ARTPACK -- A WITP:AE Plane Art Repacker
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.
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
Well. I got an error every time I tried to load a csv...[:(]
- RyanCrierie
- Posts: 1321
- Joined: Fri Oct 14, 2005 7:15 am
- Contact:
RE: ARTPACK -- A WITP:AE Plane Art Repacker
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?
What CSV are you trying to load and getting errors?
I assume you are trying to use PLANE_PACK.exe?
- RyanCrierie
- Posts: 1321
- Joined: Fri Oct 14, 2005 7:15 am
- Contact:
RE: ARTPACK -- A WITP:AE Plane Art Repacker
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.
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
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
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
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?
If I edited PLANEPACK_WITP-AE_Allied.csv can I remake the Art? Doesn't work with the blank_allied.csv?
- RyanCrierie
- Posts: 1321
- Joined: Fri Oct 14, 2005 7:15 am
- Contact:
RE: ARTPACK -- A WITP:AE Plane Art Repacker
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
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
- Attachments
-
- PythonIssue.gif (61.45 KiB) Viewed 373 times
- RyanCrierie
- Posts: 1321
- Joined: Fri Oct 14, 2005 7:15 am
- Contact:
RE: ARTPACK -- A WITP:AE Plane Art Repacker
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
- Attachments
-
- Changeable.gif (33.08 KiB) Viewed 373 times
RE: ARTPACK -- A WITP:AE Plane Art Repacker
This is how it is in my excel. Still same message...
- Attachments
-
- screenshot.jpg (189.82 KiB) Viewed 373 times
- RyanCrierie
- Posts: 1321
- Joined: Fri Oct 14, 2005 7:15 am
- Contact:
RE: ARTPACK -- A WITP:AE Plane Art Repacker
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
email sent