Damage Simulation Tool

By RapidReload, in Star Wars: Armada

Edit v5 Online:

screen.thumb.png.4113b325e458e7a0f95b1660f8dbf72b.png

So I wrote a little damage simulator for my own purposes and thought maybe someone else might want to use it. Since it was only intended for personal use I wrote it in JavaFX. If any of you want to give it a try, its here:

http://bernhard.anzengruber.org/

Since its java based you need to do the following two things to run it:

1) Install jre-10 http://www.oracle.com/technetwork/java/javase/downloads/jre10-downloads-4417026.html

2) Go into the Java Control Panel and whitelist the url - I wouldn't really recommend this since it will give the tool access to your harddrive. I solemnly swear it doesn't install any malware, but obvsly no reason to trust me.

551896040_javactrlpanel.png.41363a2c44fefd5deac2caad488b2e15.png

If any of you are brave enough to try it I would be thankful for bug reports and suggestions for extending it.

Kind regards

Edited by RapidReload

you are not by any Chance studying economics in vienna? this Name sounds oddly familiar

Nope.

I am from Austria though.

pleased to meet a fellow austrian here :D

Wow, both of your names dont scream AUSTRIAN at all. :P

nice tool, thanks.

Edited by DScipio
21 hours ago, LordKipferl said:

pleased to meet a fellow austrian here :D

I found „Lord Kipferl“ always suspicious.

Never tell me the chance for damage after the euros.

After this i know that the damage the opponent can do is the max damage he could do. This matches were FAR of from all statistics (everything was hitting with perfect rolls, always acc when need, always crit when need, ...).

For the future i will just always assume the worst possible result. At least i cannot be wrong in this case ? .

I can add that feature just for you - I could call it "Damage vs Tokra" ;-).

Although one can probably figure min/max out using "that math" :-).

1 hour ago, Tokra said:

Never tell me the chance for damage after the euros.

After this i know that the damage the opponent can do is the max damage he could do. This matches were FAR of from all statistics (everything was hitting with perfect rolls, always acc when need, always crit when need, ...).

For the future i will just always assume the worst possible result. At least i cannot be wrong in this case ? .

? ? well.. wrong yes… but at least you cant be disappointed with that pessimistic bias

@RapidReload

I like the tool. Can you add a Vader option in addition to Screed/Leading Shots? I'm not sure if setting the "rerolls" equal to the number of dice is providing an accurate result.

I'd also appreciate a breakdown of the odds for each result more like this ( Source - very useful ):
image.png.5d53db8be31709e315f8dda88308d775.png

I'm not particularly interested in the average damage from the shot as much as I'm interested in the EXPECTED damage. In the article I posted, he assumes that a particular damage result is only reliable if it lands 80% of the time. I might be able to destroy an ISD in one turn; however, if there's only a 50-50 chance, I might be better off building a fleet that can definitely kill it in two turns.

49 minutes ago, rasproteus said:

@RapidReload

I like the tool. Can you add a Vader option in addition to Screed/Leading Shots? I'm not sure if setting the "rerolls" equal to the number of dice is providing an accurate result.

I'd also appreciate a breakdown of the odds for each result more like this ( Source - very useful ?
image.png.5d53db8be31709e315f8dda88308d775.png

I'm not particularly interested in the average damage from the shot as much as I'm interested in the EXPECTED damage. In the article I posted, he assumes that a particular damage result is only reliable if it lands 80% of the time. I might be able to destroy an ISD in one turn; however, if there's only a 50-50 chance, I might be better off building a fleet that can definitely kill it in two turns.

Well as long as it is not like if you failed the damage is completely removed so a 50% of killing an ISD in one turn looks pretty great to me. Better than a 100% of killing it in two most of the time.

Version 2 online

Some new upgrade options and stuff.

Kind regards

Edited by RapidReload
2 hours ago, rasproteus said:

@RapidReload

I like the tool. Can you add a Vader option in addition to Screed/Leading Shots? I'm not sure if setting the "rerolls" equal to the number of dice is providing an accurate result.

I'd also appreciate a breakdown of the odds for each result more like this ( Source - very useful ?    
image.png.5d53db8be31709e315f8dda88308d775.png

I'm not particularly interested in the average damage from the shot as much as I'm interested in the EXPECTED damage. In the article I posted, he assumes that a particular damage result is only reliable if it lands 80% of the time. I might be able to destroy an ISD in one turn; however, if there's only a 50-50 chance, I might be better off building a fleet that can definitely kill it in two turns.

Thanks for the Feedback.

I will have a look at maybe visualizing Results like that as well. Would not be hard, just work ;-).

Vader should be supported simply by setting the reroll count equal to the rolled dice and setting which dice to reroll.

I should however mention that I manually define a reroll Order which is:

For Red: 1) Blanks 2) Accuracy 3) Hits 4) Crits 5) Doubles

For Blue: 1) Accuracy 3) Hits 4) Crits

For Black: 1) Blanks 2) Hits 4) Crits

Meaning that, if the user select that he wants to reroll both red accuracy and red blanks, the system will first reroll all blanks before rerolling accuracies up to the set reroll count. The system will never reroll a die that was not selected by the user to be rerolled.

Kind regards

Edited by RapidReload
2 hours ago, RapidReload said:

Thanks for the Feedback.

I will have a look at maybe visualizing Results like that as well. Would not be hard, just work ;-).

Vader should be supported simply by setting the reroll count equal to the rolled dice and setting which dice to reroll.

I should however mention that I manually define a reroll Order which is:

For Red: 1) Blanks 2) Accuracy 3) Hits 4) Crits 5) Doubles

For Blue: 1) Accuracy 3) Hits 4) Crits

For Black: 1) Blanks 2) Hits 4) Crits

Meaning that, if the user select that he wants to reroll both red accuracy and red blanks, the system will first reroll all blanks before rerolling accuracies up to the set reroll count. The system will never reroll a die that was not selected by the user to be rerolled.

Kind regards

If the program rolls hit, hit, blank on the first roll, then rerolls the blank into another blank, would setting that reroll to 3 mean that second blank gets rolled again possibly twice more?

2 hours ago, rasproteus said:

If the program rolls hit, hit, blank on the first roll, then rerolls the blank into another blank, would setting that reroll to 3 mean that second blank gets rolled again possibly twice more?

No, the rerolls set next to the dice count are applied once. As for example with vader or with caitken and shollan. Vader + say a cf token, as would allow the reroll of a reroll is not supported as of yet. Leading shots are rerolled after the set reroll is finished. So if you wanted to stack a vader reroll with leading shots you could do that, but not vader with cf token or for example ordnance experts.

Thinking about it, i could make a third upgrade category for reroll upgrades so that these could be better sequenced.

Edited by RapidReload
On 6/7/2018 at 3:37 PM, RapidReload said:

No, the rerolls set next to the dice count are applied once. As for example with vader or with caitken and shollan. Vader + say a cf token, as would allow the reroll of a reroll is not supported as of yet. Leading shots are rerolled after the set reroll is finished. So if you wanted to stack a vader reroll with leading shots you could do that, but not vader with cf token or for example ordnance experts.

Thinking about it, i could make a third upgrade category for reroll upgrades so that these could be better sequenced.

If you'd be willing to add something like IFF! that would be useful as well.

You provided so many options that now I want everything. :)

1 hour ago, rasproteus said:

If you'd be willing to add something like IFF! that would be useful as well.

You provided so many options that now I want everything. :)

Its on the list. Finished the cumulative result view yesterday. Will add reroll upgrades next.

Might push next version online at that point.

Edited by RapidReload

Pushed v3 Online - for screenshot see original post:

Changelog:

  • Included Choice for Cumulative View of Results. Switch between Average and Cumulative Results using the Button on the Top Right.
  • All Upgrades can now be selected/deselected using a simple click on the image.
  • Added new Upgrades for Rerolls (BCC, Vader, Ordnance Experts, Toryn, Sloane, CaS) . For all these Upgrades, It is still required to set which dice to reroll using the "Dice-To-Reroll Selection".
  • All Upgrades now only trigger if the set attacker and defender (Ship/Bomber/Non-Bomber Squad) are set so that the upgrade can be applied. Meaning if a bomber is the attacker, ordnance experts will not be applied, even if selected. Targeting Scrambler only triggers if Attack Range is set to Short.
  • Added Intensify Firepower.
    Order in which a dice is set to hit if available: 1) Black Blank 2) Red Blank 3) Red Acc 4) Blue Acc
  • Some Code Refactoring

If any of you want to go bug hunting, I would recommend setting the number of Monte Carlo Rounds to 1, effectively simulating a single die roll.

Kind regards

Edited by RapidReload

v5 Online - for screenshot see original post:

Changelog:

  • Integrated Reroll Selection and Screed Cancel Selection With Respective Views
  • Fixed Bug with DTT and Salvation
  • Added Lando, Admonition, Foresight, Gallant Haven, 7th Fleet..., Derlin, Bright Hope, Home One, warlord
  • Added Section for Squadron Effects. Added Biggs, Norra, Shara, Jonus, Vader, Marek
  • Added Tooltips for all upgrade cards trying to explain their usage.

Kind regards