Conquer Club

BOB version 1.2 [was CC Greasemonkey script - unofficial]

Archival storage to keep things organized and uncluttered. Can't find what you need? Search for old topics here.

Moderator: Tech Team

Forum rules
Please read the Community Guidelines before posting.

What should the name of this script be?

Poll ended at Fri May 18, 2007 5:51 am

Bob
11
28%
TSAR
7
18%
TSAR BOMBA
6
15%
B.O.M.B.
5
13%
Trojan
1
3%
Trojan Horse
9
23%
 
Total votes : 39

Postby cicero on Sat Apr 28, 2007 8:23 am

Further to yeti_c and tahitiwahini's recent posts above:

OK, I'm coming round on the decimal places. I particularly like the point that it reinforces it is only an estimate. How about reducing the decimal places to just one rather than the current two? I think this retains the subtleties you've described and helps to make the display clearer?

And tahitiwahini, thanks for your explanation re Card Set Estimate (or whatever it ends up being called) and how this can predict a higher total than I/we were expecting. Of course - :roll: - bonuses for territories held in cashed card sets!

Thanks

Cicero
FREE M-E-Mbership and simple rules. Conquer Club - it's not complicated.

random me statistic @ 13 December 2008 - 1336 posts : 232nd most public posts (not counting Tower of Babble) of all time.
User avatar
Sergeant cicero
 
Posts: 1358
Joined: Wed Mar 07, 2007 1:51 pm
Location: with the infected neutrals ... handing out maps to help them find their way to CC

Postby cicero on Sat Apr 28, 2007 8:27 am

B.O.M.B.

Battle Oriented Map Briefing ... ?

Change the Map Fade setting on the BOMB Menu ... It has a nice ring to it I think?

Or is Rob going to veto that too for some obscure(ish) IT reason?
I've heard of 'mail bombing' ...

Regards


Cicero
FREE M-E-Mbership and simple rules. Conquer Club - it's not complicated.

random me statistic @ 13 December 2008 - 1336 posts : 232nd most public posts (not counting Tower of Babble) of all time.
User avatar
Sergeant cicero
 
Posts: 1358
Joined: Wed Mar 07, 2007 1:51 pm
Location: with the infected neutrals ... handing out maps to help them find their way to CC

Postby digital on Sat Apr 28, 2007 8:33 am

Hi,

Thanks for your awesome re-work of the script, Its really cool.

My only suggestion would be to get rid of "Greasemonkey Menu" and integrate it into the Personal Menu with a 2/3px line to seperate the two, that way it doesn't take up as much space.

Mike
Private 1st Class digital
 
Posts: 4
Joined: Wed Feb 28, 2007 4:05 am

Postby cicero on Sat Apr 28, 2007 8:37 am

Again re tahitiwahini's explanation of the Card Set Estimate ...

Having read pretty closely I think I now understand fully. The one feature that seems to be missing is incorporating the escalation factor in Escalating games.

Let's say there are 4 players all with 5 cards, does the calculation of the Card Set Estimate for the 2nd, 3rd and 4th players take into account that the set value will have changed by the time it is their turn?

Equally, if only 3 or 4 cards are held is the probability that they will cash in a set factored in to the value of the set for subsequent players?

Like I say, I think this isn't included yet. Can it be?


Cicero
FREE M-E-Mbership and simple rules. Conquer Club - it's not complicated.

random me statistic @ 13 December 2008 - 1336 posts : 232nd most public posts (not counting Tower of Babble) of all time.
User avatar
Sergeant cicero
 
Posts: 1358
Joined: Wed Mar 07, 2007 1:51 pm
Location: with the infected neutrals ... handing out maps to help them find their way to CC

Postby yeti_c on Sat Apr 28, 2007 9:52 am

cicero wrote:Again re tahitiwahini's explanation of the Card Set Estimate ...

Having read pretty closely I think I now understand fully. The one feature that seems to be missing is incorporating the escalation factor in Escalating games.

Let's say there are 4 players all with 5 cards, does the calculation of the Card Set Estimate for the 2nd, 3rd and 4th players take into account that the set value will have changed by the time it is their turn?

Equally, if only 3 or 4 cards are held is the probability that they will cash in a set factored in to the value of the set for subsequent players?

Like I say, I think this isn't included yet. Can it be?


Cicero


Great point this is...

As you say if 3 players above you have 5 cards - they wil cash... thus the estimates can grow on a sliding scale...

Say you're blue in a 4 way doubles...

So red, green, yellow each have 5...

Thus their estimates are 4, 8, 6 (+ countries addition (CA)) and yours would be 10... (CA)

Like it a lot...

C.
Image
Highest score : 2297
User avatar
Lieutenant yeti_c
 
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am

Postby yeti_c on Sat Apr 28, 2007 9:54 am

Another addition - easy one this time...

Can we have a version label somewhere in the menu... (bottom or top)

I've two computers both with the script and forget to update them both!!

C.
Image
Highest score : 2297
User avatar
Lieutenant yeti_c
 
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am

Postby RobinJ on Sat Apr 28, 2007 12:31 pm

tahitiwahini wrote:
RobinJ wrote:Just wondering if you could do something about the finished games. Unfortunately with your script, they take forever to load because the script has to be disabled or something - is there a way that you could get around that other than turning it off at the greasemonkey icon.


Completed games load fairly quickly for me, but that may be due to a difference in speed between our two computers. If it's slow for you the best way to look at a finished game would be to temporarily disable the smiling red greasemonkey icon (by left clicking on him in order to make him stop smiling and turn gray). The completed games will load faster for you then. After all there's not much of interest in the statistics table for a completed game anyway. When you want to turn your greasemonkey scripts back on simply left-click on the non-smiling gray greasemonkey icon to make him smile and turn red.

Anything else would require a programming change from stocksr I think.


Aye well - just wondering - suppose you're right - doesn't take too much extra effort to just click the monkey lol.
nmhunate wrote:Speak English... It is the language that God wrote the bible in.


Highest Score: 2437
Highest Place: 84
User avatar
Sergeant 1st Class RobinJ
 
Posts: 1901
Joined: Mon Aug 21, 2006 1:56 pm
Location: Northern Ireland

Postby stocksr on Sat Apr 28, 2007 4:46 pm

RobinJ wrote:
tahitiwahini wrote:
RobinJ wrote:Just wondering if you could do something about the finished games. Unfortunately with your script, they take forever to load because the script has to be disabled or something - is there a way that you could get around that other than turning it off at the greasemonkey icon.


Completed games load fairly quickly for me, but that may be due to a difference in speed between our two computers. If it's slow for you the best way to look at a finished game would be to temporarily disable the smiling red greasemonkey icon (by left clicking on him in order to make him stop smiling and turn gray). The completed games will load faster for you then. After all there's not much of interest in the statistics table for a completed game anyway. When you want to turn your greasemonkey scripts back on simply left-click on the non-smiling gray greasemonkey icon to make him smile and turn red.

Anything else would require a programming change from stocksr I think.


Aye well - just wondering - suppose you're right - doesn't take too much extra effort to just click the monkey lol.


I am looking into the performance issues, please bear with me while I investigate.


Additionally when reporting problems it would really help to know what settings you have so that I can attempt to reproduce the problem, also if the problem only occurs in some games an example game, is most useful.


Many thanks
r.
User avatar
Corporal stocksr
 
Posts: 132
Joined: Wed Mar 07, 2007 11:30 am
Location: South Coast, UK

Postby stocksr on Sat Apr 28, 2007 4:47 pm

yeti_c wrote:Another addition - easy one this time...

Can we have a version label somewhere in the menu... (bottom or top)

I've two computers both with the script and forget to update them both!!

C.


This will be there starting from version .9 (I have made the text link to this thread as well, so that the latest version is only a couple of clicks away)
r.
User avatar
Corporal stocksr
 
Posts: 132
Joined: Wed Mar 07, 2007 11:30 am
Location: South Coast, UK

Postby stocksr on Sat Apr 28, 2007 4:51 pm

yeti_c wrote:
cicero wrote:Again re tahitiwahini's explanation of the Card Set Estimate ...

Having read pretty closely I think I now understand fully. The one feature that seems to be missing is incorporating the escalation factor in Escalating games.

Let's say there are 4 players all with 5 cards, does the calculation of the Card Set Estimate for the 2nd, 3rd and 4th players take into account that the set value will have changed by the time it is their turn?

Equally, if only 3 or 4 cards are held is the probability that they will cash in a set factored in to the value of the set for subsequent players?

Like I say, I think this isn't included yet. Can it be?


Cicero


Great point this is...

As you say if 3 players above you have 5 cards - they wil cash... thus the estimates can grow on a sliding scale...

Say you're blue in a 4 way doubles...

So red, green, yellow each have 5...

Thus their estimates are 4, 8, 6 (+ countries addition (CA)) and yours would be 10... (CA)

Like it a lot...

C.



Just to throw a spanner or two in the works on this one you do need to consider freestyle games, and remember that the play order in team games is different. That said I am looking forward to seeing the new formulas when they are written.
r.
User avatar
Corporal stocksr
 
Posts: 132
Joined: Wed Mar 07, 2007 11:30 am
Location: South Coast, UK

Postby weirdbro on Sat Apr 28, 2007 6:40 pm

Well, is anyone planning on building it, at least for sequential games, or should I give it a shot?
Sergeant weirdbro
 
Posts: 52
Joined: Wed Jan 24, 2007 6:33 pm

Postby tahitiwahini on Sat Apr 28, 2007 8:43 pm

cicero wrote:Again re tahitiwahini's explanation of the Card Set Estimate ...

Having read pretty closely I think I now understand fully. The one feature that seems to be missing is incorporating the escalation factor in Escalating games.

Let's say there are 4 players all with 5 cards, does the calculation of the Card Set Estimate for the 2nd, 3rd and 4th players take into account that the set value will have changed by the time it is their turn?

Equally, if only 3 or 4 cards are held is the probability that they will cash in a set factored in to the value of the set for subsequent players?

Like I say, I think this isn't included yet. Can it be?
Cicero


You're right, it's not currently included in the Card Set Estimate.

The card set estimate originally started as an effort to quantify the armies that could be expected next turn in a flat rate bonus game. An assumption was made in order to simplify the calculation: that a player would cash in a card set as soon as one was formed. In a flat rate game that's actually a sound assumption because a strong case can be made that it's always an optimal decision to cash in a card set as soon as one is formed in a flat rate game (yes, even if it's a red card set). The argument involves the discounted future value of armies and the negative effect going forward of retaining 3 cards of a single color in your hand. I don't mean to rehash the argument here, just to say that it is a reasonably sound assumption to make in a flat rate game.

So the calculation for the card set estimate developed for the flat rate game was merely extended to the escalating game keeping the same assumption that a player would cash in a set as soon as one is formed. That pretty clearly is not always a good assumption to make in an escalating game (especially in the early going in which no one really wants to be the first one to cash in a card set and receive only 4 armies for doing so). So the card set estimate in an escalating game becomes more complicated. We have to quantify not only whether a card set exists (which we already do) but the likelihood that a player will actually cash that card set.

What factors go into the decision about whether to cash a card set in an escalating game? Well clearly the current redemption value of cashing a card set is probably the most important. Theoretically it would be possible to develop a probability of cashing a card set for each redemption value (armies received).

For example,

Redemption Value: Probability of Cashing the Set
4: 20%
6: 40%
8: 75%
10: 90%
12: 100%
15: 100%
20: 100%

I'm not arguing these are the right numbers (since I don't play escalating for the most part I'm pretty sure they're incorrect), I'm just saying it could probably be estimated. Maybe in an escalating game it's always better to wait until you have to cash in a set, I don't really know.

What other factors are there? Well, to go to your example, if a player holds 5 cards we know he will be cashing a card set during his turn, which in turn will change the redemption value for the next player who takes his turn after him. I suppose that could be considered in the calculation, but it might not be easily done. Then there's the complication of a player holding 3 cards. Does he cash in or not? Maybe the player looks at the current redemption value? Maybe the player looks to see which other players could possibly cash in a set in their next turn after his if he cashes in his set in this turn? So it begins to get rather complicated to decide if a player is or is not going to cash in a set in an escalating game.

If someone wants to try to figure that out for the escalating game he should by all means give it a try, but I suspect it will be a rather difficult problem. Much more difficult than in the flat rate game. It may be that the way the card set estimate is currently calculated is not very useful for an escalating game (in which case it can be turned off in stocksr's script for those games), but it's not at all clear to me at this point what would replace it in the escalating game. I think I'll leave it someone who has a better grasp of the card cashing strategy in escalating games to work out.
Cheers,
Tahitiwahini
User avatar
Private 1st Class tahitiwahini
 
Posts: 964
Joined: Fri Jan 19, 2007 5:26 pm

Postby s.xkitten on Sat Apr 28, 2007 10:31 pm

*sigh* i wish there was way to blend the two scripts, without writing my own script...
User avatar
Sergeant s.xkitten
 
Posts: 6911
Joined: Mon Oct 23, 2006 9:56 pm
Location: I dunno

Awesome plugin - THANKS

Postby ricktdotorg on Sun Apr 29, 2007 4:25 pm

Man, I just installed this plugin. AWESOME stuff!

I actually might even be able to win a round now.

THANK YOU!!!!

-Rick.
User avatar
Cook ricktdotorg
 
Posts: 4
Joined: Mon Feb 26, 2007 2:50 pm
Location: Los Angeles, CA

Postby stocksr on Mon Apr 30, 2007 6:23 am

s.xkitten wrote:*sigh* i wish there was way to blend the two scripts, without writing my own script...


Which two scripts?
r.
User avatar
Corporal stocksr
 
Posts: 132
Joined: Wed Mar 07, 2007 11:30 am
Location: South Coast, UK

Postby Gilligan on Mon Apr 30, 2007 7:53 pm

This script does work with Tr0y's.
Image
User avatar
Captain Gilligan
 
Posts: 12478
Joined: Thu May 11, 2006 4:59 pm
Location: Providence, RI

Postby yeti_c on Mon Apr 30, 2007 11:57 pm

The script replaces Tr0y's actually!!

C.
Image
Highest score : 2297
User avatar
Lieutenant yeti_c
 
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am

Version .9 is out

Postby stocksr on Thu May 03, 2007 9:52 am

Version .9 is out
Download it here: http://robertstocks.co.uk/conquerClub/conquerclub-rjs.9.user.js

Whats new
Code: Select all
//  * Add Click and Flash effect to text map, and continent list in the stats table
//  * Include Fortify Button in the confirm actions option for Non Unlimited Games
//  * Change card calculations to be read from the page (rather than worked out from the log)
//  * change clock display to not be editable - thanks weirdbro.
//  * Colour code the action drop downs on all moves to show the colour of the player
//      who owns that territory and the number of the armies in the territory.
//  * Add Stats modes - Standard|Extended|Off This controls the level of detail
//      in the stats table.
//  * Lots of work to improve performance
//  * Add Version number to menu title



What's next?
I am looking for ideas, what do people suggest?

While waiting for ideas I am going to work on cleaning up the code a lot more, and I might try and make it so that less of the options require a refresh when changing them.
r.
User avatar
Corporal stocksr
 
Posts: 132
Joined: Wed Mar 07, 2007 11:30 am
Location: South Coast, UK

Postby yeti_c on Thu May 03, 2007 9:57 am

Rob,

You're ace... Lack should give you a job!!

C.
Image
Highest score : 2297
User avatar
Lieutenant yeti_c
 
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am

Postby Captain Crash on Thu May 03, 2007 10:08 am

Noticed speed improvements already Great to see Rob!! Well done!!!!!!

Can't wait to have a turn and see the colors in the drop downs. :-^


=D> =D> =D>
Image

Image
User avatar
Private Captain Crash
 
Posts: 252
Joined: Thu Feb 01, 2007 7:06 pm
Location: Melbourne

Postby Ishiro on Thu May 03, 2007 12:06 pm

Minor bug... when a player has 0 cards, your stats show them having 'NaN'.
Image
User avatar
Corporal 1st Class Ishiro
 
Posts: 324
Joined: Mon Jul 17, 2006 5:53 pm
Location: Under the Rainbow

Postby Backglass on Thu May 03, 2007 12:56 pm

The new config menu is fantastic.

My only complaint is calling it the "Greasemonkey Menu" when it isn't a menu for Greasemonkey.

I really wish that You and Tr0y would give the dang script(s) a proper name as it would prevent a lot of confusion.
Image
The Pro-Tip®, SkyDaddy® and Image are registered trademarks of Backglass Heavy Industries.
User avatar
Corporal 1st Class Backglass
 
Posts: 2212
Joined: Wed Aug 23, 2006 5:48 pm
Location: New York

Postby yeti_c on Thu May 03, 2007 2:45 pm

Rob - You've surpassed yourself again...

My only slight concern is the garishness of the coloured drop downs!!!!!

Could you lighten the colours a touch for me?!? (I know that's massively cheeky!)

C.
Image
Highest score : 2297
User avatar
Lieutenant yeti_c
 
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am

Postby tahitiwahini on Thu May 03, 2007 3:14 pm

Sweet!
Cheers,
Tahitiwahini
User avatar
Private 1st Class tahitiwahini
 
Posts: 964
Joined: Fri Jan 19, 2007 5:26 pm

Postby weirdbro on Thu May 03, 2007 3:19 pm

You know, its getting to the point where you've got a lot of settings, and probably will have more in the future. Ever thought of creating a options popup, sortof like options in most desktop programs?
Sergeant weirdbro
 
Posts: 52
Joined: Wed Jan 24, 2007 6:33 pm

PreviousNext

Return to Tool Archives

Who is online

Users browsing this forum: No registered users