New Content - Implemented IotM - May 2015 - Mayo Clinic workshed item

thanks! familiar equip:

Code:
--------------------
8276	mayo pump	583654667	mayopump.gif	familiar	t,d	75
Item	mayo pump	Familiar Weight: +5, Familiar Weight: +5
--------------------
 

Bale

Minion
What is up with "Familiar Weight: +5, Familiar Weight: +5"? I know that it says that on the gear description, but what does it mean? Does it actually increase familiar weight by 10 or only 5?
 

Darzil

Developer
Not really sure why, but visiting CampgroundRequest( "workshed" ) doesn't work, perhaps because of the redirect to shop.php?whichshop=mayoclinic. As a result you currently have to manually visit it in relay browser so Mafia knows it is there.

It does look like we aren't following the redirect. Any suggestions, I've not had to address redirects before, and can't see quite where this is going wrong. It looks like we are hitting the logging at the end of GenericRequest.handleServerRedirect(), but I can't see where an actual new request is created by a redirect, or why we aren't doing that.

Code:
class net.sourceforge.kolmafia.request.CampgroundRequest
Connecting to campground.php...

Requesting: http://www.kingdomofloathing.com/campground.php?action=workshed
3 request properties
Field: Cookie = [appserver=www8; PHPSESSID=225vv0knrsm331jn40crnvf086]
Field: User-Agent = [KoLmafia v16.9]
Field: Content-Type = [application/x-www-form-urlencoded]

Retrieving server reply...

Retrieved: http://www.kingdomofloathing.com/campground.php?action=workshed
11 header fields
Field: null = [HTTP/1.1 302 Found]
Field: Date = [Thu, 07 May 2015 08:55:35 GMT]
Field: Content-Length = [0]
Field: Expires = [Thu, 19 Nov 1981 08:52:00 GMT]
Field: Location = [shop.php?whichshop=mayoclinic]
Field: Connection = [keep-alive]
Field: Content-Type = [text/html; charset=UTF-8]
Field: X-Powered-By = [PHP/5.3.3]
Field: Server = [nginx/1.0.15]
Field: Pragma = [no-cache]
Field: Cache-Control = [no-store, no-cache, must-revalidate, post-check=0, pre-check=0]

Redirected: shop.php?whichshop=mayoclinic
Examining Meat and pulls in storage...
 

lostcalpolydude

Developer
Staff member
It looks like adding shouldFollowRedirect() and having it return true will work. I haven't thought about whether there are cases where redirects should not be followed though.
 

Darzil

Developer
Hopefully this works, and follows the redirect for Workshed. r15808. Untested, as I'm Ed.

And thanks, I clearly still have a blindspot for inheritance when checking code.
 

Bale

Minion
Test failed.

Using r15808, but the mayostuff helpers still didn't show up in the consumption manager until I manually visited the workshed
 
Oops, sorry - just realized I only posted the hatchling info. What do you need for the familiar? It's not as simple as getting something from the log, is it?

Separate issue(?), familiar related: it seems that since I've had the baby mayo wasp familiar active, logging in the first time after starting mafia shows all my equipment as (none), then a session refresh gets it right.

Excerpt from debug log:
Code:
Loading character status...
class net.sourceforge.kolmafia.request.ApiRequest
Connecting to api.php...

Requesting: http://www.kingdomofloathing.com/api.php?what=status&for=KoLmafia
3 request properties
Field: Cookie = [appserver=www8; PHPSESSID=ec6at7ut18rt5qtct3mmfef4m3]
Field: User-Agent = [KoLmafia v16.9]
Field: Content-Type = [application/x-www-form-urlencoded]

Retrieving server reply...

Retrieved: http://www.kingdomofloathing.com/api.php?what=status&for=KoLmafia
10 header fields
Field: null = [HTTP/1.1 200 OK]
Field: Cache-Control = [no-store, no-cache, must-revalidate, post-check=0, pre-check=0]
Field: Server = [nginx/1.0.15]
Field: Connection = [keep-alive]
Field: Pragma = [no-cache]
Field: Expires = [Thu, 19 Nov 1981 08:52:00 GMT]
Field: Content-Length = [3164]
Field: Date = [Sun, 10 May 2015 19:23:01 GMT]
Field: X-Powered-By = [PHP/5.3.3]
Field: Content-Type = [text/html; charset=UTF-8]

Retrieving server reply
ResponseText has 3164 characters.
{"playerid":"2422322","name":"fractalnavel","hardcore":"0","ascensions":"109","path":"0","sign":"Vole","roninleft":"0","casual":"0","drunk":"0","full":"0","turnsplayed":"164251","familiar":"195","hp":"957","mp":"744","meat":"373495","adventures":"200","level":"29","rawmuscle":"254771","rawmysticality":"256285","rawmoxie":"623103","basemuscle":"504","basemysticality":"506","basemoxie":"789","familiarexp":"337","class":"6","lastadv":{"id":"155","name":"McMillicancuddy's Farm","link":"adventure.php?snarfblat=155","container":"postwarisland.php"},"title":"29","pvpfights":"100","maxhp":967,"maxmp":1304,"spleen":"0","muscle":671,"mysticality":673,"moxie":1067,"famlevel":23,"locked":false,"limitmode":0,"daysthisrun":"37","equipment":{"hat":"7021","shirt":"7250","pants":"4306","weapon":"6825","acc1":"5460","acc2":"4309","acc3":"6250","container":"7685","familiarequip":"7581","fakehands":0,"cardsleeve":0},"stickers":["3509",0,0],"soulsauce":0,"fury":0,"pastathrall":0,"pastathralllevel":1,"folder_holder":["00","00","00","00","00"],"eleronkey":"5b066b8d86180798d90bb4fa27c2dbec","flag_config":{"devskills":0,"shortcharpane":0,"lazyinventory":"1","compactfights":0,"poppvpsearch":0,"questtracker":0,"charpanepvp":"1","australia":"1","fffights":0,"compactchar":0,"noframesize":0,"fullnesscounter":"1","nodevdebug":0,"noquestnudge":0,"nocalendar":0,"alwaystag":"1","clanlogins":0,"quickskills":0,"hprestorers":0,"hidejacko":0,"anchorshelf":"1","showoutfit":"1","wowbar":"1","swapfam":"1","hidefamfilter":0,"invimages":0,"showhandedness":0,"acclinks":"1","invadvancedsort":"1","powersort":"1","autodiscard":0,"unfamequip":0,"invclose":"1","sellstuffugly":0,"oneclickcraft":0,"dontscroll":0,"multisume":0,"threecolinv":"1","profanity":"1","tc_updatetitle":0,"tc_alwayswho":0,"tc_times":"1","tc_combineallpublic":0,"tc_eventsactive":"1","tc_hidebadges":0,"tc_colortabs":0,"tc_modifierkey":0,"tc_tabsonbottom":0,"chatversion":0,"aabosses":0,"compacteffects":0,"slimhpmpdisplay":0,"ignorezonewarnings":0,"whichpenpal":"3","compactmanuel":0,"hideefarrows":0,"questtrackertiny":0,"questtrackerscroll":0,"autoattack":0,"topmenu":2},"recalledskills":1,"freedralph":1,"mcd":0,"pwd":"afae59170d011359f14f10a5a0a4a7ca","rollover":1431315000,"turnsthisrun":5320,"familiar_wellfed":0,"intrinsics":{"518f53443c261c2b61ea11fe8716a715":["Spirit of Peppermint","snowflake","518f53443c261c2b61ea11fe8716a715","168"],"2283eb9a3ee756de0c56f379307527f6":["Blood Sugar Sauce Magic","saucedrops","2283eb9a3ee756de0c56f379307527f6","1457"]},"familiarpic":"mayowasp","pathname":"","effects":{"91635be2834f8a07c8ff9e3b47d2e43a":["On the Trail","27","snout","","331"],"70b571b8fe1e18020dd5e0974156807f":["Merry Smithsness","5","sad","item:7004","1476"],"1b0f0ec668f5f70c96c4f55de8c61fff":["Soles of Glass","6","glassslipper","","1496"],"4f554939e1de2844d50364f31f4bc224":["Sepia Tan","1","lotion","item:7310","1579"],"f38cd49774c8bf4fb078566bfbcbe1c5":["Human-Insect Hybrid","6","dna","item:7389","1591"],"27568d443d8133a7426995ac22746751":["Human-Goblin Hybrid","6","dna","item:7395","1597"],"0156026f7efd2eed62873dd94bcbe203":["Force of Mayo Be With You","194","blankoutglob","","1829"]}}
Unexpected error, debug log printed.
class java.lang.NullPointerException: null
java.lang.NullPointerException
	at net.sourceforge.kolmafia.FamiliarData.<init>(FamiliarData.java:124)
	at net.sourceforge.kolmafia.FamiliarData.<init>(FamiliarData.java:116)
	at net.sourceforge.kolmafia.FamiliarData.registerFamiliar(FamiliarData.java:459)
	at net.sourceforge.kolmafia.request.CharPaneRequest.parseStatus(CharPaneRequest.java:1370)
	at net.sourceforge.kolmafia.request.ApiRequest.parseStatus(ApiRequest.java:360)
	at net.sourceforge.kolmafia.request.ApiRequest.parseStatus(ApiRequest.java:331)
	at net.sourceforge.kolmafia.request.ApiRequest.parseResponse(ApiRequest.java:169)
	at net.sourceforge.kolmafia.request.GenericRequest.processResponse(GenericRequest.java:2301)
	at net.sourceforge.kolmafia.request.GenericRequest.retrieveServerReply(GenericRequest.java:2249)
	at net.sourceforge.kolmafia.request.GenericRequest.retrieveServerReply(GenericRequest.java:1877)
	at net.sourceforge.kolmafia.request.GenericRequest.execute(GenericRequest.java:1535)
	at net.sourceforge.kolmafia.request.GenericRequest.run(GenericRequest.java:1428)
	at net.sourceforge.kolmafia.request.ApiRequest.run(ApiRequest.java:138)
	at net.sourceforge.kolmafia.request.ApiRequest.updateStatus(ApiRequest.java:103)
	at net.sourceforge.kolmafia.request.ApiRequest.updateStatus(ApiRequest.java:91)
	at net.sourceforge.kolmafia.KoLmafia.refreshSessionData(KoLmafia.java:780)
	at net.sourceforge.kolmafia.KoLmafia.refreshSession(KoLmafia.java:708)
	at net.sourceforge.kolmafia.session.LoginManager.initialize(LoginManager.java:209)
	at net.sourceforge.kolmafia.session.LoginManager.doLogin(LoginManager.java:95)
	at net.sourceforge.kolmafia.session.LoginManager.login(LoginManager.java:79)
	at net.sourceforge.kolmafia.request.LoginRequest.processLoginRequest(LoginRequest.java:443)
	at net.sourceforge.kolmafia.request.GenericRequest.handleServerRedirect(GenericRequest.java:2008)
	at net.sourceforge.kolmafia.request.GenericRequest.retrieveServerReply(GenericRequest.java:1887)
	at net.sourceforge.kolmafia.request.GenericRequest.execute(GenericRequest.java:1535)
	at net.sourceforge.kolmafia.request.GenericRequest.run(GenericRequest.java:1428)
	at net.sourceforge.kolmafia.request.LoginRequest.run(LoginRequest.java:269)
	at net.sourceforge.kolmafia.RequestThread.postRequest(RequestThread.java:286)
	at net.sourceforge.kolmafia.RequestThread.postRequest(RequestThread.java:249)
	at net.sourceforge.kolmafia.swingui.LoginFrame$LoginPanel.doLogin(LoginFrame.java:343)
	at net.sourceforge.kolmafia.swingui.LoginFrame$LoginPanel.actionConfirmed(LoginFrame.java:299)
	at net.sourceforge.kolmafia.swingui.panel.GenericPanel$ConfirmedListener.execute(GenericPanel.java:627)
	at net.sourceforge.kolmafia.swingui.listener.ThreadedListener.run(ThreadedListener.java:239)
	at net.sourceforge.kolmafia.RequestThread$SequencedRunnable.run(RequestThread.java:418)
	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

Retrieving character data...
class net.sourceforge.kolmafia.request.CharSheetRequest
Connecting to charsheet.php...
 

Veracity

Developer
Staff member
Well, that won't happen any more, now that I've added the familiar, but thanks for the DEBUG log; the stack trace should allow us to fix FamiliarData.registerFamiliar.
 

Darzil

Developer
Well, Choice 1075 is Mmmmmmayonnaise and has only one choice, choice 1. Normally we'd make that the default, but should we not in this case as people may want to see it, and it's once ever per account?
 

Darzil

Developer
Seems to be have 101 Blood Mayo or higher, fight Mayonaise Wasp in Daily Dungeon and be hit by it (ie don't stun or stagger it for a round where you don't kill it) to get it in you. Then 300-400 adventures later (or something) when in adventure.php (probably) you'll get the non-combat where you get the hatchling. This can be in another ascension.
 

Theraze

Active member
Just a note, since it doesn't seem to have been noted in the Mayo plurals of 15823:
The plural of mayolus is apparently mayoli.
 

Veracity

Developer
Staff member
Since I want the familiar, I decided to do a run with this thing. It's OK, if gross.

Just for fun, I made a mayolus today:

Code:
eat 1 Dinsey food-cone
You gain 13 Adventures
You gain 20 Muscleboundness
You gain 19 Mysteriousness
You gain 18 Smarm
You acquire an effect: The Dinsey Way (30)
You acquire an item: mouth-watering mayolus
You lose some of an effect: Got Milk (-2)

buy 1 Mayodiol for 950 each from The Mayo Clinic
You spent 950 Meat
You acquire an item: Mayodiol

use 1 Mayodiol

eat 1 mouth-watering mayolus
You gain 7 Adventures
You gain 11 Beefiness
You gain 39 Mysteriousness
You gain a Mysticality point!
You gain 14 Smarm
You gain a Moxie point!
You gain 1 Drunkenness
You lose an effect: Got Milk (-1)
Not bad for a 1-drunk consumable.

HOWEVER, although we see that my session log shows the acquisition, when I searched for it in the open Food pane of the Item Manager (since I'd eaten the other food from there), it was not there. I closed the Item Manager and re-opened it, and there it was.
 
Top