So, with the CAB enabled, the method of detecting combat completion has to be entirely different, and inaccessible and nonfunctional content is the majority of your page load when combat is finished.
Also, as I discovered today, all the content is removed from the body tag because it's all placed in a fixed-position "content" div. There is no content left in the body.
BatMan was adding a 300-pixel bottom margin to the body so that all the content would be scrollable above the table. Since the body had a size of 0 and no content, however, adding that margin with the CAB enabled was pointless.
Ok, I thought.
I will add the margin to the bottom of the content div instead. But only with the CAB enabled of course, because without it enabled all the content is in the body instead of a fixed div.
Trying that out made all the content disappear! Because the content div is positioned at the bottom of the page, so adding a bottom margin pushes the content up and beyond the visible frame.
The next solution was to try positioning the bottom not at 0, but instead at the
top of the table div. This worked, but resulted in a lot of wasted space. Plus I'd spent some time earlier making the non-table parts of the Action Table a bit translucent, so you could see that the content went on and have an immediately visible clue that you could scroll long content above the table. I didn't want it to appear that there were two windows stacked, but rather that there was one window with a box hovering over its lower portion.
My final solution was hackish, but possibly the best given what I had to work with. I added spacer.gif (the blank 1x1 image KoL itself uses for CSS-based image maps and such) at the end of the content, and set its height to 300.
My dream is that someday fight.php will have a content div in the body, regardless of whether you are using the CAB. Additionally, it would have some comments:
HTML:
<!-- current round: 1 --><!-- fight finished: no -->
It would be a happier world. But alas, I know it is only a dream.
After EWWWWWWWing so much that I was actually just too tired to do it anymore, I crawled back to my computer and posted this update. Content now scrolls properly regardless of CAB enablement.
Additionally, the following updates made it in:
- 8-Bit Realm: The table of pixels is useful even after you have your digital key, so always show it.
- Twin Peak: Show which tests you have left, whether you can pass them, and if not, give links to maximize relevant stats.
- The Hidden Hospital: Show image links to equip any unequipped doctor gear.
- Anger/Fear/Doubt/Regret Man's Levels: Spoilers for the tests, as well as your current relevant stats.
- Don't add a duplicate CLI box now that CLI Links is already adding it.
- Don't bother altering KoL's runaway form to automatically repeat since Run Away is now in opts.
Enjoy!
@Fluxxdog: I do have a vague plan to add a macro menu to BatBrain. You would have three options: 1) perform your previous fight again (all the same actions you just took vs. the previous monster, sent as a single macro), 2) perform your previous fight
vs. this specific monster again, and 3) perform one of your pre-made combat macros. The first two options are presently impossible without changes to happenings tracking in BatBrain, but the third option is possible right now. I'll look into adding that for the next update. Also, you may want to check out the latest undocumented update to Psychose-a-Matic. No reason, just... you may.