Winterbay's Helpful Automatic Monsterbasher (WHAM)

Theraze

Active member
Sadly (for customization) I'm still using the default WHAM settings, namely:
WHAM_AlwaysContinue false
WHAM_hitchance 0.5
WHAM_maxround 30
WHAM_round_limit 10

That does make sense as to why it thought it was good though, and why it failed to continue onwards. :)

Edit: Would be appreciated. Just hit round 279 on another character, same thing with the PADL phone. Least I caught it only a few minutes after this time. Heh.
 

Magus_Prime

Well-known member
One thing I'm noticing with the current version of WHAM is that it seems to favor stasis actions even when I'm losing large amounts of hit points and it's favoring physical attacks when I'm a sauceror with a full mana pool.

This wasn't the case in earlier versions of WHAM. I set verbosity to 9 and got the following. It looks like WHAM is almost completely discounting spellcasting if it doesn't think it can result in a saucesplash.

Code:
[1154] Barn
Encounter: generic duck
Strategy: E:\software\Kol\ccs\default.ccs [default]
Round 0: Arbos wins initiative!
Running ZLib version: r36 (current)
1 HP costs 0.977μ. ( 147 / 181 )
1 MP costs 4.348μ. ( 294 / 364 )
Factoring in Scarysauce: (6) damage, retal
Running BatBrain version: 1.23 (current)
Running SmartStasis version: 3.15 (current)
Running WHAM version: 2.9 (current)
WHAM: We currently think that the round number is: 0 and that the turn number is 1153.
WHAM: No need to do anything with this monster.
WHAM: Setting up variables via BatBrain
Value of stat gain: 415.63μ
Value of stat gain: 415.63μ
ATT: 178 (94% × 19.17, death in 9)
DEF: 161 (8.8% × 68.32 (3) (3) (3) (39) (18), win in 14)
HP: 195, Value: 662.06 μ
Parsed round number: 1
Building options...
Options built! (57 actions)
WHAM: We currently think that the round number is: 1 and that the turn number is 1153.
WHAM: You have no profitable MP restoratives.
WHAM: You have no profitable HP restoratives.
WHAM: You are fighting a Generic Duck. Mafia considers that this monster has an attack of 178 or 178 when given a monster name.
WHAM: Mafia further considers that this monster has a defense value of 161 or 161 when given a monster name.
WHAM: Mafia further further considers that this monster has a HP value of 190 or 190 when given a monster name.
WHAM: Your current ML-adjustment is: 10.
WHAM: Monster HP is 195.0.
WHAM: WHAM added the following to BatRound: if pastround 49; abort "Stopping fight because it has gone on for too long (set WHAM_maxround to a higher value if you think this was in error)"; endif; 
WHAM: Running SmartStasis
Profit per round: ActionProfitDamageOtherbase (0μ)0μ--
Building custom actions...
Custom actions built! (0 actions)
Stasis action chosen: use 2678 (round 1, profit: -11.86)
Value of stat gain: 415.63μ
Attack action chosen: skill 1005 (round 1, profit: -52.39)
This monster is not your huckleberry.
Stasis loop complete.
WHAM: SmartStasis complete.
WHAM: Running SmartStasis took 0.93 seconds.
WHAM: We currently think that the round number is: 1 and that the turn number is 1153.
WHAM: SS did not finish the fight, continuing with script execution. 
WHAM: Starting evaluation and performing of attack
WHAM: We currently think that the round number is: 1 and that the turn number is 1153.
Value of stat gain: 415.63μ
WHAM: Attack option chosen: skill 1005 (round 1, profit: -52.39)
Stun option chosen: skill 3004 (round 1, profit: -13.04)
Queued: skill 3004
Building options...
Options built! (56 actions)
Value of stat gain: 415.63μ
WHAM: Attack option chosen: skill 1022 (round 2, profit: -4.35)
Queued: skill 1022
Building options...
Options built! (56 actions)
Value of stat gain: 415.63μ
WHAM: Attack option chosen: skill 1022 (round 3, profit: -4.35)
Queued: skill 1022
Building options...
Options built! (56 actions)
Value of stat gain: 415.63μ
WHAM: Attack option chosen: skill 1022 (round 4, profit: -4.35)
Queued: skill 1022
Building options...
Options built! (56 actions)
Value of stat gain: 415.63μ
WHAM: Attack option chosen: skill 1005 (round 5, profit: -34.78)
Queued: skill 1005
Building options...
Options built! (56 actions)
Parsed round number: 1
Building options...
Options built! (57 actions)
WHAM: Evaluating the attack but not performing it took 4.50 seconds.
WHAM: Enqueuing a stun to help with the battle
WHAM: We can't Saucesplash since you have too little bonus spell damage.
WHAM: Enqueueing Entangling Noodles (macroid skill 3004).
Queued: skill 3004
Building options...
Options built! (56 actions)
WHAM: Successfully enqueued Entangling Noodles.
WHAM: We can't Saucesplash since you have too little bonus spell damage.
WHAM: Enqueueing Clobber (macroid skill 1022).
Queued: skill 1022
Building options...
Options built! (56 actions)
WHAM: Successfully enqueued Clobber.
WHAM: We can't Saucesplash since you have too little bonus spell damage.
WHAM: Enqueueing Clobber (macroid skill 1022).
Queued: skill 1022
Building options...
Options built! (56 actions)
WHAM: Successfully enqueued Clobber.
WHAM: We can't Saucesplash since you have too little bonus spell damage.
WHAM: Enqueueing Clobber (macroid skill 1022).
Queued: skill 1022
Building options...
Options built! (56 actions)
WHAM: Successfully enqueued Clobber.
WHAM: We can't Saucesplash since you have too little bonus spell damage.
WHAM: Enqueueing Lunging Thrust-Smack (macroid skill 1005).
Queued: skill 1005
Building options...
Options built! (56 actions)
WHAM: Successfully enqueued Lunging Thrust-Smack.
WHAM: We are going to 5-shot with Entangling Noodles, Clobber, Clobber, Clobber and Lunging Thrust-Smack.
Constructed macro: scrollwhendone; sub batround; if pastround 49; abort "Stopping fight because it has gone on for too long (set WHAM_maxround to a higher value if you think this was in error)"; endif; endsub; skill 3004; call batround; skill 1022; call batround; skill 1022; call batround; skill 1022; call batround; skill 1005; call batround; 
Round 1: Arbos executes a macro!
Round 1: Arbos casts ENTANGLING NOODLES!
Round 2: Arbos casts CLOBBER!
Round 3: generic duck takes 26 damage.
Round 3: Arbos casts CLOBBER!
Round 4: generic duck takes 26 damage.
Round 4: Arbos casts CLOBBER!
Round 5: generic duck takes 26 damage.
Round 5: generic duck takes 3 damage.
Round 5: generic duck takes 6 damage.
Round 5: generic duck takes 4 damage.
You lose 22 hit points
Round 5: Arbos casts LUNGING THRUST-SMACK!
Round 6: generic duck takes 1 damage.
Round 6: generic duck takes 3 damage.
Round 6: generic duck takes 3 damage.
You lose 21 hit points
Happened: skill 3004
Happened: skill 1022
Happened: skill 1022
Happened: skill 1022
Happened: skill 1005
Parsed round number: 6
Building options...
Options built! (56 actions)
WHAM: Evaluating the attack and performing it took 15.16 seconds.
WHAM: Current monster HP is calculated to 97.0
WHAM: We currently think that the round number is: 6 and that the turn number is 1153.
WHAM: We currently think that the round number is: 6 and that the turn number is 1153.
WHAM: SS did not finish the fight, continuing with script execution. 
WHAM: Starting evaluation and performing of attack
WHAM: We currently think that the round number is: 6 and that the turn number is 1153.
Value of stat gain: 415.63μ
WHAM: Attack option chosen: skill 1005 (round 6, profit: -34.78)
WHAM: No need to stun this monster
Queued: skill 1005
Building options...
Options built! (56 actions)
Happened: skill 3004
Happened: skill 1022
Happened: skill 1022
Happened: skill 1022
Happened: skill 1005
Parsed round number: 6
Building options...
Options built! (56 actions)
WHAM: Evaluating the attack but not performing it took 2.74 seconds.
WHAM: We can't Saucesplash since you have too little bonus spell damage.
WHAM: Enqueueing Lunging Thrust-Smack (macroid skill 1005).
Queued: skill 1005
Building options...
Options built! (56 actions)
WHAM: Successfully enqueued Lunging Thrust-Smack.
WHAM: We are going to 1-shot with Lunging Thrust-Smack.
Constructed macro: scrollwhendone; sub batround; if pastround 49; abort "Stopping fight because it has gone on for too long (set WHAM_maxround to a higher value if you think this was in error)"; endif; endsub; skill 1005; call batround; 
Round 6: Arbos executes a macro!
Round 6: Arbos casts LUNGING THRUST-SMACK!
Round 7: generic duck takes 2 damage.
Round 7: generic duck takes 6 damage.
Round 7: generic duck takes 5 damage.
You lose 21 hit points
Happened: skill 1005
Parsed round number: 7
Building options...
Options built! (56 actions)
WHAM: Evaluating the attack and performing it took 23.19 seconds.
WHAM: Current monster HP is calculated to 84.0
WHAM: We currently think that the round number is: 7 and that the turn number is 1153.
WHAM: We currently think that the round number is: 7 and that the turn number is 1153.
WHAM: SS did not finish the fight, continuing with script execution. 
WHAM: Starting evaluation and performing of attack
WHAM: We currently think that the round number is: 7 and that the turn number is 1153.
Value of stat gain: 415.63μ
WHAM: Attack option chosen: skill 1005 (round 7, profit: -34.78)
WHAM: No need to stun this monster
Queued: skill 1005
Building options...
Options built! (56 actions)
Happened: skill 1005
Parsed round number: 7
Building options...
Options built! (56 actions)
WHAM: Evaluating the attack but not performing it took 3.20 seconds.
WHAM: We can't Saucesplash.
false, false, false, false, true
WHAM: Enqueueing Lunging Thrust-Smack (macroid skill 1005).
Queued: skill 1005
Building options...
Options built! (56 actions)
WHAM: Successfully enqueued Lunging Thrust-Smack.
WHAM: We are going to 1-shot with Lunging Thrust-Smack.
Constructed macro: scrollwhendone; sub batround; if pastround 49; abort "Stopping fight because it has gone on for too long (set WHAM_maxround to a higher value if you think this was in error)"; endif; endsub; skill 1005; call batround; 
Round 7: Arbos executes a macro!
Round 7: Arbos casts LUNGING THRUST-SMACK!
Round 8: generic duck takes 3 damage.
Round 8: generic duck takes 4 damage.
Round 8: generic duck takes 4 damage.
You lose 21 hit points
Happened: skill 1005
Parsed round number: 8
Building options...
Options built! (56 actions)
WHAM: Evaluating the attack and performing it took 32.75 seconds.
WHAM: Current monster HP is calculated to 73.0
WHAM: We currently think that the round number is: 8 and that the turn number is 1153.
WHAM: We currently think that the round number is: 8 and that the turn number is 1153.
WHAM: SS did not finish the fight, continuing with script execution. 
WHAM: Starting evaluation and performing of attack
WHAM: We currently think that the round number is: 8 and that the turn number is 1153.
Value of stat gain: 415.63μ
WHAM: Attack option chosen: skill 1005 (round 8, profit: -34.78)
WHAM: No need to stun this monster
Queued: skill 1005
Building options...
Options built! (56 actions)
Happened: skill 1005
Parsed round number: 8
Building options...
Options built! (56 actions)
WHAM: Evaluating the attack but not performing it took 2.02 seconds.
WHAM: We can't Saucesplash.
false, false, false, false, true
WHAM: Enqueueing Lunging Thrust-Smack (macroid skill 1005).
Queued: skill 1005
Building options...
Options built! (56 actions)
WHAM: Successfully enqueued Lunging Thrust-Smack.
WHAM: We are going to 1-shot with Lunging Thrust-Smack.
Constructed macro: scrollwhendone; sub batround; if pastround 49; abort "Stopping fight because it has gone on for too long (set WHAM_maxround to a higher value if you think this was in error)"; endif; endsub; skill 1005; call batround; 
Round 8: Arbos executes a macro!
Round 8: Arbos casts LUNGING THRUST-SMACK!
Happened: skill 1005
Parsed round number: 9
Building options...
Options built! (56 actions)
WHAM: Evaluating the attack and performing it took 38.25 seconds.
WHAM: Current monster HP is calculated to 73.0
WHAM: We currently think that the round number is: 9 and that the turn number is 1153.
WHAM: We currently think that the round number is: 9 and that the turn number is 1153.
WHAM: SS did not finish the fight, continuing with script execution. 
WHAM: Starting evaluation and performing of attack
WHAM: We currently think that the round number is: 9 and that the turn number is 1153.
Value of stat gain: 415.63μ
WHAM: Attack option chosen: skill 1005 (round 9, profit: -34.78)
WHAM: No need to stun this monster
Queued: skill 1005
Building options...
Options built! (56 actions)
Happened: skill 1005
Parsed round number: 9
Building options...
Options built! (56 actions)
WHAM: Evaluating the attack but not performing it took 3.80 seconds.
WHAM: We can't Saucesplash.
false, false, false, false, true
WHAM: Enqueueing Lunging Thrust-Smack (macroid skill 1005).
Queued: skill 1005
Building options...
Options built! (56 actions)
WHAM: Successfully enqueued Lunging Thrust-Smack.
WHAM: We are going to 1-shot with Lunging Thrust-Smack.
Constructed macro: scrollwhendone; sub batround; if pastround 49; abort "Stopping fight because it has gone on for too long (set WHAM_maxround to a higher value if you think this was in error)"; endif; endsub; skill 1005; call batround; 
Round 9: Arbos executes a macro!
Round 9: Arbos casts LUNGING THRUST-SMACK!
Round 10: generic duck takes 3 damage.
Round 10: generic duck takes 7 damage.
Round 10: generic duck takes 4 damage.
You lose 22 hit points
Happened: skill 1005
Parsed round number: 10
Building options...
Options built! (56 actions)
WHAM: Evaluating the attack and performing it took 46.42 seconds.
WHAM: Current monster HP is calculated to 59.0
WHAM: We currently think that the round number is: 10 and that the turn number is 1153.
WHAM: We currently think that the round number is: 10 and that the turn number is 1153.
WHAM: SS did not finish the fight, continuing with script execution. 
WHAM: Starting evaluation and performing of attack
WHAM: We currently think that the round number is: 10 and that the turn number is 1153.
Value of stat gain: 415.63μ
WHAM: Attack option chosen: skill 1005 (round 10, profit: -34.78)
WHAM: No need to stun this monster
Queued: skill 1005
Building options...
Options built! (56 actions)
Happened: skill 1005
Parsed round number: 10
Building options...
Options built! (56 actions)
WHAM: Evaluating the attack but not performing it took 1.80 seconds.
WHAM: We can't Saucesplash.
false, false, false, false, true
WHAM: Enqueueing Lunging Thrust-Smack (macroid skill 1005).
Queued: skill 1005
Building options...
Options built! (56 actions)
WHAM: Successfully enqueued Lunging Thrust-Smack.
WHAM: We are going to 1-shot with Lunging Thrust-Smack.
Constructed macro: scrollwhendone; sub batround; if pastround 49; abort "Stopping fight because it has gone on for too long (set WHAM_maxround to a higher value if you think this was in error)"; endif; endsub; skill 1005; call batround; 
Round 10: Arbos executes a macro!
Round 10: Arbos casts LUNGING THRUST-SMACK!
Round 11: generic duck takes 3 damage.
Round 11: generic duck takes 10 damage.
Round 11: generic duck takes 3 damage.
You lose 21 hit points
Happened: skill 1005
Parsed round number: 11
Building options...
Options built! (56 actions)
WHAM: Evaluating the attack and performing it took 51.93 seconds.
WHAM: Current monster HP is calculated to 43.0
WHAM: We currently think that the round number is: 11 and that the turn number is 1153.
WHAM: We currently think that the round number is: 11 and that the turn number is 1153.
WHAM: SS did not finish the fight, continuing with script execution. 
WHAM: Starting evaluation and performing of attack
WHAM: We currently think that the round number is: 11 and that the turn number is 1153.
Value of stat gain: 415.63μ
WHAM: Attack option chosen: skill 3005 (round 11, profit: -26.09)
WHAM: No need to stun this monster
Queued: skill 3005
Building options...
Options built! (56 actions)
Happened: skill 1005
Parsed round number: 11
Building options...
Options built! (56 actions)
WHAM: Evaluating the attack but not performing it took 4.27 seconds.
WHAM: We can't Saucesplash.
false, false, false, false, true
WHAM: Enqueueing Cannelloni Cannon (macroid skill 3005).
Queued: skill 3005
Building options...
Options built! (56 actions)
WHAM: Successfully enqueued Cannelloni Cannon.
WHAM: We are going to 1-shot with Cannelloni Cannon.
Constructed macro: scrollwhendone; sub batround; if pastround 49; abort "Stopping fight because it has gone on for too long (set WHAM_maxround to a higher value if you think this was in error)"; endif; endsub; skill 3005; call batround; 
Round 11: Arbos executes a macro!
Round 11: Arbos casts CANNELLONI CANNON!
Round 12: generic duck takes 48 damage.
Round 12: Arbos wins the fight!
After Battle: The Kloop does a dance, then it tips you a wink, / Like a wink from the Blinkers of Minker-Dink-Vink!
You gain 223 Meat
You gain 14 Beefiness
You gain 26 Mysteriousness
You gain 11 Sarcasm
Happened: skill 3005
Parsed round number: 0
WHAM: Evaluating the attack and performing it took 59.56 seconds.
WHAM: We currently think that the round number is: 31 and that the turn number is 1154.
WHAM: We currently think that the round number is: 31 and that the turn number is 1154.
 
Last edited:

fronobulax

Developer
Staff member
Disco bandit with a lot of Sauceror and Pastamancer spells perm'd. Maximizer suggests (and I accept) a weapon that it turns out can't hit anything. WHAM blissfully keeps attacking rather than pick a spell so I end up beaten up or two spelling manually. Switch to ranged weapon - that can hit - and WHAM manages to kill monsters as expected although not always using spells. It's possible that Smartstasis and/or BCC Ascend is a player instead of WHAM but in light of the report above, I figured I'd say something.
 

Winterbay

Active member
One thing I'm noticing with the current version of WHAM is that it seems to favor stasis actions even when I'm losing large amounts of hit points and it's favoring physical attacks when I'm a sauceror with a full mana pool.

This wasn't the case in earlier versions of WHAM. I set verbosity to 9 and got the following. It looks like WHAM is almost completely discounting spellcasting if it doesn't think it can result in a saucesplash.

Odd... I've never had it do that. That said, the code for saucesplashing needs to be looked over (it will execute a splash if it can no matter if it'll kill you or not), but I don't think I've ever had that problem,. The fact that thrust-smack is chosen so many times even though it fails to hit makes me wonder what your hitchance was calculated to. If possible could you run one fight at verbosity 10 to get a printout of your available skills and hitchances?
 

Magus_Prime

Well-known member
Unfortunately I've cleared the ducks and am out of turns for the day. I'll try it tomorrow against a frat warrior.

Edit: Here's a combat with verbosity set to 10

Code:
[1209] Wartime Sonofa Beach
Encounter: lobsterfrogman
Strategy: E:\software\Kol\ccs\default.ccs [default]
Round 0: Arbos wins initiative!
Running ZLib version: r36 (current)
1 HP costs 0.623μ. ( 187 / 194 )
1 MP costs 4.348μ. ( 266 / 372 )
Factoring in Scarysauce: (6) damage, retal
Running BatBrain version: 1.23 (current)
Running SmartStasis version: 3.15 (current)
Running WHAM version: 2.9 (current)
WHAM: We currently think that the round number is: 0 and that the turn number is 1208.
WHAM: No need to do anything with this monster.
WHAM: Setting up variables via BatBrain
barrel of gunpowder (100.0 @ +75.0): 50μ * 100.0% = 50.0
Value of stat gain: 422.19μ
barrel of gunpowder (100.0 @ +75.0): 50μ * 100.0% = 50.0
Value of stat gain: 422.19μ
ATT: 181 (94% × 22.04, death in 10)
DEF: 162 (8.8% × 68.32 (3) (3) (3) (39) (18), win in 15)
HP: 205, Value: 667.89 μ
Parsed round number: 1
Building options...
Evaluating 'min(30.0+3,10)+floor(sqrt(max(30.0-7,0)))'...
Evaluating '1.2*(12+min(0.15*157.0,20)+min(10.0,40)+0.0)'...
Evaluating '1.2*(28+min(0.25*157.0,30)+min(10.0,60)+0.0)*1.5'...
Evaluating '1.2*(3.5+min(0.1*157.0,10)+min(20.0+0.0,10))'...
Evaluating '1.2*(16+min(0.2*157.0,25)+min(20.0+0.0,15))'...
Evaluating '1.2*(22+min(0.3*157.0,30)+min(20.0+0.0,25))'...
Evaluating '1.2*(2.5+min(20.0+0.0,5))'...
Options built! (59 actions)
WHAM: We currently think that the round number is: 1 and that the turn number is 1208.
WHAM: You have no profitable MP restoratives.
WHAM: You have no profitable HP restoratives.
WHAM: You are fighting a Lobsterfrogman. Mafia considers that this monster has an attack of 181 or 181 when given a monster name.
WHAM: Mafia further considers that this monster has a defense value of 162 or 162 when given a monster name.
WHAM: Mafia further further considers that this monster has a HP value of 200 or 200 when given a monster name.
WHAM: Your current ML-adjustment is: 10.
WHAM: Monster HP is 205.0.
WHAM: WHAM added the following to BatRound: if pastround 49; abort "Stopping fight because it has gone on for too long (set WHAM_maxround to a higher value if you think this was in error)"; endif; 
WHAM: We currently think that the round number is: 1 and that the turn number is 1208.
WHAM: SS did not finish the fight, continuing with script execution. 
WHAM: Starting evaluation and performing of attack
WHAM: We currently think that the round number is: 1 and that the turn number is 1208.
WHAM: Debug printing the damage dealt by your options.

WHAM: Lunging Thrust-Smack: 157.53 potential damage (raw damage: 157.53) and a hitchance of 62.77%.
WHAM: Saucegeyser: 137.94 potential damage (raw damage: 137.94) and a hitchance of 100.00%.
WHAM: Fearful Fettucini: 135.54 potential damage (raw damage: 135.54) and a hitchance of 100.00%.
WHAM: Awesome Balls of Fire: 125.94 potential damage (raw damage: 125.94) and a hitchance of 100.00%.
WHAM: Snowclone: 125.94 potential damage (raw damage: 125.94) and a hitchance of 100.00%.
WHAM: Eggsplosion: 125.94 potential damage (raw damage: 125.94) and a hitchance of 100.00%.
WHAM: Grease Lightning: 125.94 potential damage (raw damage: 125.94) and a hitchance of 100.00%.
WHAM: Raise Backup Dancer: 125.94 potential damage (raw damage: 125.94) and a hitchance of 100.00%.
WHAM: Toynado: 125.94 potential damage (raw damage: 125.94) and a hitchance of 100.00%.
WHAM: Stringozzi Serpent: 122.40 potential damage (raw damage: 122.40) and a hitchance of 100.00%.
WHAM: frozen feather: 100.00 potential damage (raw damage: 100.00) and a hitchance of 100.00%.
WHAM: flaming feather: 100.00 potential damage (raw damage: 100.00) and a hitchance of 100.00%.
WHAM: Wave of Sauce: 86.40 potential damage (raw damage: 86.40) and a hitchance of 100.00%.
WHAM: Saucestorm: 67.20 potential damage (raw damage: 67.20) and a hitchance of 100.00%.
WHAM: water pipe bomb: 65.00 potential damage (raw damage: 65.00) and a hitchance of 100.00%.
WHAM: rocky raccoon: 55.00 potential damage (raw damage: 55.00) and a hitchance of 100.00%.
WHAM: bottle of alcohol: 55.00 potential damage (raw damage: 55.00) and a hitchance of 100.00%.
WHAM: Cannelloni Cannon: 50.40 potential damage (raw damage: 50.40) and a hitchance of 100.00%.
WHAM: Spectral Snapper: 47.00 potential damage (raw damage: 47.00) and a hitchance of 100.00%.
WHAM: grouchy restless spirit: 42.00 potential damage (raw damage: 42.00) and a hitchance of 100.00%.
WHAM: photoprotoneutron torpedo: 40.00 potential damage (raw damage: 40.00) and a hitchance of 100.00%.
WHAM: Stream of Sauce: 28.20 potential damage (raw damage: 28.20) and a hitchance of 100.00%.
WHAM: Clobber: 27.00 potential damage (raw damage: 27.00) and a hitchance of 100.00%.
WHAM: pygmy blowgun: 25.00 potential damage (raw damage: 25.00) and a hitchance of 100.00%.
WHAM: plot hole: 22.50 potential damage (raw damage: 22.50) and a hitchance of 100.00%.
WHAM: frigid ninja stars: 22.00 potential damage (raw damage: 22.00) and a hitchance of 100.00%.
WHAM: flaregun: 19.80 potential damage (raw damage: 19.80) and a hitchance of 100.00%.
WHAM: Kneebutt: 18.87 potential damage (raw damage: 16.68) and a hitchance of 9.00%.
WHAM: Tango of Terror: 16.50 potential damage (raw damage: 16.50) and a hitchance of 100.00%.
WHAM: Disco Face Stab: 16.50 potential damage (raw damage: 16.50) and a hitchance of 100.00%.
WHAM: Attack with your weapon: 14.02 potential damage (raw damage: 11.81) and a hitchance of 8.80%.
WHAM: Toss: 14.00 potential damage (raw damage: 14.00) and a hitchance of 100.00%.
WHAM: Salsaball: 9.00 potential damage (raw damage: 9.00) and a hitchance of 100.00%.
WHAM: Chronic Indigestion: 8.50 potential damage (raw damage: 8.50) and a hitchance of 100.00%.
WHAM: ancient poisoned dart: 8.00 potential damage (raw damage: 8.00) and a hitchance of 100.00%.
WHAM: baseball: 7.00 potential damage (raw damage: 7.00) and a hitchance of 100.00%.
WHAM: spectre scepter: 4.25 potential damage (raw damage: 4.25) and a hitchance of 100.00%.
WHAM: Knob Goblin firecracker: 3.00 potential damage (raw damage: 3.00) and a hitchance of 100.00%.
WHAM: razor-sharp can lid: 2.50 potential damage (raw damage: 2.50) and a hitchance of 100.00%.

WHAM: Evaluating the attack but not performing it took 1.01 seconds.
Round 1: Arbos executes a macro!
KoLmafia thinks it is round 2 but KoL thinks it is round 1
WHAM: Verbosity of 10 or more is set. Data files for denugging have been generated. Aborting.
You're on your own, partner.
Click here to continue in the relay browser.
 
Last edited:

Winterbay

Active member
So... 67% hitchance for lunging thust-smack. I'm guessing you've gained one or a few muscle points since the duck perhaps?, so that the hitchance may have been slightly smaller than that then. It may have been that you were very unlucky with your missing, either that or the hitchance formula in BatBrain is off which I doubt.
But as we can see hrust-smack is the skill with the most potential damage and as such will most likely be picked more often than the spells. That said, I'm not sure why it tends to do things like clobber times 4 and then a thrust smack rather than the other way around (or as it often is in my case stringozzi serpent, clobber times 3 and then another serpent...).
 

Magus_Prime

Well-known member
Not by much. I only did eight adventures on the battlefield before I went to the lighthouse. I noticed this change in behavior with 2.9.
 

Magus_Prime

Well-known member
I spent some time battling fires and just ascended yesterday. Still playing as a Sauceror and still getting strangeness when trying to use WHAM. Here's the CLI output with verbosity set to 10:

Code:
[204] Belilafs Comedy Club
Encounter: CH Imp
Round 0: Arbos wins initiative!
Running ZLib version: r36 (current)
Running Character Info Toolbox version: 0.6.8
Running ZLib version: r36 (current)
1 HP costs 2.463μ. ( 48 / 85 )
1 MP costs 7.143μ. ( 97 / 103 )
You have the latest batfactors.txt. Will not check again today.
Checking for updates (running BatBrain ver. 1.23)...
Running BatBrain version: 1.23 (current)
Checking for updates (running SmartStasis ver. 3.15)...
Running SmartStasis version: 3.15 (current)
Checking for updates (running WHAM ver. 2.9)...
Running WHAM version: 2.9 (current)
WHAM: We currently think that the round number is: 0 and that the turn number is 203.
WHAM: No need to do anything with this monster.
WHAM: Setting up variables via BatBrain
You have the latest pluralMonsters.txt. Will not check again today.
imp air (25.0 @ +80.9761734008789): 800μ * 45.24404335021973% = 361.9523468017578
Value of stat gain: 183.75μ
imp air (25.0 @ +80.9761734008789): 800μ * 45.24404335021973% = 361.9523468017578
Value of stat gain: 183.75μ
ATT: 72 (94% × 26.82, death in 2)
DEF: 65 (8.8% × 48.7 (3) (3) (3) (24) (5), win in 8)
HP: 74.55, Value: 620.71 μ
Parsed round number: 1
Building options...
Evaluating 'min(8.0+3,10)+floor(sqrt(max(8.0-7,0)))'...
Evaluating '1.2*(12+min(0.15*42.0,20)+min(13.0,40)+0.0)'...
Evaluating '1.2*(28+min(0.25*42.0,30)+min(13.0,60)+0.0)*1.5'...
Evaluating '1.2*(3.5+min(0.1*42.0,10)+min(19.0+0.0,10))'...
Evaluating '1.2*(22+min(0.3*42.0,30)+min(19.0+0.0,25))'...
Evaluating '1.2*(2.5+min(19.0+0.0,5))'...
Options built! (27 actions)
WHAM: We currently think that the round number is: 1 and that the turn number is 203.
WHAM: You have no profitable MP restoratives.
WHAM: You have no profitable HP restoratives.
WHAM: You are fighting a CH Imp. Mafia considers that this monster has an attack of 72 or 72 when given a monster name.
WHAM: Mafia further considers that this monster has a defense value of 65 or 65 when given a monster name.
WHAM: Mafia further further considers that this monster has a HP value of 71 or 71 when given a monster name.
WHAM: Your current ML-adjustment is: 10.
WHAM: Monster HP is 74.55.
WHAM: WHAM added the following to BatRound: if pastround 49; abort "Stopping fight because it has gone on for too long (set WHAM_maxround to a higher value if you think this was in error)"; endif; 
WHAM: We currently think that the round number is: 1 and that the turn number is 203.
WHAM: SS did not finish the fight, continuing with script execution. 
WHAM: Starting evaluation and performing of attack
WHAM: We currently think that the round number is: 1 and that the turn number is 203.
WHAM: Debug printing the damage dealt by your options.

WHAM: Stringozzi Serpent: 74.55 potential damage (raw damage: 92.70) and a hitchance of 100.00%.
WHAM: Fearful Fettucini: 74.55 potential damage (raw damage: 90.84) and a hitchance of 100.00%.
WHAM: Saucegeyser: 45.22 potential damage (raw damage: 88.44) and a hitchance of 100.00%.
WHAM: Cannelloni Cannon: 37.56 potential damage (raw damage: 37.56) and a hitchance of 100.00%.
WHAM: Wave of Sauce: 33.16 potential damage (raw damage: 64.32) and a hitchance of 100.00%.
WHAM: Lunging Thrust-Smack: 30.69 potential damage (raw damage: 28.34) and a hitchance of 17.27%.
WHAM: Spectral Snapper: 30.60 potential damage (raw damage: 30.60) and a hitchance of 100.00%.
WHAM: Clobber: 25.00 potential damage (raw damage: 21.00) and a hitchance of 100.00%.
WHAM: Kneebutt: 19.91 potential damage (raw damage: 17.57) and a hitchance of 17.27%.
WHAM: Tango of Terror: 16.50 potential damage (raw damage: 16.50) and a hitchance of 100.00%.
WHAM: Disco Face Stab: 16.50 potential damage (raw damage: 16.50) and a hitchance of 100.00%.
WHAM: Stream of Sauce: 11.62 potential damage (raw damage: 21.24) and a hitchance of 100.00%.
WHAM: Toss: 11.00 potential damage (raw damage: 11.00) and a hitchance of 100.00%.
WHAM: Attack with your weapon: 10.39 potential damage (raw damage: 7.63) and a hitchance of 8.80%.
WHAM: baseball: 7.00 potential damage (raw damage: 7.00) and a hitchance of 100.00%.
WHAM: sonar-in-a-biscuit: 6.00 potential damage (raw damage: 6.00) and a hitchance of 100.00%.
WHAM: Knob Goblin firecracker: 3.00 potential damage (raw damage: 3.00) and a hitchance of 100.00%.
WHAM: razor-sharp can lid: 2.50 potential damage (raw damage: 2.50) and a hitchance of 100.00%.
WHAM: Salsaball: 1.00 potential damage (raw damage: 9.00) and a hitchance of 100.00%.
WHAM: Chronic Indigestion: 1.00 potential damage (raw damage: 8.50) and a hitchance of 100.00%.

WHAM: Evaluating the attack but not performing it took 1.40 seconds.
Round 1: Arbos executes a macro!
KoLmafia thinks it is round 2 but KoL thinks it is round 1
WHAM: Verbosity of 10 or more is set. Data files for denugging have been generated. Aborting.
You're on your own, partner.

One thing that I notice is that there are a lot of spell attacks to choose from but WHAM chooses none of them. Another thing I've noticed is that if WHAM does choose an action in a fight it's often to spam Saucy Salve, even if I'm not low on HP, until I've run out of MP and then it will one-hit the monster with "Attack with Weapon".
 
Last edited:

Winterbay

Active member
Spamming saucy salve is most likely a SS bug (it's been reported that that seems to happen from time to time and some people have had to delete that skill from batfactors to get it to stop.
I don't think restoration during actual combat is actually functioning yet in WHAM so...

Are you running in Softcore or Hardcore? Also, could you copy the content of WHAM_damageandcosts.txt and WHAM_sortedbyprofit.txt (if there is a difference) from your data-folder?
 

fronobulax

Developer
Staff member
Vague, and possibly useless report but...

WHAM seems to want to use Pool Torpedoes when the adventure location is not underwater.
These things only work underwater.
If SS is trying to use them as a stasis item then I have no idea why stasis is deemed relavent or profitable at the moment.

WHAM doesn't always use a second item when Double Handed Funk Slinging is available and it seems to make sense to use two.
 

Winterbay

Active member
Hmm... That was less helpful than I had hoped. I need to take a look at the code generating them to make them more useful for actual stuff...
 

Crowther

Active member
Spamming saucy salve is most likely a SS bug (it's been reported that that seems to happen from time to time and some people have had to delete that skill from batfactors to get it to stop.
This is due to intended behavior in BatBrain, where extending combat is always given priority over total profit. Saucy salve is an expensive way to extend combat and it's probably the best. I no longer delete it from BatFactors. In BatBrain, I've replaced
Code:
   sort opts by -to_profit(value);
   sort opts by -min(kill_rounds(value),max(0,maxround - round - 5));
with
Code:
   sort opts by -(to_profit(value)*min(kill_rounds(value),max(0,maxround - round - 5)));
and I've been having great results. This fixed multiple problems I'd been having. However, there really should be some additional profit per round added for "huckleberry" monsters, where extending combat really is worth any cost. So try this change at the risk of killing gremlins too fast.

Anyway, this certainly isn't a bug in WHAM.
 

Winterbay

Active member
Vague, and possibly useless report but...

WHAM seems to want to use Pool Torpedoes when the adventure location is not underwater. If SS is trying to use them as a stasis item then I have no idea why stasis is deemed relavent or profitable at the moment.

WHAM doesn't always use a second item when Double Handed Funk Slinging is available and it seems to make sense to use two.

Thanks for catching that. I've fixed that in the now uploaded 3.0, which should also try to sling another item if the last one was an item (but not if the last two was). I also fixed the debug generation of datafiles which should hopefully gives some better info when things doesn't work out as expected.
 

shazbot

Member
I'm having issues with 3.0 (though it may be batbrain). Getting the following error
Code:
WHAM: Failed to enqueue Gnomitronic Hyperspatial Demodulizer. There's more detailed information in the gCLI.

Ultimately, it looks like it's queueing up 4 Gnomitronic Hyperspatial Demodulizer actions. A quick dry run in combat shows that it can only be used once per combat (twice with funkslinging if in same round, which I have). I can't really tell if this is WHAM, Batbrain, or the combination of the two. Though it seems odd, since they both utilize the same happened function, it seems.
 

Catch-22

Active member
I'm having issues with 3.0 (though it may be batbrain). Getting the following error
Code:
WHAM: Failed to enqueue Gnomitronic Hyperspatial Demodulizer. There's more detailed information in the gCLI.

"Feed" fails for the same reason, it can only be used once per combat. This is really a BatBrain issue but it's a pain to track things like this currently. I made a feature request to have a proxy record to signify if something can only be used once per combat, this feature request could apply to items too. Whether or not anything will be done about the feature request that actually makes things easier for BatBrain to figure things out, remains to be seen.
 

Theraze

Active member
BatBrain is supposed to use the "once" in batfactors to only queue those items once, and it uses "happened" to decide it that once has already occurred... there are issues with the "happened" though, depending on how you have macros set, and whether you're using relay combat v. automated combat. It's on Zarqon's to-do list.
 
Top