New Game Idea

#21

Capital gives all ships +1/+1 ,so each strike now has 2hp.

#22

In Blight there are Generals that give all of a race +X Strength and Terrain Masters that give all units fighting is a special terrain +y strength.

You should look at the Blight combat model if you are going to track individual ships with different abilities.

#23

hmmā¦ what about a point system?

Like Capitals have 150 points,
heavy 35
strike 10 points, but 5 on def.

So if you were attacking w/
25 strike, 12 heavy, and 1 cap,
you would do 250 + 420 + 150 damage.
However, on def, it would be 420 + 150 + 175.

So strike would go first, then heavy, then cap.

So

would go
(25x15)+(35x10)+(150x1)
375 + 350 + 150 = 875 attack
v
15 + 420 + 150 = 585 def.

(1)

Attacker wins, destroying everything, while losing (x) ships.

875-585=290 worth of ships remaining.

1 cap left, = 290-150 = 140.

140/35 = 4.

So attacker has 5 ships left, his capitol and 4 heavy, while the defender gets wiped.

Only a small example.

#24

ah yesā¦ forgot it was +1/+1

#25

I created a test app so that we can test some of the various combat calculations. Right now it isnāt wired up, only spent 10 minutes getting the form up and running. Iāll start with @Rosslessnessās formula, then I will try @x_Molotovās next. Thereāll be some sort of switcher to allow us to quickly switch. Feel free to fork and implement. Please be sure to post back on here so we can test some of the ideas out. Thanks

#26

I havenāt the time to read the above, but for interesting reading on combat mechanics Force concentration and Salvo combat model may interest the people here.

Thereās also this video I found a while ago if you just want the rough idea: Can you win a war through MATH[S]!?

NOTE: this is not how Triton works, but force concentration is how, for example, Sins of a Solar Empire and Endless Space work.

#27

The salvo combat model looks very simple (once you interpret all the algorithmic symbols they use to explain it). Thanks for the links. I might try to implement them first into the combat calculator I made.

#28

So Iāve implemented a few different algorithms including NPās formula, a force-multiplier model and a salvo combat model. Currently theyāre only accounting for a single type of ship like in NP. So no class calculations at this stage. One thing that doesnāt seem to work at the moment is the salvo combat model, maybe I can get some help on figuring out a solution for testing:

• A = fleet Aās number of ships
• Ī± = fleet Aās offensive power
• y = fleet Aās defensive power
• u = fractional amount it takes to destroy on ship in Aās fleet (for now I assumed 1)
• B = fleet Bās number of ships
• Ī² = fleet Bās offensive power
• z = fleet Bās defensive power
• v = fractional amount it takes to destroy on ship in Bās fleet (for now I assumed 1)

ĪA = -(Ī²B - yA)u, subject to 0 ā¤ -ĪA ā¤ A
ĪB = -(Ī±A - zB)v, subject to 0 ā¤ -ĪB ā¤ B

salvo combat model example

Letās use an example fight to demonstrate:

``````fleetA = { num: 25, ap: 2, dp: 1 }
fleetB = { num: 18, ap: 1, dp: 2 }
``````

####salvo 1 (original)
ĪA = -(18 * 1 - 25 * 1) = -(18 - 25) = 7
ĪB = -(25 * 2 - 18 * 2) = -(50 - 36) = -14
note - Because there is a positive number for one and a negative number for the other, something is not right. According to this, depending on if you add or subtract the Īval, one will gain ships, the other will lose shipsā¦ anyway, letās assume we add the difference back to the number of ships

āFleet A lost -7 ships and has 32 remaining. Fleet B lost 14 ships and has 4 ships remainingā

If we utilize an absolute value subtraction method it makes a little bit more sense, but does it address all cases? Letās see.

####salvo 1 (modād)
ĪA = -(18 * 1 - 25 * 1) = -(18 - 25) = 7
ĪB = -(25 * 2 - 18 * 2) = -(50 - 36) = -14
ĪA *= -1 if ĪA > 0
ĪB *= -1 if ĪB > 0

āFleet A lost 7 ships and has 11 remaining. Fleet B lost 14 ships and has 4 ships remainingā

####salvo 2 (modād)
ĪA = -(4 * 1 - 11 * 1) = -(4 - 11) = 3
ĪB = -(11 * 2 - 4 * 2) = -(22 - 8) = -14
ĪA *= -1 if ĪA > 0
ĪB *= -1 if ĪB > 0

āFleet A lost 3 ships and has 8 remaining. Fleet B lost 14 ships and has -10 ships remainingā

So does this all add up in your minds? Something is a little off. I still need to update the testing calculator and plug these formulas in.

#29

Here is the updated battle calculator. Itās simplified meaning it doesnāt account for the various ship classes I had discussed. It still needs work on the salvo combat model. I think that probably works best with non-integer ap/dp values.