Discussion:
code for BOOM chance
(too old to reply)
Phaidros
2008-05-02 08:08:01 UTC
Permalink
Hi,

I took a look at the BOOM chance code.

****
Level = Ship's Experience r1 = Crew / MaxCrewSize
IF Borg THEN IF Queen onboard THEN r2 = 1
IF no Borg THEN * IF MaxCrewSize > 1000 THEN r2 = HG / 100 *
IF MaxCrewSize <=10 THEN r2 = 10 * HG / MaxCrewSize
r3 = 1 - (DamageSys + DamageWeapons) / 100 (minimum = 0)
r = (r1 + r2 + r3) / 4
TriggerLevelOutput = r
TriggerLevel = 200
Sensitivity = 0.01
Luck = Sigmoid(Level, TriggerLevel , TriggerLevelOutput, Sensitivity)
***

r2 is only defined for crew sizes above 1000 and up to 10, but not for
the range in between. Unless a code line is missing here that would
imply that for many medium-sized ships r can't rise above a value of
0.5 and that means a 50% of a BOOM occurring with the power boost
mode.

Phaidros
GFM GToeroe
2008-05-02 09:45:36 UTC
Permalink
Post by Phaidros
Hi,
I took a look at the BOOM chance code.
****
Level = Ship's Experience r1 = Crew / MaxCrewSize
IF Borg THEN IF Queen onboard THEN r2 = 1
IF no Borg THEN * IF MaxCrewSize > 1000 THEN r2 = HG / 100 *
IF MaxCrewSize <=10 THEN r2 = 10 * HG / MaxCrewSize
r3 = 1 - (DamageSys + DamageWeapons) / 100 (minimum = 0)
r = (r1 + r2 + r3) / 4
TriggerLevelOutput = r
TriggerLevel = 200
Sensitivity = 0.01
Luck = Sigmoid(Level, TriggerLevel , TriggerLevelOutput, Sensitivity)
***
r2 is only defined for crew sizes above 1000 and up to 10, but not for
the range in between. Unless a code line is missing here that would
imply that for many medium-sized ships r can't rise above a value of
0.5 and that means a 50% of a BOOM occurring with the power boost
mode.
Phaidros
Typo!

IF MaxCrewSize <=1000 THEN r2 = 10 * HG / MaxCrewSize

Thanks.

Gabor
Phaidros
2008-05-02 13:04:32 UTC
Permalink
Post by GFM GToeroe
Typo!
IF MaxCrewSize <=1000 THEN r2 = 10 * HG / MaxCrewSize
Thanks.
Gabor
Ok ... but this moves the undefined value range of r2 simply above the
threshold of a Crewsize of 1000. Now it's the big ships that face a
50% chance of going BOOM. Correct?

A related question:
When does the BOOM calculation actually occur:
a) at the beginning of the vcr or
b) during the vcr at the moment when the BOOM sequence is started for
the first time?

Am I the captain of a ship whose weapons' explode due to overuse after
the first initial blasts towards the enemy or the captain of a ship
who will tell his crew through the intercomm ahead of the battle:
"Sorry Guys, our board mechanic just told me our weapon systems don't
respond. Let's do our last prayer together".

Phaidros
Phaidros
2008-05-02 20:21:03 UTC
Permalink
Post by Phaidros
Post by GFM GToeroe
Typo!
IF MaxCrewSize <=1000 THEN r2 = 10 * HG / MaxCrewSize
Thanks.
Gabor
Ok ... but this moves the undefined value range of r2 simply above the
threshold of a Crewsize of 1000. Now it's the big ships that face a
50% chance of going BOOM. Correct?
Damn. Forget that.

Phaidros

Shard
2008-05-02 09:56:17 UTC
Permalink
Post by Phaidros
Hi,
I took a look at the BOOM chance code.
Phaidros
Unless I've missed something there is no mention of skill in there,
despite what it says in the wiki?
Loading...