Character Info Toolbox

Erich

Member
What part of the css needs to be looked at? I don't have professional knowledge of it, but I used to do css / html based web design, so I've got a decent understanding (no promises). I know that that particular... "bug"? I guess? was experienced by me a few times, but I forgot when and why

edit: ah, basement, I'll test with a multi later.
 

Bale

Minion
The picture Defying provides explains the problem. That just happens sometimes. I have no idea why. Refreshing the pane (with the little green refresh link at the bottom) fixes the problem.


If there's anything you need to know, feel free to ask and I'll do my best to provide :)

There is a specific problem I would like to ask you about. When KoL is close to rollover there is a 30 minute timer that counts down at the top of the screen. Unfortunately since the css position is absolute none of the elements are pushed lower when that timer appears, so the are positioned right on top of it. I tried changing the position to relative (except for the floor which needed to stay absolute to anchor to the bottom), but doing that screwed up the scroll bar that appears when there are a lot of effects in the walls. How can I fix that?
 

ereinion

Member
I have absolutely no idea :) You should probably ask someone who is actually skilled at scripting, the help I was offering was mainly providing data from within a AoB run.
 

Bale

Minion
Sorry. I thought you were offering help with CSS also. My mistake. If anyone else knows the answer to that puzzle I would be grateful.

I do have a question about AoB. Checking my code it seems that the error is somewhat puzzling and suggests that KoL has changed it since then. The next time Clancy has a question, please disable chit and copy the source code from the charpane. Paste it here so I can see what has changed.
 
Last edited:

Bale

Minion
I believe I found the Clancy bug. It's extremely puzzling that the bug exists. Please download and test the version attached to this post.

It is recommended that Jarlsberg players do NOT use this version because it will not work properly for companions. Sorry, there's a bit of half-written code which would keep me from releasing it to people who aren't in Boriscore.
 
Last edited:

Erich

Member
When I get home from work, I'll ascend a multi into boris to check it out, if in the interim no one else does (~9:30pm EST)
 

ereinion

Member
I have a character in Boris who can check that, will log him on in a couple of hours. So no need to ascend into boris unless you want to :)
 

EdFox

Member
I'm running Boris right now and post 566's version fixes the Clancy bug from the previous version for me. I don't get a wide version of the character frame in the middle frame anymore when clicking Clancy and Clancy's quest text showed correctly.
 

ereinion

Member
Yeah, seems you fixed the Clancy issue with the update.

Anyway, here's the html for the charpane when Clancy has a quest (the lvl 7 one, if it matters):
HTML:
<html><head>
<link rel="stylesheet" type="text/css" href="/images/styles.css">
<style type="text/css">
    #nudges div { position: relative; padding: 0px; }
    #nudges div .close { position: absolute; top: -2px; right: -10px; border: 1px solid black; }
</style>
<script language="Javascript" src="/basics.js"></script><link rel="stylesheet" href="/basics.css" /></head>
<script src="/images/scripts/window.js"></script>
<script type="text/javascript" src="/images/scripts/jquery-1.3.1.min.js"></script>
<script language=Javascript src="/images/scripts/keybinds.min.2.js"></script>
<script language=Javascript src="/images/scripts/window.20111231.js"></script>
<script language="javascript">function chatFocus(){if(top.chatpane.document.chatform.graf) top.chatpane.document.chatform.graf.focus();}
if (typeof defaultBind != 'undefined') { defaultBind(47, 2, chatFocus); defaultBind(190, 2, chatFocus);defaultBind(191, 2, chatFocus); defaultBind(47, 8, chatFocus);defaultBind(190, 8, chatFocus); defaultBind(191, 8, chatFocus); }</script><script language=Javascript src="/images/scripts/jquery-1.3.1.min.js"></script>
    <script type="text/javascript">
    var turnsplayed = 31250;
var turnsthisrun = 257;
var rollover = 1361158201;
var rightnow = 1361146336;
var playerid = 1968085;
var pwdhash = "870b18ad59cd09458976ca60ed92b72f";
var hide_nudges = true;
$(document).ready(function () {
    $('.showall').live('click',function () {
        var hidden = $(this).attr('rel');
        var hd = hidden.split(/,/);
        for (var i=0; i< hd.length; i++) {
            deleteCookie(hd[i], '');
        }
        document.location = 'charpane.php?foo=' + escape(Math.random());
    });
    if (hide_nudges) $('#nudges td div').hover(
        function () {
            if (!hide_nudges) return;
            var ht = '<a href="#" class="close"><img alt="Hide" title="Hide"  src="/images/closebutton.gif" /></a>';
            var c = $(ht);
            $(this).append(c);
            c.click(function () {
                var key = $(this).parents('tr:first').attr('rel');
                $(this).parents('tr:first').remove();
                setCookie(key, 1);
            });
        },
            function () {
                if (!hide_nudges) return;
                $(this).find('.close').remove();
            }
    );
});
</script>
<script language=Javascript src="/images/scripts/charpane.4.js"></script>
<script type="text/javascript" src="/images/scripts/cookie.20121112.js"></script>
<script type="text/javascript">
jQuery(function ($) {
    $(window).resize(function () {
        var winW = 300;
        if (document.body && document.body.offsetWidth) { winW = document.body.offsetWidth; }
        if (document.compatMode=='CSS1Compat' && document.documentElement && document.documentElement.offsetWidth ) { winW = document.documentElement.offsetWidth; }
        if (window.innerWidth && window.innerHeight) { winW = window.innerWidth; }
        setCookie('charpwd', winW, 365, true);
    });
})
</script>
<body onload="updateSafetyText();" bgcolor=white text=black link=black alink=black vlink=black onload='startup();'>
<center id='rollover' class=tiny style='color: red; cursor: pointer;' onClick='doc("maintenance");'></center><center><table align=center><tr><td><a class=nounder target=mainpane href="charsheet.php"><img src="/images/otherimages/boris_avatar.gif" width=60 height=100 border=0></a></td><td valign=center><center><a class=nounder target=mainpane href="charsheet.php"><b>The Conqueror Worm</b></a><br>Level 7<br>Avatar of Boris<table title='1 / 13' cellpadding=0 cellspacing=0 style='border: 1px solid #5A5A5A'><tr><td height=5 width=7 bgcolor=#5A5A5A></td><td width=93 bgcolor=white></td></tr></table></td></tr></table><table align=center><tr><td align=right>Muscle:</td><td align=left><b><font color=blue>66</font> (41)</b><table title='10 / 83' cellpadding=0 cellspacing=0 style='border: 1px solid #5A5A5A'><tr><td height=3 width=6 bgcolor=#5A5A5A></td><td width=44 bgcolor=white></td></tr></table></td></tr><tr><td align=right>Mysticality:</td><td align=left><b><font color=blue>30</font> (27)</b><table title='41 / 55' cellpadding=0 cellspacing=0 style='border: 1px solid #5A5A5A'><tr><td height=3 width=37 bgcolor=#5A5A5A></td><td width=13 bgcolor=white></td></tr></table></td></tr><tr><td align=right>Moxie:</td><td align=left><b><font color=blue>32</font> (23)</b><table title='30 / 47' cellpadding=0 cellspacing=0 style='border: 1px solid #5A5A5A'><tr><td height=3 width=31 bgcolor=#5A5A5A></td><td width=19 bgcolor=white></td></tr></table></td></tr><Tr><td align=right>Fullness:</td><td><b>24</b></td></tr><tr><td align=right>Temulency:</td><td><b>1</b></td></tr></table><center>You'd better keep an eye on your drinking...</center><table cellpadding=3 align=center><tr><td align=center><img src="/images/itemimages/hp.gif" class=hand onclick='doc("hp");' title="Hit Points" alt="Hit Points"><br><span class=black><a style="color:black" title="Restore your HP" href="/KoLmafia/sideCommand?cmd=restore+HP&pwd=870b18ad59cd09458976ca60ed92b72f">101</a> / 125</span></td><td align=center><img src="/images/itemimages/mp.gif" class=hand onclick='doc("mp");' title="Muscularity Points" alt="Muscularity Points"><br><span class=black>13 / 30</span></td></tr><tr><td align=center><img src="/images/itemimages/meat.gif" class=hand onclick='doc("meat");' title="Meat" alt="Meat"><br><span class=black>3,253</span></td><td align=center><img src="/images/itemimages/hourglass.gif" class=hand onclick='doc("adventures");' title="Adventures Remaining" alt="Adventures Remaining"><br><span class=black>14</span></td></tr></table><font size=2><b>Hardcore</b></font><br><br><font size=2><a target=mainpane href="inv_use.php?pwd=870b18ad59cd09458976ca60ed92b72f&whichitem=2682">Detuned Radio</a>: <b>10</b></font><br><br><center id="nudgeblock"><font size=2><a class=nounder href=questlog.php target=mainpane><b>Current Quest:</b></a></font><br><table id="nudges"><tr rel="qn_18037d897ae17c648a43827d4bbb75c7"><td class="small" colspan="2"><div>Get rid of the evil in <b><a class=nounder target=mainpane href="crypt.php">The Cyrpt</a></b>.<p><b><a class=nounder target=mainpane href="inv_use.php?whichitem=4964&pwd=870b18ad59cd09458976ca60ed92b72f">Evilometer:</a> 200</b></div></td></tr></table><p></center><script type="text/javascript">hide_nudges = false;</script><center><font size=2><b><a onclick='if (top.mainpane.focus) top.mainpane.focus();' class=nounder href="manor.php" target=mainpane>Last Adventure:</a></b></font><br><table cellspacing=0 cellpadding=0><tr><td><font size=2><a onclick='if (top.mainpane.focus) top.mainpane.focus();' target=mainpane href="adventure.php?snarfblat=106">The Haunted Gallery</a><br></font></td></tr></table><font size=1><nobr><a onclick='if (top.mainpane.focus) top.mainpane.focus();' target=mainpane href="shore.php">The Shore</a></nobr><br/><nobr><a onclick='if (top.mainpane.focus) top.mainpane.focus();' target=mainpane href="adventure.php?snarfblat=103">The Haunted Conservatory</a></nobr><br/><nobr><a onclick='if (top.mainpane.focus) top.mainpane.focus();' target=mainpane href="adventure.php?snarfblat=101">The Knob Shaft</a></nobr><br/><nobr><a onclick='if (top.mainpane.focus) top.mainpane.focus();' target=mainpane href="adventure.php?snarfblat=104">The Haunted Library</a></nobr></font></center><center><font size=2><p><b>Clancy</b><br><Font size=1>Level <b>6</b> Minstrel</font><br><a target=mainpane href=main.php?action=clancy><img src=/images/otherimages/clancy_1_att.gif width=60 height=100 border=0></a></font></center><center><p><b><font size=2>Effects:</font></b><br><font size=2 color=black>[<a title="I'm feeling moody" href="/KoLmafia/sideCommand?cmd=save+as+mood&pwd=870b18ad59cd09458976ca60ed92b72f" style="color:black">save as mood</a>]</font><br><table><tr><td><img src="/images/itemimages/fortune.gif"></td><td valign=center><font size=2>Fortune Cookie (<a href="/KoLmafia/sideCommand?cmd=counters+deletehash+32152931&pwd=870b18ad59cd09458976ca60ed92b72f">2</a>)</td></tr><tr><td><img src="/images/itemimages/strboost.gif" width=30 height=30  onClick='eff("943ba3b11499412f041807f8a7835d75");'></td><td valign=center><font size=2>Go Get 'Em, Tiger! (<a href="/KoLmafia/sideCommand?cmd=uneffect+Go+Get+%27Em%2C+Tiger%21&pwd=870b18ad59cd09458976ca60ed92b72f" title="Use a remedy to remove the Go Get 'Em, Tiger! effect">6</a>) <a href="/KoLmafia/sideCommand?cmd=use+5+Ben-Gal%E2%84%A2+Balm&pwd=870b18ad59cd09458976ca60ed92b72f" title="Increase rounds of Go Get 'Em, Tiger!"><img src="/images/up.gif" border=0></a></font><br></td></tr><tr><td><a href="shore.php" target="mainpane"><img src="/images/itemimages/dinghy.gif"></a></td><td valign=center><font size=2>The Shore (<a href="/KoLmafia/sideCommand?cmd=counters+deletehash+9672718&pwd=870b18ad59cd09458976ca60ed92b72f">33</a>)</td></tr></table></center><center><font size=1>[<a href="charpane.php">refresh</a>]</font></center></body></html>
Dunno if you need it anymore, but I figured it wouldn't hurt to post it.
 

Bale

Minion
I haven't thoroughly tested the Jarlsberg companion switcher, but I think it should work. I still only have a single companion so it is hard for me to test it. I wasn't sure if I should release this untested, but I'm sure that people are eager to have a fully functional charpane in Jarlsberg so I'm releasing it and I hope that someone will tell me if it works.

Updated to 0.7.6
  • Pretty up display of Jarlsberg's companion.
  • Click on Jarlsberg's companion for a list of other companions you can play with. Click your choice to cast the spell.
  • If you've got a Snow Suit you'll see information on Carrot Nose drops.
  • Fix for Clancy's attention link. There is no fix for Clancy's limited attention span.

Since last version both charpane.ash and chit.css have been changed
Download to /relay directory: View attachment 7415
Download to /relay directory: View attachment 7416



Would you consider a carrot counter? Might be ugly though, if it gets put with an item dropping familiar. Hm. Maybe a mouseover tooltip (x/3 carrots)?

It does get a bit long if used with Stomping Boots, but I think it is okay. Your opinion?
 
Last edited:

Winterbay

Active member
Interestingly enough this version broke my side pane, in that the image is no longer showing up. I have image caching on since I cannot access the image-server form work and in the last version the image did show up, but after updating it no longer shows. The URL gives the image URL as
Code:
http://images.kingdomofloathing.com/adventureimages/adventureimages/jarlcomp1.gif
while the URL for the familiar picker (where the image does show up) is
Code:
/images/itemimages/jarl_eggman.gif
.

Is there any chance of removing all references to images.kingdomofloathing.com and let Mafia decide on where to pick the image for all cases?
 

lostcalpolydude

Developer
Staff member
I feel like it should not be convenient to switch companions, considering the cost. I wasn't going to add anything to mafia for it other than recognizing the effect. I guess if it takes 2 clicks to switch it isn't so bad, hopefully the ingredient cost is also listed.
 

Bale

Minion
Interestingly enough this version broke my side pane, in that the image is no longer showing up. I have image caching on since I cannot access the image-server form work and in the last version the image did show up, but after updating it no longer shows. The URL gives the image URL as
Code:
http://images.kingdomofloathing.com/adventureimages/adventureimages/jarlcomp1.gif
while the URL for the familiar picker (where the image does show up) is
Code:
/images/itemimages/jarl_eggman.gif
.


The image in the familiar picker is the image for the skill while the image in the charpane is the image for the companion. They are two entirely different images so I don't find it even remotely surprising that one can work while the other fails. On my character the Hipopotatomous displays properly at http://images.kingdomofloathing.com/adventureimages/jarlcomp3.gif, but I cannot summon an Eggman so I cannot test to see if it displays. Please tell me the correct url for the eggman's image.




Is there any chance of removing all references to images.kingdomofloathing.com and let Mafia decide on where to pick the image for all cases?

Make a feature request? I'm not even sure what to call that feature. Some images are on images.kingdomofloathing.com while others are on www.kingdomofloathing.com/images and I have no idea why KoL is inconsistent.
 

Erich

Member
It does get a bit long if used with Stomping Boots, but I think it is okay. Your opinion?

I think it looks great. I cant try the boots just yet though, so I don't know how they look.

PS, thanks so much for making the companion box not so ungodly huge. Yay!
 
Last edited by a moderator:

Winterbay

Active member
The image in the familiar picker is the image for the skill while the image in the charpane is the image for the companion. They are two entirely different images so I don't find it even remotely surprising that one can work while the other fails. On my character the Hipopotatomous displays properly at http://images.kingdomofloathing.com/adventureimages/jarlcomp3.gif, but I cannot summon an Eggman so I cannot test to see if it displays. Please tell me the correct url for the eggman's image.

The URL as given for the image (which does show up) in the relay browser without CHIT is:
Code:
http://127.0.0.1:60080/images/adventureimages/jarlcomp1.gif

Make a feature request? I'm not even sure what to call that feature. Some images are on images.kingdomofloathing.com while others are on www.kingdomofloathing.com/images and I have no idea why KoL is inconsistent.

Mafia already does it if you have "Cache images" set to true and replaces all references of kingdomofloathing.com with 127.0.0.1:60080. CHIT has, on line 1563, a direct reference to images.kingdomofloathing.com while nowhere else seem to use a direct reference to the KoL URLs.
 
Top