PDA

View Full Version : Bug - Fixed Baby Bugged Bugbear's cleesh message isn't logged



stupac2
04-06-2010, 06:18 AM
I've been trying to spade the BBB, and I've found that the message given when it cleeshes, "<name> glares at your oppError: currMonster unreadable varRenum332|333|334", isn't written to session logs. Additionally the name of the monster doesn't change, mafia records the old monster even once it has been changed.

jasonharper
04-06-2010, 09:10 AM
Not having a BBB myself, I can't do anything about this without the actual HTML of the event. I need to match both the cleesh message, and the name of the amphibian the monster turns into, including any HTML tags that might be present; text copied off of the browser page doesn't contain sufficient detail to do this.

stupac2
04-06-2010, 03:03 PM
Here's what I think is the relevant text:


<table width=95% cellspacing=0 cellpadding=0><tr><td style="color: white;" align=center bgcolor=blue><b>Combat: Round 13!</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td><center><table><tr><td><img id='monpic' src="http://images.kingdomofloathing.com/adventureimages/beanbat.gif" width=100 height=100></td><td valign=center>You're fighting <span id='monname'>a beanbat</span><font size=2 color=gray><br />HP: 37, Atk: 51, Def: 51<br />Drops: enchanted bean (50)</font></td></tr></table><br><table><tr><td valign=center><img src="http://images.kingdomofloathing.com/itemimages/spice.gif" width=30 height=30 alt="spices" title="spices"></td><td valign=center><p>You shake some spices into your opponent's eyes, doing 1 damage. It winces.</td></tr></table><script>newpic("http://images.kingdomofloathing.com/adventureimages/salamander.gif", "a salamander");</script>Buggy glares at your oppError: currMonster unreadable varRenum332|333|334<div id='fightform' class='hideform'><p><center><table><form name=attack action=fight.php method=post><input type=hidden name=action value="attack">

I've attached the whole page as well.

jasonharper
04-06-2010, 03:41 PM
Thanks; that did contain the info I need.

Actually, it looks like both normal CLEESHing and the BBB's equivalent can be detected generically, along with any future variations, by looking for the script call to change the monster's image and name (rather than the text displayed to the player). However, that may or may not also trigger when a Boba Fettucini changes a monster into a sandworm - and I don't currently have a PM character to check. Could someone who has a 10 lb. Fettucini please post the raw HTML page source from a summoning that results in a sandworm?

StDoodle
04-06-2010, 04:29 PM
I've never used that particular PM entity, but I'm currently in a lazy PM run that is near its end, so I can get that for you in the next day or two if no one beats me to it.

heeheehee
04-06-2010, 04:47 PM
Except for the getting to level 10 part. I have a Pasta alt that's been sitting around in aftercore for an eternity; I should be able to get that... within a week... =P

jasonharper
04-06-2010, 04:48 PM
It would take you more than a day or two to get a Fettucini leveled up to 10 lbs., if you don't have one already - the test would require 6 days without Nemesis rewards, 4 days with.

heeheehee
04-06-2010, 04:54 PM
Wouldn't it be 7 with, 10 without?

jasonharper
04-06-2010, 05:26 PM
Actually, 11 without, I think - the first possible sandworm event would be the first summoning on the 11th day (was mistakenly counting 50 summons). 4 with, because the Bandolier gives you +1 pasta guardian exp, so 50 summons @ 15 per day.

stupac2
04-06-2010, 05:46 PM
Would it be possible to get the ability to record this message specifically before then? I'd ideally like to spade this cleeshing mechanism some time tonight.

jasonharper
04-06-2010, 06:49 PM
You can determine the number of CLEESHes that occurred by counting the eye of newt, etc. drops, can't you? They're all 100% drops, and presumably the newts won't be killing you...

stupac2
04-07-2010, 01:47 AM
Not really, because if you don't know what combat round it happened in your estimate for the odds will be slightly off.

StDoodle
04-08-2010, 03:30 AM
FWIW, regarding the Boba / Sandworm thing, I'm about 2-3 days off of this; unless someone else is ahead of me on this, don't worry 'bout it.

heeheehee
04-08-2010, 04:37 AM
My alt's at 70 experience (as of post-rollover), so it'll be close (I'll be one summon short after tomorrow -- gah!). So yeah, it'll be close.

Bale
04-08-2010, 04:43 AM
Ohhh! RACE!

StDoodle
04-08-2010, 05:47 PM
Actually, heeheehee's closer than I am, so I'll just be the backup in case something borks. ;)

heeheehee
04-10-2010, 10:11 AM
And... whaddaya know? Turns out I missed yesterday (stupid stupid stupid). So one more summon 'til we have the HTML (after next rollover, fo sho'). Unless StD's Boba Fettucini is close enough.

StDoodle
04-10-2010, 03:03 PM
My ghost is at 78 experience, so two more days for me. However, I'll be in aftercore a little bit to work on my script anyway, so it's not a problem if heeheehee forgets again. Either way.

StDoodle
04-11-2010, 04:29 PM
Ok, I'm able to summon a sandworm with my PM ghost... problem is, I'm not sure how to get the "raw" html requested. I have the results of viewing the frame source (w/o GM) saved, but was hoping to have a consult script set to automatically save the results of visit_url(), which should be the "raw" html. Problem is, that would mean being able to summon my ghost from a consult script, which I have no idea how to do... help?

slyz
04-11-2010, 04:44 PM
For such a one-time thing, why isn't the raw HTML you have saved already enough?

To summon the ghost from a consult script, I guess the easiest way would be to look at First Things First:


visit_url("fight.php?action=summon");

StDoodle
04-11-2010, 04:55 PM
For such a one-time thing, why isn't the raw HTML you have saved already enough?

I dunno... figured it probably was, but didn't want to use up all my summons for the day, then find out I was wrong.


To summon the ghost from a consult script, I guess the easiest way would be to look at First Things First:


visit_url("fight.php?action=summon");
Awesome, thanks!

Edit: ok, I'm an idiot when it comes to consult scripts, and couldn't get that to work... but here's the results of viewing the frame source, hope it helps.

jasonharper
04-11-2010, 06:48 PM
Great! Looks like the sandwormification is using exactly the same script code as CLEESH and the BBB. r8375 should recognized them all, and any future transmogrifications, without having to match any text that might be affected by haiku, preposition sword, etc. The log message will be something like:
Round 3: your opponent becomes a newt!