Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: Mafia thinks I'm losing ten-leaf clovers

  1. #1
    Senior Member
    Join Date
    Apr 2019
    Posts
    193

    Default Mafia thinks I'm losing ten-leaf clovers

    Ever since 4(?) days ago, I noticed that throughout the day, mafia is repeatedly adding in the Session Results that I'm "losing ten-leaf clovers"

    Before going further, I'll make things clear: I frequently zero-out most entries in my Session Results; it is NOT a case of "did you just _only_ notice that this line was here?"
    This is also not a case of clover acquisition; I have mafia turn every clover into disassembled clover, so if I got/lost any, the item that would see a change would be disassembled clovers instead, and they are NOT in the Session Results when "this" happens.
    Breakfast was already done/I already got the clover from Marmot, if it's also something that I need to disclaim (and, again, it would have changed the amount of disassembled clovers instead)

    This happened multiple times per day, and always in groups of 2 or 3. Yesterday, I think I remember ending the day with Session results telling me I had "ten-leaf clovers (-13)" ? Again, no, there was no actual clover gain/loss.



    All this was only said to make it so that any reader doesn't dismiss this before getting to "this" part which is a question about how I'd gather info about what is happening.
    Looking here, I see I can use "itrace ten-leaf clovers" to get info about when and where changes happen to that item. I'd also want to enable debug logging: how can I make it so that, if I turn on debug logging, I only get the info from itrace, and not "everything" that comes with turning on debug logging?

  2. #2
    Senior Member
    Join Date
    Apr 2019
    Posts
    193

    Default

    I got... "something"?

    Let me add the context for the files I'll have sent:

    I fought a foodie Giant. The debug log starts with the end of said fight, more precisely the moment where its items drop (more precisely: giant heirloom tomato, cilantro aioli and special seasoning).
    Why is this important? Because these are NOT present in the Session Results (evidence A). What this proves is that after the fight, I looked at and "cleaned" my session results, leaving only:
    Absentee ballots
    Government requisition forms (I knew I was going to fight the agent a 3rd time, so why clear the entry if I know I'd have to do it again later?)
    Guzzlrbucks (I want to know how many I gained over the day)
    overpriced "imported" beer (taken from my closet, it's the booze needed for my guzzlr delivery; I know it'll get -1'd back to 0 when the quest will be done anyway, and it's a reminder that it's still going)
    Sacramento Wine (I digitized a witchess bishop, I'll keep getting these during the whole day)

    I would have SEEN it if the clovers had been there, which means that their addition happened between the end of the foodie giant fight, and the end of the debug log/when I realized it.


    What happened between the fight and the realization was, as mostly proven by the GCLI:
    - equipping my last outfit twice from a "/outfit your previous outfit" custom macro (wanted to remember what it was saved as)
    - not being satisfied with it, and instead equipping a custom outfit: Familiar Weight
    - Switching familiar for the Pocket Professor
    - Equipping said familiar with Pocket Professor Memory Ship, as well as changing a few pieces of my equipment
    - taking a defective game grid token from the clan stash, using it, and putting it back in
    - taking a moveable feast from the clan stash, using it (with my familiar), and putting it back in
    - getting the mysticality boxing daycare buff from a custom combo daily deed
    - looking high in my telescope from a daily deed
    - visiting lyle from a custom daily deed
    - jumping in the clan's ball pit from a daily deed
    - swimming laps in the clan's vip pool from a daily deed
    - playing aggressively once, then stylishly twice in the VIP pool table from a daily deed
    - glancing at the Session Results


    Now, the weird part is that I HAD done "itrace disassembled clover, ten-leaf clover" earlier (as proved by the two last files; btw, "debug off" consistently logs you off??), but there's no... "trace" of itrace, not in the GCLI, nor in the debug log.
    At least this proves that it's a glitch/bug, but it doesn't help for troubleshooting (took a while to get this to trigger, and the debug log was loooooooooong...)evidence_A_(session_results).pngGCLI_since_the_foodie_fight.pngsession_results_after_using_disassembled_clover.pngGCLI_after_using_disassembled_clover.png

  3. #3
    Senior Member
    Join Date
    Apr 2019
    Posts
    193

    Default

    PFFF... only 5 attachments per message max, and the debug log was apparently so big I had to break it up in FIVE different files (is there, like, a 2kB size max to each attachment or what?)...DEBUG1_20200609.txtDEBUG2_20200609.txtDEBUG3_20200609.txtDEBUG4_20200609.txtDEBUG5_20200609.txt

  4. #4
    Senior Member
    Join Date
    Apr 2019
    Posts
    193

    Default

    News: took, used, and put back a Platinum Yendorian Express Card and I see it happened again; the clan stash my be what's linked to this

  5. #5
    Senior Member
    Join Date
    Apr 2019
    Posts
    193

    Default

    Yeah, that's it; literally every time I go to clan_stash.php, mafia registers -1 ten-leaf clover :|

  6. #6

    Default

    I can't reproduce it (by simply visiting clan_stash.php, at least). Perhaps a debug log of just that would be helpful.

  7. #7
    Senior Member
    Join Date
    Apr 2019
    Posts
    193

    Default

    I actually see it!
    right after the first huuuuuuge block of text:
    HTML Code:
    Processing result: ten-leaf clover (-1)
    DEBUG_20200610.txt

  8. #8
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    13,324

    Default

    Code:
    		// If this is a lucky adventure, then remove a clover
    		// from the player's inventory,
    		//
    		// Most places, this is signaled by the message "Your (or your)
    		// ten-leaf clover disappears in a puff of smoke."
    		//
    		// In the Spooky Forest's Lucky, Lucky! encounter, the message is
    		// "Your ten-leaf clover disappears into the leprechaun's pocket"
    		//
    		// The Hippy Camp (In Disguise)'s A Case of the Baskets, the message is
    		// "Like the smoke your ten-leaf clover disappears in a puff of"
    		//
    		// The Orcish Frat House:
    		// Pretty good timing, it seems. Your ten-leaf clover
    		// disappears in a cloud of smoke and alcohol fumes.
    
    		if ( this.responseText.contains( "clover" ) &&
    		     ( this.responseText.contains( "puff of smoke" ) ||
    		       this.responseText.contains( "into the leprechaun's pocket" ) ||
    		       this.responseText.contains( "cloud of smoke and alcohol fumes" ) ||
    		       this.responseText.contains( "disappears in a puff of" ) ) )
    		{
    			ResultProcessor.processItem( ItemPool.TEN_LEAF_CLOVER, -1 );
    		}
    Ha ha ha.

    Your clan stash has both a "clover" and a "puff of smoke" in it.

  9. #9

    Default

    Your clan stash has both a "clover" and a "puff of smoke" in it.
    Originally Posted by Veracity View Post
    Hahaha. I have this daydream of creating some massive database of full text strings from mafia including some regex subset for the changeable data inside, to solve this exact problem

  10. #10
    Senior Member
    Join Date
    Feb 2010
    Posts
    1,158

    Default

    @fredg1: For large text files I put them in Pastebin and then link to them in the forum post.
    Last edited by Magus_Prime; 06-10-2020 at 04:10 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •