PDA

View Full Version : Winterbay's Helpful Automatic Monsterbasher (WHAM)



Winterbay
01-23-2012, 08:55 AM
WHAM 2.4

This script is a developed version of the SpamAttack script that exists in this forum in several different places. It is a somewhat robust way to handle most monsters (and those it can't handle it'll tell you and potentially also print some nice helpful info for, requires a verbosity of at least 3).

The script tries to calculate the cheapest way to kill the monster by smart use of your skills and items. As such the script is pretty calcuation heavy and may take a few seconds to run. The recent update to 2.0 has sped up the script immensly when having access to lots of skills and items and it is thus a usable solution for sub-optimal gameplay of any kind. Since this update was rather big, I may have broken something so just in case 1.9.6 is still downloadable as well.

This script also relies heavily on vprint() and the output is regulated with Zlib's verbosity-setting and it is possible to get it to output nothing with useful info starting at a verbosity level of 3. If you set the verbosity to 10 the script will
a) Print information regarding all the skills and items it thinks you have available and the amount of damage your might do with them
b) Output a bunch of text-files to your /data folder for debugging purposes and
c) Abort execution before it actually does anything with the monster

Please post feedback and suggestions since I'm always interested in making the script more useful.

In order for the script to run properly you will need the following support scripts:
Zlib (http://kolmafia.us/showthread.php?2072-ZLib-Zarqon-s-useful-function-library)
BatBrain (http://kolmafia.us/showthread.php?6445-BatBrain-a-central-nervous-system-for-consult-scripts)
SmartStasis (http://kolmafia.us/showthread.php?1715-SmartStasis-a-complex-script-for-a-simple-CCS)


You also need to set your Combat Action to "custom combat script" and create an entry containing:


[ default ]
consult WHAM.ash


In case you want to you can also finetune a couple of things in the script:
1) The amount of rounds you're willing to attack as a non-moxie class (defaults to 10)
2) The hitchance you are willing to risk (defaults to 50%)
3) The max number of rounds you are willing to let the script automate skill-slinging before it reverts control to you (defaults to 50)
In order to change them use commands like this in the CLI:


zlib WHAM_round_limit = <wanted number>
zlib WHAM_hitchance = <wanted fraction>
zlib WHAM_maxround = <wanted number>


Since these numbers are set upon first execution it is advisable to run the script from the script-menu once before entering combat if you want to change them. If you do so, you can abort at the first pop-up (or set verbosity to 10 teh first time).

Version History
1.0: Initial public release
1.1: Change all printouts to WHAM, Lower the verbosity requirement for printing useful info to 3
1.2: Add has_happened() to work around happened() being off by one turn if SmartStasis ended the fight before we got there
1.3: Remove has_happened and use round > maxround instead.
Make sure the script aborts if you acquire temporary amnesia.
Make sure we don't automate queued skills longer than the user specified maxround (defaults to 50)
1.3.1: Add a parenthesis so the script won't crash when it shouldn't...
1.4: Set the unknown_ml for specific monsters in the Cyrpt in order to be able to handle them sanely in case of high
unknown_ml
1.5: Make sure to reset the unknown_ml-value no matter how we exit the script (unless the user aborts manually)
You can always perform at least one attack/skill in a round, take advantage of this
Fix some cases of the script not exiting properly when a fight ended suddenly
Don't open the Bag O' Tricks since the script isn't aware that you can only use it once.
1.6: Update to work with new version of BatBrain. Also fix some silly return values.
Small adjustments for Avatar of Boris
1.7: Don't use attack if an Avatar of Boris, fix error in OK().
1.8: Yet another adaptation to Batbrain changing
Start re-implementing HP/MP-restoring options
1.9: Add some extra debug-printouts at verbosity 9
Add a new zlib-variable WHAM_AlwaysContinue, default to false, that will try and execute a 5-skill combo even if it
won't kill the monster
Modify the useage of Broadside and Entangling Noodles as well as Intimidating Bellow to make them slightly less wasteful
1.9.5: Fix the modifications for Broadside and Intimidating Bellow
1.9.6: Don't try to use Mighty Axing as an attack-skill if we have temporary amnesia
2.0: Refactor code to use BatBrain predictive abilities and thereby also to use items and gain an enormous speed boost (and
also allow the script to plan 25-shots of monsters)
Banish some foes in Boris-runs if we can, please suggest more potential banishes.
Currently banishes: A.M.C Gremlin, Flaming Troll, Procrastination Giant, Sabre-Toothed Goat, Senile Lihc and Slick Lihc.
2.0.1: Fix some small things, mainly with printouts
2.0.2: Don't use Trusty-specific skills if you're not wielding Trusty
2.0.3: Add missing ) and modify the attack-repeat-macro for a potential bug-fix
2.1: Update to be up to date with latest SS also don't enqueue items as skills, it won't work.
2.1.1: Add missing macro()-call from the SS-function
2.2: Fix bug with using more items than we have (hopefully)
2.3: Fix bug with failing to enqueue some things due to the script (and thus BatBrain) being out of sync with KoL
2.4: Fix some bugs with attacking and hitchances

roippi
01-23-2012, 11:15 AM
I firmly believe in judging a script by the cleverness of its name, so I am highly looking forward to trying this one out.

Winterbay
01-23-2012, 11:22 AM
I willingly admit to having waited a couple of days longer than strictly necessary to post this because I wanted to come up with a suitable acronym... :)

zeroToNine
01-23-2012, 12:31 PM
As a first general recommendation, I suggest you to remove the notify:


[2836] Fernswarthy's Basement (Level 226)
Encounter: 91 Bottles of Beer on a Golem
Round 0: one2three loses initiative!
Round 1: n bottles of beer on a golem takes 1 damage.
Round 1: n bottles of beer on a golem takes 3 damage.
Round 1: n bottles of beer on a golem takes 5 damage.
You lose 668 hit points
Sending kmail to Winterbay...
Redirected to a fight page.
You're on your own, partner.
Click here to continue in the relay browser.


Else, I'm now taking a look at it

Winterbay
01-23-2012, 12:33 PM
As a first general recommendation, I suggest you to remove the notify:
Else, I'm now taking a look at it

Hmm... I was under the impression that would only fire if you ranit from the script-menu. I appear to have been wrong. I shall rectify that :)

Edit: Also, I should perhaps note somewhere that "n bottles of beer on a golem" is one of the monsters the script will have a hard time with due to the skill blocking properties of it.

fronobulax
01-25-2012, 11:54 AM
Just tried this. Thank you. Some message that flashed by on the screen referred to "SpamAttack" when I would have expected it to say "WHAM". I'm not sure what the WHAM_round_limit means in a practical sense but I had to raise it before WHAM was willing to run the fight. It stopped several times and told me it couldn't do what I wanted and suggested I run the combat manually and rerun with a higher verbosity. I'm not sure I understood everything but with the higher verbosity it told me what attacks would be best so that I could perform those manually. If that is true then it would be easier on the user if the information appeared, before the script stopped, with normal verbosity (3). Then I could just fight the good fight. The script seemed to have great difficulty when I was Beaten Up. It would consistently stop all automation in this case.

My primary reason to use it is as part of automation. With a multi-skilled character I suspect using it will be easier than tweaking my CCS every time I ascend. With that vision in mind, as long as it can complete the combat I don't care how long it takes. Indeed, if I cannot defeat the monster in 30 rounds then the logic that sent me to fight that monster needs to be reassessed. But in a perfect world I would want WHAM to never stop or abort automation unless it was as certain as it could be that the character would not survive. That may be the case now with WHAM_round_limit set high enough or there may be a feature request implied in that.

In any event just having something that tells me Saucestorm will be better than Lunging Thrust Smack for the current circumstances is fun. Thanks.

Winterbay
01-25-2012, 12:14 PM
Currently that information is at verbosity 7 which may be a bit too high. I've set it to 3 in my local copy, which might be better since it is rather vital information in that case.
The WHAM_round_limit is for when you're a muscle or mysticallity class. It controls how many rounds it will consider just attacking for (without you getting killed of course) instead of going over and try with skills. One thing I'd like to do is manage to get attack in as a potential thing to use together with your skills.
The script will halt if you cannot kill the monster, without getting killed, with your attack before WHAM_round_limit or in five rounds with skills.

There is a small problem at the moment where the stun from Noodles from SS isn't taken into account in the later consideration which I'm not really sure why (so you could in fact survive 4 rounds instead of 2 but for some reason the script doesn't see this.

fronobulax
01-28-2012, 11:34 AM
I'm guessing WHAM doesn't realize SS has already banished the monster?


[1251] F'c'le
Encounter: clingy pirate
Strategy: C:\KoLMafia\dist\ccs\CafeBoob.ccs [default]
Round 0: cafeboob loses initiative!
You lose 16 hit points
WHAM: Running SmartStasis
Round 1: cafeboob executes a macro!
Round 1: cafeboob uses the cocktail napkin!
WHAM: Starting evaluation and performing of attack
WHAM: Failed to enqueue Lunging Thrust-Smack. Aborting to let you figure this out.
You're on your own, partner.

At this point I had already finished the fight. Only a concern because it stops automation.

Winterbay
01-28-2012, 11:43 AM
Yes and no. It should recognize all autostops but batbrain has a bug where that doesn't work (it sets the turn number incorrectly so the detection won't work).

fronobulax
01-28-2012, 01:15 PM
Yes and no. It should recognize all autostops but batbrain has a bug where that doesn't work (it sets the turn number incorrectly so the detection won't work).

To confirm then, if I actually understood what happened ;-) I would report this as a BatBrain 'error'? I infer, however that BatBrain (zarqon) already knows the error exists so my response is to be patient.

Winterbay
01-28-2012, 01:28 PM
I've reported it already (i.e. the last post in the BatBrain thread currently where I had the exact same problem as you did and was confused because the code I had set up should've handled it...).

Winterbay
01-31-2012, 07:01 AM
Version 1.2 uploaded with a fix that should make the script successfully detect if the fight ended in a sneaky way and not abort automation when that happens. Untested, but the theory is sound and the basis for it is tested :)

fronobulax
01-31-2012, 11:42 AM
Version 1.2 uploaded with a fix that should make the script successfully detect if the fight ended in a sneaky way and not abort automation when that happens. Untested, but the theory is sound and the basis for it is tested :)

FWIW, I saw this abort two or three times yesterday, with the previous version, and none today with the new version so my experience supports the "It is Fixed" hypothesis.

Winterbay
02-11-2012, 07:22 AM
Version 1.3 has been released which includes some fixes for fights aborting incorrectly (more specifically free runaways) as well as detection of temporary amnesia if you are fighting with skills.

Edit: Updated to 1.3.1 since I forgot a parenthesis which didn't show up until after the script was run in a fight (it verified just fine).

morgad
02-13-2012, 06:09 PM
[334] Defiled Cranny
Encounter: Death Rattlin'
Encounter: swarm of ghuol whelps
Strategy: /home/fit/.kolmafia/ccs/default.ccs [default]
Round 0: morgad loses initiative!
WHAM: Running SmartStasis
WHAM: Starting evaluation and performing of attack
The string "Suckerpunch" is not an integer; returning 0 (WHAM.ash, line 479)
The string "Entangling Noodles" is not an integer; returning 0 (WHAM.ash, line 479)
The string "Disco Dance of Doom" is not an integer; returning 0 (WHAM.ash, line 479)
The string "Disco Dance II: Electric Boogaloo" is not an integer; returning 0 (WHAM.ash, line 479)
The string "Disco Face Stab" is not an integer; returning 0 (WHAM.ash, line 479)
The string "Disco Eye-Poke" does not look like an integer; returning 0 (WHAM.ash, line 479)
The string "Saucegeyser" is not an integer; returning 0 (WHAM.ash, line 479)
Round 1: morgad executes a macro!
KoLmafia thinks it is round 2 but KoL thinks it is round 1
WHAM: Unable to determine a valid combat strategy. For your benefit here are the numbers for you combat skills.
WHAM: Wave of Sauce 64.2 potential damage.
WHAM: Moxious Maneuver 1.1448001 potential damage.
WHAM: Basic attack 6.7344637 potential damage with a hitchance of 8.795455%.
WHAM: You now have the knowlegde needed to go forward and be victorious
You're on your own, partner.
Click here to continue in the relay browser.


in the relay browser te stats are showing as -
[/code]You're fighting a swarm of ghuol whelps
HP: 0, Atk: 0, Def: 0, Type: undead[/code]

Wham problem, or somewhere upstream?

best regards
Dave

Theraze
02-13-2012, 06:45 PM
Relay browser is mafia's knowledge, not WHAM.

roippi
02-13-2012, 07:08 PM
I assume he means all the "the string 'foo' is not an integer" messages?

Theraze
02-13-2012, 07:19 PM
Possible... that just looks like WHAM had a major datafile bork. If it keeps happening, I'd suggest deleting your batfactors.txt file and letting it get a new one, if you haven't changed it yourself. If you have, knock it off... or at least, knock off editing it with an editor that screws up tabs. :)

But WHAM not being able to calculate which of the available commands were best able to complete because it had 0/0/0 monster stats would be a mafia datafile thing, not a WHAM issue.

Winterbay
02-13-2012, 08:27 PM
Yeah, ghoul whelps have no stats in Mafia and are thus controlled by the zlib-setting unknown_ml, setting that too high may lead to unexpected results at lower levels like this. I usually have mine somewhere between 120 and 200 depending on where in an ascension I am.

When it comes to the "not an integer"-part it does appear like a broken data-file. I would suggest starting by deleting (or renaming) your batfactors.txt and see if that helps. I've had no such problems today at least and line 479 is where the script is excising the skill-ID from batfactors.

morgad
02-13-2012, 09:25 PM
Thanks to all for the suggestions.
I have never intentionally touched the data files - but have now deleted batfactors.txt (dated 2012-01-16 19:41) . Will know if it works in 5 days :)

Dave

Winterbay
02-14-2012, 10:47 AM
I've uploaded v1.4 which sets the unknown_ml to specific values for the Cyrpt-monsters that Mafia (and the wiki) have no data for meaning it will hopefully not abort as much for those even if you have your unknown_ml set to values more relevant for higher level monsters. And yes, it resets the value afterwards :)

Theraze
02-14-2012, 02:08 PM
I'm sure you're aware, but since you don't have the resetting of unknown_ml put into a try/finally loop, if WHAM can't finish the combat for any reason and it aborts (or if the user manually aborts), their unknown_ml value stays set to your override instead of getting put back to the user's request...

Winterbay
02-14-2012, 02:25 PM
Hmmm true. Didn't think of that. Shouldn't be too common though, but I'll keep it in mind for my next update.

Theraze
02-14-2012, 06:58 PM
Depends mostly if you add more monsters. Long as you keep it limited, you'll probably be fine. :) Expand it to the alcove where people might abort more often as they notice they're done with shysters or other bits, and...

Winterbay
02-14-2012, 09:19 PM
As far as I'm aware all the monsters in the alcove have stats in Mafia already (I did a check for monsters with hp = 0 and found the four cyrpt-monsters I added and some level 11-12 monsters and a lot of holiday monsters).
However, I've fixed the issue locally so next update will fix the potential problem.

Winterbay
02-19-2012, 08:29 AM
Version 1.5 uploaded. This fixes a number of things and should hopefully not abort as often if you need to kill the monster quickly.
Entangling noodles-support is still slightly broken.

fronobulax
02-19-2012, 06:35 PM
Version 1.5 uploaded. This fixes a number of things and should hopefully not abort as often if you need to kill the monster quickly.
Entangling noodles-support is still slightly broken.

Script attached to the first post thinks it is 1.4 ;-)

Winterbay
02-19-2012, 06:37 PM
Script attached to the first post thinks it is 1.4 ;-)

Ehh... yes. Yes it did. I knew I forgot to change something important :)

Winterbay
03-05-2012, 01:06 PM
Version 1.6 uploaded with some minor changes for Avatar of Boris as well as fixes for a) sloppy programming and b) the new upcoming version of BatBrain.

morgad
03-12-2012, 07:08 PM
r10774
latest BB, SS, WHAM, batfactors.txt deleted


[1122] South of the Border
Encounter: mariachi calavera
Strategy: /home/fit/.kolmafia/ccs/boris.ccs [default]
Round 0: morgad wins initiative!
WHAM: Running SmartStasis
WHAM: Starting evaluation and performing of attack
WHAM: Monster is weak. We are just going to bash its head in. It'll take 2 rounds.
Macro called on empty queue!
WHAM: Empty macro generated. Please check, aborting.
You're on your own, partner.
Click here to continue in the relay browser.

have I forgotton to do something?


edit, Zarqons instructions miss one crucial step - your note about deleting the batfactors line in zversions.txt

now it works :)

[1125] South of the Border
Updating batfactors.txt from '' to '2012-03-11T12:31:20-05:00'...
...batfactors.txt updated.
WHAM: Running SmartStasis
WHAM: Starting evaluation and performing of attack
WHAM: Monster is weak. We are just going to bash its head in. It'll take 2 rounds.
Round 1: morgad executes a macro!
Round 1: morgad casts MIGHTY AXING!
Round 2: mind flayer takes 542 damage.
Round 2: morgad wins the fight!
You acquire an item: mind flayer corpse
You acquire an item: cornuthaum
You gain 14 Fortitude
You gain 4 Mysteriousness
You gain 2 Cheek

best regards
Dave

Winterbay
03-13-2012, 07:05 AM
Yeah, well his instructions works if you do it before running any batbrain-script for the day, but yeah I found that out as well...

Winterbay
03-13-2012, 08:07 AM
1.7 uploaded which fixes an annoying bug which made the script not attack even though it should and also makes sure to use Mighty Axing instead of Attack if an Avatar of Boris.

morgad
03-13-2012, 07:39 PM
What about Boris versus the NS/Bonerdagon - would attack be better here than axing (not blocked)?

best regards
Dave

tyrone_jones
03-13-2012, 09:58 PM
What does a bad monster value "" mean?

Winterbay
03-14-2012, 05:14 AM
What about Boris versus the NS/Bonerdagon - would attack be better here than axing (not blocked)?

best regards
Dave

Good point. I'll have to look at that I think.


What does a bad monster value "" mean?

It means that Mafia, for some reason, has failed to parse the monster name. It happens from time to time to me as well, but I have never been able to pinpoint any specific reasons for it.

Winterbay
03-27-2012, 09:23 AM
Version 1.8 updated. It'll now no longer default to Mighty Axing against skill-blocking enemies such as the NS and the Bonerdagon, it is also compatible with the upcoming version of BatBrain (special link is included in the first post). The special copy of BatBrain is required until zarqon updates the main branch of BatBrain.

fronobulax
03-27-2012, 11:35 AM
Alas the version posted in the first post does not work. It fails the verify command because there is at least one extra ")" circa line 216. The other errors could be because I am confused as to which versions of BatBrain and SmartStasis I am supposed to have. Variables macro and stuncount (or something like that) are referenced, for example, but not defined depending on how I max and match BB and SS versions.

Winterbay
03-27-2012, 11:49 AM
Oops. Sorry. That's what I get for doing last minute changes after I've logged out. The version in the first post should be working now, as long as you have the "experimental" version of BatBrain linked to at the top of it.

fronobulax
03-27-2012, 01:33 PM
Oops. Sorry. That's what I get for doing last minute changes after I've logged out. The version in the first post should be working now, as long as you have the "experimental" version of BatBrain linked to at the top of it.

Thanks. Will test when characters are not drunk. Test/Compile before post is a lesson most people learn the hard way so I've "Been There, Done That" too.

Magus_Prime
03-28-2012, 12:49 PM
I'm trying the updated WHAM, BatBrain, and SmartStasis during a Boris run and everything is okay so far with one exception: fighting the individual subzone bosses in the Crypt.

This is with r10849 and a CCS that consists of a single line: the call to WHAM.ash.

Here's what the gCLI shows:


[332] Defiled Cranny
Encounter: huge ghuol
Strategy: L:\software\Kol\ccs\default.ccs [default]
Round 0: Arbos wins initiative!
WHAM: Running SmartStasis
Round 1: Arbos executes a macro!
Round 1: Arbos uses the can of Ghuol-B-Gone™!
Round 2: huge ghuol takes 77 damage.
Round 2: huge ghuol takes 17 damage.
You lose 28 hit points
Round 2: Arbos uses the can of Ghuol-B-Gone™!
Round 3: huge ghuol takes 63 damage.
Round 3: Arbos wins the fight!
After Battle: As the last breath (which, in case you were wondering, was foul-smelling and went on for a really long time) escapes the huge ghuol, your Evilometer beeps once, very loudly.
You gain 457 Meat
You acquire an item: ghuol egg
You gain 21 Muscleboundness
You gain 21 Enchantedness
You gain 16 Roguishness
WHAM: Monster is weak. We are just going to bash its head in. It'll take 2 rounds.
WHAM: Empty macro generated. Please check, aborting.
You're on your own, partner.

This only happens for the sub bosses.

Here's a sub boss combat with zlib verbosity set to 9


Request 18 of 30 (Cyrpt: Defiled Alcove) in progress...

[350] Defiled Alcove
Encounter: conjoined zmombie
Strategy: L:\software\Kol\ccs\default.ccs [default]
Round 0: Arbos loses initiative!
Round 1: conjoined zmombie takes 19 damage.
You lose 26 hit points
You acquire an effect: Half-Eaten Brain (duration: 10 Adventures)
Running ZLib version: r35 (current)
1 HP costs 6.667μ. ( 167 / 193 )
1 MP costs 17μ. ( 37 / 37 )
Factoring in double-ice cap: (15) damage, stun 1.0, retal
Running BatBrain version: 1.18 (current)
Running SmartStasis version: 3.12 (current)
Running WHAM version: 1.8 (current)
WHAM: We currently think that the round number is: 0
WHAM: No need to do anything with this monster.
cranberries (29.0 @ +97.62019): 29μ * 57.30986% = 16.61986
cranberries (8.0 @ +97.62019): 29μ * 15.809615% = 4.5847883
loose teeth (8.0 @ +97.62019): 17μ * 15.809615% = 2.6876345
Value of stat gain: 236.41μ
cranberries (29.0 @ +97.62019): 29μ * 57.30986% = 16.61986
cranberries (8.0 @ +97.62019): 29μ * 15.809615% = 4.5847883
loose teeth (8.0 @ +97.62019): 17μ * 15.809615% = 2.6876345
Value of stat gain: 236.41μ
ATT: 89 (94% × 39.2, death in 5)
DEF: 73 (95.45% × 132.42 (10), win in 1160000)
HP: 111, Value: 737.0 μ
Parsed round number: 1
Building options...
Options built! (12 actions)
WHAM: We currently think that the round number is: 1
WHAM: You have no profitable MP restoratives.
WHAM: You have no profitable HP restoratives.
WHAM: You are fighting a Conjoined Zmombie. Mafia considers that this monster has an attack of 89 or 89 when given a monster name.
WHAM: Mafia further considers that this monster has a defense value of 73 or 73 when given a monster name.
WHAM: Mafia further further considers that this monster has a HP value of 111 or 130 when given a monster name.
WHAM: Your current ML-adjustment is: 10.
WHAM: Setting up variables via BatBrain
WHAM: Monster HP is 111.0.
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
SmartStasis starting.
Profit per round: ActionProfitDamageOtherbase (0μ)0μ--
Building custom actions...
Custom actions built! (0 actions)
Custom action: use 2562 (no stun)
Queued: use 2562
Building options...
Options built! (12 actions)
Custom action: use 2562 (no stun)
Queued: use 2562
Building options...
Options built! (12 actions)
Constructed macro: scrollwhendone; sub batround; if haseffect 8 || haseffect 264 || haseffect 282 || haseffect 283 || haseffect 284; abort "BatBrain abort: poisoned"; endif; 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; use 2562; call batround; use 2562; call batround;
Round 1: Arbos executes a macro!
Round 1: Arbos uses the half-rotten brain!
Round 2: conjoined zmombie takes 63 damage.
Round 2: Arbos uses the half-rotten brain!
Round 3: conjoined zmombie takes 75 damage.
Round 3: Arbos wins the fight!
After Battle: As you end the conjoined zmombies' conjoined lives for the second times, your Evilometer emits a loud beep.
You gain 479 Meat
You acquire an item: cranberries
You acquire an item: cranberries
You gain 29 Fortitude
You gain a Muscle point!
You gain 15 Enchantedness
You gain a Mysticality point!
You gain 15 Cheek
Happened: use 2562
Happened: use 2562
Parsed round number: 3
Look! You found 2 cranberries (58μ)!
Building options...
Options built! (8 actions)
Stasis action chosen: attack (profit: -1.45)
loose teeth (8.0 @ +97.62019): 17μ * 15.809615% = 2.6876345
Value of stat gain: 236.41μ
Attack action chosen: attack
This monster is not your huckleberry.
Stasis loop complete.
This monster is not your huckleberry.
SmartStasis complete.
WHAM: Running SmartStasis took 2.545 seconds.
WHAM: We currently think that the round number is: 3
WHAM: Starting evaluation and performing of attack
WHAM: We currently think that the round number is: 3
WHAM: You will kill the monster in 2 rounds with your basic attack.
WHAM: The monster will take 5 rounds to kill you.
rounds_to_kill: 2, round_limit: 10, maxround: 30, die_rounds(): 5, hitchance("attack"): 0.95454544
WHAM: Expected received damage per round: 36.84964, Rounds to kill: 2, Expected damage: 130.0, Hit chance: 1.0
WHAM: Monster is weak. We are just going to bash its head in. It'll take 2 rounds.
Unable to enqueue empty action.
WHAM: Empty macro generated. Please check, aborting.
You're on your own, partner.

Winterbay
03-28-2012, 01:07 PM
Hmmm... Somehow SS did not set the roundnumber to maxrounds when the fight ended, but continued to parse the round-number so that it was set to 3 when control was passed back to WHAM. That sounds like a SS-bug. I'll re-post it over there I think.

fronobulax
03-28-2012, 01:42 PM
Characters are sober and latest versions ran fine.

I prefer a high level of automation and will gladly trade optimality in play for increased automation. I get impatient when WHAM turns over control to me and then when I finish combat have to restart bccascend and have it (re)check everything. I actually think about using the "a" word (as in it "a"s me) when I get manual control and then one hit the monster. I get confused when neither SmartStasis or WHAM casts entangling noodles. I do note that sometimes I get hit pretty badly before control is given to me which makes me question some of the upstream decision making - upstream all the way back to the decision to adventure in that place ;-)

So, if my goal is to maximize automation and only stop to avoid Beaten Up what parameters should I be paying attention to? What verbosity is going to be helpful to help explain why decisions are being made? Is there any automagic way to detect that BatBrain and KoL have different ideas about monster stats or is that something I need to check manually if it seems to be the same monster that stops automation without any other obvious reason.

Thanks for the work. I always feel a little impressed when WHAM decides to two hit a monster with a lower cost spell.

Winterbay
03-28-2012, 07:01 PM
Getting the script to not abort is easier the more skills you have available, as the script will have more options to analyse and build a potential solution with. However a general tips is to make sure you have enough MP to cast some somewhat heavy skills, as this will make sure the script has at least one option available. Another is to make sure you have enough HP to survive a few hits from the monsters in question since that will also increase the amount of available options.

An idea I just had was to add an option to let the script execute the best 5-skill combo and then recalculate no matter if it thinks it'll kill the monster in 5 turns or not, iff you will survive more than that number of hits. The script also has a slight problem parsing stunning done before the calculations take place meaning that even if you may survive for more than 3 rounds because you have stunned the monster the script won't always realise this.

zanmatoer
03-30-2012, 10:17 AM
I think this is WHAM rather than BatBrain related, but WHAM seems to be massively over-using Broadside.

It is an amazing skill (4 round stun is kinda ridiculous), but it does cost 10mp. WHAM appears to use it in 90% of combats, which is causing significant meat drain! Usually a single Mighty Axing will do the job, especially as WHAM (almost) always opens with a bellow.

Other than that, WHAM is awesome, so thanks!

Winterbay
03-30-2012, 11:47 AM
Yeah, I've been noticing this as well. It's not been a big problem for me as I've gotten used to using a double-ice cap as headgear for most of the round so I generally have way too much MP anyway, but it can be a problem. I'll see if I can move the check for that further along (when we know how we will end the fight).

Theraze
03-30-2012, 02:04 PM
What probably needs to happen (and I was starting to test on my local copy of DAM) is something like
if (round < maxround && !is_our_huckleberry() && get_action($skill[broadside]).stun > 0 &&
m_dpr(0,0)*(kill_rounds(attack_action() < 5 ? kill_rounds(attack_action() - 1 : 4)*meatperhp > mp_cost($skill[broadside])*meatpermp)
macro(get_action($skill[broadside]));
That's using the code I'd left in SmartStasis... I actually completely removed it from my DAM and let it decide when to use it, no custom code at all, and it generally only uses it when it seems to make sense. :) Usually. There's still some of that "why did you want to delevel and stun them if you're going to one-hit them anyways!" pondering, but...

Winterbay
03-30-2012, 02:33 PM
I've added a stun()-function to my local copy and will be tweaking that to something that may or may not be similar to the above. The problem is that kill_rounds(attack_action()) won't give me very much useful information since the entire point of WHAM is to pick a combination of skills for most of the time, so I'll have to find another solution.

Theraze
03-30-2012, 02:43 PM
Yeah... but if you have access to how many items are on the enqueue stack total, you should know how many rounds you're taking, right? Not sure... does BatBrain allow access to total stack size yet?

zanmatoer
03-30-2012, 04:58 PM
Very true about the double-ice cap. Broadside becomes a big problem in places like the pirate cove pre-fledges and the war (although less-so). Anywhere where you can't wear the massively overpowered ice cap, basically :D

WHAM also seems to underestimate the damage a single Mighty Axing will do on my main (who now starts with full Feasting and most of Shouting), but calculates it more accurately on my multi with much less banked skills. Not really sure as to the actual reason, though.

EDIT: What's the most effective way to disable Broadside completely until the issue is fixed (assuming Winterbay isn't so awesome that it'll be fixed up real quick)?

Winterbay
03-31-2012, 05:42 PM
The quickest way is to not learn it :)
Apart form that you can search for the function-calls to stun() and comment them out with //.

That said 1.9 has been uploaded which, hopefully, should not stun as much with broadside (or intimidate as much) as 1.8. Let me know if it's working or not as I just got Broadside today so won't be able to see any effect of it until tomorrow.

zanmatoer
04-01-2012, 10:45 AM
Awesome!

It still appears to be overusing Broadside, but to a much less extreme extent. I think the problem might lie with BatBrain's estimation of how much damage Mighty Axing does.

I can't really comment on WHAM's usage of Bellow, as I'm doing the war currently, where bellowing makes perfect sense every battl- scratch that, WHAM just killed a dook in the barn without bellowing first! I think the new incarnation is a significant improvement that'll be perfected when Mighty Axing's damage is better spaded.

Thanks again.

Donavin69
04-02-2012, 02:56 PM
I'm having a problem that when a monster is stasised for long enough that it ends up dieing before Wham tries to kill it, I get an abort.

Sorry for the really long code, but that's how the fight goes. It doesn't happen all the time, but frequently enough for me to turn up Verbosity to capture this:


[36640] Icy Peak
Encounter: Knott Yeti
Strategy: C:\KOLMafia\ccs\default.ccs [knott yeti]
Round 0: cheesecake_baby wins initiative!
Round 1: cheesecake_baby tries to steal an item!
Round 2: Richard Cheese climbs up and sits on your shoulder, and hands you some Meat. Huh, where did he find that?
You gain 65 Meat.
Running ZLib version: r35 (current)
Starting Don's Icy Peak script
Foe is Knott Yeti
Round 2: cheesecake_baby casts RUN LIKE THE WIND!
Round 3: knott yeti takes 8 damage.
You lose 7 hit points
Round 3: cheesecake_baby casts BREAK IT ON DOWN!
Round 4: knott yeti takes 10 damage.
Round 4: cheesecake_baby casts POP AND LOCK IT!
Round 5: knott yeti takes 19 damage.
You acquire an effect: Rave Nirvana (duration: 1 Adventure)
Round 5: cheesecake_baby casts DISCO DANCE OF DOOM!
Round 6: knott yeti takes 7 damage.
Round 6: knott yeti drops 5 attack power.
Round 6: knott yeti drops 5 defense.
Round 6: cheesecake_baby casts DISCO DANCE II: ELECTRIC BOOGALOO!
Round 7: knott yeti takes 8 damage.
You acquire an effect: Disco Nirvana (duration: 1 Adventure)
Round 7: knott yeti drops 7 attack power.
Round 7: knott yeti drops 7 defense.
Round 7: Richard Cheese's bells jingle merrily.
Finished Don's Icy Peak script
Running ZLib version: r35 (current)
1 HP costs 10μ. ( 758 / 765 )
1 MP costs 17μ. ( 284 / 761 )
Factoring in Mayflower bouquet: 0 damage, stun 0.065
Running BatBrain version: 1.20 (current)
Running SmartStasis version: 3.14 (current)
Running WHAM version: 1.9 (current)
WHAM: We currently think that the round number is: 0
WHAM: No need to do anything with this monster.
yeti fur (30.0 @ +40.0): 92μ * 42.0% = 38.64
Value of stat gain: 390.16μ
No valid attacks.
No valid attacks.
No valid attacks.
No valid attacks.
No valid attacks.
yeti fur (30.0 @ +40.0): 92μ * 42.0% = 38.64
Value of stat gain: 390.16μ
ATT: 103 (6% × 3.45, death in 3660)
DEF: 90 (95.45% × 517.25 (25), win in 2)
HP: 48, Value: 1,702.9 μ
Parsed round number: 7
WHAM: We currently think that the round number is: 7
WHAM: You have no profitable MP restoratives.
WHAM: You have no profitable HP restoratives.
WHAM: Setting up variables via BatBrain
WHAM: Monster HP is 48.0.
WHAM: Running SmartStasis
Profit per round: ActionProfitDamageOtherbase; Mayflower bouquet; Hobo Monkey (75μ)75μ--
yeti fur (30.0 @ +40.0): 92μ * 42.0% = 38.64
yeti fur (30.0 @ +40.0): 92μ * 42.0% = 38.64
Value of stat gain: 390.16μ
Attack action chosen: use 2646
Queued: skill 50; skill 52; skill 51
Constructed macro: scrollwhendone; sub batround; if haseffect 8 || haseffect 264 || haseffect 282 || haseffect 283 || haseffect 284; abort "BatBrain abort: poisoned"; endif; 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; ; call batround; skill 50; skill 52; skill 51; call batround;
Round 7: cheesecake_baby executes a macro!
Round 7: cheesecake_baby casts BREAK IT ON DOWN!
Round 8: knott yeti takes 6 damage.
Round 8: cheesecake_baby casts RUN LIKE THE WIND!
Round 9: knott yeti takes 10 damage.
Round 9: cheesecake_baby casts POP AND LOCK IT!
Round 10: knott yeti takes 15 damage.
You acquire an item: yeti fur
Happened: skill 50
Happened: skill 52
Happened: skill 51
Parsed round number: 10
You snatched a yeti fur (92μ)!
Value of stat gain: 390.16μ
Revised monster value: 1,664.26
Happened: stolen
Stasis action chosen: skill 5021 (profit: 73.0)
Value of stat gain: 390.16μ
Attack action chosen: use 1705
Queued: skill 5021
Constructed macro: scrollwhendone; sub batround; if haseffect 8 || haseffect 264 || haseffect 282 || haseffect 283 || haseffect 284; abort "BatBrain abort: poisoned"; endif; 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; sub finito; skill 5021; call batround; endsub; call finito; repeat hasskill 5021 && (!hpbelow 758.0 && hpbelow 765 && !mpbelow 278.0 && !pastround 25 && !match "hands you some Meat")
Round 10: cheesecake_baby executes a macro!
Round 10: cheesecake_baby casts SUCKERPUNCH!
Round 11: knott yeti takes 1 damage.
Round 11: knott yeti drops 1 attack power.
Round 11: knott yeti drops 1 defense.
Round 11: cheesecake_baby casts SUCKERPUNCH!
Round 12: knott yeti takes 1 damage.
Round 12: knott yeti drops 1 attack power.
Round 12: knott yeti drops 1 defense.
Round 12: Richard Cheese holds out the Mayflower bouquet toward your opponent. He stops to smell the flowers instead of attacking you.
Round 12: cheesecake_baby casts SUCKERPUNCH!
Round 13: knott yeti takes 1 damage.
Round 13: knott yeti drops 1 attack power.
Round 13: knott yeti drops 1 defense.
Round 13: cheesecake_baby casts SUCKERPUNCH!
Round 14: knott yeti takes 1 damage.
Round 14: knott yeti drops 1 attack power.
Round 14: knott yeti drops 1 defense.
Round 14: Richard Cheese holds out the Mayflower bouquet toward your opponent. He stops to smell the flowers instead of attacking you.
Round 14: cheesecake_baby casts SUCKERPUNCH!
Round 15: knott yeti takes 1 damage.
Round 15: knott yeti drops 1 attack power.
Round 15: knott yeti drops 1 defense.
Round 15: cheesecake_baby casts SUCKERPUNCH!
Round 16: knott yeti takes 1 damage.
Round 16: knott yeti drops 1 attack power.
Round 16: knott yeti drops 1 defense.
Round 16: cheesecake_baby casts SUCKERPUNCH!
Round 17: knott yeti takes 1 damage.
Round 17: knott yeti drops 1 attack power.
Round 17: knott yeti drops 1 defense.
Round 17: cheesecake_baby casts SUCKERPUNCH!
Round 18: knott yeti takes 1 damage.
Round 18: knott yeti drops 1 attack power.
Round 18: knott yeti drops 1 defense.
Round 18: Richard Cheese holds out the Mayflower bouquet toward your opponent. He stops to smell the flowers instead of attacking you.
Round 18: cheesecake_baby casts SUCKERPUNCH!
Round 19: knott yeti takes 1 damage.
Round 19: knott yeti drops 1 attack power.
Round 19: knott yeti drops 1 defense.
Round 19: cheesecake_baby casts SUCKERPUNCH!
Round 20: knott yeti takes 1 damage.
Round 20: knott yeti drops 1 attack power.
Round 20: knott yeti drops 1 defense.
Round 20: cheesecake_baby casts SUCKERPUNCH!
Round 21: knott yeti takes 1 damage.
Round 21: knott yeti drops 1 attack power.
Round 21: knott yeti drops 1 defense.
Round 21: cheesecake_baby casts SUCKERPUNCH!
Round 22: knott yeti takes 1 damage.
Round 22: knott yeti drops 1 attack power.
Round 22: knott yeti drops 1 defense.
Round 22: cheesecake_baby casts SUCKERPUNCH!
Round 23: knott yeti takes 1 damage.
Round 23: knott yeti drops 1 attack power.
Round 23: knott yeti drops 1 defense.
Round 23: Richard Cheese's bells jingle merrily.
Round 23: cheesecake_baby casts SUCKERPUNCH!
Round 24: knott yeti takes 1 damage.
Round 24: knott yeti drops 1 attack power.
Round 24: knott yeti drops 1 defense.
Round 24: cheesecake_baby casts SUCKERPUNCH!
Round 25: knott yeti takes 1 damage.
Round 25: knott yeti drops 1 attack power.
Round 25: knott yeti drops 1 defense.
Round 25: cheesecake_baby casts SUCKERPUNCH!
Round 26: knott yeti takes 1 damage.
Round 26: knott yeti drops 1 attack power.
Round 26: knott yeti drops 1 defense.
Round 26: cheesecake_baby wins the fight!
After Battle: Richard Cheese sits on your fallen opponent's body, blows a smoke ring, and winks at you.
You gain 1419 Meat
You gain 3 Strengthliness
You gain 14 Wizardliness
You gain 15 Chutzpah
Happened: skill 5021
Happened: skill 5021
Happened: skill 5021
Happened: skill 5021
Happened: skill 5021
Happened: skill 5021
Happened: skill 5021
Happened: skill 5021
Happened: skill 5021
Happened: skill 5021
Happened: skill 5021
Happened: skill 5021
Happened: skill 5021
Happened: skill 5021
Happened: skill 5021
Happened: skill 5021
Parsed round number: 26
Stasis action chosen: use 2678 (profit: 75.02)
No valid attacks.
WHAM: SmartStasis complete.
WHAM: We currently think that the round number is: 26
WHAM: Starting evaluation and performing of attack
WHAM: We currently think that the round number is: 26
WHAM: You will kill the monster in 2 rounds with your basic attack.
WHAM: The monster will take more than 30 rounds to kill you.
WHAM: Monster is weak. We are just going to bash its head in. It'll take 2 rounds.
Parsed round number: 0
WHAM: Empty macro generated. Please check, aborting.
You're on your own, partner.


Any advice as to what I should change to make this not abort?

Winterbay
04-02-2012, 05:48 PM
I see two problems : 1) Batbrain failed to set the round number to 31 when the fight ended and thus WHAM did not abort correctly and 2) SS tries to Stasis even though your Hobo Monkey has already handed you its meat (probably because that happened before WHAM/SS was called) thereby prolonging the fight more than strictly profitable.
I've actually got no idea how to solve any of those...

I guess changing all if(finished()) to if(finished() || contains_text(page, "WINWINWIN")) may work for the first issue though.

Donavin69
04-03-2012, 05:49 PM
I guess changing all if(finished()) to if(finished() || contains_text(page, "WINWINWIN")) may work for the first issue though.
I modified my version of BatBrain to have the boolean finished() return true if the page contained WINWINWIN and I didn't have any problems today :)

Thanks!

fronobulax
04-12-2012, 11:31 AM
Nit - WHAM considers Lunging Thrust Smack even when the weapon is ranged.

Observation - "WHAM: The fight has gone on for longer than your WHAM_maxround setting. Reverting power to manual." gets pretty consistently printed when WHAM loses a fight. No message or one indicating that WHAM knows the fight is over and lost would be more useful, IMO.

Tangent - Would someone please remind me why "KoLmafia thinks it is round 3 but KoL thinks it is round 2" is a useful message and not just clutter that has been OBE and could be removed?

Thanks.

Edit: "considers" above as in lists it as a possible option when WHAM reverts to manual control in the relay browser.

Winterbay
04-12-2012, 12:57 PM
1) Hmm... It shouldn't do that. It goes over iterateskills, which in turns comes from allMySkills which in turn is encapsulated in ok()-calls and LTS should not be OK if your weapon is ranged. ANy specific weapon or all ranged weapons?

2) Yes, I noticed that today as well and will have a look at it.

3) Ehhm... I don't think it is. That said the reason for the message coming up so much at the moment is that SmartStasis submits an empty macro for one round which makes KoL and Mafia get out of sync in regards to the round of the battle.

Theraze
04-12-2012, 01:30 PM
The "rounds don't match up" bug was one that... hola? jason? were going to fix with a combat refactoring. But we do have a bug thread with 36 posts in it (http://kolmafia.us/showthread.php?3805-KoLmafia-thinks-it-is-round-but-KoL-thinks-it-is-round-1) as well, which wasn't the one where they'd talked about their plans, so I really can't remember which of them had that plan about a year ago or so.

Veracity
04-12-2012, 01:56 PM
Would someone please remind me why "KoLmafia thinks it is round 3 but KoL thinks it is round 2" is a useful message and not just clutter that has been OBE and could be removed?
Arrogant, a little? Not that I know what "OBE" is supposed to mean; the first two google hits - Order of the British Empire and Out of Body Experience - are, possibly, the only ways I've actually seen that acronym used.

We don't depend on things by round number any more, so tracking round number is primarily cosmetic: for us to display in the gCLI and session logs, the title of Fight! pages. We also pass the round number to consult scripts, for them to do with what they wish. It would be nice if our tracking were accurate.

However, since KoL itself tells us in an HTML comment what it thinks the round number is, it seems to me that we could just extract that and save it and use it for the above purposes: logging, the title bar and consult scripts.

KoLmafia's message HAS proven useful: RoyalTonberry told me that he discovered that such-and-such an action did not consume a round specifically because KoLmafia told him about losing synch when he did it. Does that make it a spading tools? :) Regardless, synching up with KoL's round number would still let you notice things like that.

The tricky thing is to make sure that logging continues to look the same, in my opinion.

fronobulax
04-12-2012, 03:05 PM
Overtaken By Events.

I could have phrased the round question better but I did remember a lot of discussion and I thought it was one of those things that could go away. Since it had not gone away I figured my memory is faulty. I was thinking it was primarily cosmetic but if it is useful for spading (and I now understand how) I can live with it. Either way my curiosity behind the question has been addressed.

17-alarm Saucepan which is not the ranged weapon that I thought it was. Would someone please pass me my crow sandwich?

fronobulax
04-14-2012, 03:27 PM
Well after my faux pas concerning ranged saucepans, I hesitate to say anything but...

Sauceror. In Junkyard.

WHAM: Unable to determine a valid combat strategy. For your benefit here are the numbers for you combat skills.
WHAM: Lunging Thrust-Smack 9.976151 potential damage.
WHAM: Basic attack 3.9240494 potential damage with a hitchance of 8.795455%.

Since I have adequate MO and several combat damage spells available this is not the list I was expecting. Operator error again or something else?

Winterbay
04-14-2012, 03:30 PM
... good question. Do you with MO mean MP? Because if you have enough MP to cast things it should show up... It'll only show things you have enough MP to cast though.

fronobulax
04-14-2012, 03:39 PM
I did mean MP. So much for my proofreading skills

No idea where to begin. I didn't notice the problem yesterday. Today is Festival of Jarlsberg and I updated BarBrain but otherwise...

100% NPZR.

fronobulax
04-15-2012, 05:32 PM
Me again. I set the verbosity to 10 and ran. gCLI output attached plus some of the character status information. After WHAM stopped I manually cast entangling noodles and then one shotted the monster.

Observations - SmartStasis apparently didn't think there was anything to do even with a NPZR. WHAM failed to consider spells. No one thought it was worth casting entangling noodles.

I have one or two more days before ascending so if I can try something let me know.

Thanks.

Winterbay
04-15-2012, 08:26 PM
The fact that SS didn't do anything is because at verbosity 10 it doesn't get called. It's set up that way in order to ensure that verbosity 10 is only for debugging purposes without changing SS (you can see this by the fact that it never printed "Running Smart Stasis").

That said, it should still consider spells. My only guess at the moment is that the sword makes batbrain confused (that is if you had that on during the fight), but that is not substantiated by anything really. I'll be getting out of my Boris run in 3 days or so and will be able to test some then (unless I need to go to the hospital first to welcome my child to the world, estimated date of delivery is Friday).

fronobulax
04-15-2012, 09:12 PM
Congratulations on the impending birth. My son is the person who introduced me to KoL, so you have much to look forward to.

Windsor Pan of the Source was the weapon equipped when adventuring. The log entry was the rollover gear that I did change out of.

Winterbay
04-16-2012, 06:34 AM
I actually just had the same thing happen to me in my Boris run. The macro for basic attacking works fine (and adds broadside and mighty axing as asked) but as soon as it moves over to other types of attacking (say a procrastination giant) it fails and has no skills available.
Odd...

Edit: It appears that damage from all skills that are calculated in any way other than "normal" way get set to 0 in the new Batbrain. I have no idea why and will take this over there...

Winterbay
04-17-2012, 09:52 AM
Ok, so it appears that there is something that could be a bug in BatBrain that's causing this. Attached to this thread is a version of BatBrain with the, I think, missing code added back in. Please use that instead of the "official" release until this can get a better fix.

fronobulax
04-17-2012, 01:24 PM
Ok, so it appears that there is something that could be a bug in BatBrain that's causing this. Attached to this thread is a version of BatBrain with the, I think, missing code added back in. Please use that instead of the "official" release until this can get a better fix.

That seems to have worked better although switching from a high level spell caster to a low level moxie class might also explain the improvement ;-)

I saw
Macro override "i" returned void.
> WHAM: Running SmartStasis a lot but I'm not sure whether it is WHAM, pre-WHAM or related to the round counting observations.

Winterbay
04-17-2012, 02:27 PM
I saw a lot but I'm not sure whether it is WHAM, pre-WHAM or related to the round counting observations.

That is, I think, a Bumcheekascend bug that I hope to have fixed in an update I did this morning so the SVN-version shouldn't do that anymore (basically I miscounted the number of arguments in a BumAdv-call and the mood-information ended up as an adventure filter which obviously didn't work).

Winterbay
04-24-2012, 05:39 AM
Version 1.9.5 uploaded that makes the script use Broadside and Bellow in more reasonable places. I'm also working on a complete re-write since the script is stupidly slow if you have loads of skills (which I after a bunch of Boris-runs appear to have and so noticed this). It may take a whiel due to me being somewhat busy at the moment.

Chef_Rannos
04-25-2012, 12:17 AM
I've noticed things like this, where sometimes WHAM aborts the running script when the combat is finished unexpectedly.



[657] F'c'le
Encounter: clingy pirate
Strategy: C:\Users\bhanes\kolmafia\ccs\Boris.ccs [default]
Round 0: chef_rannos loses initiative!
WHAM: Running SmartStasis
Round 1: chef_rannos executes a macro!
Round 1: chef_rannos uses the cocktail napkin!
WHAM: Monster is weak. We are just going to bash its head in. It'll take 2 rounds.
WHAM: Empty macro generated. Please check, aborting.
You're on your own, partner.



EDIT: I should mention I just started using WHAM this week, and I also got this one:



[716] Fantasy Airship
Encounter: Protagonist
Strategy: C:\Users\bhanes\kolmafia\ccs\Boris.ccs [default]
Round 0: chef_rannos loses initiative!
You lose 21 hit points
You acquire an effect: Temporary Amnesia (duration: 5 Adventures)
WHAM: Running SmartStasis
Round 1: chef_rannos executes a macro!
KoLmafia thinks it is round 2 but KoL thinks it is round 1
WHAM: Monster is weak. We are just going to bash its head in. It'll take 2 rounds.
WHAM: Empty macro generated. Please check, aborting.
You're on your own, partner.
Click here to continue in the relay browser.


Anything I can do to help? :D

Winterbay
04-25-2012, 05:24 AM
You could run a fight at a higher verbosity which should give some more info on what is happening (7 is the upper limit for "information" after that it is increasing amounts of debug info until at 10 it will run the script and print a lot of debug info but won't execute anything).

The first case is that finished() apparently didn't report correctly that the fight ended, which is a bit hard to check for, while the problem in the second case, I do believe, is the acquisition of Temporary Amnesia and you being in a Boris run, since it's trying to bash the monster in and Boris is the only place where that would be done with a skill... That would definitely be fixable.

Edit: 1.9.6 fixes the second problem.

fronobulax
04-25-2012, 10:54 AM
Edit: 1.9.6 fixes the second problem.

Script in the first post thinks its version number is 1.9.5 ;-) Was I too early?

Winterbay
04-25-2012, 11:26 AM
Or I forgot to actually upload the file which is a lot more likely :)
It should be the correct one now.

Chef_Rannos
04-25-2012, 11:50 PM
Ok, now I have gotten this a couple times. Each time a mighty axing or two easily dispatched the Giant.



[787] Giant's Castle
Encounter: Procrastination Giant
Strategy: C:\Users\bhanes\kolmafia\ccs\Boris.ccs [default]
Round 0: chef_rannos wins initiative!
WHAM: Running SmartStasis
Round 1: chef_rannos executes a macro!
KoLmafia thinks it is round 2 but KoL thinks it is round 1
Round 2: chef_rannos executes a macro!
Round 2: chef_rannos casts INTIMIDATING BELLOW!
KoLmafia thinks it is round 3 but KoL thinks it is round 2
Round 3: procrastination giant drops 18 attack power.
Round 3: procrastination giant drops 18 defense.
At the end of the 1 complete loop of s
At the end of the 2 complete loop of s
Round 3: chef_rannos executes a macro!
KoLmafia thinks it is round 4 but KoL thinks it is round 2
WHAM: Unable to determine a valid combat strategy. For your benefit here are the numbers for you combat skills.
WHAM: Heroic Belch 68.0 potential damage.
WHAM: Chronic Indigestion 22.5 potential damage.
WHAM: Basic attack 150.0 potential damage with a hitchance of 95.454544%.
WHAM: You now have the knowledge needed to go forward and be victorious
You're on your own, partner.
Click here to continue in the relay browser.


207 buffed muscle and at 0 ML.

I'd imagine if I have over 90% hit potential that should be good enough to spam some mighty axings, right?


EDIT: My normal attack did 227 (+10 spooky from snarl of the timberwolf) so that's quite a bit more than the 150 calculated when it stopped...maybe that's a minimum damage?

lostcalpolydude
04-26-2012, 09:51 AM
It's trying to avoid cunctatitis, and Boris doesn't have any good ways of doing that. Except Banishing Shout (my preferred method, even during a speed run where I don't care what Items the giants drop because I'm not opening HitS), but I wouldn't expect a script to automatically decide that Banishing Shout is the way to go. There doesn't seem to be much downside to it for Procrastination Giants, so maybe it should anyway.

Bale
04-26-2012, 09:57 AM
It's trying to avoid cunctatitis, and Boris doesn't have any good ways of doing that.

"Throw Trusty" works pretty well for that, but I always prefer to banish the Procrastination Giants which is so much more effective.

Winterbay
04-26-2012, 11:31 AM
Yeah, the script currently doesn't use any kind of banishers that SS doesn't use for it. I guess it could try banishing things in the upcoming 2.0 version if I find a nice set of rules for it.

Edit: Actually I already have a function just for that sort of thing. Which monsters would it be a good idea to banish apart from the procrastination giant?

Theraze
04-26-2012, 01:34 PM
Boris does well avoiding those giants using belch, if your stomach is full. But that takes filling up before your adventures, along with the feasting tree.

Weatherboy
04-26-2012, 01:57 PM
Banishing Shout = any monster that doesn't drop a goal.

You know, this may be why I'm always so meat poor until I sell the dictionary post orc chasm.

:)

Winterbay
04-26-2012, 05:56 PM
So...
Procrastination Giant
A.M.C Gremlin

Any other that would always want to be banished? Banishing everything that doesn't drop a goal sounds a tad bit too expensive, but is probably the most optimal thing to do. ALso, banishing more than 3 monsters in one zone would also be rather ineffective since the first one would come back again then.

zanmatoer
04-26-2012, 07:03 PM
sabre-toothed goat?
slick lihc, slick lihc?
Flaming Troll?

There must me more than that...

Winterbay
04-27-2012, 08:04 AM
Version 2.0 uploaded with a pretty large re-write. I hope I didn't break anything but instead made the script more awesome by better usage of BatBrain's features.

Known bug/problem: If you have 1 of an item that it is optimal to throw more than one of the script will probably crash. This is a Batbrain-bug/oversight that'll hopefully be fixed in an upcoming release.

Setting verbosity to 9 will give printouts of what turn you're on for help with the debugging of that problem (as discussed over in the BatBrain-thread).

Winterbay
04-27-2012, 09:16 AM
Version 2.0.1 uploaded due to someone having downloaded the uploaded version and me having to change some small things.

Known bug/problems:
* If you have 1 of an item that it is optimal to throw more than one of the script will probably crash. This is a Batbrain-bug/oversight that'll hopefully be fixed in an upcoming release.
* If you're in over your head the script may abort due to not being able to delevel enough. This may be a feature, I'm not sure :)

Weatherboy
04-27-2012, 03:40 PM
2.0.2 has a small typo in it.
Expected ), found return (WHAM.ash, line 362)
Then this.

Request 1 of 131 (MusSign: Spooky Gravy Barrow) in progress...

[871] Spooky Gravy Barrow
Encounter: spooky gravy fairy guard
Strategy: C:\Users\best\.kolmafia\ccs\nekkid.ccs [default]
Round 0: weatherboy wins initiative!
Round 1: Mikey Jackson produces a tubular red firecracker labeled M-18, lights the long fuse, and tosses it behind your opponent.
WHAM: Running SmartStasis
Round 1: weatherboy executes a macro!
KoLmafia thinks it is round 2 but KoL thinks it is round 1
WHAM: Monster is weak. We are just going to bash its head in. It'll take 1 rounds.
WHAM: Empty macro generated. Please check, aborting.
You're on your own, partner.
Click here to continue in the relay browser.


Round 2: weatherboy attacks!
KoLmafia thinks it is round 3 but KoL thinks it is round 2
Round 3: spooky gravy fairy guard takes 113 damage.
Round 3: Mikey Jackson produces a cloud of noxious vapors, choking your opponent for 24 damage.
Round 3: spooky gravy fairy guard takes 24 damage.
Round 3: weatherboy wins the fight!
After Battle: Mikey Jackson sets off a lovely little cluster rocket, and smiles broadly as it explodes.
After Battle: Mikey Jackson does a little fairy dance.
You acquire an item: spooky mushroom
You gain 11 Muscleboundness
You gain a Muscle point!
You gain 4 Magicalness
You gain 5 Roguishness

> zlib verbosity = 10

Previous value of verbosity: 3
Changed to 10.
Validating adventure sequence...

Running ZLib version: r35 (current)
Running Best Between Battle Script Ever version: 2.6 (current)
You have a putty monster, but mafia doesn't know what it is.

Visit to MusSign: Spooky Gravy Barrow in progress...

[872] Spooky Gravy Barrow
Encounter: spooky gravy fairy warlock
Strategy: C:\Users\best\.kolmafia\ccs\nekkid.ccs [default]
Round 0: weatherboy wins initiative!
Round 1: Mikey Jackson produces a tubular red firecracker labeled M-21, lights the long fuse, and tosses it behind your opponent.
Running ZLib version: r35 (current)
1 HP costs 0.327μ. ( 321 / 323 )
1 MP costs 3.818μ. ( 43 / 171 )
Running BatBrain version: 1.22 (current)
Running SmartStasis version: 3.14 (current)
Running WHAM version: 2.0.2 (current)
WHAM: We currently think that the round number is: 0 and that the turn number is 871.
WHAM: No need to do anything with this monster.
WHAM: Setting up variables via BatBrain
spooky mushroom (40.0 @ +186.69046): 200μ * 100.0% = 200.0
enchanted toothpick (5.0 @ +186.69046): 595μ * 14.334522% = 85.29041
Value of stat gain: 172.19μ
No valid attacks.
No valid attacks.
spooky mushroom (40.0 @ +186.69046): 200μ * 100.0% = 200.0
enchanted toothpick (5.0 @ +186.69046): 595μ * 14.334522% = 85.29041
Value of stat gain: 172.19μ
ATT: 70 (6% × 1, death in 5350)
DEF: 63 (100% × 109.83 (5), win in 1)
HP: 60, Value: 457.48 μ
Parsed round number: 1
Building options...
Evaluating 'loc(vibrato)'...
Evaluating '192.5*zone(sea)'...
Evaluating '-0.25*70.0*(zone(sea)-1)'...
Evaluating '1.5+zone(sea)*2'...
Evaluating '-min(100,ceil(5*sqrt(min(156.0,60.0))))'...
Evaluating 'min(50,ceil(5*sqrt(min(97.0,60.0))))'...
Evaluating '124.2*zone(sea)'...
Evaluating '15+10*min(1,effect(sugar rush))'...
Evaluating 'max(156.0,max(125.0,97.0))'...
Evaluating 'min(12.0+3,10)+floor(sqrt(max(12.0-7,0)))'...
Evaluating '325.5*zone(sea)'...
Evaluating '1.0*(5.5+min(0.07*97.0,15)+min(0.0,25)+0.0)'...
Evaluating '1.0*(12+min(0.15*97.0,20)+min(0.0,40)+0.0)'...
Evaluating '1.0*(28+min(0.25*97.0,30)+min(0.0,60)+0.0)'...
Evaluating '1.0*(2.5+min(0.0,5)+0.0)'...
Evaluating '1.0*(12+min(0.15*97.0,20)+min(0.0,40))'...
Evaluating '1.0*(28+min(0.25*97.0,30)+min(0.0,60)+0.0)*1.5'.. .
Evaluating '1.0*(3.5+min(0.1*97.0,10)+min(10.0+0.0,10))'...
Evaluating '1.0*(16+min(0.2*97.0,25)+min(10.0+0.0,15))'...
Evaluating '1.0*(22+min(0.3*97.0,30)+min(10.0+0.0,25))'...
Evaluating '(1+0.5*min(1,effect(sugar rush)))*1.0*(16+min(0.2*97.0,25)+min(10.0+0.0,15)) '...
Evaluating '1.0*(16+min(0.2*97.0,25)+min(10.0+0.0,15))'...
Options built! (205 actions)
WHAM: We currently think that the round number is: 1 and that the turn number is 871.
WHAM: You have no profitable MP restoratives.
WHAM: You have no profitable HP restoratives.
WHAM: You are fighting a Spooky Gravy Fairy Warlock. Mafia considers that this monster has an attack of 70 or 70 when given a monster name.
WHAM: Mafia further considers that this monster has a defense value of 63 or 63 when given a monster name.
WHAM: Mafia further further considers that this monster has a HP value of 60 or 60 when given a monster name.
WHAM: Your current ML-adjustment is: 10.
WHAM: Monster HP is 60.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;
WHAM: We currently think that the round number is: 1 and that the turn number is 871.
WHAM: SS did not finish the script off, 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 871.
WHAM: You will kill the monster in 1 rounds with your basic attack.
WHAM: The monster will take more than 30 rounds to kill you.
rounds_to_kill: 1, round_limit: 10, maxround: 30, die_rounds(): 5350, hitchance("attack"): 1.0
WHAM: Expected received damage per round: 0.06, Rounds to kill: 1, Expected damage: 60.0, Hit chance: 1.0
WHAM: Monster is weak. We are just going to bash its head in. It'll take 1 rounds.
WHAM: I would've choosen to attack the monster to death.
WHAM: Debug printing the damage dealt by your options.

WHAM: Attack with your weapon: 60.0 potential damage.
WHAM: Candyblast: 26.55 potential damage.
WHAM: Gnomitronic Hyperspatial Demodulizer: 11.0 potential damage.
WHAM: Toss: 12.0 potential damage.
WHAM: cinnamon troll doll: 8.0 potential damage.
WHAM: spectre scepter: 6.375 potential damage.
WHAM: seal tooth: 1.0 potential damage.
WHAM: spices: 1.0 potential damage.
WHAM: toy mercenary: 32.5 potential damage.
WHAM: Clobber: 21.5 potential damage.
WHAM: Chronic Indigestion: 60.0 potential damage.
WHAM: Stream of Sauce: 34.800003 potential damage.
WHAM: cocktail napkin: 60.0 potential damage.
WHAM: Spaghetti Spear: 2.5 potential damage.
WHAM: Sing: 2.5 potential damage.
WHAM: Saucestorm: 60.0 potential damage.
WHAM: Käsesoßesturm: 60.0 potential damage.
WHAM: Suckerpunch: 1.0 potential damage.
WHAM: Cannelloni Cannon: 31.974998 potential damage.
WHAM: Ravioli Shurikens: 15.338333 potential damage.
WHAM: Stuffed Mortar Shell: 60.0 potential damage.
WHAM: Stringozzi Serpent: 60.0 potential damage.
WHAM: Bohemian rhapsody: 36.5 potential damage.
WHAM: flirtatious feather: 60.0 potential damage.
WHAM: Wave of Sauce: 60.0 potential damage.
WHAM: yo-yo: 35.0 potential damage.
WHAM: dwarf bread: 17.5 potential damage.
WHAM: groupie lipstick: 60.0 potential damage.
WHAM: fat bottom quark: 60.0 potential damage.
WHAM: sonar-in-a-biscuit: 6.0 potential damage.
WHAM: Surge of Icing: 45.4 potential damage.
WHAM: bottle of alcohol: 60.0 potential damage.
WHAM: Weapon of the Pastalord: 60.0 potential damage.
WHAM: Disco Eye-Poke: 2.0 potential damage.
WHAM: stick of dynamite: 17.5 potential damage.
WHAM: flaregun: 26.400002 potential damage.
WHAM: Disco Dance of Doom: 7.0 potential damage.
WHAM: Saucegeyser: 60.0 potential damage.
WHAM: Harpoon!: 60.0 potential damage.
WHAM: Offensive Joke: 35.0 potential damage.
WHAM: Disco Face Stab: 16.5 potential damage.
WHAM: flaming feather: 60.0 potential damage.
WHAM: fetid feather: 60.0 potential damage.
WHAM: boulder: 25.0 potential damage.
WHAM: Disco Dance II: Electric Boogaloo: 9.0 potential damage.
WHAM: rocky raccoon: 55.0 potential damage.
WHAM: patchouli oil bomb: 60.0 potential damage.
WHAM: macrame net: 60.0 potential damage.
WHAM: tequila grenade: 60.0 potential damage.
WHAM: water pipe bomb: 60.0 potential damage.
WHAM: beer bomb: 60.0 potential damage.
WHAM: molotov cocktail cocktail: 60.0 potential damage.
WHAM: ovoid leather thing: 60.0 potential damage.
WHAM: Fire off a Roman Candle: 10.6 potential damage.
WHAM: love song of smoldering passion: 60.0 potential damage.
WHAM: Goodfella contract: 36.0 potential damage.
WHAM: spangly unitard: 60.0 potential damage.
WHAM: ancient poisoned dart: 8.0 potential damage.
WHAM: frozen feather: 60.0 potential damage.
WHAM: shard of double-ice: 60.0 potential damage.
WHAM: pixel cross: 60.0 potential damage.
WHAM: frigid ninja stars: 22.0 potential damage.
WHAM: stone frisbee: 60.0 potential damage.
WHAM: Conjure Relaxing Campfire: 49.4 potential damage.
WHAM: Mudbath: 49.4 potential damage.
WHAM: ancient spice: 35.0 potential damage.
WHAM: mauve plastic oyster egg: 42.5 potential damage.
WHAM: lavender plastic oyster egg: 42.5 potential damage.
WHAM: photoprotoneutron torpedo: 40.0 potential damage.
WHAM: love song of vague ambiguity: 60.0 potential damage.
WHAM: ferret bait: 52.5 potential damage.
WHAM: sake bomb: 52.5 potential damage.
WHAM: Tango of Terror: 1.0 potential damage.
WHAM: pixel holy water: 55.0 potential damage.
WHAM: Maximum Chill: 24.7 potential damage.
WHAM: Inappropriate Backrub: 24.7 potential damage.
WHAM: Wassail: 24.7 potential damage.
WHAM: floorboard cruft: 60.0 potential damage.
WHAM: pygmy blowgun: 25.0 potential damage.
WHAM: facehugging alien: 60.0 potential damage.
WHAM: NG: 55.0 potential damage.
WHAM: love song of naughty innuendo: 60.0 potential damage.
WHAM: plot hole: 22.5 potential damage.
WHAM: divine can of silly string: 60.0 potential damage.
WHAM: exploding hacky-sack: 60.0 potential damage.
WHAM: petrified wood: 56.0 potential damage.
WHAM: frightful feather: 1.0 potential damage.
WHAM: pool of liquid metal: 3.75 potential damage.
WHAM: Spectral Snapper: 1.0 potential damage.
WHAM: love song of sugary cuteness: 60.0 potential damage.
WHAM: old-school flying disc: 60.0 potential damage.
WHAM: love song of icy revenge: 60.0 potential damage.
WHAM: sausage bomb: 60.0 potential damage.
WHAM: imp air: 60.0 potential damage.
WHAM: Fearful Fettucini: 1.0 potential damage.
WHAM: poltergeist-in-the-jar-o: 60.0 potential damage.
WHAM: Dyspepsi grenade: 55.0 potential damage.
WHAM: Creepy Lullaby: 1.0 potential damage.
WHAM: razor-sharp can lid: 2.5 potential damage.
WHAM: crusty hula hoop: 60.0 potential damage.
WHAM: red wagon: 60.0 potential damage.
WHAM: bus pass: 47.0 potential damage.
WHAM: paint bomb: 46.0 potential damage.
WHAM: rickety old unicycle: 60.0 potential damage.
WHAM: mariachi G-string: 12.5 potential damage.
WHAM: big boom: 60.0 potential damage.
WHAM: robotronic egg: 14.2 potential damage.
WHAM: love song of disturbing obsession: 1.0 potential damage.
WHAM: scroll of ancient forbidden unspeakable evil: 30.166664 potential damage.
WHAM: boozebomb: 60.0 potential damage.
WHAM: Colon Annihilation Hot Sauce: 14.0 potential damage.
WHAM: grouchy restless spirit: 1.0 potential damage.
WHAM: Knob Goblin firecracker: 3.0 potential damage.
WHAM: baseball: 7.0 potential damage.
WHAM: noxious gas grenade: 60.0 potential damage.
WHAM: shrinking powder: 34.5 potential damage.
WHAM: The Bomb: 60.0 potential damage.
WHAM: skate skates: 60.0 potential damage.
WHAM: broken glass grenade: 60.0 potential damage.
WHAM: chocolate frosted sugar bomb: 60.0 potential damage.
WHAM: candy kneecapping stick: 15.0 potential damage.
WHAM: hedgeturtle: 50.0 potential damage.
WHAM: 4:20 bomb: 60.0 potential damage.
WHAM: leftovers of indeterminate origin: 10.0 potential damage.
WHAM: can of sterno: 45.0 potential damage.
WHAM: cursed cannonball: 1.0 potential damage.
WHAM: lewd playing card: 60.0 potential damage.
WHAM: possessed tomato: 1.0 potential damage.
WHAM: skull with a fuse in it: 1.0 potential damage.

WHAM: Evaluating the attack but not performing it took 0.685 seconds.
WHAM: Stopping now, go read the generated data-files
You're on your own, partner.
Click here to continue in the relay browser.


Round 1: weatherboy attacks!
Round 2: spooky gravy fairy warlock takes 111 damage.
Round 2: weatherboy wins the fight!
After Battle: Mikey Jackson sets off a lovely little cluster rocket, and smiles broadly as it explodes.
After Battle: Mikey Jackson does a little fairy dance.
You acquire an item: spooky mushroom
You gain 13 Strengthliness
You gain 4 Wizardliness
You gain 5 Sarcasm

Weatherboy
04-27-2012, 04:04 PM
sabre-toothed goat?
slick lihc, slick lihc?
Flaming Troll?

There must me more than that...

Admitting again that perhaps I am a bit excessive, here's part of my ccs.



[ _banish ]
if hascombatitem rock band flyers
item rock band flyers
endif
skill banishing shout
default

[ a.m.c. gremlin ]
section _banish

[ blackberry bush ]
section _banish

[ bullet bill ]
section _banish

[ chatty pirate ]
section _banish

[ clingy pirate ]
if hascombatitem cocktail napkin
item cocktail napkin
endif
section _banish

[ crusty pirate ]
section _banish

[ drab bard ]
section _banish

[drunk goat ]
section _banish

[ flaming troll ]
section _banish

[ fleaman ]
section _banish

[ flock of stab-bats ]
section _banish

[ grassy pirate ]
section _banish

[ gritty pirate ]
section _banish

[ groovy pirate ]
section _banish

[ knight in white satin ]
section _banish

[ probability giant ]
section _banish

[ procrastination giant ]
skill banishing shout
skill intimidating bellow
skill heroic belch

[sabre-tooth goat ]
section _banish

[ taco cat ]
section _banish

[ the box ]
section _banish

[ white chocolate golem ]
section _banish


:eek::eek::eek:

eta: there are also the 7-foot dwarves in the mine (2 + a foreman).

Winterbay
04-27-2012, 04:55 PM
2.0.2 has a small typo in it.
Expected ), found return (WHAM.ash, line 362)
Then this.

Request 1 of 131 (MusSign: Spooky Gravy Barrow) in progress...

[871] Spooky Gravy Barrow
Encounter: spooky gravy fairy guard
Strategy: C:\Users\best\.kolmafia\ccs\nekkid.ccs [default]
Round 0: weatherboy wins initiative!
Round 1: Mikey Jackson produces a tubular red firecracker labeled M-18, lights the long fuse, and tosses it behind your opponent.
WHAM: Running SmartStasis
Round 1: weatherboy executes a macro!
KoLmafia thinks it is round 2 but KoL thinks it is round 1
WHAM: Monster is weak. We are just going to bash its head in. It'll take 1 rounds.
WHAM: Empty macro generated. Please check, aborting.
You're on your own, partner.
Click here to continue in the relay browser.


Round 2: weatherboy attacks!
KoLmafia thinks it is round 3 but KoL thinks it is round 2
Round 3: spooky gravy fairy guard takes 113 damage.
Round 3: Mikey Jackson produces a cloud of noxious vapors, choking your opponent for 24 damage.
Round 3: spooky gravy fairy guard takes 24 damage.
Round 3: weatherboy wins the fight!
After Battle: Mikey Jackson sets off a lovely little cluster rocket, and smiles broadly as it explodes.
After Battle: Mikey Jackson does a little fairy dance.
You acquire an item: spooky mushroom
You gain 11 Muscleboundness
You gain a Muscle point!
You gain 4 Magicalness
You gain 5 Roguishness

> zlib verbosity = 10

Previous value of verbosity: 3
Changed to 10.
Validating adventure sequence...

Running ZLib version: r35 (current)
Running Best Between Battle Script Ever version: 2.6 (current)
You have a putty monster, but mafia doesn't know what it is.

Visit to MusSign: Spooky Gravy Barrow in progress...

[872] Spooky Gravy Barrow
Encounter: spooky gravy fairy warlock
Strategy: C:\Users\best\.kolmafia\ccs\nekkid.ccs [default]
Round 0: weatherboy wins initiative!
Round 1: Mikey Jackson produces a tubular red firecracker labeled M-21, lights the long fuse, and tosses it behind your opponent.
Running ZLib version: r35 (current)
1 HP costs 0.327μ. ( 321 / 323 )
1 MP costs 3.818μ. ( 43 / 171 )
Running BatBrain version: 1.22 (current)
Running SmartStasis version: 3.14 (current)
Running WHAM version: 2.0.2 (current)
WHAM: We currently think that the round number is: 0 and that the turn number is 871.
WHAM: No need to do anything with this monster.
WHAM: Setting up variables via BatBrain
spooky mushroom (40.0 @ +186.69046): 200μ * 100.0% = 200.0
enchanted toothpick (5.0 @ +186.69046): 595μ * 14.334522% = 85.29041
Value of stat gain: 172.19μ
No valid attacks.
No valid attacks.
spooky mushroom (40.0 @ +186.69046): 200μ * 100.0% = 200.0
enchanted toothpick (5.0 @ +186.69046): 595μ * 14.334522% = 85.29041
Value of stat gain: 172.19μ
ATT: 70 (6% × 1, death in 5350)
DEF: 63 (100% × 109.83 (5), win in 1)
HP: 60, Value: 457.48 μ
Parsed round number: 1
Building options...
Evaluating 'loc(vibrato)'...
Evaluating '192.5*zone(sea)'...
Evaluating '-0.25*70.0*(zone(sea)-1)'...
Evaluating '1.5+zone(sea)*2'...
Evaluating '-min(100,ceil(5*sqrt(min(156.0,60.0))))'...
Evaluating 'min(50,ceil(5*sqrt(min(97.0,60.0))))'...
Evaluating '124.2*zone(sea)'...
Evaluating '15+10*min(1,effect(sugar rush))'...
Evaluating 'max(156.0,max(125.0,97.0))'...
Evaluating 'min(12.0+3,10)+floor(sqrt(max(12.0-7,0)))'...
Evaluating '325.5*zone(sea)'...
Evaluating '1.0*(5.5+min(0.07*97.0,15)+min(0.0,25)+0.0)'...
Evaluating '1.0*(12+min(0.15*97.0,20)+min(0.0,40)+0.0)'...
Evaluating '1.0*(28+min(0.25*97.0,30)+min(0.0,60)+0.0)'...
Evaluating '1.0*(2.5+min(0.0,5)+0.0)'...
Evaluating '1.0*(12+min(0.15*97.0,20)+min(0.0,40))'...
Evaluating '1.0*(28+min(0.25*97.0,30)+min(0.0,60)+0.0)*1.5'.. .
Evaluating '1.0*(3.5+min(0.1*97.0,10)+min(10.0+0.0,10))'...
Evaluating '1.0*(16+min(0.2*97.0,25)+min(10.0+0.0,15))'...
Evaluating '1.0*(22+min(0.3*97.0,30)+min(10.0+0.0,25))'...
Evaluating '(1+0.5*min(1,effect(sugar rush)))*1.0*(16+min(0.2*97.0,25)+min(10.0+0.0,15)) '...
Evaluating '1.0*(16+min(0.2*97.0,25)+min(10.0+0.0,15))'...
Options built! (205 actions)
WHAM: We currently think that the round number is: 1 and that the turn number is 871.
WHAM: You have no profitable MP restoratives.
WHAM: You have no profitable HP restoratives.
WHAM: You are fighting a Spooky Gravy Fairy Warlock. Mafia considers that this monster has an attack of 70 or 70 when given a monster name.
WHAM: Mafia further considers that this monster has a defense value of 63 or 63 when given a monster name.
WHAM: Mafia further further considers that this monster has a HP value of 60 or 60 when given a monster name.
WHAM: Your current ML-adjustment is: 10.
WHAM: Monster HP is 60.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;
WHAM: We currently think that the round number is: 1 and that the turn number is 871.
WHAM: SS did not finish the script off, 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 871.
WHAM: You will kill the monster in 1 rounds with your basic attack.
WHAM: The monster will take more than 30 rounds to kill you.
rounds_to_kill: 1, round_limit: 10, maxround: 30, die_rounds(): 5350, hitchance("attack"): 1.0
WHAM: Expected received damage per round: 0.06, Rounds to kill: 1, Expected damage: 60.0, Hit chance: 1.0
WHAM: Monster is weak. We are just going to bash its head in. It'll take 1 rounds.
WHAM: I would've choosen to attack the monster to death.
WHAM: Debug printing the damage dealt by your options.

WHAM: Attack with your weapon: 60.0 potential damage.
WHAM: Candyblast: 26.55 potential damage.
WHAM: Gnomitronic Hyperspatial Demodulizer: 11.0 potential damage.
WHAM: Toss: 12.0 potential damage.
WHAM: cinnamon troll doll: 8.0 potential damage.
WHAM: spectre scepter: 6.375 potential damage.
WHAM: seal tooth: 1.0 potential damage.
WHAM: spices: 1.0 potential damage.
WHAM: toy mercenary: 32.5 potential damage.
WHAM: Clobber: 21.5 potential damage.
WHAM: Chronic Indigestion: 60.0 potential damage.
WHAM: Stream of Sauce: 34.800003 potential damage.
WHAM: cocktail napkin: 60.0 potential damage.
WHAM: Spaghetti Spear: 2.5 potential damage.
WHAM: Sing: 2.5 potential damage.
WHAM: Saucestorm: 60.0 potential damage.
WHAM: Käsesoßesturm: 60.0 potential damage.
WHAM: Suckerpunch: 1.0 potential damage.
WHAM: Cannelloni Cannon: 31.974998 potential damage.
WHAM: Ravioli Shurikens: 15.338333 potential damage.
WHAM: Stuffed Mortar Shell: 60.0 potential damage.
WHAM: Stringozzi Serpent: 60.0 potential damage.
WHAM: Bohemian rhapsody: 36.5 potential damage.
WHAM: flirtatious feather: 60.0 potential damage.
WHAM: Wave of Sauce: 60.0 potential damage.
WHAM: yo-yo: 35.0 potential damage.
WHAM: dwarf bread: 17.5 potential damage.
WHAM: groupie lipstick: 60.0 potential damage.
WHAM: fat bottom quark: 60.0 potential damage.
WHAM: sonar-in-a-biscuit: 6.0 potential damage.
WHAM: Surge of Icing: 45.4 potential damage.
WHAM: bottle of alcohol: 60.0 potential damage.
WHAM: Weapon of the Pastalord: 60.0 potential damage.
WHAM: Disco Eye-Poke: 2.0 potential damage.
WHAM: stick of dynamite: 17.5 potential damage.
WHAM: flaregun: 26.400002 potential damage.
WHAM: Disco Dance of Doom: 7.0 potential damage.
WHAM: Saucegeyser: 60.0 potential damage.
WHAM: Harpoon!: 60.0 potential damage.
WHAM: Offensive Joke: 35.0 potential damage.
WHAM: Disco Face Stab: 16.5 potential damage.
WHAM: flaming feather: 60.0 potential damage.
WHAM: fetid feather: 60.0 potential damage.
WHAM: boulder: 25.0 potential damage.
WHAM: Disco Dance II: Electric Boogaloo: 9.0 potential damage.
WHAM: rocky raccoon: 55.0 potential damage.
WHAM: patchouli oil bomb: 60.0 potential damage.
WHAM: macrame net: 60.0 potential damage.
WHAM: tequila grenade: 60.0 potential damage.
WHAM: water pipe bomb: 60.0 potential damage.
WHAM: beer bomb: 60.0 potential damage.
WHAM: molotov cocktail cocktail: 60.0 potential damage.
WHAM: ovoid leather thing: 60.0 potential damage.
WHAM: Fire off a Roman Candle: 10.6 potential damage.
WHAM: love song of smoldering passion: 60.0 potential damage.
WHAM: Goodfella contract: 36.0 potential damage.
WHAM: spangly unitard: 60.0 potential damage.
WHAM: ancient poisoned dart: 8.0 potential damage.
WHAM: frozen feather: 60.0 potential damage.
WHAM: shard of double-ice: 60.0 potential damage.
WHAM: pixel cross: 60.0 potential damage.
WHAM: frigid ninja stars: 22.0 potential damage.
WHAM: stone frisbee: 60.0 potential damage.
WHAM: Conjure Relaxing Campfire: 49.4 potential damage.
WHAM: Mudbath: 49.4 potential damage.
WHAM: ancient spice: 35.0 potential damage.
WHAM: mauve plastic oyster egg: 42.5 potential damage.
WHAM: lavender plastic oyster egg: 42.5 potential damage.
WHAM: photoprotoneutron torpedo: 40.0 potential damage.
WHAM: love song of vague ambiguity: 60.0 potential damage.
WHAM: ferret bait: 52.5 potential damage.
WHAM: sake bomb: 52.5 potential damage.
WHAM: Tango of Terror: 1.0 potential damage.
WHAM: pixel holy water: 55.0 potential damage.
WHAM: Maximum Chill: 24.7 potential damage.
WHAM: Inappropriate Backrub: 24.7 potential damage.
WHAM: Wassail: 24.7 potential damage.
WHAM: floorboard cruft: 60.0 potential damage.
WHAM: pygmy blowgun: 25.0 potential damage.
WHAM: facehugging alien: 60.0 potential damage.
WHAM: NG: 55.0 potential damage.
WHAM: love song of naughty innuendo: 60.0 potential damage.
WHAM: plot hole: 22.5 potential damage.
WHAM: divine can of silly string: 60.0 potential damage.
WHAM: exploding hacky-sack: 60.0 potential damage.
WHAM: petrified wood: 56.0 potential damage.
WHAM: frightful feather: 1.0 potential damage.
WHAM: pool of liquid metal: 3.75 potential damage.
WHAM: Spectral Snapper: 1.0 potential damage.
WHAM: love song of sugary cuteness: 60.0 potential damage.
WHAM: old-school flying disc: 60.0 potential damage.
WHAM: love song of icy revenge: 60.0 potential damage.
WHAM: sausage bomb: 60.0 potential damage.
WHAM: imp air: 60.0 potential damage.
WHAM: Fearful Fettucini: 1.0 potential damage.
WHAM: poltergeist-in-the-jar-o: 60.0 potential damage.
WHAM: Dyspepsi grenade: 55.0 potential damage.
WHAM: Creepy Lullaby: 1.0 potential damage.
WHAM: razor-sharp can lid: 2.5 potential damage.
WHAM: crusty hula hoop: 60.0 potential damage.
WHAM: red wagon: 60.0 potential damage.
WHAM: bus pass: 47.0 potential damage.
WHAM: paint bomb: 46.0 potential damage.
WHAM: rickety old unicycle: 60.0 potential damage.
WHAM: mariachi G-string: 12.5 potential damage.
WHAM: big boom: 60.0 potential damage.
WHAM: robotronic egg: 14.2 potential damage.
WHAM: love song of disturbing obsession: 1.0 potential damage.
WHAM: scroll of ancient forbidden unspeakable evil: 30.166664 potential damage.
WHAM: boozebomb: 60.0 potential damage.
WHAM: Colon Annihilation Hot Sauce: 14.0 potential damage.
WHAM: grouchy restless spirit: 1.0 potential damage.
WHAM: Knob Goblin firecracker: 3.0 potential damage.
WHAM: baseball: 7.0 potential damage.
WHAM: noxious gas grenade: 60.0 potential damage.
WHAM: shrinking powder: 34.5 potential damage.
WHAM: The Bomb: 60.0 potential damage.
WHAM: skate skates: 60.0 potential damage.
WHAM: broken glass grenade: 60.0 potential damage.
WHAM: chocolate frosted sugar bomb: 60.0 potential damage.
WHAM: candy kneecapping stick: 15.0 potential damage.
WHAM: hedgeturtle: 50.0 potential damage.
WHAM: 4:20 bomb: 60.0 potential damage.
WHAM: leftovers of indeterminate origin: 10.0 potential damage.
WHAM: can of sterno: 45.0 potential damage.
WHAM: cursed cannonball: 1.0 potential damage.
WHAM: lewd playing card: 60.0 potential damage.
WHAM: possessed tomato: 1.0 potential damage.
WHAM: skull with a fuse in it: 1.0 potential damage.

WHAM: Evaluating the attack but not performing it took 0.685 seconds.
WHAM: Stopping now, go read the generated data-files
You're on your own, partner.
Click here to continue in the relay browser.


Round 1: weatherboy attacks!
Round 2: spooky gravy fairy warlock takes 111 damage.
Round 2: weatherboy wins the fight!
After Battle: Mikey Jackson sets off a lovely little cluster rocket, and smiles broadly as it explodes.
After Battle: Mikey Jackson does a little fairy dance.
You acquire an item: spooky mushroom
You gain 13 Strengthliness
You gain 4 Wizardliness
You gain 5 Sarcasm

Thanks. I'll fix that and reupload.

I have however no idea why it aborted there, well I know why it aborted the 2nd time (verbosity = 10 does that) but that's beside the point. 2.0.3 fixes the parenthesis and possibly this issue as well. I changed the way that "attack" is enqueued to a macro at least.

acedwhengrim
04-28-2012, 03:45 AM
2.0.3 still has 2.0.2 as the version number and still displays the update message.

Winterbay
04-28-2012, 09:49 AM
SO it did. Reuploaded with the correct number (change the 2.0.2 to a 2.0.3 yourself if You don't want to redownload).

Winterbay
04-29-2012, 09:18 AM
Version 2.1 uploaded to be compatible with latest version of SS and also to not enqueue items as skills since that won't work.

I did run into an issue at time when it tried to enqueue an item or skill and failed, but I have no idea why. If you run into it let me know so that I know I'm jus timagining things :)

Donavin69
04-30-2012, 02:55 PM
I keep having the enqueue issue with the snow queen, so I bumped verbosity up to 8 in case that would help with troubleshooting.



Request 2 of 176 (McLarge: Icy Peak) in progress...

[1389] Icy Peak
Encounter: Snow Queen
Strategy: C:\KOLMafia\ccs\default.ccs [default]
Round 0: smeagol69 wins initiative!
Round 1: smeagol69 tries to steal an item!
Running ZLib version: r35 (current)
1 HP costs 0.0070μ. ( 165 / 235 )
1 MP costs 0.018μ. ( 113 / 213 )
Running BatBrain version: 1.23 (current)
Running SmartStasis version: 3.15 (current)
Running WHAM version: 2.1 (current)
WHAM: No need to do anything with this monster.
WHAM: Setting up variables via BatBrain
crazy little Turkish delight (25.0 @ +55.0): 50μ * 38.75% = 19.375
ga-ga radio (5.0 @ +55.0): 130μ * 7.75% = 10.075
Snow Queen Crown (5.0 @ +55.0): 428μ * 7.75% = 33.17
Value of stat gain: 419.38μ
crazy little Turkish delight (25.0 @ +55.0): 50μ * 38.75% = 19.375
ga-ga radio (5.0 @ +55.0): 130μ * 7.75% = 10.075
Snow Queen Crown (5.0 @ +55.0): 428μ * 7.75% = 33.17
Value of stat gain: 419.38μ
ATT: 122 (6% × 6.38, death in 432)
DEF: 108 (95.45% × 67.97, win in 89)
HP: 89.25, Value: 481.0 μ
Parsed round number: 2
WHAM: You have no profitable MP restoratives.
WHAM: You have no profitable HP restoratives.
WHAM: Monster HP is 89.25.
WHAM: Running SmartStasis
Profit per round: ActionProfitDamageOtherbase; Hobo Monkey (75μ)75μ--
crazy little Turkish delight (25.0 @ +55.0): 50μ * 38.75% = 19.375
ga-ga radio (5.0 @ +55.0): 130μ * 7.75% = 10.075
Snow Queen Crown (5.0 @ +55.0): 428μ * 7.75% = 33.17
crazy little Turkish delight (25.0 @ +55.0): 50μ * 38.75% = 19.375
crazy little Turkish delight (30.000002 @ +55.0): 50μ * 46.500004% = 23.250002
ga-ga radio (5.0 @ +55.0): 130μ * 7.75% = 10.075
ga-ga radio (6.0 @ +55.0): 130μ * 9.3% = 12.09
Snow Queen Crown (5.0 @ +55.0): 428μ * 7.75% = 33.17
Snow Queen Crown (6.0 @ +55.0): 428μ * 9.3% = 39.804
crazy little Turkish delight (25.0 @ +55.0): 50μ * 38.75% = 19.375
crazy little Turkish delight (32.5 @ +55.0): 50μ * 50.375% = 25.1875
ga-ga radio (5.0 @ +55.0): 130μ * 7.75% = 10.075
ga-ga radio (6.5 @ +55.0): 130μ * 10.075% = 13.0975
Snow Queen Crown (5.0 @ +55.0): 428μ * 7.75% = 33.17
Snow Queen Crown (6.5 @ +55.0): 428μ * 10.075% = 43.121002
crazy little Turkish delight (25.0 @ +55.0): 50μ * 38.75% = 19.375
ga-ga radio (5.0 @ +55.0): 130μ * 7.75% = 10.075
Snow Queen Crown (5.0 @ +55.0): 428μ * 7.75% = 33.17
Value of stat gain: 419.38μ
Attack action chosen: use 3388 (round 2, profit: 75.0)
Queued: skill 50; skill 52; skill 51
crazy little Turkish delight (25.0 @ +55.0): 50μ * 38.75% = 19.375
ga-ga radio (5.0 @ +55.0): 130μ * 7.75% = 10.075
Snow Queen Crown (5.0 @ +55.0): 428μ * 7.75% = 33.17
Value of stat gain: 419.38μ
Attack action chosen: use 3388 (round 5, profit: 75)
Queued: skill 51; skill 52; skill 50
crazy little Turkish delight (25.0 @ +55.0): 50μ * 38.75% = 19.375
ga-ga radio (5.0 @ +55.0): 130μ * 7.75% = 10.075
Snow Queen Crown (5.0 @ +55.0): 428μ * 7.75% = 33.17
Value of stat gain: 419.38μ
Attack action chosen: use 3388 (round 8, profit: 75)
Queued: skill 5003; skill 5005; skill 5008
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 50; skill 52; skill 51; call batround; skill 51; skill 52; skill 50; call batround; skill 5003; skill 5005; skill 5008; call batround;
Round 2: smeagol69 executes a macro!
Round 2: smeagol69 casts BREAK IT ON DOWN!
Round 3: snow queen takes 1 damage.
Round 3: Hodgman climbs up and sits on your shoulder, and hands you some Meat. Huh, where did he find that?
You gain 66 Meat.
Round 3: smeagol69 casts RUN LIKE THE WIND!
Round 4: snow queen takes 1 damage.
Round 4: smeagol69 casts POP AND LOCK IT!
Round 5: snow queen takes 1 damage.
You acquire an item: crazy little Turkish delight
Round 5: smeagol69 casts POP AND LOCK IT!
Round 6: snow queen takes 1 damage.
Round 6: smeagol69 casts RUN LIKE THE WIND!
Round 7: snow queen takes 1 damage.
Round 7: smeagol69 casts BREAK IT ON DOWN!
You acquire an effect: Rave Concentration (duration: 1 Adventure)
Round 8: smeagol69 casts DISCO EYE-POKE!
Round 9: snow queen takes 1 damage.
Round 9: snow queen drops 3 attack power.
Round 9: snow queen drops 3 defense.
Round 9: smeagol69 casts DISCO DANCE OF DOOM!
Round 10: snow queen takes 1 damage.
Round 10: snow queen drops 5 attack power.
Round 10: snow queen drops 5 defense.
Round 10: smeagol69 casts DISCO DANCE II: ELECTRIC BOOGALOO!
Round 11: snow queen takes 1 damage.
You acquire an effect: Disco Concentration (duration: 1 Adventure)
Round 11: snow queen drops 7 attack power.
Round 11: snow queen drops 7 defense.
Happened: skill 50
Happened: skill 52
Happened: skill 51
Happened: skill 51
Happened: skill 52
Happened: skill 50
Happened: skill 5003
Happened: skill 5005
Happened: skill 5008
Parsed round number: 11
Happened: famspent
You snatched a crazy little Turkish delight (50μ)!
ga-ga radio (5.0 @ +105.0): 130μ * 10.25% = 13.325
Snow Queen Crown (5.0 @ +105.0): 428μ * 10.25% = 43.87
Value of stat gain: 419.38μ
Revised monster value: 476.57
Happened: stolen
Stasis action chosen: skill 5021 (round 11, profit: -0.0)
ga-ga radio (5.0 @ +105.0): 130μ * 10.25% = 13.325
Snow Queen Crown (5.0 @ +105.0): 428μ * 10.25% = 43.87
Value of stat gain: 419.38μ
Attack action chosen: use 3388 (round 11, profit: 0.0)
WHAM: SmartStasis complete.
WHAM: Starting evaluation and performing of attack
WHAM: You won't kill the monster before 30 rounds with your basic attack.
WHAM: The monster will take more than 30 rounds to kill you.
ga-ga radio (5.0 @ +105.0): 130μ * 10.25% = 13.325
Snow Queen Crown (5.0 @ +105.0): 428μ * 10.25% = 43.87
Value of stat gain: 419.38μ
Attack action chosen: use 3388 (round 11, profit: 0.0)
Queued: use 3388
WHAM: Enqueueing Zombo's empty eye (macroid use 3388).
Unable to enqueue empty action.
WHAM: Failed to enqueue Zombo's empty eye. Aborting to let you figure this out.
You're on your own, partner.
Click here to continue in the relay browser.


since it failed, and it appears to have been trying to use the empty eye, I tried that manually (I also have fire red bottle rocket available, but it costs more MP I guess)


KoLmafia thinks it is round 12 but KoL thinks it is round 11
KoLmafia thinks it is round 13 but KoL thinks it is round 11
KoLmafia thinks it is round 14 but KoL thinks it is round 11
KoLmafia thinks it is round 15 but KoL thinks it is round 11
Round 15: smeagol69 uses the Zombo's empty eye!
KoLmafia thinks it is round 16 but KoL thinks it is round 12
Round 16: snow queen takes 342 damage.
Round 16: snow queen drops 31 attack power.
Round 16: snow queen drops 37 defense.
Round 16: smeagol69 wins the fight!
You gain 10 Mojo Points
You gain 8 Muscleboundness
You gain 6 Wizardliness
You gain 23 Cheek
You gain a Moxie point!


If there is anything else you want me to try, let me know...

fronobulax
05-03-2012, 01:06 PM
Latest versions of everything - WHAM does not seem to be getting pirate insults. Zarqon suggested in the SmartStasis thread that it might be a WHAM issue rather than SS. Perhaps related, WHAM didn't really figure out what to do with any of the pirates and dropped me into the relay browser for every fight.

Magus_Prime
05-03-2012, 02:54 PM
I'd also add that automatic usage of fliers isn't working either and I got dropped to the relay browser whenever I encountered a Procrastination Giant.

fronobulax
05-03-2012, 04:58 PM
I'd also add that automatic usage of fliers isn't working either and I got dropped to the relay browser whenever I encountered a Procrastination Giant.

Procrastination giant has dropped me for quite a while. I suspect bad or funky data although I have not bothered to investigate. zarqon also noted the fliers and again, the hypothesis is that is is WHAM and not SmartStasis or BatBrain.

Bale
05-04-2012, 07:23 AM
DAM does use the fliers, so that is another nail in the coffin.

illarion
05-04-2012, 11:10 AM
I'm also having problems with flyering and insults, latest versions of WHAM, SmartStasis and BatBrain. Tried DestroyAllMonsters, which I hadn't heard about before, and that IS working (well, flyering - I'm past the pirates now).

Ferdawoon
05-04-2012, 04:08 PM
I'm having a problem with the Pirates and some other mobs, but that is because sometimes WHAM try to enqueue a Double-Ice shard, which I do have one of, but..


[558] Giant's Castle
Encounter: Procrastination Giant
Strategy: D:\Bengt\KoLMafia\ccs\Sauceror.ccs [default]
Round 0: ferdawoon wins initiative!
1 HP costs 11.333μ. ( 364 / 364 )
1 MP costs 17μ. ( 71 / 71 )
Factoring in double-ice cap: (15) damage, stun 1.0, retal
ATT: 162 (94% × 90.02, death in 5)
DEF: 146 (95.45% × 158.9 (10), win in 2)
HP: 192, Value: 683.12 μ
WHAM: You have no profitable MP restoratives.
WHAM: You have no profitable HP restoratives.
WHAM: Monster HP is 192.0.
WHAM: Running SmartStasis
Profit per round: ActionProfitDamageOtherbase (0μ)0μ--
Round 1: ferdawoon executes a macro!
Round 1: ferdawoon casts INTIMIDATING BELLOW!
Round 2: procrastination giant drops 48 attack power.
Round 2: procrastination giant drops 48 defense.
WHAM: SmartStasis complete.
WHAM: You will kill the monster in 1 rounds with your basic attack.
WHAM: The monster will take 9 rounds to kill you.
WHAM: Enqueueing shard of double-ice (macroid use 5048).
WHAM: Failed to enqueue shard of double-ice. Aborting to let you figure this out.
You're on your own, partner.
Click here to continue in the relay browser.

Winterbay
05-04-2012, 04:39 PM
I am sorry for my lack of being here, but I've been stuck at the hospital with my newborn daughter since Monday. Will probably be home on Sunday but will be, for obvious reasons, a bit absent.
I'm sorry for any inconvenience :)

Magus_Prime
05-04-2012, 04:47 PM
Congratulations!

fronobulax
05-04-2012, 05:16 PM
Congratulations. Hope the duration of the hospital stay is not an indication of "problems" with the young lady...

slyz
05-04-2012, 07:06 PM
Congratulations!

morgad
05-04-2012, 07:38 PM
Winterbay - don't worry about us, family is more important :)

data point: 1.9.6 works ok with pirates, just a problem with 2.1

best regards
Dave

fronobulax
05-05-2012, 01:09 PM
This may be a game mechanic thing I have missed, being sub-optimal and all, but why is SS/WHAM trying to use a cocktail napkin on a larval filthworm and then failing to enqueue it?


[1058] Hatching Chamber
Encounter: larval filthworm
Strategy: C:\KoLMafia\dist\ccs\CafeBoob.ccs [default]
Round 0: cafeboob wins initiative!
BCC: Round: 0 Opp: larval filthworm
BCC: You have selected to do casual runs like hardcore (using your CCS). Feel free to change this setting in the relay browser if you want a one-day-casual set of runaways..
WHAM: Running SmartStasis
Round 1: cafeboob executes a macro!
Round 1: cafeboob tries to steal an item!
Round 2: Trog fangs your opponent in the head and greedily sucks the vital juices from the wound. 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: larval filthworm takes 36 damage.
You gain 36 hit points
WHAM: Failed to enqueue cocktail napkin. Aborting to let you figure this out.
You're on your own, partner.
Click here to continue in the relay browser.

Thank you.

morgad
05-05-2012, 06:57 PM
Admitting again that perhaps I am a bit excessive, here's part of my ccs.

... cut ...



also with the new Gallery ...

[ empty suit of armor ]
section _banish

[ guy ]
section _banish


best regards
Dave

Veracity
05-05-2012, 07:00 PM
[ guy ]
section _banish

That is surely the best option against the Guy Made of Bees, don't you think?

:D

morgad
05-05-2012, 07:41 PM
that was supposed to match 'guy with pitchfork, and his wife', but could not get it to work, until I cut it down to 'guy' - what should have been there?

but for the purposes of this thread - suggest monsters for WHAM to banish, not critical if pasted code 100% perfect :)

having said that bumcheekascend + wham did the right thing (by accident?) this afternoon

[768] Haunted Bathroom
Encounter: Having a Medicine Ball
Took choice 105/3: guy made of bees
choice.php?whichchoice=105&option=3&pwd
Encounter: The Guy Made Of Bees
Round 0: morgad wins initiative!
> BCC: We are fighting the GMOB!
Round 1: morgad uses the rock band flyers!
You lose 75,040 hit points


Dave

lostcalpolydude
05-06-2012, 12:40 AM
> ash $monster[guy with]

Returned: Guy with a Pitchfork, and his Wife

Winterbay
05-07-2012, 08:54 AM
that was supposed to match 'guy with pitchfork, and his wife', but could not get it to work, until I cut it down to 'guy' - what should have been there?

but for the purposes of this thread - suggest monsters for WHAM to banish, not critical if pasted code 100% perfect :)

having said that bumcheekascend + wham did the right thing (by accident?) this afternoon

[768] Haunted Bathroom
Encounter: Having a Medicine Ball
Took choice 105/3: guy made of bees
choice.php?whichchoice=105&option=3&pwd
Encounter: The Guy Made Of Bees
Round 0: morgad wins initiative!
> BCC: We are fighting the GMOB!
Round 1: morgad uses the rock band flyers!
You lose 75,040 hit points


Dave

That would be because BCCascend has special code for the GmoB :)

Regarding the errors:
1) Any problem with flyering, insulting and so on must lie within the smartsstais-function. It is possible it needs an extra "macro()"-call at the end of that function. I've uploaded version 2.1.1 which should fix that...
2) Regarding queueing up odd stuff: The script uses BatBrain's attack_action() (well a slightly modified version of it to remove some of the pessimism of said function since it would otherwise way too often fail to do anything and to change what is being considered slightly) and if that reports "cocktail napkin" the script'll try and use that. I have no idea why it fails though...
Could those experiencing that problem tell me how many of the item they have in inventory when it fails to enqueue them and also run one fight on verbosity 10 to get the printout of your options?

(I'm back home with the baby but not fully active yet... :) )

fronobulax
05-07-2012, 01:36 PM
The new release, combined with a recent ascension means that things are behaving as expected but I don't feel like I have tested the "bad" cases. In the case of failing to enqueue the napkin, I wonder if the fact that I have one napkin and double funk slinging was an issue? I seem to recall problems with ducks and feathers over the weekend as well. Glad baby is home...

morgad
05-07-2012, 02:40 PM
Definately getting better :)
not sure why it tried to cleave when not enough MP left over after the broadside, a couple of axe blows were all that was needed ...


[359] Barrrney's Barrr
Encounter: tipsy pirate
Strategy: /home/fit/.kolmafia/ccs/boris.ccs [default]
Round 0: morgad wins initiative!
WHAM: Running SmartStasis
Round 1: morgad executes a macro!
Round 1: morgad casts BROADSIDE!
Round 2: morgad uses the The Big Book of Pirate Insults!
Round 3: tipsy pirate drops 9 attack power.
Round 3: tipsy pirate drops 8 defense.
WHAM: Failed to enqueue Cleave. Aborting to let you figure this out.
You're on your own, partner.
Click here to continue in the relay browser.


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.
Round 3: morgad casts MIGHTY AXING!
Round 4: tipsy pirate takes 91 damage.
Round 4: morgad casts MIGHTY AXING!
Round 5: tipsy pirate takes 108 damage.
Round 5: morgad wins the fight!
You gain 53 Meat
You acquire an item: bottle of rum
You acquire an item: tip jar
You gain 24 Beefiness
You gain 4 Mysteriousness
You gain 13 Cheek

best regards
Dave

Rinn
05-07-2012, 04:31 PM
Not sure why this is aborting, or whether it's in wham or batbrain.


Request 1 of 23 (The Sea: The Briny Deeps) in progress...

[829] The Briny Deeps
Encounter: pumped-up bass
Strategy: /Users/Rinn/Library/Application Support/KoLmafia/ccs/ascension.ccs [default]
Round 0: Epicgamer loses initiative!
WHAM: Monster HP is 505.0.
WHAM: Running SmartStasis
The string "5005; skill 5008" is not an integer; returning 50055008 (BatBrain.ash, line 1077)
The string "5003; skill 5005; skill 5008" does not look like an integer; returning 0 (BatBrain.ash, line 1077)
Round 1: Epicgamer executes a macro!
Round 1: Epicgamer casts DISCO DANCE OF DOOM!
Round 2: pumped-up bass takes 6 damage.
Round 2: pumped-up bass drops 5 attack power.
Round 2: pumped-up bass drops 5 defense.
Round 2: Epicgamer casts DISCO DANCE II: ELECTRIC BOOGALOO!
Round 3: pumped-up bass takes 9 damage.
You acquire an effect: Disco Nirvana (duration: 1 Adventure)
Round 3: pumped-up bass drops 7 attack power.
Round 3: pumped-up bass drops 7 defense.
Round 3: Epicgamer casts DISCO EYE-POKE!
Round 4: pumped-up bass takes 3 damage.
Round 4: pumped-up bass drops 3 attack power.
Round 4: pumped-up bass drops 3 defense.
Round 4: Epicgamer casts DISCO DANCE OF DOOM!
Round 5: pumped-up bass takes 7 damage.
Round 5: pumped-up bass drops 5 attack power.
Round 5: pumped-up bass drops 5 defense.
Round 5: Epicgamer casts DISCO DANCE II: ELECTRIC BOOGALOO!
Round 6: pumped-up bass takes 8 damage.
You acquire an effect: Disco Concentration (duration: 1 Adventure)
Round 6: pumped-up bass drops 7 attack power.
Round 6: pumped-up bass drops 7 defense.
WHAM: Monster is weak. We are just going to bash its head in. It'll take 13 rounds.
WHAM: Monster HP is 472.0.
WHAM: Running SmartStasis
WHAM: Monster is weak. We are just going to bash its head in. It'll take 13 rounds.
WHAM: Monster HP is 472.0.
WHAM: Running SmartStasis
WHAM: Monster is weak. We are just going to bash its head in. It'll take 13 rounds.
You're on your own, partner.
Click here to continue in the relay browser. (http://kolmafia.us/main.php)

Here's another combat with verbosity set to 9


[831] The Briny Deeps
Encounter: pumped-up bass
Strategy: /Users/Rinn/Library/Application Support/KoLmafia/ccs/ascension.ccs [default]
Round 0: Epicgamer loses initiative!
You lose 21 hit points
Running ZLib version: r35 (current)
1 HP costs 0.242μ. ( 293 / 320 )
1 MP costs 3.077μ. ( 116 / 355 )
Running BatBrain version: 1.23 (current)
Running SmartStasis version: 3.15 (current)
Running WHAM version: 2.1.1 (current)
WHAM: We currently think that the round number is: 0 and that the turn number is 830.
WHAM: No need to do anything with this monster.
WHAM: Setting up variables via BatBrain
dull fish scale (15.0 @ +117.7905): 200μ * 32.668575% = 65.33715
beefy fish meat (5.0 @ +117.7905): 2,250μ * 10.889525% = 245.01431
Value of stat gain: 1,134.38μ
dull fish scale (15.0 @ +117.7905): 200μ * 32.668575% = 65.33715
beefy fish meat (5.0 @ +117.7905): 2,250μ * 10.889525% = 245.01431
Value of stat gain: 1,134.38μ
ATT: 330 (6% × 15.35, death in 319)
DEF: 270 (97.73% × 37.53, win in 14)
HP: 505, Value: 1,856.73 μ
Parsed round number: 1
Building options...
Options built! (78 actions)
WHAM: We currently think that the round number is: 1 and that the turn number is 830.
WHAM: You have no profitable MP restoratives.
WHAM: You have no profitable HP restoratives.
WHAM: You are fighting a Pumped-up Bass. Mafia considers that this monster has an attack of 330 or 330 when given a monster name.
WHAM: Mafia further considers that this monster has a defense value of 270 or 270 when given a monster name.
WHAM: Mafia further further considers that this monster has a HP value of 500 or 500 when given a monster name.
WHAM: Your current ML-adjustment is: 0.
WHAM: Monster HP is 505.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:

Action
Profit
Damage
Other


base (0μ)

--




Building custom actions...
Custom actions built! (0 actions)
dull fish scale (15.0 @ +117.7905): 200μ * 32.668575% = 65.33715
dull fish scale (18.0 @ +117.7905): 200μ * 39.20229% = 78.40458
beefy fish meat (5.0 @ +117.7905): 2,250μ * 10.889525% = 245.01431
beefy fish meat (6.0 @ +117.7905): 2,250μ * 13.06743% = 294.01718
dull fish scale (15.0 @ +117.7905): 200μ * 32.668575% = 65.33715
beefy fish meat (5.0 @ +117.7905): 2,250μ * 10.889525% = 245.01431
Value of stat gain: 1,134.38μ
Attack action chosen: attack (round 1, profit: -0.25)
The string "5005; skill 5008" is not an integer; returning 50055008 (BatBrain.ash, line 1077)
Queued: skill 5005; skill 5008
Building options...
Options built! (78 actions)
dull fish scale (15.0 @ +117.7905): 200μ * 32.668575% = 65.33715
beefy fish meat (5.0 @ +117.7905): 2,250μ * 10.889525% = 245.01431
Value of stat gain: 1,093.13μ
Attack action chosen: attack (round 3, profit: -0.24)
The string "5003; skill 5005; skill 5008" does not look like an integer; returning 0 (BatBrain.ash, line 1077)
Queued: skill 5003; skill 5005; skill 5008
Building options...
Options built! (78 actions)
Stasis action chosen: use 5561 (round 6, profit: 7.58)
dull fish scale (15.0 @ +117.7905): 200μ * 32.668575% = 65.33715
beefy fish meat (5.0 @ +117.7905): 2,250μ * 10.889525% = 245.01431
Value of stat gain: 1,041.56μ
Attack action chosen: attack (round 6, profit: -0.23)
This monster is not your huckleberry.
Stasis loop complete (queue still contains 2 actions).
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 5005; skill 5008; call batround; skill 5003; skill 5005; skill 5008; call batround;
Round 1: Epicgamer executes a macro!
Round 1: Epicgamer casts DISCO DANCE OF DOOM!
Round 2: pumped-up bass takes 6 damage.
Round 2: pumped-up bass drops 5 attack power.
Round 2: pumped-up bass drops 5 defense.
Round 2: Epicgamer casts DISCO DANCE II: ELECTRIC BOOGALOO!
Round 3: pumped-up bass takes 8 damage.
You acquire an effect: Disco Nirvana (duration: 1 Adventure)
Round 3: pumped-up bass drops 7 attack power.
Round 3: pumped-up bass drops 7 defense.
Round 3: Epicgamer casts DISCO EYE-POKE!
Round 4: pumped-up bass takes 2 damage.
Round 4: pumped-up bass drops 3 attack power.
Round 4: pumped-up bass drops 3 defense.
Round 4: Epicgamer casts DISCO DANCE OF DOOM!
Round 5: pumped-up bass takes 8 damage.
Round 5: pumped-up bass drops 5 attack power.
Round 5: pumped-up bass drops 5 defense.
Round 5: Epicgamer casts DISCO DANCE II: ELECTRIC BOOGALOO!
Round 6: pumped-up bass takes 9 damage.
You acquire an effect: Disco Concentration (duration: 1 Adventure)
Round 6: pumped-up bass drops 7 attack power.
Round 6: pumped-up bass drops 7 defense.
You lose 22 hit points
Happened: skill 5005
Happened: skill 5008
Happened: skill 5003
Happened: skill 5005
Happened: skill 5008
Parsed round number: 6
Building options...
Options built! (78 actions)
WHAM: SmartStasis complete.
WHAM: Running SmartStasis took 1.99 seconds.
WHAM: We currently think that the round number is: 6 and that the turn number is 830.
WHAM: SS did not finish the script off, 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 830.
WHAM: You will kill the monster in 13 rounds with your basic attack.
WHAM: The monster will take more than 30 rounds to kill you.
rounds_to_kill: 13, round_limit: 24, maxround: 30, die_rounds(): 324, hitchance("attack"): 0.97727275
WHAM: Expected received damage per round: 0.837682, Rounds to kill: 13, Expected damage: 36.67216, Hit chance: 1.0
WHAM: Monster is weak. We are just going to bash its head in. It'll take 13 rounds.
Unable to enqueue empty action.
WHAM: Evaluating the attack and performing it took 1.999 seconds.
WHAM: We currently think that the round number is: 6 and that the turn number is 830.
WHAM: We currently think that the round number is: 6 and that the turn number is 830.
Running ZLib version: r35 (current)
1 HP costs 0.242μ. ( 271 / 320 )
1 MP costs 3.077μ. ( 89 / 355 )
Running BatBrain version: 1.23 (current)
Running SmartStasis version: 3.15 (current)
Running WHAM version: 2.1.1 (current)
WHAM: We currently think that the round number is: 0 and that the turn number is 830.
WHAM: No need to do anything with this monster.
WHAM: Setting up variables via BatBrain
dull fish scale (15.0 @ +137.7905): 200μ * 35.668575% = 71.33715
beefy fish meat (5.0 @ +137.7905): 2,250μ * 11.889525% = 267.5143
Value of stat gain: 1,134.38μ
dull fish scale (15.0 @ +137.7905): 200μ * 35.668575% = 71.33715
beefy fish meat (5.0 @ +137.7905): 2,250μ * 11.889525% = 267.5143
Value of stat gain: 1,134.38μ
ATT: 303 (6% × 13.96, death in 324)
DEF: 243 (97.73% × 37.53, win in 13)
HP: 472, Value: 1,945.23 μ
Happened: skill 5005
Happened: skill 5008
Happened: skill 5003
Happened: skill 5005
Happened: skill 5008
Parsed round number: 6
Building options...
Options built! (78 actions)
WHAM: We currently think that the round number is: 6 and that the turn number is 830.
WHAM: You have no profitable MP restoratives.
WHAM: You have no profitable HP restoratives.
WHAM: You are fighting a Pumped-up Bass. Mafia considers that this monster has an attack of 303 or 330 when given a monster name.
WHAM: Mafia further considers that this monster has a defense value of 243 or 270 when given a monster name.
WHAM: Mafia further further considers that this monster has a HP value of 467 or 500 when given a monster name.
WHAM: Your current ML-adjustment is: 0.
WHAM: Monster HP is 472.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:

Action
Profit
Damage
Other


base (0μ)

--




Building custom actions...
Custom actions built! (0 actions)
Stasis action chosen: use 5561 (round 6, profit: 11.87)
dull fish scale (15.0 @ +137.7905): 200μ * 35.668575% = 71.33715
beefy fish meat (5.0 @ +137.7905): 2,250μ * 11.889525% = 267.5143
Value of stat gain: 1,134.38μ
Attack action chosen: attack (round 6, profit: -0.23)
This monster is not your huckleberry.
Stasis loop complete.
WHAM: SmartStasis complete.
WHAM: Running SmartStasis took 0.52 seconds.
WHAM: We currently think that the round number is: 6 and that the turn number is 830.
WHAM: SS did not finish the script off, 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 830.
WHAM: You will kill the monster in 13 rounds with your basic attack.
WHAM: The monster will take more than 30 rounds to kill you.
rounds_to_kill: 13, round_limit: 24, maxround: 30, die_rounds(): 324, hitchance("attack"): 0.97727275
WHAM: Expected received damage per round: 0.837682, Rounds to kill: 13, Expected damage: 36.67216, Hit chance: 1.0
WHAM: Monster is weak. We are just going to bash its head in. It'll take 13 rounds.
Unable to enqueue empty action.
WHAM: Evaluating the attack and performing it took 0.525 seconds.
WHAM: We currently think that the round number is: 6 and that the turn number is 830.
WHAM: We currently think that the round number is: 6 and that the turn number is 830.
Running ZLib version: r35 (current)
1 HP costs 0.242μ. ( 271 / 320 )
1 MP costs 3.077μ. ( 89 / 355 )
Running BatBrain version: 1.23 (current)
Running SmartStasis version: 3.15 (current)
Running WHAM version: 2.1.1 (current)
WHAM: We currently think that the round number is: 0 and that the turn number is 830.
WHAM: No need to do anything with this monster.
WHAM: Setting up variables via BatBrain
dull fish scale (15.0 @ +137.7905): 200μ * 35.668575% = 71.33715
beefy fish meat (5.0 @ +137.7905): 2,250μ * 11.889525% = 267.5143
Value of stat gain: 1,134.38μ
dull fish scale (15.0 @ +137.7905): 200μ * 35.668575% = 71.33715
beefy fish meat (5.0 @ +137.7905): 2,250μ * 11.889525% = 267.5143
Value of stat gain: 1,134.38μ
ATT: 303 (6% × 13.96, death in 324)
DEF: 243 (97.73% × 37.53, win in 13)
HP: 472, Value: 1,945.23 μ
Happened: skill 5005
Happened: skill 5008
Happened: skill 5003
Happened: skill 5005
Happened: skill 5008
Parsed round number: 6
Building options...
Options built! (78 actions)
WHAM: We currently think that the round number is: 6 and that the turn number is 830.
WHAM: You have no profitable MP restoratives.
WHAM: You have no profitable HP restoratives.
WHAM: You are fighting a Pumped-up Bass. Mafia considers that this monster has an attack of 303 or 330 when given a monster name.
WHAM: Mafia further considers that this monster has a defense value of 243 or 270 when given a monster name.
WHAM: Mafia further further considers that this monster has a HP value of 467 or 500 when given a monster name.
WHAM: Your current ML-adjustment is: 0.
WHAM: Monster HP is 472.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:

Action
Profit
Damage
Other


base (0μ)

--




Building custom actions...
Custom actions built! (0 actions)
Stasis action chosen: use 5561 (round 6, profit: 11.87)
dull fish scale (15.0 @ +137.7905): 200μ * 35.668575% = 71.33715
beefy fish meat (5.0 @ +137.7905): 2,250μ * 11.889525% = 267.5143
Value of stat gain: 1,134.38μ
Attack action chosen: attack (round 6, profit: -0.23)
This monster is not your huckleberry.
Stasis loop complete.
WHAM: SmartStasis complete.
WHAM: Running SmartStasis took 0.426 seconds.
WHAM: We currently think that the round number is: 6 and that the turn number is 830.
WHAM: SS did not finish the script off, 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 830.
WHAM: You will kill the monster in 13 rounds with your basic attack.
WHAM: The monster will take more than 30 rounds to kill you.
rounds_to_kill: 13, round_limit: 24, maxround: 30, die_rounds(): 324, hitchance("attack"): 0.97727275
WHAM: Expected received damage per round: 0.837682, Rounds to kill: 13, Expected damage: 36.67216, Hit chance: 1.0
WHAM: Monster is weak. We are just going to bash its head in. It'll take 13 rounds.
Unable to enqueue empty action.
WHAM: Evaluating the attack and performing it took 0.469 seconds.
WHAM: We currently think that the round number is: 6 and that the turn number is 830.
WHAM: We currently think that the round number is: 6 and that the turn number is 830.
You're on your own, partner.
Click here to continue in the relay browser. (http://kolmafia.us/main.php)

Winterbay
05-07-2012, 04:54 PM
That's a good question. Also, I had the error with the cocktail napkins today (it tried to enqeue 4 while I only had 1). I think I've fixed this now... Try 2.2... :)

Rinn
05-07-2012, 05:30 PM
Nope, same issue trying to kill a knob goblin accountant.

Winterbay
05-07-2012, 07:02 PM
Nope, same issue trying to kill a knob goblin accountant.

Did it try to attack it and failed or did it try to throw two items at it that you didn't have?

Winterbay
05-07-2012, 07:26 PM
Definately getting better :)
not sure why it tried to cleave when not enough MP left over after the broadside, a couple of axe blows were all that was needed ...


[359] Barrrney's Barrr
Encounter: tipsy pirate
Strategy: /home/fit/.kolmafia/ccs/boris.ccs [default]
Round 0: morgad wins initiative!
WHAM: Running SmartStasis
Round 1: morgad executes a macro!
Round 1: morgad casts BROADSIDE!
Round 2: morgad uses the The Big Book of Pirate Insults!
Round 3: tipsy pirate drops 9 attack power.
Round 3: tipsy pirate drops 8 defense.
WHAM: Failed to enqueue Cleave. Aborting to let you figure this out.
You're on your own, partner.
Click here to continue in the relay browser.


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.
Round 3: morgad casts MIGHTY AXING!
Round 4: tipsy pirate takes 91 damage.
Round 4: morgad casts MIGHTY AXING!
Round 5: tipsy pirate takes 108 damage.
Round 5: morgad wins the fight!
You gain 53 Meat
You acquire an item: bottle of rum
You acquire an item: tip jar
You gain 24 Beefiness
You gain 4 Mysteriousness
You gain 13 Cheek

best regards
Dave

Part of the problem there is that the stun from Broadside isn't being propagated to the rest of WHAM. That knowledge stays with SS which means the script does no longer know that the monster is stunned and that you can kill the monster without resorting to heavier stuff.

I think the enqueueing of a skill you no longer can cast could be because the script got out of sync with KoL since the variables were set up before anything had happened and then SS did it's stuff. I've added an extra act()-call in 2.3 which may or may not fix this... :)

My latest fight against The Big Wisniewski went fine at least, allthough no items were used:


Encounter: The Big Wisniewski
Round 0: Winterbay wins initiative!
1 HP costs 5.333μ. ( 526 / 526 )
1 MP costs 8μ. ( 97 / 148 )
ATT: 300 (94% × 92.09, death in 7)
DEF: 270 (95.45% × 85.2 (15), win in 19)
HP: 2,030, Value: 5,864.07 μ
Running away would cost you 6364.073 meat.
Getting beaten up would cost you 5674.198 meat.
Monster resistances: 0 (-1) (-1) (1)
Player resistances: 0 (0.2) (0.2) (0.2) (0.2) (0.3)
1 HP costs 5.333μ. ( 526 / 526 )
1 MP costs 8μ. ( 97 / 148 )
ATT: 300 (94% × 92.09, death in 7)
DEF: 270 (95.45% × 85.2 (15), win in 19)
HP: 2,030, Value: 5,864.07 μ
WHAM: You have no profitable MP restoratives.
WHAM: You have no profitable HP restoratives.
WHAM: Monster HP is 2030.0.
WHAM: Running SmartStasis
Profit per round: ActionProfitDamageOtherbase (0μ)0μ--
Round 1: Winterbay executes a macro!
Round 1: Winterbay casts INTIMIDATING BELLOW!
Round 2: the big wisniewski drops 84 attack power.
Round 2: the big wisniewski drops 84 defense.
WHAM: SmartStasis complete.
WHAM: You will kill the monster in 11 rounds with your basic attack.
WHAM: The monster will take 11 rounds to kill you.
WHAM: Enqueuing a stun to help with the battle
WHAM: Enqueueing Cleave (macroid skill 11001).
WHAM: Enqueueing Cleave (macroid skill 11001).
WHAM: Enqueueing Cleave (macroid skill 11001).
WHAM: Enqueueing Mighty Axing (macroid skill 11000).
WHAM: We are going to 4-shot with Cleave, Cleave, Cleave and Mighty Axing.
Round 2: Winterbay executes a macro!
Round 2: Winterbay casts BROADSIDE!
Round 3: Winterbay casts CLEAVE!
Round 4: the big wisniewski takes 556 damage.
Round 4: Winterbay casts CLEAVE!
Round 5: the big wisniewski takes 436 damage.
Round 5: Winterbay casts CLEAVE!
Round 6: the big wisniewski takes 262 damage.
Round 6: Winterbay casts MIGHTY AXING!
Round 7: the big wisniewski takes 288 damage.
You lose 59 hit points
WHAM: Current monster HP is calculated to 488.0
WHAM: You will kill the monster in 3 rounds with your basic attack.
WHAM: The monster will take 10 rounds to kill you.
WHAM: Enqueueing Cleave (macroid skill 11001).
WHAM: Enqueueing Mighty Axing (macroid skill 11000).
WHAM: Enqueueing Cleave (macroid skill 11001).
WHAM: Enqueueing Mighty Axing (macroid skill 11000).
WHAM: We are going to 4-shot with Cleave, Mighty Axing, Cleave and Mighty Axing.
Round 7: Winterbay executes a macro!
Round 7: Winterbay casts CLEAVE!
Round 8: the big wisniewski takes 256 damage.
You lose 59 hit points
Round 8: Winterbay casts MIGHTY AXING!
Round 9: the big wisniewski takes 307 damage.
Round 9: Winterbay wins the fight!
You acquire an item: solid gold bowling ball
You gain 142 Strongness
You gain 88 Wizardliness
You gain 60 Chutzpah
You gain a Moxie point!
War finished: hippies defeated
Look! You found 1 solid gold bowling ball (5,000μ)!


Also, sorry for the rush of updates today. I'll wait until tomorrow, at least, to do any more :)

Rinn
05-07-2012, 07:42 PM
The output was basically the same as the stuff I already posted. I'm pretty sure it was trying to attack but was submitting an empty macro.

Winterbay
05-07-2012, 07:48 PM
Hmm... I'll have to look at that when I get out of my current Boris run.

Chef_Rannos
05-08-2012, 01:53 AM
Not sure if this was covered, but does anyone know why I'm getting this on the cyrpt monsters? I updated to 2.3 after fighting the huge ghuol and it died again.



[367] Haert of the Cyrpt
Encounter: The Haert of Darkness
Encounter: The Bonerdagon
Strategy: /home/bhanes/.kolmafia/ccs/WHAM.ccs [default]
Round 0: chef_rannos wins initiative!
WHAM: Running SmartStasis
WHAM: Unable to delevel until you can kill the monster without it killing you. Try it yourself.
Round 1: chef_rannos executes a macro!
KoLmafia thinks it is round 2 but KoL thinks it is round 1
WHAM: Unable to determine a valid combat strategy. For your benefit here are the numbers for you combat skills.
WHAM: flaregun: 0.0 potential damage and a hitchance of 75.0%.
WHAM: stick of dynamite: 13.125 potential damage and a hitchance of 75.0%.
WHAM: sonar-in-a-biscuit: 4.5 potential damage and a hitchance of 75.0%.
WHAM: razor-sharp can lid: 1.875 potential damage and a hitchance of 75.0%.
WHAM: You now have the knowledge needed to go forward and be victorious
You're on your own, partner.
Click here to continue in the relay browser.


One intimidating bellow and 2 regular attacks killed the monster easily.



Round 2: chef_rannos casts INTIMIDATING BELLOW!
KoLmafia thinks it is round 3 but KoL thinks it is round 2
Round 3: the bonerdagon drops 15 attack power.
Round 3: the bonerdagon drops 15 defense.
You lose 18 hit points
Round 3: chef_rannos casts MIGHTY AXING!
KoLmafia thinks it is round 4 but KoL thinks it is round 3
You lose 19 hit points
Round 4: chef_rannos casts MIGHTY AXING!
KoLmafia thinks it is round 5 but KoL thinks it is round 4
You lose 18 hit points
Round 5: chef_rannos attacks!
KoLmafia thinks it is round 6 but KoL thinks it is round 5
Round 6: the bonerdagon takes 112 damage.
You lose 19 hit points
Round 6: chef_rannos attacks!
KoLmafia thinks it is round 7 but KoL thinks it is round 6
Round 7: the bonerdagon takes 122 damage.
Round 7: chef_rannos wins the fight!
You gain 6 Muscularity Points
You acquire an item: skull of the Bonerdagon
You acquire an item: chest of the Bonerdagon
You acquire an item: vertebra of the Bonerdagon
You gain 58 Strengthliness
You gain 35 Magicalness
You gain a Mysticality point!
You gain 36 Chutzpah

Winterbay
05-08-2012, 11:35 AM
That would be because the Bonerdagon and the Sorceress has a base block-chance of 50% and the default value of WHAM_hitchance is set to 0.5 which is compared strictly larger than, which is a bug. 2.4 fixes that. It is also a problem that it wasn't considering attack at all due to me removing some code for that a while ago, 2.4 puts that back in again.

Also, 2.4 fixes the bug Rinn had with attacking (the problem was that attack was not an option because the setting-up of options was after the call to try and use it...).

With that I think that all the reported issues are solved. I'm slightly optimistic about that :)

Chef_Rannos
05-08-2012, 09:27 PM
I'm more optimistic. Downloaded and running with my banked turns for muscle day. :)

EDIT: Ok, ran into a problem, I think that it's not re-calculating after really quite poisoned is removed:



[611] Black Forest
Encounter: black adder
Strategy: /home/bhanes/.kolmafia/ccs/WHAM.ccs [default]
Round 0: chef_rannos loses initiative!
You lose 41 hit points
You acquire an effect: Really Quite Poisoned (duration: 5 Adventures)
You're dangerously poisoned! Will try to remove if possible.
Round 1: chef_rannos uses the anti-anti-antidote!
You lose an effect: Really Quite Poisoned
You lose 42 hit points
WHAM: Running SmartStasis
WHAM: Unable to delevel until you can kill the monster without it killing you. Try it yourself.
Round 2: chef_rannos executes a macro!
KoLmafia thinks it is round 3 but KoL thinks it is round 2
WHAM: Unable to determine a valid combat strategy. For your benefit here are the numbers for you combat skills.
WHAM: Mighty Axing: 32.582905 potential damage and a hitchance of 91.72727%.
WHAM: plot hole: 22.5 potential damage and a hitchance of 100.0%.
WHAM: flaregun: 19.800001 potential damage and a hitchance of 100.0%.
WHAM: stick of dynamite: 17.5 potential damage and a hitchance of 100.0%.
WHAM: Heroic Belch: 8.0 potential damage and a hitchance of 100.0%.
WHAM: sonar-in-a-biscuit: 6.0 potential damage and a hitchance of 100.0%.
WHAM: razor-sharp can lid: 2.5 potential damage and a hitchance of 100.0%.
WHAM: You now have the knowledge needed to go forward and be victorious
You're on your own, partner.
Click here to continue in the relay browser.


Finish:



Round 3: chef_rannos casts MIGHTY AXING!
KoLmafia thinks it is round 4 but KoL thinks it is round 3
Round 4: black adder takes 265 damage.
Round 4: chef_rannos wins the fight!
You gain 9 Muscularity Points
You gain 115 Meat
You gain 18 Strengthliness
You gain 8 Enchantedness
You gain 10 Roguishness

Ethelred
05-08-2012, 09:46 PM
I'm more optimistic. Downloaded and running with my banked turns for muscle day. :)

I thought stats days didn't mean anything in run anymore. Am I missing something here?

Chef_Rannos
05-08-2012, 09:49 PM
I thought stats days didn't mean anything in run anymore. Am I missing something here?

No, I was more banking because I got home late and didn't have time to use my turns...didn't mean to imply I was saving them specially. ;)

Winterbay
05-09-2012, 07:41 AM
Hmmm... Since the uneffect happened before running SS it would appear to be Mafia doing the removal for you. As such the problem is most likely with batbrain since that should really pick up that we are not poisoned any more...

What's your verbosity set to?

Crowther
05-11-2012, 04:23 PM
I decided to give 2.4 a try, since it sounded like most of the bugs have been worked out. I made it to level 11 before noticing any serious problems. For some reason, it's having trouble with ancient protector spirits.
Encounter: ancient protector spirit
Round 0: Crowther wins initiative!
> BCC: Run_Combat() being used normally.
> WHAM: Running SmartStasis
Round 2: Crowther executes a macro!
Round 2: Crowther casts INTIMIDATING BELLOW!
> WHAM: Monster is weak. We are just going to bash its head in. It'll take 1 rounds.
Round 3: Crowther executes a macro!
Round 3: Crowther casts MIGHTY AXING!After than, it continues to use mighty axing until I get beaten up. I have no source of elemental damage, so mighty axing only does 1 damage per attack.

I've been doing a lot of 100 turn basement runs and this script has been a big help deciding how to defeat those monster. 1.9.6 worked well, but was painfully slow because I've got way too many skills for it to consider. I'm excited about trying 2.4 and seeing how much faster it runs.

Chef_Rannos
05-12-2012, 12:02 PM
Heroic Belch works well there. :)

Winterbay
05-12-2012, 02:26 PM
I decided to give 2.4 a try, since it sounded like most of the bugs have been worked out. I made it to level 11 before noticing any serious problems. For some reason, it's having trouble with ancient protector spirits.
Encounter: ancient protector spirit
Round 0: Crowther wins initiative!
> BCC: Run_Combat() being used normally.
> WHAM: Running SmartStasis
Round 2: Crowther executes a macro!
Round 2: Crowther casts INTIMIDATING BELLOW!
> WHAM: Monster is weak. We are just going to bash its head in. It'll take 1 rounds.
Round 3: Crowther executes a macro!
Round 3: Crowther casts MIGHTY AXING!After than, it continues to use mighty axing until I get beaten up. I have no source of elemental damage, so mighty axing only does 1 damage per attack.

I've been doing a lot of 100 turn basement runs and this script has been a big help deciding how to defeat those monster. 1.9.6 worked well, but was painfully slow because I've got way too many skills for it to consider. I'm excited about trying 2.4 and seeing how much faster it runs.

I'm a bit at a loss here since it really shouldn't do that, it should abort and let your figure out the best way to move forward. And also, I'm a bit confused as to why you do not have heroic belch at that point :)

fronobulax
05-12-2012, 11:25 PM
heroic belch

The effect of heroic belch varies with fullness, right? I have seen WHAM not use it, wondered why and discovered the amount of damage done was pathetic. When I ate WHAM seemed to happily and correctly choose it.

Crowther
05-13-2012, 12:49 AM
I'm a bit at a loss here since it really shouldn't do that, it should abort and let your figure out the best way to move forward. And also, I'm a bit confused as to why you do not have heroic belch at that point :)
My apologies, I always forget to include enough information. I had all 30 Boris skills and enough fullness for belch. I probably should have grabbed a more verbose log, but at the time I was just happy WHAM made it that far. Only later did I realized it might be nice to tell others. I just checked my logs and once I took over by hand, it only took one bellow and two belches to kill all the spirits.

I guess it doesn't really matter if it's Boris specific. Now that I've got the skill, I'm not planning on doing another Boris run. The new challenge path is a few days out and we'll all be distracted by that.

I tried 2.4 in the basement today and some monsters never solved. I waited for half and hour on one. Now, it's probably my fault, because I really should have been more buffed. The first long pause, I lost playing by hand. The second, I won, but it was so close, I'm going to say it was luck. On a few monsters, WHAM used inexpensive combat items to kick ass. Items I didn't even know existed!

I have to say, I really miss the days when I could just use snowclone on everything down there. Lucky for me, I got my full telescope before that bug fix.

hesuchia
05-14-2012, 08:05 AM
I'm powerlevelling/candyblasting in space at the moment as a sauceror. Once the monster got weak, the script decided to bash its head in instead, which didn't work so well since I'm a myst class with a chefstave ;). Candyblast woulda killed him in time but it ran out of rounds since phys attacks weren't high enough. This only happened in 2.4. In 2.3 it said it would bash his head in, but kept using Candyblast anyway.

Winterbay
05-14-2012, 10:35 AM
Could you run 1 such combat at first verbosity 10 and then 9 and copy the result here? That'll help me debug the issue a lot better.

fronobulax
05-20-2012, 08:43 PM
FWIW either WHAM or SS is not really sure how to deal with a Stab Bat as a familiar. I don't recall the mechanics of when it bites me but I'm not sure prolonging the combat is always the best or even a reasonable strategy.

WHAM seems to be going off into LaLa land for me, never actually initiating the combat. I think what is happening is that the only thing that can damage the monster is a spell (and I am a DB) but I only have enough MP to cast it once. WHAM never seems to give up the idea that there is something else it could do after the spell.

I have played with verbosity but I can't make any sense of what I am being told so a specific recommendation would be helpful, although not necessarily useful since the character is now high enough that the spell one shots and the MP restore, when set, allows for multiple casts.