I haven't experienced slow loading times, unless it's the first load of the day, which does all the version checking. Are you using a "legacy" machine?
This computer is 1.5 years old and was put together with gaming in mind.
I haven't experienced slow loading times, unless it's the first load of the day, which does all the version checking. Are you using a "legacy" machine?
I love it! Except, when I click on again or adventure again, i'm getting 2 combats, the first one is automated w/ my ccs, the 2nd one loads the bat brain screen and lets me do combat manually. Not particularly ideal atm.
I'm getting the same behavior. I also got the version check problem. I downloaded the files from the first post this morning and while editing adventure.ash made the version check issue go away the other issue remains.
Optionally, does it stop when commenting out line 161 of BMR but retaining adventure.ash?
The zip file contains:
fight.ash -- The script.
fight-preload.ash -- Necessary to load the combat prior to loading script libraries.
adventure.ash -- Maintains quick menu even for noncombats.
batman.css -- The stylesheet.
jquery1.7.1.min.js -- The minified jQuery library.
jquery.dataTables.min.js -- The minified DataTables jQuery plugin
batman.js -- Additional jQuery to make things awesome.
jQuery.fn.dataTableExt.oSort['num-html-asc'] = function(a,b) {
var x = a.replace( /<.*?>/g, "" );
var y = b.replace( /<.*?>/g, "" );
x = parseFloat( x );
y = parseFloat( y );
return ((x < y) ? -1 : ((x > y) ? 1 : 0));
};
jQuery.fn.dataTableExt.oSort['num-html-desc'] = function(a,b) {
var x = a.replace( /<.*?>/g, "" );
var y = b.replace( /<.*?>/g, "" );
x = parseFloat( x );
y = parseFloat( y );
return ((x < y) ? 1 : ((x > y) ? -1 : 0));
};
{ "sType": "html", "aTargets": [ 1, 2, 3, 5, 6 ] },
{ "sType": "num-html", "aTargets": [ 7 ] },
{ "sType": "numeric", "aTargets": [ 8, 9, 10 ] },
jQuery.fn.dataTableExt.oSort['formatted-num-html-asc'] = function(a,b) {
var x = a.replace( /<.*?>/g, "" );
var y = b.replace( /<.*?>/g, "" );
x = x.match(/\d/) ? x.replace( /[^\d\-\.]/g, "" ) : 0;
y = y.match(/\d/) ? y.replace( /[^\d\-\.]/g, "" ) : 0;
x = parseFloat( x );
y = parseFloat( y );
return ((x < y) ? -1 : ((x > y) ? 1 : 0));
};
jQuery.fn.dataTableExt.oSort['formatted-num-html-desc'] = function(a,b) {
var x = a.replace( /<.*?>/g, "" );
var y = b.replace( /<.*?>/g, "" );
x = x.match(/\d/) ? x.replace( /[^\d\-\.]/g, "" ) : 0;
y = y.match(/\d/) ? y.replace( /[^\d\-\.]/g, "" ) : 0;
x = parseFloat( x );
y = parseFloat( y );
return ((x < y) ? 1 : ((x > y) ? -1 : 0));
};
function goodNum(n) {
// TODO: if match (Dealt: (\d+)), return that number
var res = n.replace( /<.*?>/g, "" );
// TODO: perhaps as part of either the following or previous replace() calls, remove any parenthesized characters (including numbers)
res = res.match(/\d/) ? res.replace( /[^\d\-\.]/g, "" ) : 0;
return parseFloat(res);
}