Bug - Fixed Inventory not updating quantity of item drops after combat properly?

fxer

Member
Noticed this on the latest build, after combat if a tattered scrap falls mafia doesn't appear to increment its count of scraps, reporting the same number before and after the drop. However on the following combat adv, even if no scrap drops, mafia will report the correct amount of scraps.

LOG:

> inv tatt

tattered scrap of paper (209) <-- Correct amount

> call farm 1

inv tatter (pre adv) = 209 <-- Still correct

Visit to Manor1: Haunted Library in progress...

[1968] Haunted Library
Encounter: bookbat
Round 0: fxer wins initiative!
Round 1: fxer executes a macro!
Round 1: fxer attacks!
You acquire an item: tattered scrap of paper
You gain 8 Beefiness
You gain 6 Magicalness
You gain 5 Chutzpah

inv tatter (post adv) = 209 <-- Should be 210 now
Requests complete.
 

heeheehee

Developer
Staff member
I know the second part happens because Mafia notices your combat item count and updates it respectively, but I don't remember entirely why Mafia gets out of sync in the first place.
 

Veracity

Developer
Staff member
Works for me.

> inv scrap

tattered scrap of paper (1,258)

> adv 1 Haunted Library

Visit to Manor1: Haunted Library in progress...

[4798] Haunted Library
Encounter: bookbat
Strategy: veracity [bookbat]
Round 0: Veracity wins initiative!
Round 1: Veracity executes a macro!
Round 1: Veracity tries to steal an item!
You acquire an item: tattered scrap of paper
You lose 2 hit points
...
After Battle: Pottery Grrl surveys the scene from atop the throne and sighs.
After Battle: Elvis Grrl does a couple of karate moves, then swivels his hips and gyrates his pelvis.
You gain 8 Beefiness
You gain 6 Wizardliness
You gain 12 Sarcasm

Requests complete.

> inv scrap

tattered scrap of paper (1,259)

> adv 1 Haunted Library

Visit to Manor1: Haunted Library in progress...

[4799] Haunted Library
Encounter: bookbat
Strategy: veracity [bookbat]
Round 0: Veracity wins initiative!
Round 1: Veracity executes a macro!
Round 1: Veracity tries to steal an item!
You acquire an item: tattered scrap of paper
...
After Battle: Pottery Grrl surveys the scene from atop the throne and sighs.
After Battle: Elvis Grrl does a couple of karate moves, then swivels his hips and gyrates his pelvis.
You gain 9 Strongness
You gain 5 Magicalness
You gain 12 Sarcasm

Requests complete.

> inv scrap

tattered scrap of paper (1,260)

> adv 1 Haunted Library

Visit to Manor1: Haunted Library in progress...

[4800] Haunted Library
Encounter: bookbat
Strategy: veracity [bookbat]
Round 0: Veracity wins initiative!
Round 1: Veracity executes a macro!
Round 1: Veracity tries to steal an item!
Round 2: Veracity tries to steal an item!
...
After Battle: Pottery Grrl surveys the scene from atop the throne and sighs.
After Battle: Elvis Grrl does a couple of karate moves, then swivels his hips and gyrates his pelvis.
You acquire an item: tattered scrap of paper
You gain 5 Beefiness
You gain 8 Magicalness
You gain 12 Smarm

Requests complete.

> inv scrap

tattered scrap of paper (1,261)
 

fxer

Member
One other thing to check is your scrap collection in the relay browser Veracity, see if it stays in line with what "inv scrap" says. Also I logged into another account with a slightly older Mafia version (r8696) and found the same problem:
> inv tatter

tattered scrap of paper (3)

> adv 1 haunted library

Visit to Manor1: Haunted Library in progress...

[12025] Haunted Library
Encounter: bookbat
Round 0: fxer80 wins initiative!
Round 1: fxer80 executes a macro!
Round 1: fxer80 casts ENTANGLING NOODLES!
Round 2: fxer80 attacks!
You acquire an item: tattered scrap of paper
You gain 8 Strongness
You gain 7 Enchantedness
You gain 7 Smarm

Requests complete.

> inv tatter

tattered scrap of paper (3)

> adv 1 haunted library

Visit to Manor1: Haunted Library in progress...

[12026] Haunted Library
Encounter: bookbat
Round 0: fxer80 wins initiative!
Round 1: fxer80 executes a macro!
Round 1: fxer80 casts ENTANGLING NOODLES!
Round 2: fxer80 attacks!
You gain 9 Fortitude
You gain 8 Magicalness
You gain 5 Smarm

Requests complete.

> inv tatter

tattered scrap of paper (4)
 
Last edited:

Theraze

Active member
So... what's different between what fxer is doing (or has set) and what everyone else using KoLmafia is doing? Because despite the code parsing the inventory update, for some reason it's not processing it. One question... fxer, are you using self-compiled versions or downloaded pre-compiled editions?
 

fxer

Member
Just using the daily builds, I guess I'll try it with some other item drops and see if they give the same result
 

Theraze

Active member
One more question... which OS? Trying to see if we can find SOMEthing that's unique about your case. :)
 

fxer

Member
Vista with all the latest patches, I have KoL on a dropbox folder so I suppose I can try the exact same setup but from an XP install as well
 

fxer

Member
I've been playing with this a bit further and still have the same problem, tattered scraps drops aren't tallied until after the next combat adventure. Interestingly this is also the case with inkwells for me, from this combat:

[790] Haunted Library
Encounter: writing desk
You acquire an item: disintegrating quill pen
You acquire an item: inkwell
You acquire an item: snifter of thoroughly aged brandy
You acquire an item: llama lama gong

The gong/brandy/pen registered as drops in session results immediately, but not the inkwell. I tested this a few times and all the drops except tatters and inkwells appear to register immediately. Does that help narrow down what might be happening at all? Does it have something to do with those items are combat usable?
 

Veracity

Developer
Staff member
It's clearly something to do with them being combat items.
Strange that it doesn't screw up, ever, for me.
 

fxer

Member
Just tried it on the fantasy airship and the photoprotoneutron torpedo doesn't show up immediately but the other drops do, so I guess it is all zones.

So here is some weird crap, on another account I used build r8728 and combat items showed up immediately. I updated to r8772 and they stopped registering. I went back to r8728 and now that build would not register them immediately either!

I just tried r8728 on my account where I first noticed the problem and it wouldn't register combat items right away, no matter what build I used.

Is that any help?
 

Veracity

Developer
Staff member
Fixed in 8830, we assume: this was an issue only for those who run with the WOWbar enabled. Unlike me.
 

Winterbay

Active member
I have not seen any problems as of lately, so I would agree that it is fixed. I use the WOWbar (horrible name, but that's just my dislike of WOW that comes through) so should've been affected.
 
Top