Feature - Implemented Daily Dungeon adventuring doesn't use PYEC

Rinn

Developer
Code:
[COLOR=olive]> adv * daily[/COLOR]

Checkpoints cleared.
Casting     Leash of Linguini 1 times...
You acquire an effect: Leash of Linguini     (duration: 10 Adventures)
Leash of Linguini was successfully cast.
Casting     Springy Fusilli 1 times...
You acquire an effect: Springy Fusilli     (duration: 10 Adventures)
Springy Fusilli was successfully cast.

Request     1 of 228 (Dungeon: Daily Dungeon) in progress...

[2731] Daily     Dungeon (Room 1)
Encounter: dairy ooze
Strategy:     /Users/Rinn/Library/Application Support/KoLmafia/ccs/ascension.ccs     [default]
Round 0: [COLOR=#2cae33]Epicgamer[/COLOR] wins     initiative!
[COLOR=purple]WHAM: Running SmartStasis[/COLOR]
[COLOR=purple]WHAM:     Starting evaluation and performing of attack[/COLOR]
Round 1: [COLOR=#2cae33]Epicgamer[/COLOR]     executes a macro!
Round 1: [COLOR=#2cae33]Epicgamer[/COLOR] casts     CANDYBLAST!
Round 2: dairy ooze takes 30 damage.
Round 2: Spicy     can't think of a nasty trick to pull, so settles for kicking it square in     its most sensitive area -- that's right, its ego -- and does 36 damage.
Round     2: dairy ooze takes 36 damage.
You gain 41 Meat.
Round 2: [COLOR=#2cae33]Epicgamer[/COLOR]     wins the fight!
You gain 30 Meat
After Battle: Spicy holds out the     plastic pumpkin bucket, hoping for extra goodies.
After Battle: Spicy     smiles a three-lipped smile from beneath the shade of his little sombrero.
You     gain 4 Beefiness
You gain 8 Magicalness

Checkpoints cleared.

Request     2 of 228 (Dungeon: Daily Dungeon) in progress...

[2732] Daily     Dungeon (Room 2)
Encounter: Dungeon Fever

Checkpoints cleared.

Request     3 of 228 (Dungeon: Daily Dungeon) in progress...

[2733] Daily     Dungeon (Room 3)
Encounter: Treasure!

Checkpoints cleared.

Request     3 of 228 (Dungeon: Daily Dungeon) in progress...

[2733] Daily     Dungeon (Room 4)
Encounter: Seriously, I Just Read It For the Articles

Checkpoints     cleared.

Request 4 of 228 (Dungeon: Daily Dungeon) in progress...

[2734]     Daily Dungeon (Room 5)
Encounter: The Biggest Bathtub Ever

Checkpoints     cleared.

Request 5 of 228 (Dungeon: Daily Dungeon) in progress...

[2735]     Daily Dungeon (Room 6)
Encounter: Treasure!

Checkpoints cleared.

Request     5 of 228 (Dungeon: Daily Dungeon) in progress...

[2735] Daily     Dungeon (Room 7)
Encounter: You'll Put Your Eye Out

Checkpoints     cleared.

Request 6 of 228 (Dungeon: Daily Dungeon) in progress...

[2736]     Daily Dungeon (Room 8)
Encounter: Locked Door

Checkpoints     cleared.

Request 7 of 228 (Dungeon: Daily Dungeon) in progress...

[2737]     Daily Dungeon (Room 8)
Encounter: Locked Door

Checkpoints     cleared.

Request 8 of 228 (Dungeon: Daily Dungeon) in progress...

[2738]     Daily Dungeon (Room 8)
Encounter: Locked Door

Checkpoints     cleared.

Request 9 of 228 (Dungeon: Daily Dungeon) in progress...

[2739]     Daily Dungeon (Room 8)
Encounter: Locked Door

Checkpoints     cleared.

Request 10 of 228 (Dungeon: Daily Dungeon) in progress...

[2740]     Daily Dungeon (Room 8)
Encounter: Locked Door

Casting Curiosity     of Br'er Tarrypin 1 times...
You acquire an effect: Curiosity of Br'er     Tarrypin (duration: 15 Adventures)
Curiosity of Br'er Tarrypin was     successfully cast.
Checkpoints cleared.
Casting Empathy of the Newt     1 times...
You acquire an effect: Empathy (duration: 15 Adventures)
Empathy     of the Newt was successfully cast.
Casting Fat Leon's Phat Loot Lyric 1     times...
You acquire an effect: Fat Leon's Phat Loot Lyric (duration:     15 Adventures)
Fat Leon's Phat Loot Lyric was successfully cast.
Casting     Leash of Linguini 1 times...
You acquire an effect: Leash of Linguini     (duration: 10 Adventures)
Leash of Linguini was successfully cast.
Casting     The Polka of Plenty 1 times...
You acquire an effect: Polka of Plenty     (duration: 15 Adventures)
The Polka of Plenty was successfully cast.
Casting     Springy Fusilli 1 times...
You acquire an effect: Springy Fusilli     (duration: 10 Adventures)
Springy Fusilli was successfully cast.

Request     11 of 228 (Dungeon: Daily Dungeon) in progress...

[2741] Daily     Dungeon (Room 8)
Encounter: Locked Door

Checkpoints cleared.

Request     12 of 228 (Dungeon: Daily Dungeon) in progress...

[2742] Daily     Dungeon (Room 8)
Encounter: Locked Door

Checkpoints cleared.

Request     13 of 228 (Dungeon: Daily Dungeon) in progress...

[2743] Daily     Dungeon (Room 8)
Encounter: Locked Door

Checkpoints cleared.

Request     14 of 228 (Dungeon: Daily Dungeon) in progress...
[COLOR=red]KoLmafia     declares world peace.[/COLOR]

[2744] Daily Dungeon (Room 8)
Encounter:     Locked Door

I have a PYEC and no skeleton keys, mafia seems is burning a bunch of adventures on locked doors doing something not useful.
 

Veracity

Developer
Staff member
What is the "something not useful" it is doing?

Edit: In case I am not clear: What URL is it submitting? What is the response?
 
Last edited:

Rinn

Developer
Not sure, burning adventures not opening the door as far as I can tell. I already finished it manually so I couldn't tell you.
 

Veracity

Developer
Staff member
So, we assume it is using the "break down the door" option, rather than the "use skeleton key" option or "use PYEC" option (I assume, since I've never seen that)?

Which is to say, this is a Feature Request to add support for the PYEC to the Daily Dungeon automation.

Can you, oh owner of a PYEC, tell us what URL is needed to use the PYEC in the Daily Dungeon? I see the following code in AdventureRequest.java:

Code:
		if ( this.formSource.equals( "dungeon.php" ) )
		{
			this.addFormField( "action", "Yep." );

			if ( this.responseText.indexOf( "Locked Door" ) != -1 && AdventureRequest.SKELETON_KEY.getCount( KoLConstants.inventory ) + AdventureRequest.SKELETON_KEY.getCount( KoLConstants.closet ) > 1 )
			{
				ResultProcessor.processResult( AdventureRequest.SKELETON_KEY.getInstance( -1 ) );
				this.addFormField( "option", "2" );
			}
			else if ( this.responseText.indexOf( "\"Move on\"" ) != -1 )
			{
				this.addFormField( "option", "2" );
			}
			else
			{
				this.addFormField( "option", "1" );
			}

			super.run();
		}
Something obviously needs to be added to support the PYEC. You might be the only one who can figure out what that might be. :)
 

Rinn

Developer
Hm I thought it used to use it, guess I was mistaken. I'll loan someone my PYEC and them send me the url, or I'll get it tomorrow. It is a little weird though that the force option didn't work after several attempts, my mainstat is very high right now and it should have succeeded.
 

lostcalpolydude

Developer
Staff member
I think mafia is trying to use a skeleton key when that isn't a valid option (due to not actually having one?) and KoL takes that as a failure. That's only a guess though.
 

roippi

Developer
So several things:

1) yes, PYEC support should happen
2) that code that Veracity posted looks like it predates InventoryManager, it should be updated to use that.
3) actually, no. If you don't have access to a skeleton key, then that button doesn't appear on the page text, so shouldn't it just look for the button?

edit: 4) what was burning all those adventures doing nothing while you were adventuring? Can you turn on a debug log and reproduce?
 
Last edited:

Veracity

Developer
Staff member
4) I would guess it was taking choice 1 and attempting to force the door open and repeatedly failing due to insufficient mainstat.

The page source says that the Yendorian card is option "4" on that form.
 

Donavin69

Member
The link that I was able to locate for using the PYEC is:

HTML:
http://www.kingdomofloathing.com/dungeon.php?pwd&action=Yep.&option=4

Only 1 locked door today, so I can't test that link...
 

lostcalpolydude

Developer
Staff member
11785 fixes mafia incorrectly trying to use a skeleton key, adds support for having a PYEC, and fixes keys being double-subtracted when they are used.
 
Top