Bug - Not A Bug Automated bounty hunting does not function

Rishi Sunak

New member
On the initial encounter with a bounty holder, mafia aborts saying the bounty item wouldn’t drop, even though no action has been taken yet. An attack via the relay browser (even just one) causes the item to drop without any problems. This has been an issue for at least 40 updates (was in 959 & 977 also).

Manual Start via relay browser to use olfaction. Completed by mafia Ver r27998 automation

  • [4479] The Overgrown Lot
  • Encounter: cooler wino
  • Round 0: rishi sunak wins initiative!
  • Easy bounty item failed to drop from expected monster.
  • Round 0: rishi sunak casts TRANSCENDENT OLFACTION!
  • Encounter: cooler wino
  • Round 0: rishi sunak loses initiative!
  • KoLmafia thinks it is round 1 but KoL thinks it is round 2
  • You acquire an intrinsic: On the Trail
  • Round 2: Nadhim Zahawi climbs up and sits on your shoulder, and hands you some Meat. Huh, where did he find that?
  • You gain 59 Meat.
  • cooler wino tracked by Transcendent Olfaction.
  • Easy bounty item failed to drop from expected monster.
  • Validating adventure sequence...
  • Condition added: +1 filthy lucre

  • Visit to Town: The Overgrown Lot in progress...

  • [4479] The Overgrown Lot
  • Encounter: cooler wino
  • Round 2: rishi sunak executes a macro!
  • Round 2: rishi sunak casts DARTS: THROW AT %PART3!
  • Round 3: cooler wino takes 319 damage.
  • Round 3: rishi sunak wins the fight!
  • You acquire an item: mostly-broken sunglasses
  • You acquire an item: unflavored wine cooler
  • After Battle: You gain 127 Strongness
  • After Battle: You gain 74 Mysteriousness
  • After Battle: You gain 62 Chutzpah
  • You acquire a bounty item: brightly-colored bottlecap
Automation re-started
  • Conditions not satisfied after 1 adventure.
  • Validating adventure sequence...
  • Condition added: +1 filthy lucre

  • Request 1 of 10 (Town: The Overgrown Lot) in progress...

  • [4480] The Overgrown Lot
  • Encounter: Lots of Options
  • You gain 16 Chutzpah

  • Request 2 of 10 (Town: The Overgrown Lot) in progress...

  • [4481] The Overgrown Lot
  • Encounter: cooler wino
  • Round 0: rishi sunak wins initiative!
  • Easy bounty item failed to drop from expected monster.
Ver r27977
  • Request 2 of 2 (Memories: The Jungles of Ancient Loathing) in progress...

  • [4518] The Jungles of Ancient Loathing
  • Encounter: jungle baboon
  • Round 0: rishi sunak wins initiative!
  • Special bounty item failed to drop from expected monster.
Ver r27959
  • Request 1 of 2 (Memories: The Jungles of Ancient Loathing) in progress...

  • [4519] The Jungles of Ancient Loathing
  • Encounter: jungle baboon
  • Round 0: rishi sunak wins initiative!
  • Special bounty item failed to drop from expected monster

The fight cab only be be completed in the relay browser either manually or by using the KoL macro function in the browser. The error can be duplicated in all three jars which I have on hand.

Thanks, Rishi
 

ckb

Minion
Staff member
I could not reproduce this at all.

Do you have something set in your autoattack?
Do you have other fight scripts running?

This is what I get:
Code:
[719] The Overgrown Lot
Preference lastEncounter changed from sewer snake with a sewer snake in it to cooler wino
Encounter: cooler wino
Preference _lastCombatStarted changed from 20240711205217 to 20240711205224
Round 0: ckb1 wins initiative!
Round 1: Your toy train moves ahead to the Ore Hopper Feeder. Some ore pours of the feeder into the hopper of your train.
Preference trainsetPosition changed from 965 to 966
You acquire an item: vinyl ore
Round 1: ckb1 casts TRANSCENDENT OLFACTION!
You acquire an intrinsic: On the Trail
Preference trackedMonsters changed from garbage tourist:Transcendent Olfaction:390:garbage tourist:Gallapagosian Mating Call:390:garbage tourist:Long Con:390 to garbage tourist:Gallapagosian Mating Call:390:garbage tourist:Long Con:390
Preference trackedMonsters changed from garbage tourist:Gallapagosian Mating Call:390:garbage tourist:Long Con:390 to garbage tourist:Gallapagosian Mating Call:390:garbage tourist:Long Con:390:cooler wino:Transcendent Olfaction:718
Preference olfactedMonster changed from garbage tourist to cooler wino
Preference _olfactionsUsed changed from 2 to 3
Round 2: ckb1 executes a macro!
Round 2: ckb1 casts SUMMON LOVE GNATS!
Round 3: ckb1 casts SUMMON LOVE MOSQUITO!
Round 4: cooler wino takes 8 damage.
Round 4: You gain 8 hit points
Round 4: ckb1 casts SING ALONG!
Round 5: ckb1 attacks!
Round 6: cooler wino takes 811 damage.
Round 6: ckb1 wins the fight!
After Battle: You gain 25 hit points
After Battle: You gain 11 Mana Points
After Battle: You pause and think about KoL Con VII, when both BeefyCountess and SleazyLady complimented you on your dancing.
After Battle: You gain 8 Roguishness
After Battle: You grin and angle your head towards where you know a meteor is going to streak across the sky. Its light glints dramatically off your teeth.
After Battle: You gain 5 Cheek
After Battle: ck-Brother holds the Mayflower bouquet out in front of you, and you stop to smell the flowers. The fresh, clean scent of the flowers inspires you and ck-Brother to dance a little jig together. You feel lucky!
After Battle: You gain 4 hit points
After Battle: You gain 4 Mana Points
After Battle: You tune into the tale ck-Brother has been telling in time to hear him say, "and so the Prince climbed up the fair maiden's hair, only to find her witch mother standing there. She poked out his eyes with knitting needles, filleted his spleen, and ate his kidneys." You quickly turn away and search for more Meat, to take your mind off the horrid story.
You gain 158 Meat
After Battle: Guileful Karma tiptoes out of her hiding place and gives you some meat.
You gain 13 Meat.
After Battle: Any biology textbook will tell you that the cooler wino has a secret plan for hiding its money.
You acquire an item: fat stacks of cash
You acquire an item: mostly-broken sunglasses
You acquire an item: unflavored wine cooler
You acquire an item: unflavored wine cooler
After Battle: You think you see a weird thing out of the corner of your eye, but it turns out to be nothing. Which is actually pretty weird, if you think about it, man.
After Battle: You notice something valuable hidden under a big pile of rusty nails.
You acquire an item: stolen meatpouch
After Battle: ck-Brother finishes an illustrated manuscript with a final flourish, and hands it to you to read.
You acquire an item: grim fairy tale
Preference _grimFairyTaleDrops changed from 3 to 4
After Battle: ck-Brother finishes a story. You guess that the moral of the story is "don't trust whitey," and he smiles at your joke. (+10 Stats)
After Battle: You gain 7 Strongness
You gain a Muscle point!
After Battle: You gain 13 Wizardliness
After Battle: You gain 7 Cheek
After Battle: "Aroma of Juniper," was the label in this region. You look in a patch of waist-deep weeds and find the source.
You acquire an item: bottle of gin
After Battle: You gain 1 Wizardliness
Preference _juneCleaverFightsLeft changed from 22 to 21
Preference _juneCleaverStench changed from 32 to 33
Preference sweat changed from 41 to 43
Preference currentEasyBountyItem changed from brightly-colored bottlecap:0 to brightly-colored bottlecap:1
You acquire a bounty item: brightly-colored bottlecap
Preference lastCopyableMonster changed from sewer snake with a sewer snake in it to cooler wino
Preference _lastCombatWon changed from false to true
Preference _grimBrotherCharge changed from 4 to 0
Preference _boomBoxFights changed from 1 to 2
Preference familiarSweat changed from 620 to 621
 

Rishi Sunak

New member
I could not reproduce this at all.

Do you have something set in your autoattack?
Do you have other fight scripts running?

This is what I get:
Code:
[719] The Overgrown Lot
Preference lastEncounter changed from sewer snake with a sewer snake in it to cooler wino
Encounter: cooler wino
Preference _lastCombatStarted changed from 20240711205217 to 20240711205224
Round 0: ckb1 wins initiative!
Round 1: Your toy train moves ahead to the Ore Hopper Feeder. Some ore pours of the feeder into the hopper of your train.
Preference trainsetPosition changed from 965 to 966
You acquire an item: vinyl ore
Round 1: ckb1 casts TRANSCENDENT OLFACTION!
You acquire an intrinsic: On the Trail
Preference trackedMonsters changed from garbage tourist:Transcendent Olfaction:390:garbage tourist:Gallapagosian Mating Call:390:garbage tourist:Long Con:390 to garbage tourist:Gallapagosian Mating Call:390:garbage tourist:Long Con:390
Preference trackedMonsters changed from garbage tourist:Gallapagosian Mating Call:390:garbage tourist:Long Con:390 to garbage tourist:Gallapagosian Mating Call:390:garbage tourist:Long Con:390:cooler wino:Transcendent Olfaction:718
Preference olfactedMonster changed from garbage tourist to cooler wino
Preference _olfactionsUsed changed from 2 to 3
Round 2: ckb1 executes a macro!
Round 2: ckb1 casts SUMMON LOVE GNATS!
Round 3: ckb1 casts SUMMON LOVE MOSQUITO!
Round 4: cooler wino takes 8 damage.
Round 4: You gain 8 hit points
Round 4: ckb1 casts SING ALONG!
Round 5: ckb1 attacks!
Round 6: cooler wino takes 811 damage.
Round 6: ckb1 wins the fight!
After Battle: You gain 25 hit points
After Battle: You gain 11 Mana Points
After Battle: You pause and think about KoL Con VII, when both BeefyCountess and SleazyLady complimented you on your dancing.
After Battle: You gain 8 Roguishness
After Battle: You grin and angle your head towards where you know a meteor is going to streak across the sky. Its light glints dramatically off your teeth.
After Battle: You gain 5 Cheek
After Battle: ck-Brother holds the Mayflower bouquet out in front of you, and you stop to smell the flowers. The fresh, clean scent of the flowers inspires you and ck-Brother to dance a little jig together. You feel lucky!
After Battle: You gain 4 hit points
After Battle: You gain 4 Mana Points
After Battle: You tune into the tale ck-Brother has been telling in time to hear him say, "and so the Prince climbed up the fair maiden's hair, only to find her witch mother standing there. She poked out his eyes with knitting needles, filleted his spleen, and ate his kidneys." You quickly turn away and search for more Meat, to take your mind off the horrid story.
You gain 158 Meat
After Battle: Guileful Karma tiptoes out of her hiding place and gives you some meat.
You gain 13 Meat.
After Battle: Any biology textbook will tell you that the cooler wino has a secret plan for hiding its money.
You acquire an item: fat stacks of cash
You acquire an item: mostly-broken sunglasses
You acquire an item: unflavored wine cooler
You acquire an item: unflavored wine cooler
After Battle: You think you see a weird thing out of the corner of your eye, but it turns out to be nothing. Which is actually pretty weird, if you think about it, man.
After Battle: You notice something valuable hidden under a big pile of rusty nails.
You acquire an item: stolen meatpouch
After Battle: ck-Brother finishes an illustrated manuscript with a final flourish, and hands it to you to read.
You acquire an item: grim fairy tale
Preference _grimFairyTaleDrops changed from 3 to 4
After Battle: ck-Brother finishes a story. You guess that the moral of the story is "don't trust whitey," and he smiles at your joke. (+10 Stats)
After Battle: You gain 7 Strongness
You gain a Muscle point!
After Battle: You gain 13 Wizardliness
After Battle: You gain 7 Cheek
After Battle: "Aroma of Juniper," was the label in this region. You look in a patch of waist-deep weeds and find the source.
You acquire an item: bottle of gin
After Battle: You gain 1 Wizardliness
Preference _juneCleaverFightsLeft changed from 22 to 21
Preference _juneCleaverStench changed from 32 to 33
Preference sweat changed from 41 to 43
Preference currentEasyBountyItem changed from brightly-colored bottlecap:0 to brightly-colored bottlecap:1
You acquire a bounty item: brightly-colored bottlecap
Preference lastCopyableMonster changed from sewer snake with a sewer snake in it to cooler wino
Preference _lastCombatWon changed from false to true
Preference _grimBrotherCharge changed from 4 to 0
Preference _boomBoxFights changed from 1 to 2
Preference familiarSweat changed from 620 to 621
Thanjs for the reply.

I don't use autoattack other than what comes from running the ccs in mafia. Thru frustration with my inability to fight with mafia, I have started using the kol macros.

My kol macro is just skill throw dart at butt, attack, attack, so nothing special, and I have only used it in the last week/ten days during this ascension. The problem existed prior to my starting to use the kol macro however.

My ccs is essentially identical to the macro barring a few apostrophes.

Other than this I have no fight scripts running.

Rishi
 

ckb

Minion
Staff member
Does this happen every time?
What is your ccs?

Can you post a debug log from the fight?

in the CLI, type 'debug on'
run an adventure where you get the error
type 'debug off'
post the debug file from your Mafia folder
 

Rishi Sunak

New member
Debug file attached, thank you.

I tried using a different laptop this morning to see if it was the hardware that was the issue. This machine also uses 27998 but runs Win11 instead of Win10. (Both machines are fully updated).

Same thing. It did first seem different, since the part dropped the first time despite the error message. However, the Holster was not used. I checked my CCS and saw that the Darts skill ("skill Darts: Throw at butt; ") was marked as being unknown or ambiguous. (see opening ccs file) This is an issue I have often had and usually solves itself if I use the holster once manually and then edit the CCS to remove the error message. Having done this, I restarted Mafia and the reported error came immediately - seemimg to indicate a link to the holster.

I then moved the darts skill to the bottom of the ccs (so as I wouldn*t have to rewrite it later on), figuring I had data now and could do some fighting. The CCS now read (as per current ccs file)

[ default ]
special action
skill lunging thrust-smack
attack with weapon
attack with weapon
attack with weapon

The first attack worked but then Mafia went into a vicious circle which could only be ended with a stop command.

So - manual encounter in the relay to cast TO. Having cast the skill, started combat in Mafia.

[4877] The Hole in the Sky
Encounter: The Astronomer
Round 0: Rishi Sunak wins initiative!
Hard bounty item failed to drop from expected monster.
Round 0: Rishi Sunak casts TRANSCENDENT OLFACTION!
Encounter: The Astronomer
Round 0: Rishi Sunak loses initiative!
KoLmafia thinks it is round 1 but KoL thinks it is round 2
You acquire an intrinsic: On the Trail​
[Mafia combat from here]
Astronomer tracked by Transcendent Olfaction.
Hard bounty item failed to drop from expected monster.
Validating adventure sequence...

Request 1 of 15 (Beanstalk: The Hole in the Sky) in progress...

[4877] The Hole in the Sky
Encounter: The Astronomer
Round 2: Rishi Sunak executes a macro!
Round 2: Rishi Sunak casts LUNGING THRUST-SMACK!
Round 3: Astronomer takes 3729 damage.
Round 3: Rishi Sunak wins the fight!
You acquire an item: star chart
After Battle: You gain 266 Strongness
After Battle: You gain 67 Enchantedness
After Battle: You gain 78 Roguishness
You acquire a bounty item: sticky stardust

Request 2 of 15 (Beanstalk: The Hole in the Sky) in progress...

[4878] The Hole in the Sky
Encounter: The Box
Round 0: Rishi Sunak wins initiative!

Request 2 of 15 (Beanstalk: The Hole in the Sky) in progress...

[4878] The Hole in the Sky
Encounter: The Box
Round 1: Rishi Sunak executes a macro!
Round 1: Rishi Sunak casts LUNGING THRUST-SMACK!
Round 2: Box takes 3550 damage.
Round 2: Rishi Sunak wins the fight!
You acquire an item: line
After Battle: You gain 270 Strengthliness
After Battle: You gain 69 Mysteriousness
After Battle: You gain 70 Smarm

Request 3 of 15 (Beanstalk: The Hole in the Sky) in progress...

[4879] The Hole in the Sky
Encounter: The Muff
Round 0: Rishi Sunak wins initiative!

Request 3 of 15 (Beanstalk: The Hole in the Sky) in progress...

[4879] The Hole in the Sky
Encounter: The Muff
Round 1: Rishi Sunak executes a macro!
Round 1: Rishi Sunak casts LUNGING THRUST-SMACK!
Round 2: Muff takes 3503 damage.
Round 2: Rishi Sunak wins the fight!
You acquire an item: line
You acquire an item: line
After Battle: You gain 255 Fortitude
After Battle: You gain 67 Magicalness
After Battle: You gain 80 Sarcasm

Manual stop requested.​
[here I changed the ccs to get the Dart skill working]
Validating adventure sequence...

Request 1 of 3 (Beanstalk: The Hole in the Sky) in progress...

[4880] The Hole in the Sky
Encounter: The Astronomer
Round 0: Rishi Sunak wins initiative!
Hard bounty item failed to drop from expected monster.​
[Mafia aborted. I removed the darts skill from ccs]
Encounter: The Astronomer
Round 1: Rishi Sunak executes a macro!
Round 1: Rishi Sunak casts LUNGING THRUST-SMACK!
Round 2: Astronomer takes 3639 damage.
Round 2: Rishi Sunak wins the fight!
You acquire an item: star chart
After Battle: You gain 270 Beefiness
You gain a Muscle point!
After Battle: You gain 75 Magicalness
After Battle: You gain 68 Sarcasm
You acquire a bounty item: sticky stardust

Request 2 of 2 (Beanstalk: The Hole in the Sky) in progress...
Unhandled redirect to main.php

Request 2 of 2 (Beanstalk: The Hole in the Sky) in progress...
Unhandled redirect to main.php

Request 2 of 2 (Beanstalk: The Hole in the Sky) in progress...
Unhandled redirect to main.php

I had to go and do some work then. Logged out and then saw the message about the debug file. Logged in again and ran debug, The first time I received the usual abort due to the part not dropping occured. Restarting combat on the same fight (to try to induce the circular error) gave me a successful fight, but no second fight as Mafia considered the condition fulfilled, even tho only four of six bounties had now dropped. Restarting combat gave the usual abort.

Fighting foes who don't have the bounty item works fine. Anything in the relay browser works. But as soon as someone with the bounty item shows up, ccs doesn't want to know.
 

Attachments

  • DEBUG_20240712.txt
    55.3 KB · Views: 0
  • 2024-07-12 current ccs.jpg
    2024-07-12 current ccs.jpg
    178.1 KB · Views: 2
  • 2024-07-12 opening ccs.jpg
    2024-07-12 opening ccs.jpg
    42.2 KB · Views: 2
  • DEBUG_20240712b.txt
    934.5 KB · Views: 0
  • 2024-07-12 KoL Macro.jpg
    2024-07-12 KoL Macro.jpg
    64 KB · Views: 2

Capn

Member
Shot in the dark here, but when I was experiencing problems with combat-round mismatches, and mafia looking at post-combat things while still in combat, etc... It was all stemming from having Show old form with Combat Action Bar(?) enabled in KoL's combat options.

Is that checkbox ticked for you? Try turning it off if so?
 

Rishi Sunak

New member
It is currently permanently on. This happened relatively recently during this ascension as I couldn't ever funksling in the new format. The issue is older than that, but maybe because I occasionally turned it on it happened because of that.

I will give it a bash tomorrow, as I am currently overdrunk. I am also reinstalling mafia on one machine to see if that will help.
 

Rishi Sunak

New member
I reinstalled both Java & Mafia. I also unclicked the Use Old Form option. The bounty hunting ran without any issues this morning. :)

The "bug" must have been an issue either relating to delaying mafia updates (I went a long time without doing one after I first started using it) or maybe the change in the Java version (tho I was on an early version of 21).

Either way, it seems to be running. Hopefully this will have solved the other issue I posted also.

My thanks to all who gave their time to assist me. Very much appreciated.

Rishi
 
Top