It does work if I strip the colors out of the map inspect and just have it load once to show attack paths but don't update it for changes. I think the browser may just not like the slew of updates and either kills it or is just really slow... I've never tried waiting to see if it catches up.
Ishiro wrote:Yep, it stops the map, and I have no idea why.
It does work if I strip the colors out of the map inspect and just have it load once to show attack paths but don't update it for changes. I think the browser may just not like the slew of updates and either kills it or is just really slow... I've never tried waiting to see if it catches up.
Bugger!!
The colours eh?! which bit?
The initialisation bit?
Or all the magicmap stuff?
At the mo my "magicmap" div can't be found - so I've commented it all out...
The main thing you have to change in the script is that "inner-map" used to be a DIV, its not anymore, so most of the code that uses "inner-map" is broken.
Ishiro wrote:The main thing you have to change in the script is that "inner-map" used to be a DIV, its not anymore, so most of the code that uses "inner-map" is broken.
Yeah - at the mo I've dropped any innermap stuff... but I'll have a check!!
It shouldn't... lack is referring to everything by name. But I know some of the stuff in BOB was doing things by type and counting them, I had to redo a bunch of that. I'd give you a copy but that PC is currently dead and I haven't had time to work on it.
It's definitely something in the initialisation of the script that breaks the map...
To test this
I first stopped my refreshGMScript() doing anything... map still broken...
Then I stopped my refreshGMScript() function redefining itself - and the map is still broken...
So this can't be any security issue... their must be something that stops the map from refreshing in the init... I'll continue to work on this...
Next card Redemption value no longer shown. (Escalating only)
Map Inspect/Hover type stuff no longer shown.
Strength calculation = NaN.
Terminator Summary keeps getting added to the log.
New XML features aren't calculated yet.
Confirm Buttons are a bit screwy!!
Please reply here once you have the new script in and if you find anything else...
C.
PS Also the new script DOESN'T work with AJAX off... because I couldn't be bothered to make it backwards compatible (as Lack will be disabling the nonajax feature anyway - I decided that was the way to go)!!
OK - early work this morning has gleaned the following...
Map Fade now works (renamed to Map Opacity as it works the opposite way to before!)
Strength Calculation now works.
Redemption Div now appears and works.
TODO:
(Actually host the file somewhere - expect that later this arvo)
Map Inspect. <- thinking about how to do this easily!!
Log tweaking. <- thinking about how to do this easily.
New XML features aren't calculated yet. <- I've worked out my logic for this - just need to code.
Confirm Buttons are a bit screwy!! <- I know why now too!!
lackattack wrote:Let me throw in some incentive - free premium membership* to the contributors of an AJAX-compatible GM script that can replace Tr0y's & BOB**, so I can move everyone onto AJAX :mrgreen:
* Main contributor(s) will get 12 months, secondary contributors according to their contribution :)
** Colourblind feature is now core, no need to replace that