Winterbay's Helpful Automatic Monsterbasher (WHAM)

if it isn't working, open up your batfactors.txt and make sure sea lasso is in there. It has been known to disappeat from time to time.

So the sea lasso still isn't working and it is not in my batfactors. I am unsure how to add it and when I go to that autoupdate page and download it from there, it continues to lack the sea lasso item. Thanks in advance for any help.
 
Last edited:
When I delete my batfactors and let it re-download, every time, there is no 'sea lasso' in the batfactors file. Mine worked great for a long time then just stopped one day. Are you by chance using an older copy of batfactors?
 
Well, my batfactors doesn't have it listed, but WHAM itself has this:
Code:
	if(my_location().zone == "The Sea" && item_amount($item[sea lasso]) > 0 && vars["WHAM_UseSeaLasso"] == "true" && get_property("lassoTraining") != "expertly")
		custom[count(custom)] = to_event("use 4198", "", 1);

That means you have two things to check. Is your WHAM_UseSeaLasso variable set to true, and is your lassoTraining not yet "expertly" in properties.
 
I've updated WHAM To not use to_event(). Or at least I thought I had. I may have missed one or two in the beta version, but that line should not look like that which is why without it in batfactors it won't work.
 
I've updated WHAM To not use to_event(). Or at least I thought I had. I may have missed one or two in the beta version, but that line should not look like that which is why without it in batfactors it won't work.


Sorry, so do I have to re-download something or is this an error on my part or something that has been fixed with the updated version? Again, thanks in advance for your help!
 
Sorry, so do I have to re-download something or is this an error on my part or something that has been fixed with the updated version? Again, thanks in advance for your help!

Just type the following into KoLmafia's CLI: svn update


Alternately, to never have to worry about updating it again, go to Preferences -> SVN -> check "Update installed SVN projects on login"
 
Just type the following into KoLmafia's CLI: svn update


Alternately, to never have to worry about updating it again, go to Preferences -> SVN -> check "Update installed SVN projects on login"


Right, I already do that with all of my svns, but that was still leading me to have the lasso issues to begin with, heh. I was asking if I needed to use the beta copy or tweak my own copy with the above changes.
 
We need to update batfactors. I'll get to that as soon as I can unless someone beats me to it :)

Edit: BatFactors has been updated with the sea lasso and everything should now work as intended. Hopefully. At least the next time a script downloads it :)
 
Last edited:
We need to update batfactors. I'll get to that as soon as I can unless someone beats me to it :)

Edit: BatFactors has been updated with the sea lasso and everything should now work as intended. Hopefully. At least the next time a script downloads it :)


Thanks much for all your work!
 
I may have used an old version of batfactors when I did it though... so... if someone with the most recent version befor emine still has theirs they should reupload that I think (an possibly add the sea lasso to it with:
Code:
item\t4198\t0\t0\tcustom
(replace \t with a tab))
 
I noticed when I was doing a bit of farming today that WHAM (or SmartStasis?) doesn't seem to be stasising when I'm using an NPZR anymore. In theory, shouldn't it stasis out to 10 rounds, since meat can drop for the first ten? I've included the log of a Goth Giant combat for review.

Code:
[97456] The Castle in the Clouds in the Sky (Top Floor)
Encounter: Goth Giant
Round 0: kreulty wins initiative!
1 HP costs 0.68μ. ( 1,073 / 1073 )
1 MP costs 1.613μ. ( 1,016 / 1021 )
Factoring in Scarysauce: (6) damage, retal
awful poetry journal (30.0 @ +45): 136μ * 43.5% = 59.16
thin black candle (30.0 @ +45): 144μ * 43.5% = 62.64
Warm Subject gift certificate (30.0 @ +45): 454μ * 43.5% = 197.49
Value of stat gain: 467.5μ
awful poetry journal (30.0 @ +45): 136μ * 43.5% = 59.16
thin black candle (30.0 @ +45): 144μ * 43.5% = 62.64
Warm Subject gift certificate (30.0 @ +45): 454μ * 43.5% = 197.49
Value of stat gain: 467.5μ
ATT: 140 (5.57% × 7.8, death in 1073)
DEF: 127 (95.45% × 1,102.62 (25), win in 1)
HP: 165, Value: 1,431.79 μ, RES: 0
Parsed round number: 1
Building options...
Value of stat gain: 32.5μ
Options built! (16 actions)
Building custom actions...
Queued: pickpocket
Building options...
Value of stat gain: 32.5μ
Options built! (16 actions)
Custom actions built! (0 actions)
Constructed macro: scrollwhendone; pickpocket; 
awful poetry journal (30.0 @ +45): 136μ * 43.5% = 59.16
thin black candle (30.0 @ +45): 144μ * 43.5% = 62.64
Warm Subject gift certificate (30.0 @ +45): 454μ * 43.5% = 197.49
Value of stat gain: 467.5μ
Attack action chosen: attack (round 1, profit: 38.12)
Value of stat gain: 32.5μ
Stasis action chosen: skill 7012 (round 1, profit: 77.32)
awful poetry journal (30.0 @ +45): 136μ * 43.5% = 59.16
thin black candle (30.0 @ +45): 144μ * 43.5% = 62.64
Warm Subject gift certificate (30.0 @ +45): 454μ * 43.5% = 197.49
Value of stat gain: 467.5μ
Attack action chosen: attack (round 1, profit: 45.5)
Value of stat gain: 32.5μ
Value of stat gain: 32.5μ
Value of stat gain: 467.5μ
awful poetry journal (30.0 @ +45): 136μ * 43.5% = 59.16
thin black candle (30.0 @ +45): 144μ * 43.5% = 62.64
Warm Subject gift certificate (30.0 @ +45): 454μ * 43.5% = 197.49
Value of stat gain: 467.5μ
1 HP costs 0.68μ. ( 1,073 / 1073 )
1 MP costs 1.613μ. ( 1,016 / 1021 )
WHAM: We currently think that the round number is: 0 and that the turn number is 97455.
WHAM: Checking to see if WHAM sould adjust the unknown_ml for Goth Giant.
WHAM: No need to do anything with Goth Giant.
WHAM: Setting up variables via BatBrain
Factoring in Scarysauce: (6) damage, retal
awful poetry journal (30.0 @ +45): 136μ * 43.5% = 59.16
thin black candle (30.0 @ +45): 144μ * 43.5% = 62.64
Warm Subject gift certificate (30.0 @ +45): 454μ * 43.5% = 197.49
Value of stat gain: 467.5μ
awful poetry journal (30.0 @ +45): 136μ * 43.5% = 59.16
thin black candle (30.0 @ +45): 144μ * 43.5% = 62.64
Warm Subject gift certificate (30.0 @ +45): 454μ * 43.5% = 197.49
Value of stat gain: 467.5μ
ATT: 140 (5.57% × 7.8, death in 1073)
DEF: 127 (95.45% × 1,102.62 (25), win in 1)
HP: 165, Value: 1,431.79 μ, RES: 0
Parsed round number: 1
Building options...
Value of stat gain: 32.5μ
Options built! (16 actions)
WHAM: We currently think that the round number is: 1 and that the turn number is 97455.
WHAM: Current MP = 1016 out of 1021.
WHAM: You have no profitable MP restoratives.
WHAM: Current HP = 1073 out of 1073.
WHAM: You have no profitable HP restoratives.
WHAM: You are fighting a Goth Giant. Mafia considers that this monster has an attack of 140 or 140 when given a monster name.
WHAM: Mafia further considers that this monster has a defense value of 127 or 127 when given a monster name.
WHAM: Mafia further further considers that this monster has a HP value of 160 or 160 when given a monster name.
WHAM: Your current ML-adjustment is: 10.
WHAM: You have muscle = 1040, mysticality = 991, and moxie = 1606
WHAM: Monster HP is 165.0.
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; 
Value of stat gain: 32.5μ
skill 15 is not OK since it is marked as a custom action.
use 829 is not OK since it is marked as a custom action.
skill 19 is not OK since it is marked as a custom action.
Value of stat gain: 32.5μ
WHAM: Running SmartStasis
Profit per round: ActionProfitDamageOtherbase; Ninja Pirate Zombie Robot (37.44μ)45.5μ7.33 (-5.11 μ/dmg)Att: -2.24 (0 DPR) Def: -2.24 7.2% stun chance HP: -4.33 MP: 10.33
Building custom WHAM actions...
Custom WHAM actions built! (0 actions)
Building custom actions...
Queued: pickpocket
Building options...
Value of stat gain: 32.5μ
Options built! (16 actions)
Custom actions built! (0 actions)
Value of stat gain: 32.5μ
WHAM: Stasis option chosen: skill 7012 (round 2, profit: 70.35)
Value of stat gain: 32.5μ
Value of stat gain: 32.5μ
Top of the stasis loop.
Queued: skill 7012
Building options...
Value of stat gain: 32.5μ
Options built! (14 actions)
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; pickpocket; call batround; sub finito; skill 7012; call batround; endsub; call finito; repeat hasskill 7012 && (!hpbelow 1072.0 && hpbelow 1073 && !mpbelow 1021.0 && !pastround 1)
Round 1: kreulty executes a macro!
Round 1: kreulty tries to steal an item!
You acquire an item: awful poetry journal
Round 2: kreulty casts FIRE ORANGE BOTTLE-ROCKET!
Round 3: You hear a faint howling of wind, and Grot suddenly appears out of the shadows, holding your opponent's meat pouch.
You gain 195 Meat.
Happened: pickpocket
Happened: skill 7012
Parsed round number: 3
You snatched a awful poetry journal (136μ)!
thin black candle (30.0 @ +45): 144μ * 43.5% = 62.64
Warm Subject gift certificate (30.0 @ +45): 454μ * 43.5% = 197.49
Value of stat gain: 467.5μ
Revised monster value: 1,372.63
Happened: stolen
Building options...
Options built! (11 actions)
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: Stasis option chosen: use 185 (round 3, profit: 52.89)
This monster is not your huckleberry.
Stasis loop complete.
WHAM: SmartStasis complete.
WHAM: Running SmartStasis took 0.48 seconds.
WHAM: SS did not finish the fight, continuing with script execution. 
WHAM: We currently think that the round number is: 3 and that the turn number is 97455.
WHAM: Starting evaluation and performing of attack
WHAM: We currently think that the round number is: 3 and that the turn number is 97455.
WHAM: No need to stun this monster
Monster HP is 160 according to Mafia and 165.0 according to BatBrain.
WHAM: We can't Saucesplash.
true, true, true, false, false
WHAM: We estimate the round number to currently be 3 (loop variable 0)
Monster HP is 160 according to Mafia and 165.0 according to BatBrain (loop variable i = 0).
Queued: attack
Building options...
Options built! (11 actions)
Happened: pickpocket
Happened: skill 7012
Parsed round number: 3
You snatched a awful poetry journal (136μ)!
thin black candle (30.0 @ +45): 144μ * 43.5% = 62.64
Warm Subject gift certificate (30.0 @ +45): 454μ * 43.5% = 197.49
Value of stat gain: 467.5μ
Revised monster value: 1,372.63
Happened: stolen
Building options...
Options built! (11 actions)
WHAM: Evaluating the attack but not performing it took 0.02 seconds.
WHAM: We can't Saucesplash.
true, true, true, false, false
WHAM: Enqueueing attack with your weapon (macroid attack). Estimated damage: 165.0.
Queued: attack
Building options...
Options built! (11 actions)
WHAM: Successfully enqueued attack with your weapon.
WHAM: We are going to 1-shot with attack with your weapon.
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; 
Round 3: kreulty executes a macro!
Round 3: kreulty attacks!
Round 4: goth giant takes 1142 damage.
Round 4: kreulty wins the fight!
You gain 619 Meat
You gain 10 Strengthliness
You gain 10 Magicalness
You gain 18 Roguishness
Happened: attack
Parsed round number: 0
WHAM: Evaluating the attack and performing it took 0.83 seconds.
WHAM: We currently think that the round number is: 31 and that the turn number is 97456.
WHAM: We currently think that the round number is: 31 and that the turn number is 97456.
 
Well, your log has this:
Code:
WHAM: Stasis option chosen: use 185 (round 3, profit: 52.89)
This monster is not your huckleberry.
Stasis loop complete.
So it wants to use fat stacks of cash to stasis, but aborts for some reason and doesn't do it. Why? That'd be a Winterbay question. :) But the script does decide that stasising is profitable at 52.89 meat per round.
 
Well, your log has this:
Code:
WHAM: Stasis option chosen: use 185 (round 3, profit: 52.89)
This monster is not your huckleberry.
Stasis loop complete.
So it wants to use fat stacks of cash to stasis, but aborts for some reason and doesn't do it. Why? That'd be a Winterbay question. :) But the script does decide that stasising is profitable at 52.89 meat per round.
Ahh. I see WHAM_roundcost has been folded into WHAM's stasis equation now.
Code:
while ((to_profit(plink) > to_float(vars["BatMan_profitforstasis"]) + (can_interact() ? WHAM_roundcost_aftercore : WHAM_roundcost_ronin) || is_our_huckleberry() || train_skills()) &&
So, it's likely that 52.89 is less than BatMan_profitforstasis + WHAM_roundcost_aftercore. It is on my system. If you want to extend combat as long as possible for as much profit as possible you probably want to set both those properties much closer to zero.
 
Since the default profitforstasis is 15.0 and the default roundcost_aftercore is 50, that does mean that it's looking for 65+ meat per round, which isn't met by your 52.89 current. If you drop roundcost_aftercore to 25, that brings the required meat to 40... It should make you still stasis with a NPZR or other useful familiars, but it should skip through on less valuable familiars...

Sidenote: I'd considered the roundcost bit, but thought it was still just in the beta. Suppose I should have checked first. Ah well. :(
 
I see
Expression syntax errors for 'modifier_eval()':
Can't understand dmg (zlib.ash, line 162)
in my gCLI every so often when running BCCAscend and using Wham. The combat finishes but it stops automation. I can make the problem go away bu changing my CCS to not use Wham. Latest versions of everything (as of today) and I have seen this problem for a couple of days now. Highly skilled Seal Clubber in the Hidden Temple in a BIG! run if that makes a difference. I'll up the verbosity and try again but last time I did that the error did not reoccur.
 
Verobsity 8 and 9 don't seem to add any more information. Below is 8.

[817] The Haunted Ballroom
Encounter: zombie waltzers
Strategy: C:\Users\Fronobulax\Dropbox\dist\ccs\CafeBabe.ccs [default]
Round 0: cafebabe wins initiative!
1 HP costs 0.309μ. ( 692 / 692 )
1 MP costs 8μ. ( 149 / 329 )
WHAM: Checking to see if WHAM sould adjust the unknown_ml for Zombie Waltzers.
WHAM: No need to do anything with Zombie Waltzers.
WHAM: Setting up variables via BatBrain
This monster is a group of 2.
ballroom blintz (15.0 @ +55): 43μ * 23.25% = 10
dance card (15.0 @ +55): 549μ * 23.25% = 127.64
Expression syntax errors for 'modifier_eval()':
Can't understand dmg (zlib.ash, line 162)
Round 1: cafebabe attacks!
Round 2: zombie waltzers takes 168 damage.
Round 2: Approved fangs your opponent in the head and greedily sucks the vital juices from the wound, dealing 40 damage. It then slimes its way over to you and bites your ankle, injecting you with the aforementioned juices while blinking its big brown eyes at you. It's so adorable!
Round 2: zombie waltzers takes 40 damage.
Round 2: zombie waltzers takes 40 damage.
You gain 40 hit points
You lose 5 hit points
Round 2: cafebabe attacks!
Round 3: zombie waltzers takes 163 damage.
Round 3: cafebabe wins the fight!
You gain 131 Meat
You gain 37 Strongness
You gain 18 Enchantedness
You gain 20 Roguishness
 
Back
Top