AP accuracy logic?

Modders can post their questions on scripting and more.

Moderators: Slitherine Core, BA Moderators

Post Reply
GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

AP accuracy logic?

Post by GottaLove88s » Thu Jul 25, 2013 3:45 pm

Pip, Is there a thread where the detailed calculations for AP and HE firing stats are covered?

I'm looking into AP accuracy (for warships, lol) and I see that, if a ship doesn't move, its AP accuracy might exceed 100%, even though the highest AP accuracy % in its stats (squads.csv) is 70%.

Is there a firing without moving bonus? Of about 50%? Is that 50% coded into squads.csv anywhere?

I thought there was just the firing after move fast penalty... but it seems there is more at work under the hood...

:? :?: :? :?:
SCENARIO LINKS
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347

pipfromslitherine
Site Admin
Site Admin
Posts: 8976
Joined: Wed Mar 23, 2005 10:35 pm

Re: AP accuracy logic?

Post by pipfromslitherine » Thu Jul 25, 2013 3:57 pm

There isn't anywhere like that, no. Given that the scripts are accessible it didn't seem to make sense (the detailed tooltips also provide fairly full information on all the variables).

Cheers

Pip
follow me on Twitter here

GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

Re: AP accuracy logic?

Post by GottaLove88s » Thu Jul 25, 2013 4:06 pm

Good point... I've switched on the Advance UI Tooltip... Should use that more often...

It shows a 'No movement penalty: 50% bonus' which seems to roundup the 70% AP accuracy to 105%.

Is that 50% bonus hard coded for all units? Or is that 50% picked up from squads.csv?

Thanks!
SCENARIO LINKS
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347

GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

Re: AP accuracy logic?

Post by GottaLove88s » Thu Jul 25, 2013 4:07 pm

Actually, I guess I can find that in the UI tooltip code?
Where is that?
:D
SCENARIO LINKS
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347

AndrewGardner
Slitherine
Slitherine
Posts: 524
Joined: Tue Nov 13, 2012 6:24 pm

Re: AP accuracy logic?

Post by AndrewGardner » Thu Jul 25, 2013 4:32 pm

The firing without moving bonus (1.5 x accuracy) is not a unit attribute, it is specified in CalculateChanceToHitAP in FireLogic_AP.bsf.

GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

Re: AP accuracy logic?

Post by GottaLove88s » Thu Jul 25, 2013 8:15 pm

Thanks for the clarification Andrew.

That helps me a lot for finalising warship squads.csv

Essentially, if I want AP accuracy to max out at <100% for any ship that has not moved, I have to set the base value at <66%?

Have almost finalised our unit stats (at last! :D)
SCENARIO LINKS
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347

Post Reply

Return to “Battle Academy : Modders Corner ”