Bug - Not A Bug adv1 aborts when I meet the protector spectre

LeaChim

New member
mafia keeps aborting when I try and fight the spectre.

The ash function being used is:
Code:
adv = adv1(loc, -1, "yz_consult");

The output I get in mafia:
Code:
Visit to HiddenCity: A Massive Ziggurat in progress...

[467] A Massive Ziggurat
Encounter: Legend of the Temple in the Hidden City
Legend of the Temple in the Hidden City
Encounter: Protector Spectre
Round 0: LeaChim wins initiative!
You're on your own, partner.
Click here to continue in the relay browser.

(That same adventuring function is used all over the place, this is the only location it seems to get stuck)

Any ideas on what's up, or if I'm using the function incorrectly somehow?

(I've also stuck some debug statements in the consult script, but they never show up, so it seems like the consult script is never being called)




Relevant code:
https://github.com/mapledyne/yaaz/b...quests/council/yz_L11_SQ_hidden_city.ash#L315
which ends up calling
https://github.com/mapledyne/yaaz/b...ipts/yaaz/util/adventure/yz_adventure.ash#L42
 
A DEBUG log would be useful. Absent that, what does your session log say?

This should be adventure.php (the Ziggurat) fowllowed by you taking a choice, followed by a fight.

The session log will show things that CLI output does not show.
 
Session log:
Code:
[467] A Massive Ziggurat
Encounter: Legend of the Temple in the Hidden City
Took choice 791/1: fight Protector Spectre
choice.php?whichchoice=791&option=1&pwd
Encounter: Protector Spectre
Round 0: LeaChim wins initiative!

(Then followed by me running the fight from the relay browser)

[467] A Massive Ziggurat
> WHAM: Running SmartStasis
> WHAM: Starting evaluation and performing of attack
> WHAM: We are going to 1-shot with attack with your weapon.
Round 1: LeaChim executes a macro!
Round 1: LeaChim attacks!
Round 2: Protector Spectre takes 177 damage.
Round 2: LeaChim wins the fight!
You acquire an item: psychokinetic energy blob
After Battle: A love dragonfly buzzes softly in your ear.
After Battle: You gain 4 Chutzpah
You acquire an item: ancient amulet
You acquire an item: spectre scepter
You acquire an item: disintegrating barrel
After Battle: You gain 32 Beefiness
After Battle: You gain 30 Enchantedness
You gain a Mysticality point!
After Battle: You gain 81 Sarcasm




I'll try and get a debug log next ascension
 
Hmm. I turned on the options in `Extra Debugging`, but I don't seem to get any sort of debug log. How do I force one?
 
This is a duplicate to this FReq from 3.5 years ago.
http://kolmafia.us/showthread.php?14874-Removing-autostop-on-Massive-Ziggurat

It's officially waiting on a debug log, though that debug log is waiting to find out what should be in it, as per the question. Alternatively, rather than doing adv1 massive ziggurat, you can overcomplicate your life by running the following instead.
Code:
ashq if (item_amount($item[stone triangle]) == 4) { if (my_path() != "Actually Ed the Undying") { set_property("choiceAdventure791", "1"); visit_url($location[A Massive Ziggurat].to_url()).runChoice(); run_combat(); } else { set_property("choiceAdventure1002", "1"); adv1($location[A Massive Ziggurat], 0, ""); } }
Basically, we visit the url and run the choice manually, then start combat. By doing so, we avoid the autostop.
 
I've uploaded a debug log here: https://filebin.ca/3RyCno3jo0xc

The last lines of output are:
Code:
Starting consult script: WHAM.ash
Finished consult script: WHAM.ash
Starting consult script: WHAM.ash
Finished consult script: WHAM.ash
You're on your own, partner.
<a href=main.php target=mainpane class=error>Click here to continue in the relay browser.</a><br>

Finished ASH script: yaaz.ash

I've also then refreshed the relay browser (had to do it twice, the first time it comes back blank for some reason), and clicked the `script` action bar item. Which then appears to run the script successfully, as my CCS is just `consult WHAM.ash`
 
Let's see what we can deduce from the DEBUG log.

(I notice you REDACTED the PHPSESSID. If you are still in the same session right now - i.e., you have not logged out - that is wise, I guess, but simply logging out will invalidate it. I hope you didn't spend too much time doing that!)

Code:
Requesting: https://www.kingdomofloathing.com/adventure.php?snarfblat=343
Retrieved: https://www.kingdomofloathing.com/adventure.php?snarfblat=343
Field: Location = [fight.php?ireallymeanit=1498987186]
Requesting: https://www.kingdomofloathing.com/fight.php?ireallymeanit=1498987186
Retrieved: https://www.kingdomofloathing.com/fight.php?ireallymeanit=1498987186
You're fighting <span id='monname'>a pygmy witch lawyer</span>

[471] The Hidden Office Building
Encounter: pygmy witch lawyer
Round 0: LeaChim wins initiative!
Starting consult script: WHAM.ash
<font color="purple">WHAM: Running SmartStasis</font>
class net.sourceforge.kolmafia.request.GenericRequest
Round 1: LeaChim executes a macro!
Requesting: https://www.kingdomofloathing.com/fight.php?action=macro&macrotext=scrollwhendone%3B+sub+batround%3B++if+pastround+29%3B+abort+%22Stopping+fight+because+it+has+gone+on+for+too+long+%28set+WHAM_maxround+to+a+higher+value+if+you+think+this+was+in+error%29%22%3B+endif%3B+endsub%3B+pickpocket%3B+call+batround%3B+
Retrieved: https://www.kingdomofloathing.com/fight.php?action=macro&macrotext=scrollwhendone%3B+sub+batround%3B++if+pastround+29%3B+abort+%22Stopping+fight+because+it+has+gone+on+for+too+long+%28set+WHAM_maxround+to+a+higher+value+if+you+think+this+was+in+error%29%22%3B+endif%3B+endsub%3B+pickpocket%3B+call+batround%3B+
Round 1: LeaChim tries to steal an item!
<font color="purple">WHAM: Starting evaluation and performing of attack</font>
<font color="purple">WHAM: We are going to 1-shot with attack with your weapon.</font>
class net.sourceforge.kolmafia.request.GenericRequest
Round 2: LeaChim executes a macro!
Requesting: https://www.kingdomofloathing.com/fight.php?action=macro&macrotext=scrollwhendone%3B+sub+batround%3B++if+pastround+29%3B+abort+%22Stopping+fight+because+it+has+gone+on+for+too+long+%28set+WHAM_maxround+to+a+higher+value+if+you+think+this+was+in+error%29%22%3B+endif%3B+endsub%3B+attack%3B+call+batround%3B+
Retrieved: https://www.kingdomofloathing.com/fight.php?action=macro&macrotext=scrollwhendone%3B+sub+batround%3B++if+pastround+29%3B+abort+%22Stopping+fight+because+it+has+gone+on+for+too+long+%28set+WHAM_maxround+to+a+higher+value+if+you+think+this+was+in+error%29%22%3B+endif%3B+endsub%3B+attack%3B+call+batround%3B+
Round 2: LeaChim attacks!
Round 3: pygmy witch lawyer takes 262 damage.
Round 3: LeaChim wins the fight!
...
Finished consult script: WHAM.ash
You fought a pygmy witch lawyer. That is interesting only insofar we can see what a WHAM fight looks like, request-wise.

Let's see going to the Ziggurat.

Code:
Visit to HiddenCity: A Massive Ziggurat in progress...
class net.sourceforge.kolmafia.request.AdventureRequest
Requesting: https://www.kingdomofloathing.com/adventure.php?snarfblat=350
Retrieved: https://www.kingdomofloathing.com/adventure.php?snarfblat=350
Field: Location = [choice.php?forceoption=0]

class net.sourceforge.kolmafia.session.ChoiceManager$1
Requesting: https://www.kingdomofloathing.com/choice.php?forceoption=0
Retrieved: https://www.kingdomofloathing.com/choice.php?forceoption=0

[489] A Massive Ziggurat
Encounter: Legend of the Temple in the Hidden City
Legend of the Temple in the Hidden City

class net.sourceforge.kolmafia.session.ChoiceManager$1
Requesting: https://www.kingdomofloathing.com/choice.php?whichchoice=791&option=1&pwd
Retrieved: https://www.kingdomofloathing.com/choice.php?whichchoice=791&option=1&pwd
Field: Location = [fight.php?ireallymeanit=1498987646]
class net.sourceforge.kolmafia.request.FightRequest
Requesting: https://www.kingdomofloathing.com/fight.php?ireallymeanit=1498987646
Retrieved: https://www.kingdomofloathing.com/fight.php?ireallymeanit=1498987646
Encounter: Protector Spectre
Round 0: LeaChim wins initiative!
Starting consult script: WHAM.ash
Finished consult script: WHAM.ash
Starting consult script: WHAM.ash
Finished consult script: WHAM.ash
You're on your own, partner.
<a href=main.php target=mainpane class=error>Click here to continue in the relay browser.</a><br>

Finished ASH script: yaaz.ash
You adventured at the Ziggurat (adventure.php)
It redirected to choice.php
KolMafia automated the choice: taking choice 1 to fight
It redirected to fight.php
KoLmafia automated the fight

You win initiative in round 0
KoLmafia calls WHAM.ash
WHAM.ash returns without submitting a request
KoLmafia calls WHAM.ash
WHAM.ash returns without submitting a request

KoLmafia's code to detect a "consult script that did nothing" kicks in and it aborts.

This is a bug in WHAM, not a bug in KoLmafia.
 
Back
Top