Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

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

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> War in the Pacific: Admiral's Edition >> Scenario Design and Modding >> RE: ARTPACK -- A WITP:AE Plane Art Repacker Page: <<   < prev  1 [2]
Login
Message << Older Topic   Newer Topic >>
RE: ARTPACK -- A WITP:AE Plane Art Repacker - 6/18/2018 11:21:10 AM   
traskott


Posts: 1546
Joined: 6/23/2008
From: Valladolid, Spain
Status: offline
Well. I got an error every time I tried to load a csv...

(in reply to traskott)
Post #: 31
RE: ARTPACK -- A WITP:AE Plane Art Repacker - 6/18/2018 9:41:00 PM   
RyanCrierie


Posts: 1461
Joined: 10/14/2005
Status: offline
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?

_____________________________


(in reply to traskott)
Post #: 32
RE: ARTPACK -- A WITP:AE Plane Art Repacker - 6/18/2018 9:47:01 PM   
RyanCrierie


Posts: 1461
Joined: 10/14/2005
Status: offline
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.




< Message edited by RyanCrierie -- 6/18/2018 9:48:30 PM >


_____________________________


(in reply to RyanCrierie)
Post #: 33
RE: ARTPACK -- A WITP:AE Plane Art Repacker - 6/18/2018 9:48:12 PM   
traskott


Posts: 1546
Joined: 6/23/2008
From: Valladolid, Spain
Status: offline
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


(in reply to RyanCrierie)
Post #: 34
RE: ARTPACK -- A WITP:AE Plane Art Repacker - 6/18/2018 9:50:06 PM   
traskott


Posts: 1546
Joined: 6/23/2008
From: Valladolid, Spain
Status: offline
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?

(in reply to traskott)
Post #: 35
RE: ARTPACK -- A WITP:AE Plane Art Repacker - 6/18/2018 9:57:18 PM   
RyanCrierie


Posts: 1461
Joined: 10/14/2005
Status: offline
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





Attachment (1)

_____________________________


(in reply to traskott)
Post #: 36
RE: ARTPACK -- A WITP:AE Plane Art Repacker - 6/18/2018 10:02:34 PM   
RyanCrierie


Posts: 1461
Joined: 10/14/2005
Status: offline
quote:

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




Attachment (1)

< Message edited by RyanCrierie -- 6/18/2018 10:03:15 PM >


_____________________________


(in reply to traskott)
Post #: 37
RE: ARTPACK -- A WITP:AE Plane Art Repacker - 6/18/2018 10:23:39 PM   
traskott


Posts: 1546
Joined: 6/23/2008
From: Valladolid, Spain
Status: offline
This is how it is in my excel. Still same message...




Attachment (1)

(in reply to RyanCrierie)
Post #: 38
RE: ARTPACK -- A WITP:AE Plane Art Repacker - 6/18/2018 10:30:39 PM   
RyanCrierie


Posts: 1461
Joined: 10/14/2005
Status: offline
Would you mind uploading your CSV inside a zip file or sending it to me via email? PM sent.

_____________________________


(in reply to traskott)
Post #: 39
RE: ARTPACK -- A WITP:AE Plane Art Repacker - 6/18/2018 10:48:23 PM   
traskott


Posts: 1546
Joined: 6/23/2008
From: Valladolid, Spain
Status: offline
email sent

(in reply to RyanCrierie)
Post #: 40
RE: ARTPACK -- A WITP:AE Plane Art Repacker - 6/19/2018 11:22:11 PM   
RyanCrierie


Posts: 1461
Joined: 10/14/2005
Status: offline
From tonight's research into programming:




Admiral Blandy is pretty....meh, to be honest. , but he's at least aggressive.

the code to generate this was:

#Stock WITP-AE has following distribution for ranks for USN:
#Admiral = 6 (Rank 31)
#ViceAdmiral = 8 (Rank 30)
#Rear Admiral = 186 (Rank 29)

while UnitNumber <= 6: #Make six US Admirals.
GeneralOfficer(out_file,UnitNumber,31,4,1) #Output File, Unit Number, Rank, Nationality, CommandType
UnitNumber = UnitNumber+1

while UnitNumber <= 15: #Make 15 US Vice Admirals.
GeneralOfficer(out_file,UnitNumber,30,4,1) #Output File, Unit Number, Rank, Nationality, CommandType
UnitNumber = UnitNumber+1

while UnitNumber <= 172: #Make 170~ US Rear Admirals.
GeneralOfficer(out_file,UnitNumber,29,4,1) #Output File, Unit Number, Rank, Nationality, CommandType
UnitNumber = UnitNumber+1

...

def GeneralOfficer(OutputFile,UnitNumber,Rank,Nationality,Command):
PoliticalPoints = 0 #Start off here for the loop.

while PoliticalPoints <= 50:
Name = ('"' + MakeUSName1920() + '"')
Rank = str(Rank) # RAND
Morale = str(randomSD(0,99,45,50)) #Lower Bound, Upper Bound, Mean, Sigma Deviation
Skill = str(randomSD(0,99,45,50)) #Lower Bound, Upper Bound, Mean, Sigma Deviation
SurfaceAction = str(randomSD(0,99,45,50)) #Lower Bound, Upper Bound, Mean, Sigma Deviation
AirAction = str(randomSD(0,99,45,50)) #Lower Bound, Upper Bound, Mean, Sigma Deviation
LandAction = str(randomSD(0,99,45,50)) #Lower Bound, Upper Bound, Mean, Sigma Deviation
Administration = str(randomSD(0,99,45,50)) #Lower Bound, Upper Bound, Mean, Sigma Deviation
Agressiveness = str(randomSD(0,99,45,50)) #Lower Bound, Upper Bound, Mean, Sigma Deviation
Nationality = str(Nationality)
Delay = str(0) # RAND
PoliticalPoints = random.randrange(50,110,5)
CommandsType = str(Command)

OutputFile.writelines


I've got a list of 1,000 first names from c.1920 for the US plus 1,236 US last names; so I can make convincing names somewhat reasonably.

Attachment (1)

_____________________________


(in reply to traskott)
Post #: 41
RE: ARTPACK -- A WITP:AE Plane Art Repacker - 6/20/2018 12:42:01 AM   
Dili

 

Posts: 4708
Joined: 9/10/2004
Status: offline
That would be great for German, Italians and other nationalities for pilots.

(in reply to RyanCrierie)
Post #: 42
RE: ARTPACK -- A WITP:AE Plane Art Repacker - 6/20/2018 1:23:47 AM   
RyanCrierie


Posts: 1461
Joined: 10/14/2005
Status: offline
quote:

ORIGINAL: Dili

That would be great for German, Italians and other nationalities for pilots.


MEIN FUHRER...I CAN WALK?




Attachment (1)

_____________________________


(in reply to Dili)
Post #: 43
RE: ARTPACK -- A WITP:AE Plane Art Repacker - 6/20/2018 2:26:29 AM   
Dili

 

Posts: 4708
Joined: 9/10/2004
Status: offline
I suppose some are about to commit harakiri looking at their morale and poor skill :)

I already have some real commanders and pilots but most of the names would have to be invented,before this i was think just A.(name) , B.(Name) etc so i could have 23 or 26 per name just changing the first initial, but your thing opens other possibilities.

(in reply to RyanCrierie)
Post #: 44
RE: ARTPACK -- A WITP:AE Plane Art Repacker - 6/20/2018 7:19:24 AM   
RichardAckermann

 

Posts: 271
Joined: 12/4/2015
Status: offline
A list of names for other nations would be helpful for me, too.

(in reply to Dili)
Post #: 45
RE: ARTPACK -- A WITP:AE Plane Art Repacker - 6/20/2018 7:38:57 AM   
traskott


Posts: 1546
Joined: 6/23/2008
From: Valladolid, Spain
Status: offline
Poor Ruprecht Weber, morale 3...

Amazing work btw :)

(in reply to RichardAckermann)
Post #: 46
RE: ARTPACK -- A WITP:AE Plane Art Repacker - 6/23/2018 1:47:01 AM   
RyanCrierie


Posts: 1461
Joined: 10/14/2005
Status: offline
This may not look like much, but this is an autogenerated CSV file loaded with WITPLoad-AE.

while UnitNumber <= 150: #Make 100 US Cruisers.
#UNIT NUMBER NOT RANDOMLY GENERATED
MakeShip(out_file,UnitNumber,AmericanCruiserNames, 419) #Output File, Unit Number, Rank, Nationality, CommandType
UnitNumber = UnitNumber+1





Attachment (1)

_____________________________


(in reply to traskott)
Post #: 47
RE: ARTPACK -- A WITP:AE Plane Art Repacker - 6/23/2018 5:29:07 AM   
Dili

 

Posts: 4708
Joined: 9/10/2004
Status: offline
Maybe i missed but Ryan how to add to existing database without erasing what already exists?

(in reply to RyanCrierie)
Post #: 48
RE: ARTPACK -- A WITP:AE Plane Art Repacker - 6/23/2018 5:47:00 PM   
RyanCrierie


Posts: 1461
Joined: 10/14/2005
Status: offline
quote:

ORIGINAL: RichardAckermann

A list of names for other nations would be helpful for me, too.


The file attached to this post includes:

US City Names (246 names) for Cruisers
Civil War Battles (48 names) for Carriers/etc
Old Navy Names (38 names) for Battlecruisers/Carriers, etc
Revolutionary War Battles (23 names) for Carriers/etc
US River Names (175 names) for frigates, or whatever
US Sub Names (304 names) for submarines.

German Names (449 first, 2,232 last)
French Names (646 first, 918 last)
Italian Names (124 first, 231 last)
Chinese Names (130 last)
Japanese Names (1,087 first, 613 last)
American Names: (1,354 first, 5,545 last)

Attachment (1)

_____________________________


(in reply to RichardAckermann)
Post #: 49
RE: ARTPACK -- A WITP:AE Plane Art Repacker - 6/24/2018 8:11:01 AM   
RichardAckermann

 

Posts: 271
Joined: 12/4/2015
Status: offline
Most excellent! Many thanks for it.

(in reply to RyanCrierie)
Post #: 50
RE: ARTPACK -- A WITP:AE Plane Art Repacker - 7/4/2018 2:40:04 PM   
RyanCrierie


Posts: 1461
Joined: 10/14/2005
Status: offline
Wandered off due to internet connection problems and started looking at making a unified device list.

Took a ballistics engine I put together from an old 1982 WARSHIPS international BASIC program together with a Thompson F Formula Ballistics formula; and well....

From reading around elsewhere in the forum (and my own investigation using the ballistics program), the values in WITP are for side armor (0 degree obliquity) penetration at about 5000 meters.

The difference in penetration values between larger caliber guns and small caliber guns is not because big guns are computed at 5000m and the small ones at 1000 meters...

...its because smaller caliber guns by WWII did not actually have specific AP shells assigned/designed for them -- they were mostly (as in the case of 5"/38) shells designated AAC (Anti-Aircraft Common), Common, and Special Common -- projectiles designed to provide the destroyer/small craft fleet with an "average" projectile that could be used for Anti-Aircraft Action, Surface Bombardment Action, and Anti-Surface Action -- via simply changing the fuze -- at the cost of pure AP penetration.





< Message edited by RyanCrierie -- 7/4/2018 2:41:16 PM >


_____________________________


(in reply to RichardAckermann)
Post #: 51
RE: ARTPACK -- A WITP:AE Plane Art Repacker - 7/4/2018 2:52:00 PM   
Dili

 

Posts: 4708
Joined: 9/10/2004
Status: offline
Ryan are you aware of Nathan Okun facehard and several other application and his research? http://navweaps.com/index_nathan/index_nathan.php

I employed Facehard for my calc.

(in reply to RyanCrierie)
Post #: 52
RE: ARTPACK -- A WITP:AE Plane Art Repacker - 7/4/2018 4:43:40 PM   
RyanCrierie


Posts: 1461
Joined: 10/14/2005
Status: offline
Yes, I'm aware of FACEHARD; I downloaded it and tried it out. But it was a little bit too complicated.

My rolled app can munch on CSV files and then spit out CSV files, like so:

Making generating large numbers of data easier.

I'm still thinking out accuracy.




Attachment (1)

< Message edited by RyanCrierie -- 7/4/2018 4:45:27 PM >


_____________________________


(in reply to Dili)
Post #: 53
RE: ARTPACK -- A WITP:AE Plane Art Repacker - 7/4/2018 5:02:43 PM   
RyanCrierie


Posts: 1461
Joined: 10/14/2005
Status: offline
The last time I was messing around with my ballistics handrolled program, I got this for the 20mm Oerlikon:

Vertical: Altitude in meters
Horizontal: Range in meters from firing point.

Grey line: 1.5 Second Time of flight for 20mm Oerlikon round
Orange: 5 second Time of flight for 20mm Oerlikon round
Blue Line: Ballistic Limit for 20mm Oerlikon round

It seems that TOF is key for implementing "effective AA ceiling"

BTW; 2000m = 6561.68 feet -- in WITP-AE, the ceiling of 20mm Oerlikon is 6200 feet.






Attachment (1)

_____________________________


(in reply to RyanCrierie)
Post #: 54
RE: ARTPACK -- A WITP:AE Plane Art Repacker - 7/4/2018 9:01:38 PM   
Dili

 

Posts: 4708
Joined: 9/10/2004
Status: offline
Wouldn't gravity certainly make more difference in range vs height(altitude)?


< Message edited by Dili -- 7/4/2018 9:02:45 PM >

(in reply to RyanCrierie)
Post #: 55
RE: ARTPACK -- A WITP:AE Plane Art Repacker - 7/4/2018 10:39:50 PM   
RyanCrierie


Posts: 1461
Joined: 10/14/2005
Status: offline
Dili, this is an official representation of Japanese Anti-Aircraft Envelopes from U.S. Naval Technical Mission To Japan - U.S. Naval Technical Mission to Japan report O-1, O-44




You can see that it curves like mine, albeit a bit more crudely.

The reason for the curves is this:

At 0 meters range, the gun is firing 90 degrees straight up; the shell is going up until gravity halts it's motion and it begins to fall back to earth. That's why the shortest range has the highest altitude for ballistic performance limit.

Firing the gun at say, 85 degrees means that it doesn't go up as high as the 90 degree shot, but it has greater horizontal range before the shot stops going up and falls back to earth.

The reason for the curve curving back after the "halfway" point is because the gun is now firing much closer to the horizontal -- the trajectory of the shell does not go up as high before it falls back to earth -- at 1 degree elevation, the maximum altitude reached before gravity starts pulling the shell down is not very high.


Attachment (1)

< Message edited by RyanCrierie -- 7/4/2018 10:40:04 PM >


_____________________________


(in reply to Dili)
Post #: 56
Page:   <<   < prev  1 [2]
All Forums >> [New Releases from Matrix Games] >> War in the Pacific: Admiral's Edition >> Scenario Design and Modding >> RE: ARTPACK -- A WITP:AE Plane Art Repacker Page: <<   < prev  1 [2]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

2.234