Page 5 of 28
Posted: Tue Apr 17, 2007 4:23 am
by stocksr
And now version .7 is out
this version uses the new style card count in the stats table and removes the one in brackets from the player list.
I have also merged the changes made by tahitiwahini see
http://www.conquerclub.com/forum/viewtopic.php?t=16979&highlight=
This version will REMEMBER your options from the previous version so you will not have to reset things, but remember to check out the new options.
For those who play team games I have added the highlight map on hover to the team headings in the player list.
I have also merged Ishiro's confirm attacks script at his request (see above)
You can grab this version from this link.
http://robertstocks.co.uk/conquerClub/conquerclub-rjs.7.user.js
Code: Select all
//-----------------------------------------------------------------------------
// New features in Version RJS.7
//-----------------------------------------------------------------------------
// * Add Team Roll-over
// * Remove Card Count from player list
// * add site style card count to stats table
// * move missed turns to it's own column
// * Bug fix - map inspect, the status bar was not hiding if the option was turned off
// * Tweak the options order to move the options that are changed more often to the top.
// * Merge Ishiro's confirm attacks script, and add options to control it.
// * Merge TAHITIWAHINI's estimate of armies from cards (with option to hide it) - I put it in it's own column
Posted: Tue Apr 17, 2007 4:24 am
by stocksr
yeti_c wrote:Stocksr - just thought of another addition...
When you have Cards sometimes you might want to attack that territory so that when you trade you get the bonus...
Finding said territory can be hard (esp in Tamriel (or made up maps)) If you roll over the card name could it be highlighted on the map?
C.
Good idea I have added this to my todo list.
Posted: Tue Apr 17, 2007 4:53 am
by yeti_c
stocksr wrote:yeti_c wrote:Stocksr - just thought of another addition...
When you have Cards sometimes you might want to attack that territory so that when you trade you get the bonus...
Finding said territory can be hard (esp in Tamriel (or made up maps)) If you roll over the card name could it be highlighted on the map?
C.
Good idea I have added this to my todo list.
Nice one... I assume this should be fairly easy due to your existing highlight code... should be a case of adding the rollover and showing the correct territory... Thinking about it I should've just looked and worked out how to do it to help you!!
C.
Posted: Tue Apr 17, 2007 5:05 am
by stocksr
yeti_c wrote:stocksr wrote:yeti_c wrote:Stocksr - just thought of another addition...
When you have Cards sometimes you might want to attack that territory so that when you trade you get the bonus...
Finding said territory can be hard (esp in Tamriel (or made up maps)) If you roll over the card name could it be highlighted on the map?
C.
Good idea I have added this to my todo list.
Nice one... I assume this should be fairly easy due to your existing highlight code... should be a case of adding the rollover and showing the correct territory... Thinking about it I should've just looked and worked out how to do it to help you!!
C.
I have just looked and yes it is very easy to do, I just don't want to do two releases with in an hour of each other, I have the .8 release started and that is the first feature to go in.
Any other requests?
Posted: Tue Apr 17, 2007 5:19 am
by yeti_c
stocksr wrote:yeti_c wrote:stocksr wrote:yeti_c wrote:Stocksr - just thought of another addition...
When you have Cards sometimes you might want to attack that territory so that when you trade you get the bonus...
Finding said territory can be hard (esp in Tamriel (or made up maps)) If you roll over the card name could it be highlighted on the map?
C.
Good idea I have added this to my todo list.
Nice one... I assume this should be fairly easy due to your existing highlight code... should be a case of adding the rollover and showing the correct territory... Thinking about it I should've just looked and worked out how to do it to help you!!
C.
I have just looked and yes it is very easy to do, I just don't want to do two releases with in an hour of each other, I have the .8 release started and that is the first feature to go in.
Any other requests?
Christ... I had a look at the script... it's huge!!
I think I found roughly the right area but without debugging it thoroughly and working what the hell is going on I'm not in a position to attempt to edit it!!!
Other additions?
Still quite like the "you are about to deploy/attack/fortify a team mate" confirm box idea but not sure how hard that is for you?
C.
Posted: Tue Apr 17, 2007 5:42 am
by stocksr
yeti_c wrote:stocksr wrote:yeti_c wrote:stocksr wrote:yeti_c wrote:Stocksr - just thought of another addition...
When you have Cards sometimes you might want to attack that territory so that when you trade you get the bonus...
Finding said territory can be hard (esp in Tamriel (or made up maps)) If you roll over the card name could it be highlighted on the map?
C.
Good idea I have added this to my todo list.
Nice one... I assume this should be fairly easy due to your existing highlight code... should be a case of adding the rollover and showing the correct territory... Thinking about it I should've just looked and worked out how to do it to help you!!
C.
I have just looked and yes it is very easy to do, I just don't want to do two releases with in an hour of each other, I have the .8 release started and that is the first feature to go in.
Any other requests?
Christ... I had a look at the script... it's huge!!
I think I found roughly the right area but without debugging it thoroughly and working what the hell is going on I'm not in a position to attempt to edit it!!!
C.
this is in the next release but for those not afraid to edit add this
Code: Select all
// Add Rollovers to cards
var allC = getElementsByClassName(document.getElementById('dashboard'), "span","card");
for( i in allC ) {
var title = allC[i].innerHTML;
var c = countriesArray[title];
allC[i].addEventListener('mouseover', makeHandlerName(c.textMap()) , true);
allC[i].addEventListener('mouseover', makeHandler(title.makeID()) , true);
allC[i].addEventListener('mouseout', onMouseOutF , true);
}
just before this line
Other additions?
yeti_c wrote:Still quite like the "you are about to deploy/attack/fortify a team mate" confirm box idea but not sure how hard that is for you?
Ok noted but this will take me some time to think about, as I will need to play some more rounds in a team game to see if that is possible.
Posted: Tue Apr 17, 2007 6:59 am
by lackattack
Great work stocksr, I'm *very* impressed!
I added this script to the sticky topic.
Posted: Tue Apr 17, 2007 2:07 pm
by tahitiwahini
The new version of the script is awesome, but then so were all the previous versions.
I like the Armies Expected from Cards as a separate column, good call on that one.
Nice work again.
Posted: Tue Apr 17, 2007 10:05 pm
by weirdbro
I know Greasemonkey makes it easier to work with, but if you made it a Firefox extension, it could be automatically updated so that you could release 2 times an hour and it wouldn't annoy people.
Also, in a more practical request, is there any chance you could have an option of instead of the text map, just a list of continents and their countries? As a colorblind person, some maps are just impossible to tell which countries are in which continent.
Posted: Tue Apr 17, 2007 10:21 pm
by tahitiwahini
weirdbro wrote:I know Greasemonkey makes it easier to work with, but if you made it a Firefox extension, it could be automatically updated so that you could release 2 times an hour and it wouldn't annoy people.
Also, in a more practical request, is there any chance you could have an option of instead of the text map, just a list of continents and their countries? As a colorblind person, some maps are just impossible to tell which countries are in which continent.
It's not convenient, but as an interim measure you could consult the xml for the map you're playing. Look for continent and then components below that. The components of the continent are of course the territories contained within the continent.
Posted: Tue Apr 17, 2007 10:24 pm
by weirdbro
Well, if I wanted inconvenient, I could look at the text map, which does provide that. Unfortunately, its way too large and cluttered to be very useful.
Posted: Tue Apr 17, 2007 11:05 pm
by AAFitz
wow...awesome features...wheres the one that suggests my next move?
Posted: Wed Apr 18, 2007 12:25 am
by Incandenza
AAFitz wrote:wow...awesome features...wheres the one that suggests my next move?
I'm with fitz. I think the next update needs a 'PM blitzaholic for advice' button.

Posted: Wed Apr 18, 2007 3:12 am
by yeti_c
Incandenza wrote:AAFitz wrote:wow...awesome features...wheres the one that suggests my next move?
I'm with fitz. I think the next update needs a 'PM blitzaholic for advice' button.

Or PM Qeee1 if it's a singles game...
C.
Posted: Wed Apr 18, 2007 3:22 am
by Incandenza
yeti_c wrote:Incandenza wrote:AAFitz wrote:wow...awesome features...wheres the one that suggests my next move?
I'm with fitz. I think the next update needs a 'PM blitzaholic for advice' button.

Or PM Qeee1 if it's a singles game...
C.
I think qeee1's in the process of retiring... so I guess it's robinette or mm17 or cyberdaniel... or maybe a player should have the chance to solicit each opinion and determine the best of the three. That would kick ass.

Posted: Wed Apr 18, 2007 5:22 am
by stocksr
weirdbro wrote:Also, in a more practical request, is there any chance you could have an option of instead of the text map, just a list of continents and their countries? As a colorblind person, some maps are just impossible to tell which countries are in which continent.
This is in the next (.8) release, currently undergoing development/testing.
Posted: Thu Apr 19, 2007 9:09 pm
by weirdbro
Since this script rocks, I'm gonna be a pest and request another feature:
When you click on the name of a country anywhere, in the card list, text map, log, etc., it could jump to the map, and flash the highlight for a bit to show where the country is.
Posted: Fri Apr 20, 2007 10:27 am
by yeti_c
Rob,
In the game log - when you have 2 bonuses that are the same string... i.e. "Kings" in King of the Mountains... then the bonus is added together and written out once...
Is it possible to do this for your script?
C.
Posted: Fri Apr 20, 2007 10:33 am
by mibi
weirdbro wrote:Since this script rocks, I'm gonna be a pest and request another feature:
When you click on the name of a country anywhere, in the card list, text map, log, etc., it could jump to the map, and flash the highlight for a bit to show where the country is.
seconded... nothing worse than searching a foreign map for some obscure country name.
Posted: Fri Apr 20, 2007 11:59 am
by tahitiwahini
yeti_c wrote:Rob,
In the game log - when you have 2 bonuses that are the same string... i.e. "Kings" in King of the Mountains... then the bonus is added together and written out once...
Is it possible to do this for your script?
C.
I see what yeti is talking about. Check out this game:
http://www.conquerclub.com/game.php?game=376731
The continent bonuses are a little difficult to understand, and some of them are negative. This may be due to the complexity of the bonus system in King of the Mountains and given the xml there may be nothing the script developer can do.
Posted: Fri Apr 20, 2007 6:05 pm
by weirdbro
There's a glitch where, if the Fade is equal to 0, it will not change the opacity till you refresh, This can be changed by removing an if statement around line 143 in version .7
Posted: Sat Apr 21, 2007 2:47 am
by yeti_c
Surely if you have a fade of 0% the opacity should not be changed over the original anyway?
C.
Posted: Sat Apr 21, 2007 5:03 am
by stocksr
weirdbro wrote:There's a glitch where, if the Fade is equal to 0, it will not change the opacity till you refresh, This can be changed by removing an if statement around line 143 in version .7
Thanks for spotting that, the if statment was there long before the option to dynamicly change the fade.
Your fix will be in the .8 release.
For those interested in reproducing, if the fade is 0 when the page loads then the menu option was ignored till there was a manual reload.
Posted: Sat Apr 21, 2007 5:07 am
by yeti_c
stocksr wrote:weirdbro wrote:There's a glitch where, if the Fade is equal to 0, it will not change the opacity till you refresh, This can be changed by removing an if statement around line 143 in version .7
Thanks for spotting that, the if statment was there long before the option to dynamicly change the fade.
Your fix will be in the .8 release.
For those interested in reproducing, if the fade is 0 when the page loads then the menu option was ignored till there was a manual reload.
Ah yes I understand (& have reproduced it) now... good spot Weirdbro.
C.
Posted: Sat Apr 21, 2007 5:10 am
by stocksr
tahitiwahini wrote:yeti_c wrote:Rob,
In the game log - when you have 2 bonuses that are the same string... i.e. "Kings" in King of the Mountains... then the bonus is added together and written out once...
Is it possible to do this for your script?
C.
I see what yeti is talking about. Check out this game:
http://www.conquerclub.com/game.php?game=376731The continent bonuses are a little difficult to understand, and some of them are negative. This may be due to the complexity of the bonus system in King of the Mountains and given the xml there may be nothing the script developer can do.
If you had any idea the amount of problems that map caused me you would be impresed that the script works at all on it.
However I have added this request to my todo list, I will have a look and see what I can come up with.