Bug - Fixed Not tracking adventures used/not updating adventure results

Dankia_Talos

New member
Edited in: Using, today, 9588, yesterday was also a daily build, I'm using the auto-updater that someone wrote to keep it up to date.

Reposted from the thread on the KoL forums for a potentially better response, and/or posting the debug log to see if anyone more versed in programming can spot the problem in it.

To run a test, I made a new CCS list with [ default ] set to attack with weapon, to eliminate smartstasis or spamattack from being part of the problem, and still got the same result in the CLI, as seen below.

Mafia CLI said:
Validating adventure sequence...
Requests complete.

Visit to Island: Frat House in progress...

Visit to Island: Frat House in progress...

Visit to Island: Frat House in progress...

Visit to Island: Frat House in progress...

Visit to Island: Frat House in progress...

Visit to Island: Frat House in progress...
KoLmafia declares world peace.

This was first noticed by me on my farming multis who have been on a quest to get their class level 30 trophies and hit Ferny's Basement for Telescope pieces before they both start in on softcore runs.

If it were limited to happening to those two, fine, grain of salt, I could live with it, but it's now begun happening to my ascending main, wherein it becomes more of a wall than a speedbump. I have three debug logs of various versions of this, so if anyone wants to look any of them over, let me know and/or I'll post them here in edits or future posts.

Help or feedback on this in a quick, timely manner would be greatly appreciated, as it's directly impacting my ability to play. Working leaves little time for gaming nowadays, sadly, but I am still interested in all this wonderful game and this wonderful addition to it have to offer.
 
Last edited:

Bale

Minion
Reposted from the thread on the KoL forums for a potentially better response, and/or posting the debug log to see if anyone more versed in programming can spot the problem in it.

Since you have a debug log, you should just post it as a file attachment -- don't waste time waiting for someone to request it. It can't hurt and it might help.
 

Dankia_Talos

New member
Sure, sure. Should I post all three, or just the one from today, though? Doing that one now, if the other two are asked for I'll pass them along as well.

Actually, this is the one from the 30th(I lost days apparently, in trying to debug this), the one from today is apparently too large, being 8.95 mb. The first one, then, is also too large, being 64.8 mb.

View attachment DEBUG_20110630.txt
 
Last edited:

slyz

Developer
I'm guessing this happens when you auto-adventure, not while adventuring through the Relay Browser.

The log you posted shows some kind of error during initialization, and another one that probably happened while acquiring clovers during breakfast, but nothing related to your adventuring problem.

Could you:

1) update to the latest .jar (see link in my signature)
2) select "Help -> Start Debug Log"
3) auto-adventure for 1 adventure
4) select "Help -> Stop Debug Log"
5) post the log here

Another question: in Preferences -> Session Logs, which options are unchecked?
 

Dankia_Talos

New member
That is exactly what I did to do that debug log. It never thought it finished an adventure, which may be why it looks funny.

Preferences-> Session Logs: Everything is checked except adventures left instead of used.
 

slyz

Developer
In that case, it looks like you were logged off when you tried to auto-adventure and got that debug log.
 

slyz

Developer
It looks like something was clicked in the GUI, then Mafia tried to log on, and an error happened after logging on, during breakfast.

Could you try to produce a new debug log, but to keep its size small, do this:

1) update to the latest .jar (see link in my signature)
2) select "Help -> Start Debug Log"
3) hit the "begin" button to auto-adventure for 1 adventure
4) after the first "Visit to Island: Frat House in progress..." is printed in the gCLI, franctically hit the escape key
5) select "Help -> Stop Debug Log"
6) post the log here
 

Dankia_Talos

New member
That one was my bad. I saw that the location was highlighted, it apparently wasn't. Ignore that part, that was user error, but the rest is legit.
 

slyz

Developer
I found a relevant part that I had missed the first time around:
Code:
Visit to Island: Frat House in progress...
class net.sourceforge.kolmafia.request.AdventureRequest
Connecting to adventure.php...

Requesting: http://www2.kingdomofloathing.com/adventure.php?snarfblat=27
3 request properties

Field: Cookie = [PHPSESSID=75l3m8b9hn62418q50ldli9jt2]
Field: User-Agent = [KoLmafia v14.6]
Field: Content-Type = [application/x-www-form-urlencoded]

Retrieving server reply...
KoLmafia declares world peace.
KoLmafia declares world peace.
It looks like you pressed escape too early this time ^^

Most of the log is actually Bale's Universal Recovery doing his thing. If you want to cut down the log file size, disable UR beforehand by doing "set recoveryScript = " in the gCLI.

If you still have the patience to try to get a debug log, do the same steps, but wait until you have a second "Visit to <some location> in progress..." message.
 

Dankia_Talos

New member
No problem, lemme just try that real quick. I hope it's not actually something mismatching with Bale's script, I'd feel terrible if I had to point that out, because it's awesome. Nope, still doing it with his script off, but that does cut the debug log's size considerably.

View attachment DEBUG_20110709.txt
 

Veracity

Developer
Staff member
Visit to Island: Frat House in progress...
class net.sourceforge.kolmafia.request.AdventureRequest
Connecting to adventure.php...
Requesting: http://www.kingdomofloathing.com/adventure.php?snarfblat=27
Retrieving server reply...
Retrieved: http://www.kingdomofloathing.com/adventure.php?snarfblat=27
Field: null = [HTTP/1.1 302 Found]
Field: Content-Length = [0]
Field: Location = [fight.php?ireallymeanit=1310199124]

You are redirected into a fight.

class net.sourceforge.kolmafia.request.FightRequest
Connecting to fight.php...
Requesting: http://www.kingdomofloathing.com/fight.php?ireallymeanit=1310199124
Retrieving server reply...
Retrieved: http://www.kingdomofloathing.com/fight.php?ireallymeanit=1310199124
Field: null = [HTTP/1.1 302 Found]
Field: Content-Length = [0]
Field: Location = [main.php]

You are redirected to main.php, rather than retrieving the fight.

Compared to what happens when I try to adventure:

Visit to Island: Hippy Camp in progress...
class net.sourceforge.kolmafia.request.AdventureRequest
Connecting to adventure.php...
Requesting: http://www4.kingdomofloathing.com/adventure.php?snarfblat=26
Retrieving server reply...
Retrieved: http://www4.kingdomofloathing.com/adventure.php?snarfblat=26
Field: null = [HTTP/1.1 302 Found]
Field: Content-Length = [0]
Field: Location = [fight.php?ireallymeanit=1310244996]

I am redirected to a fight

class net.sourceforge.kolmafia.request.FightRequest
Connecting to fight.php...
Requesting: http://www4.kingdomofloathing.com/fight.php?ireallymeanit=1310244996
Retrieving server reply...
Retrieved: http://www4.kingdomofloathing.com/fight.php?ireallymeanit=1310244996
Field: null = [HTTP/1.1 200 OK]
Field: Content-Length = [7706]

I get the fight.

[318240] Hippy Camp
Encounter: filthy hippy Vegan chef
 

Dankia_Talos

New member
So what does that mean for me? I see content length being different, mine being 0, yours 7706, but what does it actually mean, seeing as I'm sorta outta my league here, as far as how this stuff actually works.
 

Veracity

Developer
Staff member
It means I'm clueless.

When I auto-adventure, KoL sends me to a fight, and when we retrieve it, we are fighting.
When you auto-adventure, KoL sent you to a fight, and when we retrieved it, KoL sent you to the main page.
 

Theraze

Active member
Another thought... any chance Dankia has either a regular or master relay override in place? A bad fight relay could possibly...?
 
Top