Winterbay's Helpful Automatic Monsterbasher (WHAM)

Magus_Prime

Well-known member
I trusted that WHAM would have special handling for Mine Crabs:

Code:
[1367] The Wreck of the Edgar Fitzsimmons
Encounter: mine crab
Round 0: Arbos loses initiative!
WHAM: Running SmartStasis
WHAM: Starting evaluation and performing of attack
WHAM: We are going to 1-shot with Fearful Fettucini.
Round 1: Arbos executes a macro!
Round 1: Arbos casts FEARFUL FETTUCINI!
Round 2: mine crab takes 6490 damage.
You lose 101,773 hit points
You lose an effect: Beaten Up

Feature request: Add special handling for Mine Crabs. :rolleyes:
 

Winterbay

Active member
Huh, I never had that happen. I had it try too many of an action that built up over time to make it explode (but each initial action was ok). My multi which farms the sea has a special section for the mine crab for this reason.
I should probably look into it again now that more people are diving into the sea :)
 

bumcheekcity

Active member
Code:
[280] The Defiled Alcove
Encounter: modern zmobie
Strategy: /home/andreas/Dropbox/KoLMafia/ccs/WHAM.ccs [default]
Round 0: bumcheekcity loses initiative!
Round 1: modern zmobie takes 3 damage.
Round 1: modern zmobie takes 4 damage.
You lose 33 hit points
ATT: 211 (94% × (30.49), death in 11)
DEF: 203 (8.8% × 39.32 (5), win in 43)
HP: 191, Value: 492.11 μ, RES: 0 (-1) (1) (-1)
WHAM: Monster HP is 191.0.
WHAM: Running SmartStasis
Profit per round: ActionProfitDamageOtherbase (0μ)0μ--
Round 1: bumcheekcity executes a macro!
Round 1: bumcheekcity casts LASAGNA BANDAGES!
You gain 15 hit points
Round 2: Gonald sees that you're hurt and licks your wounds enthusiassonately. Or maybe he just smelled the lasagna. Either way, you feel better.
You gain 10 hit points
Round 2: modern zmobie takes 1 damage.
Round 2: modern zmobie takes 3 damage.
You lose 32 hit points
Round 2: bumcheekcity executes a macro!
Round 2: bumcheekcity casts LASAGNA BANDAGES!
You gain 12 hit points
Round 3: Gonald sees that you're hurt and licks your wounds enthusiassonately. Or maybe he just smelled the lasagna. Either way, you feel better.
You gain 11 hit points
Round 3: modern zmobie takes 2 damage.
Round 3: modern zmobie takes 5 damage.
You lose 30 hit points
Round 3: bumcheekcity executes a macro!
Round 3: bumcheekcity casts LASAGNA BANDAGES!
You gain 10 hit points
Round 4: Gonald sees that you're hurt and licks your wounds enthusiassonately. Or maybe he just smelled the lasagna. Either way, you feel better.
You gain 14 hit points
Round 4: modern zmobie takes 1 damage.
Round 4: modern zmobie takes 5 damage.
You lose 31 hit points
Round 4: bumcheekcity executes a macro!
Round 4: bumcheekcity casts LASAGNA BANDAGES!
You gain 13 hit points
Round 5: Gonald sees that you're hurt and licks your wounds enthusiassonately. Or maybe he just smelled the lasagna. Either way, you feel better.
You gain 12 hit points
Round 5: modern zmobie takes 3 damage.
Round 5: modern zmobie takes 4 damage.
You lose 31 hit points
Round 5: bumcheekcity executes a macro!
Round 5: bumcheekcity casts LASAGNA BANDAGES!
You gain 18 hit points
Round 6: Gonald sees that you're hurt and licks your wounds enthusiassonately. Or maybe he just smelled the lasagna. Either way, you feel better.
You gain 10 hit points
Round 6: modern zmobie takes 1 damage.
Round 6: modern zmobie takes 3 damage.
You lose 32 hit points
Round 6: bumcheekcity executes a macro!
Round 6: bumcheekcity casts LASAGNA BANDAGES!
You gain 19 hit points
Round 7: Gonald sees that you're hurt and licks your wounds enthusiassonately. Or maybe he just smelled the lasagna. Either way, you feel better.
You gain 11 hit points
Round 7: modern zmobie takes 3 damage.
Round 7: modern zmobie takes 3 damage.
You lose 31 hit points
Round 7: bumcheekcity executes a macro!
Round 7: bumcheekcity casts LASAGNA BANDAGES!
You gain 14 hit points
Round 8: Gonald sees that you're hurt and licks your wounds enthusiassonately. Or maybe he just smelled the lasagna. Either way, you feel better.
You gain 9 hit points
Round 8: modern zmobie takes 3 damage.
Round 8: modern zmobie takes 5 damage.
You lose 30 hit points
Round 8: bumcheekcity executes a macro!
Round 8: bumcheekcity casts LASAGNA BANDAGES!
You gain 15 hit points
Round 9: Gonald sees that you're hurt and licks your wounds enthusiassonately. Or maybe he just smelled the lasagna. Either way, you feel better.
You gain 13 hit points
Round 9: modern zmobie takes 2 damage.
Round 9: modern zmobie takes 3 damage.
You lose 30 hit points
Round 9: bumcheekcity executes a macro!
Round 9: bumcheekcity casts LASAGNA BANDAGES!
You gain 10 hit points
Round 10: Gonald sees that you're hurt and licks your wounds enthusiassonately. Or maybe he just smelled the lasagna. Either way, you feel better.
You gain 7 hit points
Round 10: bumcheekcity executes a macro!
Round 10: bumcheekcity casts LASAGNA BANDAGES!
You gain 11 hit points
Round 11: Gonald sees that you're hurt and licks your wounds enthusiassonately. Or maybe he just smelled the lasagna. Either way, you feel better.
You gain 9 hit points
Round 11: modern zmobie takes 2 damage.
Round 11: modern zmobie takes 3 damage.
You lose 30 hit points
Round 11: bumcheekcity executes a macro!
Round 11: bumcheekcity casts LASAGNA BANDAGES!
You gain 20 hit points
Round 12: Gonald sees that you're hurt and licks your wounds enthusiassonately. Or maybe he just smelled the lasagna. Either way, you feel better.
You gain 8 hit points
Round 12: modern zmobie takes 3 damage.
Round 12: modern zmobie takes 3 damage.
You lose 29 hit points
Round 12: bumcheekcity executes a macro!
Round 12: bumcheekcity casts LASAGNA BANDAGES!
You gain 20 hit points
Round 13: Gonald sees that you're hurt and licks your wounds enthusiassonately. Or maybe he just smelled the lasagna. Either way, you feel better.
You gain 7 hit points
Round 13: modern zmobie takes 3 damage.
Round 13: modern zmobie takes 4 damage.
You lose 30 hit points
Round 13: bumcheekcity executes a macro!
Round 13: bumcheekcity casts LASAGNA BANDAGES!
You gain 19 hit points
Round 14: Gonald sees that you're hurt and licks your wounds enthusiassonately. Or maybe he just smelled the lasagna. Either way, you feel better.
You gain 10 hit points
Round 14: modern zmobie takes 1 damage.
Round 14: modern zmobie takes 4 damage.
You lose 29 hit points
Round 14: bumcheekcity executes a macro!
Round 14: bumcheekcity casts LASAGNA BANDAGES!
You gain 16 hit points
Round 15: Gonald sees that you're hurt and licks your wounds enthusiassonately. Or maybe he just smelled the lasagna. Either way, you feel better.
You gain 13 hit points
Round 15: modern zmobie takes 2 damage.
Round 15: modern zmobie takes 4 damage.
You lose 30 hit points
Round 15: bumcheekcity executes a macro!
Round 15: bumcheekcity casts LASAGNA BANDAGES!
You gain 15 hit points
Round 16: Gonald sees that you're hurt and licks your wounds enthusiassonately. Or maybe he just smelled the lasagna. Either way, you feel better.
You gain 10 hit points
Round 16: modern zmobie takes 2 damage.
Round 16: modern zmobie takes 4 damage.
You lose 30 hit points
Round 16: bumcheekcity executes a macro!
Round 16: bumcheekcity casts LASAGNA BANDAGES!
You gain 17 hit points
Round 17: Gonald sees that you're hurt and licks your wounds enthusiassonately. Or maybe he just smelled the lasagna. Either way, you feel better.
You gain 11 hit points
Round 17: modern zmobie takes 2 damage.
Round 17: modern zmobie takes 5 damage.
You lose 33 hit points
Round 17: bumcheekcity executes a macro!
Round 17: bumcheekcity casts LASAGNA BANDAGES!
You gain 10 hit points
Round 18: Gonald sees that you're hurt and licks your wounds enthusiassonately. Or maybe he just smelled the lasagna. Either way, you feel better.
You gain 8 hit points
Round 18: modern zmobie takes 1 damage.
Round 18: modern zmobie takes 5 damage.
You lose 33 hit points
Round 18: bumcheekcity executes a macro!
Round 18: bumcheekcity casts LASAGNA BANDAGES!
You gain 14 hit points
Round 19: Gonald sees that you're hurt and licks your wounds enthusiassonately. Or maybe he just smelled the lasagna. Either way, you feel better.
You gain 11 hit points
Round 19: modern zmobie takes 1 damage.
Round 19: modern zmobie takes 5 damage.
You lose 33 hit points
Round 19: bumcheekcity executes a macro!
Round 19: bumcheekcity casts LASAGNA BANDAGES!
You gain 22 hit points
Round 20: Gonald sees that you're hurt and licks your wounds enthusiassonately. Or maybe he just smelled the lasagna. Either way, you feel better.
You gain 7 hit points
Round 20: modern zmobie takes 2 damage.
Round 20: modern zmobie takes 4 damage.
You lose 29 hit points
Round 20: bumcheekcity executes a macro!
Round 20: bumcheekcity casts LASAGNA BANDAGES!
You gain 14 hit points
Round 21: Gonald sees that you're hurt and licks your wounds enthusiassonately. Or maybe he just smelled the lasagna. Either way, you feel better.
You gain 9 hit points
Round 21: modern zmobie takes 3 damage.
Round 21: modern zmobie takes 5 damage.
You lose 33 hit points
Round 21: bumcheekcity executes a macro!
Round 21: bumcheekcity casts LASAGNA BANDAGES!
You gain 10 hit points
Round 22: Gonald sees that you're hurt and licks your wounds enthusiassonately. Or maybe he just smelled the lasagna. Either way, you feel better.
You gain 9 hit points
Round 22: modern zmobie takes 3 damage.
Round 22: modern zmobie takes 4 damage.
You lose 29 hit points
Round 22: bumcheekcity executes a macro!
Round 22: bumcheekcity casts LASAGNA BANDAGES!
You gain 12 hit points
Round 23: Gonald sees that you're hurt and licks your wounds enthusiassonately. Or maybe he just smelled the lasagna. Either way, you feel better.
You gain 8 hit points
Round 23: modern zmobie takes 3 damage.
Round 23: modern zmobie takes 4 damage.
You lose 31 hit points
Round 23: bumcheekcity executes a macro!
Round 23: bumcheekcity casts LASAGNA BANDAGES!
You gain 11 hit points
Round 24: Gonald sees that you're hurt and licks your wounds enthusiassonately. Or maybe he just smelled the lasagna. Either way, you feel better.
You gain 11 hit points
Round 24: modern zmobie takes 1 damage.
Round 24: modern zmobie takes 3 damage.
You lose 32 hit points
Round 24: bumcheekcity executes a macro!
Round 24: bumcheekcity casts SAUCEGEYSER!
Round 25: modern zmobie takes 378 damage.
You gain 34 hit points
You gain 7 Mana Points
Round 25: Gonald stares enchansfixed at the geyser of sauce, and begins to hum a snatch of an ancient Sauceror song. Mystical forces roible around you as you listen.
You gain 14 Mana Points
Round 25: bumcheekcity wins the fight!
After Battle: Your Evilometer emits five quick beeps.
You gain 91 Meat
After Battle: Gonald greams happily, baring a mouthful of scarpy teeth.
You gain 22 Beefiness
You gain 22 Enchantedness
You gain 14 Chutzpah
Adjusting familiar weight by 2 pounds
WHAM: SS has finished the fight. Aborting script execution.

WHAM appeared to be continually casting bandages, but the monster was hitting me for more than bandages were healing.
 

Bale

Minion
It already does. That is part of SmartStasis and I confirm that it does so for me all the time.

Are you just assuming it won't do that, or have you had an experience where it failed?
 

Winterbay

Active member
Well, it only does that if Mafia is set to do it so if that setting has somehow gotten set to false then no it won't :)
 

m00g

New member
I've noticed that when I do the daily dungeon, I get the following:

Code:
[32310] Daily Dungeon (Room 0)
Encounter: mayonnaise wasp
Round 0: m00gam00g wins initiative!
You have the latest batfactors.txt. Will not check again today.
Checking for updates (running BatBrain rev. 17)...
Checking for updates (running SmartStasis rev. 8)...
WHAM: Running SmartStasis
WHAM: Starting evaluation and performing of attack
WHAM: We are going to 1-shot with attack with your weapon.
Round 1: m00gam00g executes a macro!
Round 1: m00gam00g attacks!
[COLOR="#FF0000"]Unknown item found: You loos 8 hit points
You loos 8 hit points[/COLOR]
WHAM: Starting evaluation and performing of attack
WHAM: We are going to 1-shot with attack with your weapon.
Round 2: m00gam00g executes a macro!
Round 2: m00gam00g attacks!
Round 3: mayonnaise wasp takes 785 damage.
Round 3: m00gam00g wins the fight!
After Battle: Occult Invoice Counsels wakes up for a second, winks at you sleepily, and falls back into dreaming, its little paws twitching.
You gain 3 Fortitude
You gain 2 Mysteriousness
You gain 6 Smarm
Room 1 cleared.

This generates a few items called "You loos n hit points". These seem to disappear after rollover. Its obviously not a problem, I just can't trace where/why this is being generated.

I am running a dailydungeon.ash, so maybe its related to that rather than WHAM.

Any ideas?

Thanks.
 

Bale

Minion
You've equipped a Staph of Homophones. It confuses the heck out of mafia and it isn't likely to get fixed.
 

Valliant

Member
Found a couple new issues that I didn't see mentioned in the last few pages since Dreadsylvania was released:

1) WHAM isn't recognizing that the ghosts in the Village are physically immune.

2) It's not recognizing the element of the mobs.

In both cases, Mafia is noting the monster genus and elemental type during combat, "Round 32: cold ghost takes 1 damage.", but the encounters are always listed as something like "Encounter: Juliet Smith, who choked on an ice cube".
 
Last edited:

Winterbay

Active member
1) That is a Mafia issue. The monsters aren't in Mafia yet and thus WHAM knows nothing about them.
2) Same thing there.

When the monsters are fully added to Mafia this will resolve itself.
 

fronobulax

Developer
Staff member
Thanks. I was wondering why WHAM was less than effective in Dreadsylvania but figured mafia needed to know more and that possibly BatBrain needed an update as well.

That said, I have noticed a tendency for WHAM to select Weapon of the Pastalord for use against Dreadsylvania monsters and thus fights end after thirty rounds of one point of damage each. This is in contrast to elemental spells that are one shotting. So, I was wondering if it would be possible for WHAM to monitor results and compare them to expected results and abort if WHAM's predictions were way off base? User option, of course. The definition of incorrect prediction would need to be refined, but as a first pass I might suggest predicting spell damage greater than one and seeing damage of one. That often indicates some kind of elemental tuning is not happening. At least for my character an abort would give me the chance to one shot it.

Thanks.
 

Winterbay

Active member
Well, I guess if WHAM wants to one-shot with a spell and it makes roughly no damage it could try again and add that action to the temp_blacklist. That sounds like a reasonable feature. I'll see if that is workable.
 

Theraze

Active member
Problem with that is we submit macros... so WHAM wouldn't be able to tell that it's not performing as expected until after it's all over.

Though as Winterbay says, if we're expecting a one-shot and it doesn't then we could make it use something else instead. :)
 

Crowther

Active member
I added Rinn's patch to mafia. That allowed WHAM via BatBrain to know which element each monster was. Werewolves are now getting properly pounded.

I added "Phys: 100" to the ghosts in monsters.txt, but I don't see where that gets used by BatBrain or WHAM. I added the ghosts to batfactors.txt and made the "dmg" value 1.0, which I noticed was the case for all physically resistant ghosts and looked to me like it sets resistances in BatBrain, but WHAM still thinks attack will do lots of damage to ghosts.

What am I missing? I did lots of searches and I can't see how the other ghosts work if not this way.
 
Top