Bug - Fixed api.php?what=status parse error: JSONObject["locked"] is not a Boolean

rlbond86

Member
I am getting this message in my CLI:

api.php?what=status parse error: JSONObject["locked"] is not a Boolean.

Then it spits out the JSON object from api.php:
Code:
{"familiar_wellfed":0,
"turnsthisrun":116,
"stickers":
[
    0,
    0,
    0
],
"mcd":0,
"moxie":66,
"mysticality":48,
"equipment":
{
    "acc2":"4644",
    "acc1":"5042",
    "acc3":"4697",
    "fakehands":0,
    "familiarequip":"4445",
    "cardsleeve":0,
    "container":"5738",
    "pants":"4696",
    "weapon":"2417",
    "hat":"5648"
},
"turnsplayed":"138358",
"folder_holder":
[
    "22",
    "24",
    "26",
    "00",
    "00"
],
"freedralph":0,
"level":"6",
"famlevel":23,
"hardcore":"0",
"rollover":1381203003,
"rawmuscle":"646",
"pvpfights":"20",
"maxmp":107,
"flag_config":
{
    "autodiscard":0,
    "compacteffects":0,
    "unfamequip":0,
    "nodevdebug":0,
    "invadvancedsort":"1",
    "alwaystag":0,
    "slimhpmpdisplay":0,
    "anchorshelf":0,
    "hideefarrows":0,
    "showoutfit":"1",
    "fullnesscounter":"1",
    "autoattack":0,
    "multisume":"1",
    "compactchar":0,
    "devskills":0,
    "tc_tabsonbottom":0,
    "poppvpsearch":0,
    "sellstuffugly":0,
    "threecolinv":0,
    "tc_combineallpublic":0,
    "whichpenpal":"2",
    "hprestorers":0,
    "questtracker":0,
    "compactmanuel":0,
    "tc_alwayswho":"1",
    "oneclickcraft":0,
    "dontscroll":0,
    "invimages":0,
    "tc_hidebadges":0,
    "tc_times":"1",
    "showhandedness":0,
    "swapfam":0,
    "quickskills":"1",
    "clanlogins":"1",
    "hidejacko":0,
    "ignorezonewarnings":0,
    "wowbar":"1",
    "tc_colortabs":"1",
    "aabosses":0,
    "powersort":"1",
    "tc_modifierkey":"1",
    "lazyinventory":0,
    "nocalendar":0,
    "tc_eventsactive":0,
    "tc_updatetitle":0,
    "chatversion":0,
    "compactfights":"1",
    "fffights":"1",
    "topmenu":2,
    "profanity":"1",
    "acclinks":"1",
    "noframesize":0,
    "noquestnudge":0,
    "invclose":0,
    "charpanepvp":"1"
},
"basemysticality":"26",
"rawmoxie":"1454",
"roninleft":"884",
"class":"5",
"effects":
{
    "b757f23feb7f08bd250f63586e03cf4a":
        [
        "The Sonata of Sneakiness",
        42,
        "sonata",
        "skill:6015",
        162
        ],
    "0bf172ccba65be4fdc4c0f908325b5c1":
        [
        "Everything Looks Yellow",
        34,
        "eyes",
        "",
        "790"
        ],
    "ac32e95f470a7e0999863fa0db58d808":
    [
        "Empathy",
        16,
        "empathy",
        "skill:2009",
        "50"
    ],
    "173a9c4b4bbef78643fe4ec1a93b1cfc":
    [
        "Smooth Movements",
        72,
        "footprints",
        "skill:5017",
        165
    ]
},
"playerid":"2118056",
"familiarpic":"spanglepants",
"lastadv":
{
    "id":"242",
    "container":"pandamonium.php",
    "link":"adventure.php?snarfblat=242",
    "name":"The Laugh Floor"
},
"sign":"Vole",
"adventures":"125",
"spleen":"12",
"locked":"fight",
"basemoxie":"38",
"hp":"84",
"intrinsics":
{
    "846b5d2c960c2a6bd19ed296425fc41e":
    [
        "Gaze of the Trickster God",
        "gaze_t",
        "846b5d2c960c2a6bd19ed296425fc41e",
        "771"
    ]
},
"drunk":"0",
"title":"6",
"daysthisrun":"3",
"recalledskills":0,
"full":"15",
"meat":"6937",
"name":"RLBond86",
"casual":"0",
"path":"2",
"rawmysticality":"683",
"basemuscle":"25",
"ascensions":"62",
"familiarexp":"77",
"mp":"107",
"muscle":47,
"familiar":"152",
"pwd":"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"pathname":"Teetotaler",
"maxhp":93,
"eleronkey":"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"}

In particular, the key "locked" is associated with value "fight".
 

lostcalpolydude

Developer
Staff member
If "locked" can be "false", "choice", or "fight", then it seems to be showing whether you are locked out of doing other actions. I just checked the reanimator choice thing, and it gives "cancelable-choice" there.
 

Veracity

Developer
Staff member
If "locked" can be "false", "choice", or "fight", then it seems to be showing whether you are locked out of doing other actions. I just checked the reanimator choice thing, and it gives "cancelable-choice" there.
By the way - this looks like it could be useful. We wouldn't have to build in a list of choices that you can walk away from, if we had this info always available to us.

We do not get api.php when adventuring in the Relay Browser, so we would not have this available to us in that case, unfortunately. So, maybe not. Pity.
 
Top