New Content - Implemented Desert/Oasis revamp

Bale

Minion
Breaking news!

October 29
The Desert/Oasis part of the level 11 quest is now differenter than it used to be. If you were partway through it, sorry, baby, but we had to crash that Honda.

Details to be filled in as they are discovered.
 

Darzil

Developer
r13001 adds UV-resistant compass and killing jar. First is purchasable in Gift Shop, second is a 10% drop (also pickpocketable) from Banshee Librarian.

I think we'll be wanting to add tracking of exploration when the appropriate messages are found, but I've not yet got the quest on any alt. From a quick read of the forums it's:
1% exploration from killing any monster in desert, 2% with UV-resistant compass equipped.
At 10% you can talk to Gnasir, he gives you pamphlets worth 15% exploration, one for killing jar, one for black paint, one for stone rose.
Monsters in desert can drop worm-riding manual pages, not sure what they give.
 

lostcalpolydude

Developer
Staff member
Ah, The Arid, Extra-Dry Desert! I have a number of species that thrive in outdoor environments! It has snarfblat=364, and I don't see a second snarfblat (though the quest is already finished for me). I should be able to get that fixed and working with the florist when I get home.

The Oasis seems unchanged for that stuff.
 

lostcalpolydude

Developer
Staff member
Those two locations are now one location in 13005. AdventureRequest, AdventurePool, and possibly KoLAdventure all need updating in some way due to the old auto-hydrating code, but I don't know how it should be updated. There's no longer a simple way to avoid auto-hydration if it's a thing, and my limited understanding of the new quest makes me think it might make sense to switch from adventuring hydrated (for pages) to unhydrated (close to finished and you won't get all of the pages anyway).
 

Darzil

Developer
If we do tracking:

<table class="item" style="float: none" rel="id=2320&s=0&q=1&d=0&g=0&t=0&n=3&m=0&p=0&u=."><tr><td><img src="/images/itemimages/page.gif" alt="worm-riding manual page" title="worm-riding manual page" class=hand onClick='descitem(956772450)'></td><td valign=center class=effect>You acquire <b>3 worm-riding manual pages</b></td></tr></table></center><center>Desert exploration <b>+2%</b></td></tr></table>

Currently we get : You acquire an item: worm-riding manual page 1, it doesn't pick up that a number were found, and the name is now : worm-riding manual page for item 2320.

Apparently using worm hooks gives 30% exploration, but I didn't see notification of that.
 
Last edited:

Veracity

Developer
Staff member
I went through this today knowing some, but not all, of how it works.

- The UV compass gives 2% exploration per turn in the desert
- After 10% exploration, you meet Gnasir.
- I did NOT realize that having met him, he is now a location to visit.
- You can find 1 - 3 pages of the manual at a time from desert monsters

I discovered the following:

- The "worm-riding manual page 1" itemId is recycled to "worm-riding manual page". Once I changed the name, KoLmafia recognized the item - but when I found "<b>2 worm-riding manual pages</b>", it told me I had found 1. I refreshed inventory and both were there. I added the plural, but I don't know if that fixed the issue, since those 2 brought me up to 15 and I never saw any more.

I think worm-riding manual manual pages are zone item drops (like Dreadsylvanian almanac pages) rather than monster drops, per se. Here is the HTML added to the end of a combat:

Code:
<Tr><td>Well hydrated and equipped with your trusty UV-resistant compass, you continue your efforts to explore the vast desert.<p>You walk for a few miles in one direction, then follow your footprints back.<p>You find some more worm-riding manual pages under a nearby rock.<center><table class="item" style="float: none" rel="id=2320&s=0&q=1&d=0&g=0&t=0&n=3&m=0&p=0&u=."><tr><td><img src="http://images.kingdomofloathing.com/itemimages/page.gif" alt="worm-riding manual page" title="worm-riding manual page" class=hand onClick='descitem(956772450)'></td><td valign=center class=effect>You acquire <b>3 worm-riding manual pages</b></td></tr></table></center><center>Desert exploration <b>+2%</b></td></tr>

- We should track desert exploration percent.
- We should add a counter to worm-riding manual pages, like we do for hot wings - and make it a [gnasir] navigation link when you get the 15th page. I don't think we give use links for when you find more than one of an item, as you can see when you open the smut orc keepsake box.

After I had all three of the items Gnasir wanted as well as all 15 pages, I kept adventuring, waiting for him to show up. I eventually went to the Wiki and saw that you were supposed to visit his hut - which I had never seen, since I had never left the desert after meeting him. Duh.

- When you look at the desert, it tells you the % of exploration. It is bizarre HTML:

Code:
<div id=db_l11desertlabel style='text-align: center; position: absolute; top: 226; left: 200; height: 30; width: 100;'>
  <a style='text-decoration: none; font-size: 11px' href=adventure.php?snarfblat=364>
    <div class="pp" style="height: 10px">
      <img src="http://images.kingdomofloathing.com/otherimages/zonefont/lparen.gif" height="10" border="0" />
      <img src="http://images.kingdomofloathing.com/otherimages/zonefont/1.gif" height="10" border="0" />
      <img src="http://images.kingdomofloathing.com/otherimages/zonefont/0.gif" height="10" border="0" />
      <img src="http://images.kingdomofloathing.com/otherimages/zonefont/0.gif" height="10" border="0" />
      <img src="http://images.kingdomofloathing.com/otherimages/zonefont/percent.gif" height="10" border="0" style="margin-right: 4px"/>
      <img src="http://images.kingdomofloathing.com/otherimages/zonefont/e.gif" height="10" border="0" />
      <img src="http://images.kingdomofloathing.com/otherimages/zonefont/x.gif" height="10" border="0" />
      <img src="http://images.kingdomofloathing.com/otherimages/zonefont/p.gif" height="10" border="0" />
      <img src="http://images.kingdomofloathing.com/otherimages/zonefont/l.gif" height="10" border="0" />
      <img src="http://images.kingdomofloathing.com/otherimages/zonefont/o.gif" height="10" border="0" />
      <img src="http://images.kingdomofloathing.com/otherimages/zonefont/r.gif" height="10" border="0" />
      <img src="http://images.kingdomofloathing.com/otherimages/zonefont/e.gif" height="10" border="0" />
      <img src="http://images.kingdomofloathing.com/otherimages/zonefont/d.gif" height="10" border="0" />
      <img src="http://images.kingdomofloathing.com/otherimages/zonefont/rparen.gif" height="10" border="0" />
</div>

How strange. But, we can parse that.

- I noticed no change to the Quest log as I did various things.

- Revision 13040 handles turning things in to Gnasir.

When I got the worm-riding hooks and exited the choice adventure, I got a "wormride" link, as before. I clicked on it, and, voila - there I was in the pyramid. I don't know what would have happened if the desert had been insufficiently explored at the time I did this.

- Here is my session log for my gnasir visit when I turned in all the stuff and did the wormride.

place.php?whichplace=desertbeach&action=db_gnasir
choice.php?forceoption=0
Encounter: A Sietch in Time
Took choice 805/2: unknown
choice.php?pwd&whichchoice=805&option=2
Encounter: A Sietch in Time
You acquire an item: desert sightseeing pamphlet
Took choice 805/2: unknown
choice.php?pwd&whichchoice=805&option=2
Encounter: A Sietch in Time
You acquire an item: desert sightseeing pamphlet
Took choice 805/2: unknown
choice.php?pwd&whichchoice=805&option=2
Encounter: A Sietch in Time
You acquire an item: desert sightseeing pamphlet
Took choice 805/2: unknown
choice.php?pwd&whichchoice=805&option=2
Encounter: A Sietch in Time
You acquire an item: worm-riding hooks
Took choice 805/1: unknown
choice.php?pwd&whichchoice=805&option=1

use 1 drum machine

place.php?whichplace=desertbeach&action=db_pyramid1

We should give a navigation link to "place.php?whichplace=desertbeach&action=db_gnasir" when you find a stone rose. Perhaps also when you acquire a killing jar or black paint - IF you have started the Level 11 quest and already met Gnasir.
 

Bale

Minion
I think worm-riding manual manual pages are zone item drops (like Dreadsylvanian almanac pages) rather than monster drops, per se.

It was confirmed on the forum that wandering monsters and hipster fights can drop pages if you're in the correct area, so yup! Definitely not connected to the monsters at all. Obviously nothing is more optimal than advancing the quest from a free fight, so yay for the hipster.
 

Veracity

Developer
Staff member
Revision 13054 adds a new setting - desertExploration - which is initialized to 0, updated when you look at the desert beach, and is reset to 0 upon ascension. I figured that if KoL went to the trouble of making a "zonefont" for this purpose, they'd probably use it again, so ResponseTextParser.parseDivLabel( label, responseText ) will look up the specified named div and parse the label (expressed as individual characters in "zonefont") out of it.

The desertExploration setting is not updated in any other way, yet.

I don't expect to be back there for another 4 or 5 days or so; I'll be ascending into a 19-day SC KOLHS run to get the stupid camera trophy tomorrow, but given the length of the run, I feel no urgency to rush through it. Perhaps others who get there sooner can work on updating this setting.
 

lostcalpolydude

Developer
Staff member
I'm working on adding more tracking. My additions will be limited since this is a speed run (I probably won't get both a stone rose (need the response text from Sietch, the choice numbers change based on what you have) and use worm-riding pages this run), I'm currently staring at the quest trying to guess which approach is better.
 

lostcalpolydude

Developer
Staff member
- The "worm-riding manual page 1" itemId is recycled to "worm-riding manual page". Once I changed the name, KoLmafia recognized the item - but when I found "<b>2 worm-riding manual pages</b>", it told me I had found 1. I refreshed inventory and both were there. I added the plural, but I don't know if that fixed the issue, since those 2 brought me up to 15 and I never saw any more.

Adding the plural did not fix it. I'm not likely to start looking at that today.
 
The quest updates with the new desert can be found on the charpane.php. It also keeps track of the exploration, which might be easier to parse? I have no idea though, since I don't really know much about parsing and such. Sorry if none of this was helpful.
 

Veracity

Developer
Staff member
Not everybody has quest nudges turned on, therefore we cannot count on them being in the charpane.
 

lostcalpolydude

Developer
Staff member
Automated adventuring loads api.php instead of charpane.php, which won't have any of that information.

We also need to track when the quest is finished now, since it isn't just based on using the drum machine. I got this HTML block at the end of combat (outside of mafia), and I expect it can also happen in response to using the drum machine or while talking to Gnasir.
Desert exploration <b>COMPLETE!</b><P><center><table width=400 cellspacing=0 cellpadding=0><tr><td style="color: white;" align=center bgcolor=blue><b>New Area Unlocked</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td><center><table><tr><td valign=center><img src="http://images.kingdomofloathing.com/adventureimages/../otherimages/desertbeach/pyramid.gif"></td><td valign=center class=small><b>A Small Pyramid</b>, in <a class=nounder href=place.php?whichplace=desertbeach><b>Desert Beach</b></a>.</td></tr></table></center></td></tr></table></center></td></tr><tr><td height=4></td></tr></table></center><p></td></tr></table>
Or maybe we can just have every place that increments desertExploration check to see if it reached 100.
 

Veracity

Developer
Staff member
Or maybe we can just have every place that increments desertExploration check to see if it reached 100.
We could a single function - incrementDesertExploration - which adds the number to the current exploration and calls setDesertExploration. That last function will also be called by the "look at the desert map" function I checked in. And that is the function that will set quest status to complete.
 
Automated adventuring loads api.php instead of charpane.php, which won't have any of that information.

Ah, I did not know that. Although, I just created a script that did the new desert for me automatically using the charpane.php as a reference point. Maybe it isn't working how I thought it should be...oh well still does it just fine lol.

Edit: I figured it out, never mind.
 
Last edited:

lostcalpolydude

Developer
Staff member
Quest tracking also requires updating questslog.txt and questscouncil.txt, and maybe other things, since the pyramid no longer has a ridiculously-high number of steps.
 

Darzil

Developer
Sorry, should have got the code earlier as I did some of this today. If you complete via Exploration you get a new area unlocked message for Small Pyramid.

Also we should probably add the wormride link to whichever of Drum Machine and Worm Hooks is obtained last, rather than always after Worm Hooks. In this case I got Drum machine after Worm Hooks.
 

Veracity

Developer
Staff member
Revision 13065 sets the PYRAMID quest progress to step11 whenever desertExploration hits 100, no matter how that happens.
 

Bale

Minion
questL11Pyramid should not be incremented by worm-riding manual page

Every time I get a worm-riding manual page, KoLmafia increments questL11Pyramid from started to step7. Then I refresh quests and it drops back down to started.

Obviously this is a holdover from the old Desert Quest.
 
Top