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

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

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

Post by RyanCrierie »

From tonight's research into programming:

Image

Admiral Blandy is pretty....meh, to be honest. [:D], 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. [:D]
Attachments
ScenGen1.gif
ScenGen1.gif (116.37 KiB) Viewed 984 times
Dili
Posts: 4742
Joined: Fri Sep 10, 2004 4:33 pm

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

Post by Dili »

That would be great for German, Italians and other nationalities for pilots.
User avatar
RyanCrierie
Posts: 1327
Joined: Fri Oct 14, 2005 7:15 am
Contact:

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

Post by RyanCrierie »

ORIGINAL: Dili

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

MEIN FUHRER...I CAN WALK?

Image
Attachments
GermanNames.gif
GermanNames.gif (20.81 KiB) Viewed 983 times
Dili
Posts: 4742
Joined: Fri Sep 10, 2004 4:33 pm

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

Post by Dili »

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.
RichardAckermann
Posts: 270
Joined: Fri Dec 04, 2015 12:07 pm

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

Post by RichardAckermann »

A list of names for other nations would be helpful for me, too.
User avatar
traskott
Posts: 1574
Joined: Mon Jun 23, 2008 8:30 am
Location: Valladolid, Spain

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

Post by traskott »

Poor Ruprecht Weber, morale 3...

Amazing work btw :)
User avatar
RyanCrierie
Posts: 1327
Joined: Fri Oct 14, 2005 7:15 am
Contact:

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

Post by RyanCrierie »

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


Image
Attachments
ShipsClasses.gif
ShipsClasses.gif (52.41 KiB) Viewed 983 times
Dili
Posts: 4742
Joined: Fri Sep 10, 2004 4:33 pm

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

Post by Dili »

Maybe i missed but Ryan how to add to existing database without erasing what already exists?
User avatar
RyanCrierie
Posts: 1327
Joined: Fri Oct 14, 2005 7:15 am
Contact:

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

Post by RyanCrierie »

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)
Attachments
NamesLists.zip.zip
(48.88 KiB) Downloaded 21 times
RichardAckermann
Posts: 270
Joined: Fri Dec 04, 2015 12:07 pm

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

Post by RichardAckermann »

Most excellent! Many thanks for it.
User avatar
RyanCrierie
Posts: 1327
Joined: Fri Oct 14, 2005 7:15 am
Contact:

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

Post by RyanCrierie »

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.... [8D]

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.



Dili
Posts: 4742
Joined: Fri Sep 10, 2004 4:33 pm

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

Post by Dili »

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.
User avatar
RyanCrierie
Posts: 1327
Joined: Fri Oct 14, 2005 7:15 am
Contact:

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

Post by RyanCrierie »

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.

Image
Attachments
Test.gif
Test.gif (57.07 KiB) Viewed 983 times
User avatar
RyanCrierie
Posts: 1327
Joined: Fri Oct 14, 2005 7:15 am
Contact:

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

Post by RyanCrierie »

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. [8D]



Image
Attachments
20mmOerkilon.gif
20mmOerkilon.gif (14.69 KiB) Viewed 983 times
Dili
Posts: 4742
Joined: Fri Sep 10, 2004 4:33 pm

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

Post by Dili »

Wouldn't gravity certainly make more difference in range vs height(altitude)?
User avatar
RyanCrierie
Posts: 1327
Joined: Fri Oct 14, 2005 7:15 am
Contact:

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

Post by RyanCrierie »

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

Image

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.
Attachments
JapAA.gif
JapAA.gif (73.57 KiB) Viewed 983 times
seanmac456
Posts: 20
Joined: Mon Feb 22, 2021 1:30 am

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

Post by seanmac456 »

I just wanted to give this a bump because it appears that the tools are no longer hosted on your site as far as I can tell
Either I will be Decorated or Court Martialed. Fire!
Post Reply

Return to “Scenario Design and Modding”