Page 1 of 4

Conquer Club Greasemonkey Script (beta .3)

PostPosted: Tue Apr 11, 2006 3:30 pm
by Tr0y
Installation
1. Get Firefox
2. Get Greasemonkey
3. if Color Blind go to step 3b. Else go to http://personal.ecu.edu/tnt1202/conquerclub.user.js
3b. Go to http://personal.ecu.edu/tnt1202/conquer ... nd.user.js
4. Refresh your browser, to make sure you have the latest, it should say
"version 0.3 BETA!" on the second line.

5. Click the install button in the top right corner.

For help please post here or
http://www.conquerclub.com/forum/viewtopic.php?t=525

Image


NOTES:

This version is mostly a fixing errors of the previous version ( hyphens ), and it adds new status icons.

If you do not like these icons you can edit the user settings in the .js file...
It looks like the following:
//-----------------------------------------------------------------------------
// BEGIN User Settings
//-----------------------------------------------------------------------------

var isColorBlind = true; //set this to true if you want color indicators on map
var ShapedStatusIcons = true; //ie square for can't play
var BorderedIcons = false; // only takes matters if ShapedStatusIcons is set to true.

//-----------------------------------------------------------------------------
// END User Settings
//-----------------------------------------------------------------------------

Just change the true values to false values if you want to turn something off... Or if you happen to go colorblind just set the isColorBlind to true.

Let me know what you guys think.

P.S.

You will get a javascript error gmtop not defined, just ignore that for now, I'll fix that later. It works... but yea gives an error... :-\

Its used to skip down to the map... so everything is in view.

beta .3

PostPosted: Tue Apr 11, 2006 4:49 pm
by smeagol
it's excellent but I wonder if you are going to put the probability calculator

beta .3

PostPosted: Tue Apr 11, 2006 4:53 pm
by smeagol
troy, can you make a script that can refresh the map automatically?

PostPosted: Tue Apr 11, 2006 5:26 pm
by Tr0y
I could make a map refresh automatically... I probably wont though...

Yes, I think I'll add a probability calculator sometime in the future.

This just fixes issues with hyphens.

refresh auto

PostPosted: Tue Apr 11, 2006 7:19 pm
by jpqs
i've founded an auto refresh extension for firefox https://addons.mozilla.org/extensions/moreinfo.php?id=115

PostPosted: Tue Apr 11, 2006 8:49 pm
by Zepy12
Tr0y....you DA MAN. I'd give you my first born, but he's already 17, talks back, wants a car, keeps a messy room, etc...so instead...a BIG THANK YOU!

Zepy

PostPosted: Tue Apr 11, 2006 8:51 pm
by Tr0y
If you just installed the script, reinstall it.

Lack just updated which broke the countdown, I fixed it...

as of... 9:47pm eastern on 4/11/2006

PostPosted: Wed Apr 12, 2006 5:23 am
by terrafutan
Having an issue with Brazil map - all the ALT chars are screwed up in the drop down lists - is this a script issue ?

2006-04-12 12:22:07 - terrafutan fortified Santar�m with 2 armies from S�o Lu�s
2006-04-12 12:22:21 - terrafutan fortified Santar�m with 2 armies from Bel�m

PostPosted: Wed Apr 12, 2006 6:39 am
by lackattack
No, that's my fault. I'll try to get it fixed soon.

PostPosted: Wed Apr 12, 2006 6:54 am
by terrafutan
ah ok lack thanks

had just installed the script and this was the first map I tried

false accusation there, Ill have a drink for it

PostPosted: Wed Apr 12, 2006 7:51 am
by Marvaddin
I send to lack the xml file for Brazil map again, so he will probably correct the problem soon.

PostPosted: Wed Apr 12, 2006 1:41 pm
by General Mayhem
do you think you can fix the now playing icon to work rather than just working during fortifying?

its coming along real nice though!!

mayhem

PostPosted: Wed Apr 12, 2006 2:18 pm
by Tr0y
Not until I get something in the log that says...
x ended his turn.

Till then the best I can do is assuming they are ending or about to end their turn...

Oh wait... Lack did put that new 1hr limit on turns.. :D

Um.. Alright, I spose I'll release something as soon as I get around to it...

Keep in mind it would sometimes be off by less than an hour.. but thats acceptable...

grease monkey

PostPosted: Wed Apr 12, 2006 2:59 pm
by jpqs
troy, can you make that the status indicator on "no double turns" turns to red when you are the last. and you cant take the turn. it would be useful... thanks

PostPosted: Wed Apr 12, 2006 4:02 pm
by Hoff
would it be possible to add how many armies they will recieve next turn for Continents they hold?

PostPosted: Wed Apr 12, 2006 4:51 pm
by PaperPlunger
you too lazy to add?

PostPosted: Wed Apr 12, 2006 5:13 pm
by Hoff
PaperPlunger wrote:you too lazy to add?


Pretty much everything on this grease monkeyscript you can add in your head. Its just awesome to see everything laid out for you. So yes, i'm to lazy to add.

PostPosted: Wed Apr 12, 2006 5:55 pm
by Jota
Hoff wrote:would it be possible to add how many armies they will recieve next turn for Continents they hold?


I don't think so. If I understand it right, the script works off of information available on the page. I don't think the page lists either A) which countries each player holds, B) which countries are on which continent, or C) the bonus value of each continent. It's just got the game history (which doesn't list your starting positions) and the map overlay query (which doesn't have country names).

PostPosted: Wed Apr 12, 2006 6:06 pm
by PaperPlunger
Hoff wrote:
PaperPlunger wrote:you too lazy to add?


Pretty much everything on this grease monkeyscript you can add in your head. Its just awesome to see everything laid out for you. So yes, i'm to lazy to add.

hehehe

PostPosted: Thu Apr 13, 2006 11:15 am
by Tr0y
would it be possible to add how many armies they will recieve next turn for Continents they hold?


Maybe.. w/ AJAX? um.. but yea.. way more work than its worth.

troy, can you make that the status indicator on "no double turns" turns to red when you are the last. and you cant take the turn. it would be useful... thanks


Not a bad idea, I think I'll add that, when I get a chance.

PostPosted: Tue Apr 18, 2006 10:50 am
by Phx99
It's gorgeous! Grease Monkey is a great thing.....helps me with some decisions at times.

Phx99

PostPosted: Fri Apr 21, 2006 2:49 am
by zip_disk
I did notice that when a player runs out of time during a turn, the indicator remains stuck on "Playing" instead of "Done" when in the gamespace.

Otherwise nice job.

PostPosted: Fri Apr 21, 2006 3:59 am
by quinnster9
this is really cool.. good job.. it will definetly come in handy and same some time always counting...!! :) congrats!! and thank u!!

crossword map error

PostPosted: Sat Apr 22, 2006 2:16 am
by Scarus
I rely soooo much on the script that I doubt if I can count anymore....lol

Anyway, I'm in my first crossword map game and I see a couple of the players holding 7 cards. My first thought is that I'm a newbie to this map and I should walk very softly around these guys for fear that they might cash in two sets any minute....lol

When nobody ever cashed in I finally figured the script must not be reading the map right.

I could've counted everyone's cards to tell for sure, but my brain has atrophied soooo much from relying on the script that I just don't think I can do it on my own anymore....lol

PostPosted: Sat Apr 22, 2006 10:13 am
by Tr0y
Try reinstalling the script... its on version 3 now... you may have version 2 still..

version 3 fixes the crossword map...

I just discovered another bug though... if ones name is in part of a location on the map it will cause errors when one cashes in cards... I'll fix that in version 4.