BatMan Relay -- more info, less clicking

I'm finding that sometimes BatMan won't display entangling noodles in my Action table. It's intermittently there and not there, and I'm not really sure how to go about debugging it. I can switch to the KoL tab and use it, but it's a little irritating. How can I help chase this bug down?

Edit: this seems to be related to BatMan "queuing" noodles up, perhaps for that little lightbulb icon? Does this make batman think, for the purposes of the action table, that noodles has already occurred?
 
Last edited:
So the script doesn't load beyond the words "Bat-Computer Calculating" using Firefox 25 on Ubuntu. I have NoScript, but 127.0.0.1 is allowed and it still doesn't work when set to allow script globally. I opened the firefox web tools to look for suspicious things. Stand outs
Code:
[21:39:40.172] GET http://127.0.0.1:60080/jquery1.10.1.min.js [HTTP/1.1 404 Not Found 2ms]
[21:39:40.852] GET http://127.0.0.1:60080/jquery1.10.1.min.js [HTTP/1.1 404 Not Found 3ms]
[21:39:40.084] Expected 'none' or URL but found 'alpha('.  Error in parsing value for 'filter'.  Declaration dropped. @ http://127.0.0.1:60080/batman.css:211

I tried to delete the script and readd it. I think the svn is missing one of the jquery files.
Code:
> svn delete batman-re

Uninstalling project...
relay/adventure.ash => DELETED
relay/batman.css => DELETED
relay/jquery.dataTables.min.js => DELETED
relay/fight.ash => DELETED
relay/BatMan_RE.ash => DELETED
relay/batman.js => DELETED
Project uninstalled.

> svn checkout https://svn.code.sf.net/p/batman-re/code/

Starting Checkout...
Validating repo...
Repo validated.

A https://svn.code.sf.net/p/batman-re/code/dependencies.txt
A https://svn.code.sf.net/p/batman-re/code/relay
A https://svn.code.sf.net/p/batman-re/code/relay/jquery.dataTables.min.js
A https://svn.code.sf.net/p/batman-re/code/relay/BatMan_RE.ash
A https://svn.code.sf.net/p/batman-re/code/relay/adventure.ash
A https://svn.code.sf.net/p/batman-re/code/relay/batman.css
A https://svn.code.sf.net/p/batman-re/code/relay/fight.ash
A https://svn.code.sf.net/p/batman-re/code/relay/batman.js
https://svn.code.sf.net/p/batman-re/code
At revision 17

Successfully checked out working copy.
Pushing local updates...
batman.js => /home/julian/.kolmafia/relay/batman.js
fight.ash => /home/julian/.kolmafia/relay/fight.ash
batman.css => /home/julian/.kolmafia/relay/batman.css
adventure.ash => /home/julian/.kolmafia/relay/adventure.ash
BatMan_RE.ash => /home/julian/.kolmafia/relay/BatMan_RE.ash
jquery.dataTables.min.js => /home/julian/.kolmafia/relay/jquery.dataTables.min.js
Done.http://blog.jquery.com/2006/05/29/svn-access-to-jquery/
Requests complete.

Is there anything else I can do to identify the problem?

Edit: found it. The script wants jquery1.10.1.min.js, but what I got from the site is jquery-1.10.1.min.js, with a hypen. Manually added the file for now.
Would it be possible or helpful for scripts to depend on jquery's svn? I found the address at http://blog.jquery.com/2006/05/29/svn-access-to-jquery/
 
Last edited:
Code:
[6224] The Outer Compound
Encounter: guard turtle
Round 0: fluxxdog loses initiative!
Round 1: Travius Froop takes a pull on the hookah, and immediately goes into a coughing fit, blowing a cloud of smoke in your face. Since this is magic smoke, instead of giving you cancer (or, perhaps in addition to giving you cancer), it gives you an effect:
You acquire an effect: Spell Transfer Complete (duration: 6 Adventures)
1 HP costs 0.041μ. ( 1,023 / 1023 )
1 MP costs 8μ. ( 124 / 638 )
ATT: 236 (6% × 5.21, death in 1023)
DEF: 222 (95.45% × 458.72 (25), win in 1)
HP: 241, Value: 978.75 μ, RES: 0
Round 1: fluxxdog executes a macro!
Round 1: fluxxdog casts APPRIVOISEZ LA TORTUE!
Round 2: Wally rubs a little beeswax on your lips. Even though it's really none of your beeswax, it's pretty refreshing.
Round 2: You gain 8 hit points.
Round 2: fluxxdog casts APPRIVOISEZ LA TORTUE!
Round 3: Wally rubs a little beeswax on your lips. Even though it's really none of your beeswax, it's pretty refreshing.
Round 3: You gain 9 hit points.
You lose 1 hit point
Round 3: fluxxdog casts APPRIVOISEZ LA TORTUE!
Round 4: Wally rubs a little beeswax on your lips. Even though it's really none of your beeswax, it's pretty refreshing.
Round 4: You gain 9 hit points.
You lose 35 hit points
Round 4: fluxxdog casts APPRIVOISEZ LA TORTUE!
You lose 108 hit points
Round 5: fluxxdog casts APPRIVOISEZ LA TORTUE!
Loading character status...<==Start of my aAS
When BatMan does things behind the scenes, it doesn't let you see the results. It just looks like the start of the battle and BatMan just fails. This happens with the gremlins as well. When BAtMan does this, we should be seeing something is happening, whether it's successful taming, grabbing molybdenum, or otherwise.
 
KoLmafia now has a is_banished(monster) function built in. It might be a good idea to swap it for the one you wrote.
 
Has somebody worked on integrating that? Would just cutting the function from the script work-around the error
Code:
[COLOR=red]Function 'is_banished( monster )' overrides a library      function (fight.ash, line 26)[/COLOR]
 
Yup. Until an official release is pushed, deleting or commenting out the function will fix that. No idea when the script will be updated. Zarqon may be suffering from burnout, so patience please.
 
Latest update incorporates the is_banished() function, as well as allowing you to enable/disable BatMan RE per character without installing/uninstalling it. The button to disable is in the Quick Menu, under the bat icon.

@jbouzanquet: That jquery file is now included with ZLib rather than BatMan RE.
 
Awww, warm fuzzies guys, thanks. There was really just too much going on in the months leading up to the new year.

Working on BatBrain right now, adding some of the (relatively) new content. Looks like I'll have better support for warbears in time for them to disappear. Will still help for faxputtying, though.
 
r20 Update

This update is just a pile of more helpful links for the Adventure Again box. I'm really finding this script to be an indispensable ascension tool these days -- due to BatMan RE I'm needing to click back to the CLI less and less often.

  • Arid Desert: Show current exploration level.
  • A-Boo Peak: Use clues link, and maximize spooky/cold res link.
  • Dungeons of Doom: Links to use boxes if you have them.
  • Mer-kin Library: Show dreadscroll clues spoilers.
  • Mer-kin Elementary School (also the Library): Show current vocabulary skill, with use wordquiz link when appropriate.

Enjoy!
 
r21 Update

Before my burnout, I was starting to implement some supercool features into this script. I mean, some more supercool features. I've now completed implementing 1.5 of them and am calling it good enough to post an update.

First, there's a new menu item in the Quick Menu -- the macros menu. This simply gives you quick access to your saved macros, since due to this script you would otherwise have to click the "KoL" tab to access them, which gets tiring extremely quickly.

Second, when you've finished combat, I've added the initial framework for a semirare helper. When you're getting close to needing to make a decision (i.e. eat a cookie or actually get your semirare), a cookie menu will appear beneath the Adventure Again box. Presently, this just contains a countdown to your semirare counter, which in itself is helpful to avoid clicking through your semirare. However, the next step will be a table of all possible semirares, possibly with suggestions toward the top. If your counter is expiring, the list of semirares will include links to get them. Pretty sweet, yo.

Aside from those two updates, we simply have a bunch more Adventure Again box additions:

  • Arid Desert: Link to equip uv-resistant compass.
  • Smut Orc Logging Camp: Add links to equip loadstone and logging hatchet if you have them.
  • Haunted Kitchen: Show how many drawers you will open given your current resistances, and provide link to maximize the relevant resistances.
  • Haunted Billiards Room: Provide a breakdown of current pool skill from various sources.
  • Hidden Temple: Link to use stone wool, of course.
  • Black Forest: Link to equip blackberry galoshes. Automatically create bird familiar hatchlings if you have the components.
  • Junkyard zones: The links to visit Yossarian in a specific outfit now drop you back at the Junkyard so you can click the next zone.

Enjoy!
 
Hey zarqon,

Do you have any plans to make the frames added by this script resizable? Sometimes I have trouble reading Jick's awesome writing, as your script covers up some of the text. Honestly, I'd be perfectly happy if you just threw a scrollbar in the main text section of combat if it overflows.

If you don't have any plans to do this, I'll look at hacking something up for personal use, but you'd probably do a much better job of it.
 
All the content should be scrollable above the Actions Table. It scrolls for me using both the mousewheel and the scroll bar. Is it not scrolling for you?
 
All the content should be scrollable above the Actions Table. It scrolls for me using both the mousewheel and the scroll bar. Is it not scrolling for you?

No, it isn't doing that for me. If I play on my desktop and fullscreen the window, it isn't an issue. However, when I run the relay browser in a window, or when I use it fullscreen on my Surface Pro as in this screenshot, I don't have any scrollbar.

batman-re.PNG

The surface pro lacks a scroll wheel, but when I try to use my mouse's scroll wheel on the windowed desktop, nothing happens either.
For reference, I'm using Chrome on Windows in both cases.
 
I'm also using Chrome on Windows. I note you have the mafia combat buttons enabled, so I'll try enabling that and see if I can duplicate. Non-scrollable content is no good.
 
I'm also using Chrome on Windows. I note you have the mafia combat buttons enabled, so I'll try enabling that and see if I can duplicate. Non-scrollable content is no good.

I doubt it's caused by this, but I'm also overriding the character pane with CHIT. I've got a few other relay scripts as well, but I don't believe that any of them affect the combat page.

EDIT: Just turned off combat buttons for now as a temporary fix, and scrolling is back in action on my desktop. I'll try my surface in a few, but I expect them to work the same. Honestly, the combat buttons are occasionally useful, but I might as well just use the Batman-RE table.
 
Last edited:
Back
Top