Winterbay's Helpful Automatic Monsterbasher (WHAM)

fronobulax

Developer
Staff member
That should've been fixed since version 3.6. Have you seen it since then?

Now that you mention it, no. But I'll keep watch. I was relying on the possibility that Theraze's memory was of something more recent which does not seem to be the case.
 

Tipmon

Member
And yes, I did have that many. It didn't use more than I had it just couldn't use them as far as I know. I autosold the 2 lids and 3 firecrackers without a hitch.
 

fewyn

Administrator
Staff member
Here's another fun one I'm having, low level in zombiecore.

[3] Sleazy Back Alley
Encounter: hung-over half-orc hobo
Strategy: c:\Games\kolmafia\ccs\WHAM.ccs [default]
Round 0: boxwhore wins initiative!
Running ZLib version: r37 (current)
1 HP costs 1.7μ. ( 14 / 15 )
1 MP costs 17μ. ( 1 / 1 )
Running BatBrain version: 1.29 (current)
Running SmartStasis version: 3.16 (current)
Running WHAM version: 4.3.2 (current)
WHAM: We currently think that the round number is: 0 and that the turn number is 2.
WHAM: Checking to see if WHAM sould adjust the unknown_ml for Hung-over Half-Orc Hobo.
WHAM: No need to do anything with Hung-over Half-Orc Hobo.
WHAM: Setting up variables via BatBrain
dirty hobo gloves (32.0 @ +5.416198487095663): 31μ * 33.73% = 10.46
Mad Train wine (60.0 @ +5.416198487095663): 29μ * 63.25% = 18.34
moxie weed (15.0 @ +5.416198487095663): 100μ * 15.81% = 15.81
Value of stat gain: 16.41μ
dirty hobo gloves (32.0 @ +5.416198487095663): 31μ * 33.73% = 10.46
Mad Train wine (60.0 @ +5.416198487095663): 29μ * 63.25% = 18.34
moxie weed (15.0 @ +5.416198487095663): 100μ * 15.81% = 15.81
Value of stat gain: 16.41μ
ATT: 21 (94% × 14.83, death in 2)
DEF: 153 (8.59% × 5.56 (3), win in 12)
HP: 22.05, Value: 61.02 μ
Parsed round number: 1
Building options...
Options built! (4 actions)
WHAM: We currently think that the round number is: 1 and that the turn number is 2.
WHAM: Current MP = 1 out of 1.
WHAM: You have no profitable MP restoratives.
WHAM: Current HP = 14 out of 15.
WHAM: You have no profitable HP restoratives.
WHAM: You are fighting a Hung-over Half-Orc Hobo. Mafia considers that this monster has an attack of 21 or 21 when given a monster name.
WHAM: Mafia further considers that this monster has a defense value of 0 or 0 when given a monster name.
WHAM: Mafia further further considers that this monster has a HP value of 21 or 21 when given a monster name.
WHAM: Your current ML-adjustment is: 20.
WHAM: Monster HP is 22.05.
WHAM: WHAM added the following to BatRound: if pastround 29; 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:
Action Profit Damage Other
base (0μ) --

Building custom actions...
WHAM: This monster does not drop a goal item
WHAM: No valid attacks (Best attack 'skill 12012' not good enough)
WHAM: Infecting the opponent to try and turn it
Queued: skill 12000
Building options...
Expression syntax errors for 'modifier_eval()':
Expected end, found !! zombify (zlib.ash, line 162)

You're on your own, partner.
Click here to continue in the relay browser.
 

fewyn

Administrator
Staff member
Seems to be only happening at really low levels, it seems to be running fine now.
 

fewyn

Administrator
Staff member
Started doing it again... doesn't happen every time either so it's kinda confusing.

Code:
        Request 1 of 30 (Manor1: Haunted Library) in progress...

[298]     Haunted Library
Encounter: writing desk
Strategy:     c:\Games\kolmafia\ccs\WHAM.ccs [default]
Round 0: boxwhore wins     initiative!
[COLOR=gray]Running ZLib version: r37 (current)[/COLOR]
[COLOR=#880000]1     HP costs 1.133μ. ( 113 / 116 )[/COLOR]
[COLOR=#000088]1 MP     costs 17μ. ( 12 / 12 )[/COLOR]
[COLOR=gray]Running BatBrain     version: 1.29 (current)[/COLOR]
[COLOR=gray]Running SmartStasis     version: 3.16 (current)[/COLOR]
[COLOR=gray]Running WHAM version:     4.3.2 (current)[/COLOR]
[COLOR=purple]WHAM: We currently think     that the round number is: 0 and that the turn number is 297.[/COLOR]
[COLOR=purple]WHAM:     Checking to see if WHAM sould adjust the unknown_ml for Writing Desk.[/COLOR]
[COLOR=purple]WHAM:     No need to do anything with Writing Desk.[/COLOR]
[COLOR=purple]WHAM:     Setting up variables via BatBrain[/COLOR]
[COLOR=black]disintegrating     quill pen (15.0 @ +51.98529093593286): 45μ * 22.8% = 10.26[/COLOR]
[COLOR=black]inkwell     (30.0 @ +51.98529093593286): 150μ * 45.6% = 68.39[/COLOR]
[COLOR=black]snifter     of thoroughly aged brandy (30.0 @ +51.98529093593286): 34μ * 45.6% = 15.5[/COLOR]
Value     of stat gain: 41.41μ
[COLOR=black]disintegrating quill pen     (15.0 @ +51.98529093593286): 45μ * 22.8% = 10.26[/COLOR]
[COLOR=black]inkwell     (30.0 @ +51.98529093593286): 150μ * 45.6% = 68.39[/COLOR]
[COLOR=black]snifter     of thoroughly aged brandy (30.0 @ +51.98529093593286): 34μ * 45.6% = 15.5[/COLOR]
Value     of stat gain: 41.41μ
ATT: [B]53[/B] (94% × 21.8, death in 6)
DEF:     [B]51[/B] (95.45% × 45.45, win in 2)
HP: [B]64[/B], Value: [COLOR=green][B]135.56     μ[/B][/COLOR]
[COLOR=black]Parsed round number: 1[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (16 actions)[/COLOR]
[COLOR=purple]WHAM:     We currently think that the round number is: 1 and that the turn number is     297.[/COLOR]
[COLOR=purple]WHAM: Current MP = 12 out of 12.[/COLOR]
[COLOR=purple]WHAM:     You have no profitable MP restoratives.[/COLOR]
[COLOR=purple]WHAM:     Current HP = 113 out of 116.[/COLOR]
[COLOR=purple]WHAM: You have     no profitable HP restoratives.[/COLOR]
[COLOR=purple]WHAM: You     are fighting a Writing Desk. Mafia considers that this monster has an     attack of 53 or 53 when given a monster name.[/COLOR]
[COLOR=purple]WHAM:     Mafia further considers that this monster has a defense value of 51 or 51     when given a monster name.[/COLOR]
[COLOR=purple]WHAM: Mafia     further further considers that this monster has a HP value of 64 or 62     when given a monster name.[/COLOR]
[COLOR=purple]WHAM: Your     current ML-adjustment is: 0.[/COLOR]
[COLOR=purple]WHAM: Monster     HP is 64.0.[/COLOR]
[COLOR=black]WHAM: WHAM added the following     to BatRound: if pastround 29; 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; [/COLOR]
[COLOR=purple]WHAM: Running     SmartStasis[/COLOR]
Profit per round:     [TABLE="width: 100%"]
[TR]
[TH]          Action[/TH]
[TH]          Profit[/TH]
[TH]          Damage[/TH]
[TH]          Other[/TH]
[/TR]
[TR]
[TD="align: left"]          base (0μ)[/TD]
[TD="align: right"]          [B]0μ[/B][/TD]
[TD="align: center"]          --[/TD]
[TD="align: center"][/TD]
[/TR]
[/TABLE]
    
    [COLOR=black]Building custom actions...[/COLOR]
[COLOR=red]WHAM:     This monster does not drop a goal item[/COLOR]
[COLOR=black]disintegrating     quill pen (15.0 @ +51.98529093593286): 45μ * 22.8% = 10.26[/COLOR]
[COLOR=black]inkwell     (30.0 @ +51.98529093593286): 150μ * 45.6% = 68.39[/COLOR]
[COLOR=black]snifter     of thoroughly aged brandy (30.0 @ +51.98529093593286): 34μ * 45.6% = 15.5[/COLOR]
Value     of stat gain: 41.41μ
[COLOR=purple]WHAM: Attack option     chosen: attack (round 1, profit: -8.64)[/COLOR]
[COLOR=black]Custom     actions built! (0 actions)[/COLOR]
[COLOR=black]Stasis option     chosen: use 8 (round 1, profit: -8.49)[/COLOR]
[COLOR=black]disintegrating     quill pen (15.0 @ +51.98529093593286): 45μ * 22.8% = 10.26[/COLOR]
[COLOR=black]inkwell     (30.0 @ +51.98529093593286): 150μ * 45.6% = 68.39[/COLOR]
[COLOR=black]snifter     of thoroughly aged brandy (30.0 @ +51.98529093593286): 34μ * 45.6% = 15.5[/COLOR]
Value     of stat gain: 41.41μ
[COLOR=purple]WHAM: Attack option     chosen: attack (round 1, profit: -8.64)[/COLOR]
[COLOR=black]This     monster is not your huckleberry.[/COLOR]
[COLOR=black]Stasis loop     complete.[/COLOR]
[COLOR=purple]WHAM: SmartStasis complete.[/COLOR]
[COLOR=purple]WHAM:     Running SmartStasis took 0.09 seconds.[/COLOR]
[COLOR=purple]WHAM:     We currently think that the round number is: 1 and that the turn number is     297.[/COLOR]
[COLOR=purple]WHAM: SS did not finish the fight,     continuing with script execution. [/COLOR]
[COLOR=purple]WHAM:     Starting evaluation and performing of attack[/COLOR]
[COLOR=purple]WHAM:     We currently think that the round number is: 1 and that the turn number is     297.[/COLOR]
[COLOR=black]disintegrating quill pen (15.0 @     +51.98529093593286): 45μ * 22.8% = 10.26[/COLOR]
[COLOR=black]inkwell     (30.0 @ +51.98529093593286): 150μ * 45.6% = 68.39[/COLOR]
[COLOR=black]snifter     of thoroughly aged brandy (30.0 @ +51.98529093593286): 34μ * 45.6% = 15.5[/COLOR]
Value     of stat gain: 41.41μ
[COLOR=purple]WHAM: Attack option     chosen: attack (round 1, profit: -8.64)[/COLOR]
[COLOR=purple]WHAM:     No profitable stun option[/COLOR]
[COLOR=black]Queued: attack[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (16 actions)[/COLOR]
[COLOR=black]disintegrating     quill pen (15.0 @ +51.98529093593286): 45μ * 22.8% = 10.26[/COLOR]
[COLOR=black]inkwell     (30.0 @ +51.98529093593286): 150μ * 45.6% = 68.39[/COLOR]
[COLOR=black]snifter     of thoroughly aged brandy (30.0 @ +51.98529093593286): 34μ * 45.6% = 15.5[/COLOR]
Value     of stat gain: 41.41μ
[COLOR=purple]WHAM: Attack option     chosen: attack (round 2, profit: -0.15)[/COLOR]
[COLOR=black]Queued:     attack[/COLOR]
[COLOR=black]Building options...[/COLOR]
[COLOR=black]Options     built! (16 actions)[/COLOR]
[COLOR=black]Parsed round number: 1[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (16 actions)[/COLOR]
[COLOR=purple]WHAM:     Evaluating the attack but not performing it took 0.13 seconds.[/COLOR]
[COLOR=red]WHAM:     We can't Saucesplash.[/COLOR]
[COLOR=red]true, true, true, true,     false[/COLOR]
[COLOR=purple]WHAM: Enqueueing attack with your     weapon (macroid attack).[/COLOR]
[COLOR=black]Queued: attack[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (16 actions)[/COLOR]
[COLOR=purple]WHAM:     Successfully enqueued attack with your weapon.[/COLOR]
[COLOR=red]WHAM:     We can't Saucesplash.[/COLOR]
[COLOR=red]true, true, true, true,     false[/COLOR]
[COLOR=purple]WHAM: Enqueueing attack with your     weapon (macroid attack).[/COLOR]
[COLOR=black]Queued: attack[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (16 actions)[/COLOR]
[COLOR=purple]WHAM:     Successfully enqueued attack with your weapon.[/COLOR]
[COLOR=purple]WHAM:     We are going to 2-shot with attack with your weapon and attack with your     weapon.[/COLOR]
[COLOR=black]Constructed macro: scrollwhendone;     sub batround; if pastround 29; 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; attack; call batround; attack; call batround; [/COLOR]
Round     1: boxwhore executes a macro!
Round 1: boxwhore attacks!
Round 2:     writing desk takes 57 damage.
You lose 22 hit points
Round 2:     boxwhore attacks!
Round 3: writing desk takes 43 damage.
Round 3:     boxwhore wins the fight!
After Battle: Lithium does a series of     pirouettes without losing his balance. Keeping his head stationary while     his body turns could be considered cheating, though.
You acquire an     item: inkwell
You gain 9 Strongness
You gain 3 Magicalness
You     gain 2 Chutzpah
[COLOR=black]Happened: attack[/COLOR]
[COLOR=black]Happened:     attack[/COLOR]
[COLOR=black]Parsed round number: 0[/COLOR]
[COLOR=green]Look!     You found 1 inkwell (150μ)![/COLOR]
[COLOR=black]Happened:     crit[/COLOR]
[COLOR=purple]WHAM: Evaluating the attack and     performing it took 0.69 seconds.[/COLOR]
[COLOR=purple]WHAM: We     currently think that the round number is: 31 and that the turn number is     298.[/COLOR]
[COLOR=purple]WHAM: We currently think that the     round number is: 31 and that the turn number is 298.[/COLOR]

[COLOR=gray]Running     ZLib version: r37 (current)[/COLOR]
[COLOR=gray]Running Best     Between Battle Script Ever version: 2.6 (current)[/COLOR]
[COLOR=black]You     don't have any spooky putty monsters.[/COLOR]

Request 2 of 30     (Manor1: Haunted Library) in progress...

[299] Haunted Library
Encounter:     bookbat
Strategy: c:\Games\kolmafia\ccs\WHAM.ccs [default]
Round 0:     boxwhore wins initiative!
[COLOR=gray]Running ZLib version: r37     (current)[/COLOR]
[COLOR=#880000]1 HP costs 1.133μ. ( 107 / 116 )[/COLOR]
[COLOR=#000088]1     MP costs 17μ. ( 12 / 12 )[/COLOR]
[COLOR=gray]Running     BatBrain version: 1.29 (current)[/COLOR]
[COLOR=gray]Running     SmartStasis version: 3.16 (current)[/COLOR]
[COLOR=gray]Running     WHAM version: 4.3.2 (current)[/COLOR]
[COLOR=purple]WHAM: We     currently think that the round number is: 0 and that the turn number is     298.[/COLOR]
[COLOR=purple]WHAM: Checking to see if WHAM sould     adjust the unknown_ml for Bookbat.[/COLOR]
[COLOR=purple]WHAM: No     need to do anything with Bookbat.[/COLOR]
[COLOR=purple]WHAM:     Setting up variables via BatBrain[/COLOR]
[COLOR=black]tattered     scrap of paper (30.0 @ +51.98529093593286): 1,686μ * 45.6% = 768.74[/COLOR]
Value     of stat gain: 39.84μ
[COLOR=black]tattered scrap of paper     (30.0 @ +51.98529093593286): 1,686μ * 45.6% = 768.74[/COLOR]
Value     of stat gain: 39.84μ
ATT: [B]51[/B] (94% × 19.95, death in 6)
DEF:     [B]45[/B] (95.45% × 52.65, win in 2)
HP: [B]55[/B], Value: [COLOR=green][B]808.59     μ[/B][/COLOR]
[COLOR=black]Parsed round number: 1[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (17 actions)[/COLOR]
[COLOR=purple]WHAM:     We currently think that the round number is: 1 and that the turn number is     298.[/COLOR]
[COLOR=purple]WHAM: Current MP = 12 out of 12.[/COLOR]
[COLOR=purple]WHAM:     You have no profitable MP restoratives.[/COLOR]
[COLOR=purple]WHAM:     Current HP = 107 out of 116.[/COLOR]
[COLOR=purple]WHAM: You have     no profitable HP restoratives.[/COLOR]
[COLOR=purple]WHAM: You     are fighting a Bookbat. Mafia considers that this monster has an attack of     51 or 51 when given a monster name.[/COLOR]
[COLOR=purple]WHAM:     Mafia further considers that this monster has a defense value of 45 or 44     when given a monster name.[/COLOR]
[COLOR=purple]WHAM: Mafia     further further considers that this monster has a HP value of 55 or 55     when given a monster name.[/COLOR]
[COLOR=purple]WHAM: Your     current ML-adjustment is: 0.[/COLOR]
[COLOR=purple]WHAM: Monster     HP is 55.0.[/COLOR]
[COLOR=black]WHAM: WHAM added the following     to BatRound: if pastround 29; 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; [/COLOR]
[COLOR=purple]WHAM: Running     SmartStasis[/COLOR]
Profit per round:     [TABLE="width: 100%"]
[TR]
[TH]          Action[/TH]
[TH]          Profit[/TH]
[TH]          Damage[/TH]
[TH]          Other[/TH]
[/TR]
[TR]
[TD="align: left"]          base (0μ)[/TD]
[TD="align: right"]          [B]0μ[/B][/TD]
[TD="align: center"]          --[/TD]
[TD="align: center"][/TD]
[/TR]
[/TABLE]
    
    [COLOR=black]Building custom actions...[/COLOR]
[COLOR=red]WHAM:     This monster does not drop a goal item[/COLOR]
[COLOR=black]tattered     scrap of paper (30.0 @ +51.98529093593286): 1,686μ * 45.6% = 768.74[/COLOR]
Value     of stat gain: 39.84μ
[COLOR=purple]WHAM: Attack option     chosen: attack (round 1, profit: -13.48)[/COLOR]
[COLOR=black]Custom     actions built! (0 actions)[/COLOR]
[COLOR=black]Stasis option     chosen: use 8 (round 1, profit: -13.32)[/COLOR]
[COLOR=black]tattered     scrap of paper (30.0 @ +51.98529093593286): 1,686μ * 45.6% = 768.74[/COLOR]
Value     of stat gain: 39.84μ
[COLOR=purple]WHAM: Attack option     chosen: attack (round 1, profit: -13.48)[/COLOR]
[COLOR=black]This     monster is not your huckleberry.[/COLOR]
[COLOR=black]Stasis loop     complete.[/COLOR]
[COLOR=purple]WHAM: SmartStasis complete.[/COLOR]
[COLOR=purple]WHAM:     Running SmartStasis took 0.10 seconds.[/COLOR]
[COLOR=purple]WHAM:     We currently think that the round number is: 1 and that the turn number is     298.[/COLOR]
[COLOR=purple]WHAM: SS did not finish the fight,     continuing with script execution. [/COLOR]
[COLOR=purple]WHAM:     Starting evaluation and performing of attack[/COLOR]
[COLOR=purple]WHAM:     We currently think that the round number is: 1 and that the turn number is     298.[/COLOR]
[COLOR=black]tattered scrap of paper (30.0 @     +51.98529093593286): 1,686μ * 45.6% = 768.74[/COLOR]
Value of stat     gain: 39.84μ
[COLOR=purple]WHAM: Attack option chosen:     attack (round 1, profit: -13.48)[/COLOR]
[COLOR=purple]WHAM: No     profitable stun option[/COLOR]
[COLOR=black]Queued: attack[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (17 actions)[/COLOR]
[COLOR=black]tattered     scrap of paper (30.0 @ +51.98529093593286): 1,686μ * 45.6% = 768.74[/COLOR]
Value     of stat gain: 39.84μ
[COLOR=purple]WHAM: Attack option     chosen: skill 12012 (round 2, profit: 6.88)[/COLOR]
[COLOR=black]Queued:     skill 12012[/COLOR]
[COLOR=black]Building options...[/COLOR]
[COLOR=black]Options     built! (17 actions)[/COLOR]
[COLOR=black]Parsed round number: 1[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (17 actions)[/COLOR]
[COLOR=purple]WHAM:     Evaluating the attack but not performing it took 0.13 seconds.[/COLOR]
[COLOR=purple]WHAM:     Infecting the opponent to up the damage of Plague Claws[/COLOR]
[COLOR=red]WHAM:     We can't Saucesplash.[/COLOR]
[COLOR=red]true, true, true, true,     false[/COLOR]
[COLOR=purple]WHAM: Enqueueing attack with your     weapon (macroid attack).[/COLOR]
[COLOR=black]Queued: attack[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (17 actions)[/COLOR]
[COLOR=purple]WHAM:     Successfully enqueued attack with your weapon.[/COLOR]
[COLOR=red]WHAM:     We can't Saucesplash.[/COLOR]
[COLOR=red]true, true, true, true,     false[/COLOR]
[COLOR=purple]WHAM: Enqueueing Infectious Bite     (macroid skill 12012).[/COLOR]
[COLOR=black]Queued: skill 12012[/COLOR]
[COLOR=black]Building     options...[/COLOR]
[COLOR=black]Options built! (17 actions)[/COLOR]
[COLOR=purple]WHAM:     Successfully enqueued Infectious Bite.[/COLOR]
[COLOR=red]WHAM:     We can't Saucesplash.[/COLOR]
[COLOR=red]true, true, true, true,     true[/COLOR]
[COLOR=purple]WHAM: Enqueueing (macroid ).[/COLOR]
[COLOR=red]Unable     to enqueue empty action.[/COLOR]
[COLOR=black]WHAM: Failed to     enqueue (entry 3 in the strategy).[/COLOR]
[COLOR=black]WHAM: The     following combat strategy was attempted: [/COLOR]
[COLOR=black]attack     with your weapon[/COLOR]
[COLOR=black]Infectious Bite[/COLOR]

Round     1: boxwhore executes a macro!
KoLmafia thinks it is round 2 but KoL     thinks it is round 1
[COLOR=red]WHAM: Failed to enqueue .     There's more detailed information in the gCLI.[/COLOR]
[COLOR=red]You're     on your own, partner.[/COLOR]
[URL="http://kolmafia.us/main.php"]Click     here to continue in the relay browser.[/URL]


[COLOR=red]BCC:     You aborted, so so am I. This abort may have been caused by a rogue     condition not being met. If this is unexpected, please paste the CLI     output, as well as the results of typing 'condition check' without the     quotes, into the mafia CLI window now.[/COLOR]
 

Winterbay

Active member
Hmm... That other option should've been Plague Claws I feel since it said it was going to infect to increase the damage output. It may be that my insertion of the bite there isn't completely working as intended...

Edit: Indeed, that is the problem. I have just gone through the 6 stages of debugging in my sig below. In that exact order :)
 
Last edited:

Winterbay

Active member
4.3.3 has been uploaded which should, hopefully, correctly insert infectious bite before plague claws... I've no idea what I was thinking when I wrote the earlier one but no wonder it crashed as the macroid for Infectious Bite never was added to the list and the bite actually overrode plague claws rather than getting inserted in front of it...
 

Winterbay

Active member
So, 4.3.4 uploaded together with a new version of BatBrain which should a) make it use infectious bite only if we can actually win the fight and b) remove the modifier_eval() error reported above.
 

Terragon

New member
I'm not entirely sure what's going on, but in my last ascension I did lots of combat manually because WHAM was doing an attack sequence of normal attacks, or using items - it was still managing to kill the monster (mostly), but I was getting hit so much that my meat was being consumed by healing. Manually, I was blue-balling and shieldbutting for very little damage to myself - reducing my running cost to just the MP restoration.

Any ideas? I've broken the prism now, but I can probably set myself up in such a way that I can find a monster to illustrate the issue.
 

Winterbay

Active member
If you could perform a battle or two with said issue on verbosity around 9 I believe that would be helpful in trying to figure out what is happening and potentially also why.
 

Terragon

New member
Here's the output against a Hobo with verbosity 9. It appears as if shieldbutt, and head+shieldbutt is not even being evaluated.

HTML:
Encounter: Square Root Elmer, the Southern Officer and the Southern Gentleman
Strategy: /Users/ameighc/Library/Application Support/KoLmafia/ccs/DEFAULT.ccs [default]
Round 0: terragon loses initiative!
<font color="gray">Running ZLib version: r37 (current)</font>
<font color="#880000">1 HP costs 10?. ( 496 / 511 )</font>
<font color="#000088">1 MP costs 17?. ( 94 / 118 )</font>
<font color="gray">Running BatBrain version: 1.29 (current)</font>
<font color="gray">Running SmartStasis version: 3.16 (current)</font>
<font color="gray">Running WHAM version: 4.3.4 (current)</font>
<font color="purple">WHAM: We currently think that the round number is: 0 and that the turn number is 1160.</font>
<font color="purple">WHAM: Checking to see if WHAM sould adjust the unknown_ml for Normal Hobo.</font>
<font color="purple">WHAM: No need to do anything with Normal Hobo.</font>
<font color="purple">WHAM: Setting up variables via BatBrain</font>
<font color="black">hobo nickel (15.0 @ +51.98529093593286): 50? * 22.8% = 11.4</font>
Value of stat gain: 234.38?
<font color="black">hobo nickel (15.0 @ +51.98529093593286): 50? * 22.8% = 11.4</font>
Value of stat gain: 234.38?
ATT: <b>296</b> (94% × 91.81, death in 4)<br>DEF: <b>267</b> (8.59% × 41.69<b> <span style='color: red'>(11)</span></b>, win in 42)<br>HP: <b>402</b>, Value: <b><span style='color:green'>245.77 ?</span></b>
<font color="black">Parsed round number: 1</font>
<font color="black">Building options...</font>
<font color="black">Options built! (11 actions)</font>
<font color="purple">WHAM: We currently think that the round number is: 1 and that the turn number is 1160.</font>
<font color="purple">WHAM: Current MP = 94 out of 118.</font>
<font color="purple">WHAM: You have no profitable MP restoratives.</font>
<font color="purple">WHAM: Current HP = 511 out of 511.</font>
<font color="purple">WHAM: You have no profitable HP restoratives.</font>
<font color="purple">WHAM: You are fighting a Normal Hobo. Mafia considers that this monster has an attack of 296 or 300 when given a monster name.</font>
<font color="purple">WHAM: Mafia further considers that this monster has a defense value of 267 or 270 when given a monster name.</font>
<font color="purple">WHAM: Mafia further further considers that this monster has a HP value of 402 or 400 when given a monster name.</font>
<font color="purple">WHAM: Your current ML-adjustment is: 0.</font>
<font color="purple">WHAM: Monster HP is 402.0.</font>
<font color="black">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; </font>
<font color="purple">WHAM: Running SmartStasis</font>
Profit per round: <table width=100%><tr><th>Action</th><th>Profit</th><th>Damage</th><th>Other</th></tr><tr><td align=left>base; Flaming Gravy Fairy <span color='green'><small>(0?)</small></span></td><td align=right><span color='green'><b>0?</b></span></td><td align=center>0<b> <span style='color: red'>(5.2)</span></b> <small>Actual: 5.2 <span color='green'>(0 ?/dmg)</span></small></td><td align=center></td></tr></table>
<font color="black">Building custom actions...</font>
<font color="red">WHAM: This monster does not drop a goal item</font>
<font color="black">Custom actions built! (0 actions)</font>
<font color="black">Stasis option chosen: use 5561 (round 1, profit: -361)</font>
<font color="purple">WHAM: No valid attacks (Best attack 'skill 7131' not good enough)</font>
<font color="black">This monster is not your huckleberry.</font>
<font color="black">Stasis loop complete.</font>
<font color="purple">WHAM: SmartStasis complete.</font>
<font color="purple">WHAM: Running SmartStasis took 0.08 seconds.</font>
<font color="purple">WHAM: We currently think that the round number is: 1 and that the turn number is 1160.</font>
<font color="purple">WHAM: SS did not finish the fight, continuing with script execution. </font>
<font color="purple">WHAM: Starting evaluation and performing of attack</font>
<font color="purple">WHAM: We currently think that the round number is: 1 and that the turn number is 1160.</font>
<font color="purple">WHAM: No valid attacks (Best attack 'skill 7131' not good enough)</font>
<font color="purple">WHAM: No valid attacks (Best attack 'skill 7131' not good enough)</font>
<font color="black">Stun option chosen: use 5560 (round 1, profit: -511)</font>
<font color="black">Queued: use 5560</font>
<font color="black">Building options...</font>
<font color="black">Options built! (10 actions)</font>
<font color="black">hobo nickel (15.0 @ +51.98529093593286): 50? * 22.8% = 11.4</font>
Value of stat gain: 234.38?
<font color="purple">WHAM: Attack option chosen: skill 7131 (round 2, profit: -511)</font>
<font color="black">Queued: skill 7131</font>
<font color="black">Building options...</font>
<font color="black">Options built! (9 actions)</font>
<font color="purple">WHAM: No valid attacks (Best attack 'use 5561' not good enough)</font>
<font color="purple">WHAM: Unable to delevel until you can kill the monster without it killing you. Try it yourself.</font>
<font color="purple">WHAM: Unable to determine a valid combat strategy. For your benefit here are the numbers for you combat skills.</font>
<font color="blue">WHAM: Grizzly Scene: 52.69 potential damage (raw damage: 52.69) and a hitchance of 100.00%.</font>
<font color="blue">WHAM: Rain-Doh orange agent: 50.00 potential damage (raw damage: 50.00) and a hitchance of 100.00%.</font>
<font color="blue">WHAM: Toss: 13.00 potential damage (raw damage: 13.00) and a hitchance of 100.00%.</font>
<font color="red">WHAM: Attack with your weapon: 11.10 potential damage (raw damage: 11.04) and a hitchance of 8.59%.</font>
<font color="red">WHAM: Headbutt: 8.26 potential damage (raw damage: 8.25) and a hitchance of 9.00%.</font>
<font color="blue">WHAM: Rain-Doh indigo cup: 0.00 potential damage (raw damage: 0.00) and a hitchance of 100.00%.</font>
<font color="blue">WHAM: Entangling Noodles: 0.00 potential damage (raw damage: 0.00) and a hitchance of 100.00%.</font>
<font color="purple">WHAM: You now have the knowledge needed to go forward and be victorious</font>
Round 1: terragon executes a macro!
KoLmafia thinks it is round 2 but KoL thinks it is round 1
WHAM: Unable to figure out a combat strategy. Helpful information regarding your skills have been printed to the CLI
You're on your own, partner.
<a href=main.php target=mainpane class=error>Click here to continue in the relay browser.</a><br>

For the record, I easily defeated the hobo with blue balls, grizzly scene, head+shieldbutt, head+shieldbutt, and lost only 112 of 511 HP.

I think the problem is that WHAM is not even evaluating shieldbutt or shieldbutt combos as possibilities for me - that would explain why it is taking longer where it's possible to kill the monster in a longer fashion.
 

Winterbay

Active member
First, it would never have used Grizzly Scene since it had already enqueued Kodiak Moment and you can only use one bear skill per fight. But that is beside the point. I have no idea why it would not show shieldbutt (and the combos) since it used them pretty consistently when I did my class action TT-run recently.
 

Terragon

New member
I'm going to be doing hobopolis for a few days - so I'll add some additional debugging to my local copy and see if I can work out why shieldbutt isn't being considered at all.
 

Winterbay

Active member
If you set verbosity to 11 it should show you all the calculations and damages (and not perform any kind of attack) so that may be helpful. It'll give loads of output though...
 

StDoodle

Minion
Ya know, I can understand how & why the "11 = debug mode" thing could occur to one, but as that's not suggested by documentation, it seems kinda... I hate to use this word, but... annoying. ;)

The scripting community should probably agree on a unique global zlib var to use to mean "don't actually DO things, where possible; just output the results of calculations and such."
 

Winterbay

Active member
Well, yes, I had 10 as the top part where it wouldn't do anything and just print loads and loads of info and then I wanted to add other things as well and so since that was even more info I added 11... So it's not so much a concious decision that debug mode = 11, but rather an extra level of debugging on top of 10.
 
Top