Page 1 of 4

Conquer Club Greasemonkey Script

PostPosted: Fri Mar 03, 2006 8:15 pm
by Tr0y
NOTE: You need firefox with the Greasemonkey extension to use.
Firefox: http://www.mozilla.com/firefox/
Greasemonkey: http://greasemonkey.mozdev.org/

This just a simple greasemonkey script I wrote that calculates the # of cards each player has, the card redemption value, and shows a status indicator so you know whether the player is currently playing.

I wrote this for myself, then I figured other people would like this so I asked Lack if it was okay, and he okay'ed it.

Here is where you can get it
http://personal.ecu.edu/tnt1202/conquerclub.user.js

Let me know what you guys think.

The following is taken from the script:

Conquer Club - Card Counter, Card Redemption Value, Status Indicator
version 0.1 BETA!
-----------------------------------------------------------------------------
Installation
-----------------------------------------------------------------------------
This is a Greasemonkey user script.

To install, you need Greasemonkey: http://greasemonkey.mozdev.org/
Then restart Firefox and revisit this script.
Under Tools, there will be a new menu item to "Install User Script".
Accept the default configuration and install.

To uninstall, go to Tools/Manage User Scripts,
select "Conquer Club", and click Uninstall.

-----------------------------------------------------------------------------
Description
-----------------------------------------------------------------------------
* Adds a status indicator and number of cards each player has to the rightside
of the dashboard.
* Adds card redemption values
-----------------------------------------------------------------------------
Notes
-----------------------------------------------------------------------------
* The status indicator isn't always accurate. It goes yellow when a player
receives men, and red when they fortify, and back to green when a new round
is started.
-----------------------------------------------------------------------------
Todo
-----------------------------------------------------------------------------
* Add total armies each player has
* Add estimated men next turn

PostPosted: Fri Mar 03, 2006 9:27 pm
by Romber
wow thats really helpful. I dont use firefox and dont plan on switching anytime soon. But it sure sounds very nice to have. gj

PostPosted: Sun Mar 05, 2006 4:18 pm
by Tr0y
Hrm. I was really expecting a much more of a response to this. I guess nobody cares. :cry:

If anyone uses this and wants me to continue posting updates let me know.

Planning on putting a realtime clock in, other random statistics like... expected men next round, total armies, ect.

Preview:
Image

PostPosted: Sun Mar 05, 2006 4:26 pm
by hotgun
I don't get how this works...

PostPosted: Sun Mar 05, 2006 4:28 pm
by Tr0y
If you have firefox, you get the extension greasemonkey. This extension lets 3rd parties embed javascript into a webpage allowing them to change the content, functionality, look, and feel.

So what I have is a script that changes how conquerclub looks and functions.

PostPosted: Sun Mar 05, 2006 6:21 pm
by Machiavelli
It sounds really cool but I dont plan on getting firefox just to use that feature. Maybe lackattack could make that the conquer club norm? great job anyway though. :wink: :)

PostPosted: Sun Mar 05, 2006 6:36 pm
by Tr0y
Ah, thanks 8)

Kind of disappointing though, I figured more people use firefox, but I guess a lot of players play at school which means they only use IE.

PostPosted: Sun Mar 05, 2006 6:47 pm
by bartb88
nice prog Tr0y

PostPosted: Sun Mar 05, 2006 6:57 pm
by Tr0y
Sweet, someone got it to work, now I have an excuse to post updates.

PostPosted: Sun Mar 05, 2006 11:19 pm
by Erik
Great work Troy. I really appreciate being able to see their number of cards that easily. I definitely look forward to seeing more features!

PostPosted: Mon Mar 06, 2006 6:43 am
by lackattack
Firefox was used with 19% of Conquer Club traffic in January and 21% in February. If your "Conquer Club Assistant" becomes popular, we may see the Firefox percentage grow by the end of March.

PostPosted: Mon Mar 06, 2006 6:49 am
by Itrade
I can't install Greasemonkey 'cause it'll mess with my urban dead extention. And I like my Urban Dead extention.

PostPosted: Mon Mar 06, 2006 8:55 am
by Tr0y
Yea firefox rocks. Everyone should convert. :lol:

PostPosted: Mon Mar 06, 2006 9:17 am
by moz976
Your the man Troy love the script.

Keep the updates coming. :mrgreen:

PostPosted: Mon Mar 06, 2006 9:37 am
by ADAM TJ
this is awsome!!!!! keep it up! and it is nicely integrated and everything

although that status indicator thing dosent seem to work for me.

PostPosted: Mon Mar 06, 2006 9:51 am
by ADAM TJ
oh wait now it does.


is that what you mean byt it works sometimes?

PostPosted: Mon Mar 06, 2006 3:14 pm
by thegrimsleeper
:mrgreen: (applause, applause, applause) :mrgreen:

All I can say is thank you.

AND, I think it's pretty cool that it's something that must be sought out, as opposed to just a regular feature.

Just one more reason why Firefox=t3h pwnz0r.

PostPosted: Mon Mar 06, 2006 3:15 pm
by kingwaffles
Dude firefox owns IE every time, no question. I'll look into this funky greasemonky thing when I get home, it looks pretty sweet.

PostPosted: Mon Mar 06, 2006 3:41 pm
by max is gr8
At first i didn't work but now it does at first i voted 1 but change it to 3 then 5 when improvements are done I'm looking forward to these

PostPosted: Mon Mar 06, 2006 3:53 pm
by john123
Looks like a handy tool but i won't be using it cos i play on different computers all the time, well done anyway. Kinda takes a bit away from the game though keeping track of what players have and such, good risk players should know all that anyway

PostPosted: Mon Mar 06, 2006 6:32 pm
by Tr0y
^While I agree good risk players should know how many cards people have, its kind of hard when you are playing multiple games spread out.

As for the status indicator, it isnt perfect.

When a player receives men it goes yellow.
If they dont fortify it stays yellow until the end of the round.
Then it goes green again.

I noted this in the comments.

Its impossible to know if a player truly ended his turn unless they fortify.

That wont change unless lack adds a context clue in the log ( ie 'player ended his turn.' ) or player is forced to end turn after x mins.

PostPosted: Mon Mar 06, 2006 8:00 pm
by hotgun
so for this to work I just have to get firefox and Gress monkey

PostPosted: Mon Mar 06, 2006 8:03 pm
by Tr0y

PostPosted: Mon Mar 06, 2006 8:16 pm
by hotgun
Umm... It did not work... I got both on my computer and it is not working

PostPosted: Mon Mar 06, 2006 9:03 pm
by stabskillz13
Tr0y wrote:When a player receives men it goes yellow.
If they dont fortify it stays yellow until the end of the round.
Then it goes green again.


Really? Wow, I feel bad for yelling at people about holding then, uh, sorry everyone.