Weapon Accuracy for Devices

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
Symon
Posts: 1885
Joined: Sat Nov 24, 2012 4:59 pm
Location: De Eye-lands, Mon

RE: Weapon Accuracy for Devices

Post by Symon »

Yes. There is a good way to determine the "accuracy" value for ALL the different devices. But you have said often before that you are math challenged, yet you want all this in terms of mathematical expressions. I am confused.

You say "draw a curve and plot points on the curve" doesn’t help you, but it is the simplist and easiest way to find what you want. It just takes a graph program, of which there thousands of freeware versions. You don’t need math, just point and click. If you wish to spend a few years researching data and formulating the results into the game algorithm, more power to you. But obviously, what you want is someone to feed pablum. But pablum ain’t in it.

Simple, cheap, and effective results come from plotting things developed by others and then picking off your desired weapon. Your mod will be better for it and have specs that are in conformance with the engine.

But if you want math, I would be pleased to give you math. Ciao. J
Nous n'avons pas peur! Vive la liberté! Moi aussi je suis Charlie!
Yippy Ki Yay.
GaryChildress
Posts: 6933
Joined: Sun Jul 17, 2005 3:41 pm
Location: The Divided Nations of Earth

RE: Weapon Accuracy for Devices

Post by GaryChildress »

Hi JWE,

Thank you very much for your reply. I'm OK with some math. I'm not very good with graphs, Cartesian coordinates and stuff like that. But if something can be rendered into an MS Excel formula then I'm all set. Basically I would just need mathematical formulas like the one JuanG gave earlier in this thread. So, for instance I took his formula below:

Image

And came up with this in Excel:

=SUM(10.25*(B7/(C7^3)*(D7+(2*(SQRT(D7))))))

When I plug in the 16"/50 Mk7 gun with shell weight of 2700lbs and rate of fire of 1.8rpm I get 30.291703. This appears somewhat close to what stock AE gives for a value. So far so good. But when I plug in other weapon types like AA guns then I get really whacky numbers.

If I may get a complete list of which formulas work with which devices, then I'll be in business. I'll be happy to send my resulting Excel spreadsheets and formulas to you if you want. I don't know if you work with MS Excel using your formulas now but it really makes life infinitely easier, at least for me (especially given the fact that WITPLoad works with Excel). Basically it just becomes a matter of creating an excel list of weapons and stats, create a formula column and voila! Just cut and paste the results into a CSV file for WITPLoad.
User avatar
John 3rd
Posts: 17785
Joined: Thu Sep 08, 2005 5:03 pm
Location: La Salle, Colorado

RE: Weapon Accuracy for Devices

Post by John 3rd »

Glad you guys are working on this again!
Image

Member: Treaty, Reluctant Admiral and Between the Storms Mod Team.
User avatar
Symon
Posts: 1885
Joined: Sat Nov 24, 2012 4:59 pm
Location: De Eye-lands, Mon

RE: Weapon Accuracy for Devices

Post by Symon »

ORIGINAL: Gary Childress
Hi JWE,

Thank you very much for your reply. I'm OK with some math. I'm not very good with graphs, Cartesian coordinates and stuff like that. But if something can be rendered into an MS Excel formula then I'm all set. Basically I would just need mathematical formulas like the one JuanG gave earlier in this thread. So, for instance I took his formula below:
Hi Gary,

Not trying to give you a hard time, apologize if it seems that way. But the graphical solution is the quickest, easiest, and most efficient way of going about it. I’m just trying to get you to understand how things work and how to mod them so they fit into the game’s sweet spot.

Working the math runs you into places where certain things have to be assumed, and many columns are judgment calls. One has to appreciate when, where, and why certain values are adjusted, and understand how. This does require a bit of ballistics knowledge.

Why not let the people who live for this stuff do the work for you? Whether it’s mine or Juan’s the curves will be rational and smooth. We know where the end points are and where the sweet spot is. So why not just plot the results of the work that’s already been done for you? Put the gun caliber on the bottom and the parameter of the left.

You may well see 3 to 5 guns of the same caliber having different parameters. If it’s Alt you are plotting, the first order whizbang is muzzle velocity. So where does your MV come in? Pick the closest and go left and read off your Alt. If it’s Eff, first order is shell weight, so find yours and find a similar, go left read off your Eff.

Acc is a bear. I don’t think anyone can design a gun and define an accuracy characteristic for it. Not the South Africans and not the Israelis and sure not the US or Russians. It’s been done for a very few ‘standard’ models but only for test comparison purposes. What Juan and I both do is develop a mathematical expression, plot it and then “adjust” (i.e., normalize) the curve to a set of known points. Then we read along the bottom for caliber, go up to the curve, and go left for the value. Not something that works well in an Excel spreadsheet.

Rather than worrying about math, why not learn to plot? It’s what the people at combinedfleet, and just about everywhere else, do for inferences.
Nous n'avons pas peur! Vive la liberté! Moi aussi je suis Charlie!
Yippy Ki Yay.
GaryChildress
Posts: 6933
Joined: Sun Jul 17, 2005 3:41 pm
Location: The Divided Nations of Earth

RE: Weapon Accuracy for Devices

Post by GaryChildress »

I tried my hand at plotting a graph as best I can figure from JWE's instructions. This is what I came up with plotting a number of different gun calibers and accuracies from the AE editor. Is this what I'm supposed to come up with? [&:] Now let's say I want to determine the accuracy of the 11" guns on Scharnhorst. What would I do from here? Would I put a dot around the coordinates 11,32, meaning the 11" would have an accuracy of approximately 32 in game terms?

Man I'm lost. [:(]



Image
Attachments
Accuracygraph2.gif
Accuracygraph2.gif (45.7 KiB) Viewed 386 times
GaryChildress
Posts: 6933
Joined: Sun Jul 17, 2005 3:41 pm
Location: The Divided Nations of Earth

RE: Weapon Accuracy for Devices

Post by GaryChildress »

I tried something a little different. I based my plotting on a logarithm instead of a linear equation. And instead of using bore diameter I used Rate of Fire. Rate of Fire seems like it would be a better determinant of accuracy than bore diameter. I don't know. [&:]

Just the same I came up with a formula in Excel I can use. The formula is basically: y = 18.133ln(x) + 10.43.
Instead of spending a lot of time plotting and tracing numbers on a graph it still seems easier to me to just create a formula in Excel and let the spreadsheet do all the manual work.

I'm thinking I may just use a standard logarithm for all weapons, maybe adjust a little (i.e. fudge the numbers a bit) depending upon fire control system or something. But I would think 2 rounds per minute for an 18" gun is going to be similar to 2 rounds per minute with a 6" gun in hit probability. Of course there are probably a hundred different parameters that affect accuracy, stability of the firing platform, relative calm or choppiness of the sea, fire control system, barrel harmonics, size and speed of the target etc.

Image
Attachments
Accuracygraph3.gif
Accuracygraph3.gif (76.62 KiB) Viewed 386 times
User avatar
inqistor
Posts: 1813
Joined: Wed May 12, 2010 1:19 pm

RE: Weapon Accuracy for Devices

Post by inqistor »

And why do you want to reimplement those sides already done? You just quadruple your amount of work.

IIRC JuanG got new formulas for guns in his MOD. Just use them, and maybe ask him, if he can do also German, and Italian guns. After all, how much models do you need? Ten or fifteen?
User avatar
Jorm
Posts: 547
Joined: Tue Jun 25, 2002 5:40 am
Location: Melbourne

RE: Weapon Accuracy for Devices

Post by Jorm »

So the ships fire control / direction system plays no part in this, seems very odd

btbw
Posts: 379
Joined: Tue Nov 01, 2011 7:23 am

RE: Weapon Accuracy for Devices

Post by btbw »

Sorry but what mean W, D and T in calculation and what in result?
GaryChildress
Posts: 6933
Joined: Sun Jul 17, 2005 3:41 pm
Location: The Divided Nations of Earth

RE: Weapon Accuracy for Devices

Post by GaryChildress »

ORIGINAL: inqistor

And why do you want to reimplement those sides already done? You just quadruple your amount of work.

IIRC JuanG got new formulas for guns in his MOD. Just use them, and maybe ask him, if he can do also German, and Italian guns. After all, how much models do you need? Ten or fifteen?

More like 50 to 100. We're talking about new devices for Germans, Italians and French. I don't think I want to impose upon JuanG to do that many devices for me.
GaryChildress
Posts: 6933
Joined: Sun Jul 17, 2005 3:41 pm
Location: The Divided Nations of Earth

RE: Weapon Accuracy for Devices

Post by GaryChildress »

ORIGINAL: Jorm

So the ships fire control / direction system plays no part in this, seems very odd


Fire control systems aren't separate devices in the editor. So if I wanted to factor in FC I would have to do one entry for the 5"/38 mounted on ships with FC system "A", then a separate entry for 5"/38s mounted on ships with FC system "B", then "C" and so on. So each single weapon would have to be represented however many times are necessary to represent every fire control system there was.
User avatar
RyanCrierie
Posts: 1327
Joined: Fri Oct 14, 2005 7:15 am
Contact:

RE: Weapon Accuracy for Devices

Post by RyanCrierie »

I looked at Gary Childress algorithm for computing accuracy:

accuracy = 18.133 * ln(ROF) + 10.43.

and modified it a bit for automatic weapons -- ROF for automatic weapons should be considered in "pulses", e.g. something like a 5 second burst; and converting ROF from Rounds Per Minute to rounds per 5 second burst goes like this:

ROF per Burst = (RPM/60)*5

With that correction factor, Gary's algorithm returns:

1.1" MG practical ROF (100 RPM ) = (8.3 rounds in 10 sec burst) = 49 Acc.
20mm practical ROF (285 RPM ) = (23.8 rounds in 5 sec burst) = 68 Acc.
40mm practical ROF (85 RPM ) = (7.1 rounds in 5 sec burst) = 46 Acc.

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

RE: Weapon Accuracy for Devices

Post by Dili »

What is ln?
User avatar
witpqs
Posts: 26376
Joined: Mon Oct 04, 2004 7:48 pm
Location: Argleton

RE: Weapon Accuracy for Devices

Post by witpqs »

ORIGINAL: Dili

What is ln?
I think he means "natural log" (log in 'e' as opposed to say, log in base 10).
Dili
Posts: 4742
Joined: Fri Sep 10, 2004 4:33 pm

RE: Weapon Accuracy for Devices

Post by Dili »

Thanks witpqs.
Post Reply

Return to “Scenario Design and Modding”