Conquer Club

AJAX BOB 4.7.1 Development/Discussion (don't post bugs here)

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.

Postby cicero on Tue Jan 08, 2008 5:31 pm

3.5.1 - map inspect colour changes

These hurt my eyes yeti !! [And I'm colourblind too. I hate to think what they're like for you normally sighted types!]

Specifically colours v, p, t and y seem to have gone ... "rather neon" is the best way I can describe it!

v is particularly weird in that it seems to be a completely different colour from the last release and in no way matches the colour of the CC text ...

Happy Thursday :)


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 Ishiro on Tue Jan 08, 2008 5:46 pm

yeti_c wrote:
cicero wrote:A bug in 3.5.1. Was also present in 3.4.5.

Check this game http://www.conquerclub.com/game.php?game=1524353

Choose standard stats table and check deferred armies for arbz ... it shows 4.
However arbz has not just missed a turn.


Cicero


OK - I'll look into fixing that Thursday!

C.


Code: Select all
      if (log[i].has("deferred"))
         playersArray[name]._deferred = armies;
      else
         playersArray[name]._lastBonus = playersArray[name]._lastBonus + armies;

In your processing of the log, if you see deferred armies, you are storing them. But if deferred armies are seen in the log, he is no longer deferring armies, and it should be setting it to 0. Deferred armies should only be calculated at the end of the log, if the player currently has a skipped value other than 0. Then when you get to displaying stats:
Code: Select all
         if (playersArray[name]._skipped==0)
             statsStr2+= makeTableCellTextWrap(isEliminated, curpid, playersArray[name]._deferred );

You are displaying the deferred value. In the case linked, the player previously missed a turn. When a deferred cash in is seen, its stored, but since the player has played a turn, skipped was set back 0 but deferred is never cleared.

As I previously mentioned, I think the deferred variable can be dropped altogether. If there are no skipped turns, deferred is 0 and if there are skipped turns, deferred is the current bonus waiting for them times the number of skipped turns.
Image
User avatar
Corporal 1st Class Ishiro
 
Posts: 324
Joined: Mon Jul 17, 2006 5:53 pm
Location: Under the Rainbow

Postby cicero on Tue Jan 08, 2008 5:50 pm

3.5.1 - alignment glitch

I normally have no need for Map Centering Top or Left. I leave them both at zero.

With the menu not hidden everything aligns correctly.

However with the menu hidden I need to set Map Centering Left to -1 to align everything correctly.


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 Ishiro on Tue Jan 08, 2008 6:05 pm

I've been looking at the alignment stuff for a long time and I don't think there is anything that can be done as far as the script is concerned. My desktop is 1920x1200 and if I have the browser window not maximize, but dragged out to cover everything, I don't need the offsets, but if I grab the right side of the window and drag it left to slowly narrow the window, I can see at certain intervals the numbers shift to where I would need a -1 offset to align them. Different intervals if the menu is hidden.

I think this is an odd bug with the size of the browser window and how the browser handles the HTML code it is displaying.
Image
User avatar
Corporal 1st Class Ishiro
 
Posts: 324
Joined: Mon Jul 17, 2006 5:53 pm
Location: Under the Rainbow

Postby chewyman on Tue Jan 08, 2008 6:14 pm

I loved the float actions feature, but I've had to turn it off now. The end attack and auto attack buttons are too close together and I've now stuffed up twice. I think you should put some sort of clear division, or even just a larger space, between the two buttons.
If I had a world of my own, everything would be nonsense. Nothing would be what it is, because everything would be what it isn't. And contrary wise, what is, it wouldn't be. And what it wouldn't be, it would. You see?
User avatar
Colonel chewyman
 
Posts: 400
Joined: Sat Feb 17, 2007 12:48 am

Postby yeti_c on Wed Jan 09, 2008 4:31 am

chewyman wrote:I loved the float actions feature, but I've had to turn it off now. The end attack and auto attack buttons are too close together and I've now stuffed up twice. I think you should put some sort of clear division, or even just a larger space, between the two buttons.


Here's a thought - turn on "Confirm Phase End"...

Adding stuff into the action form isn't overtly easy - I could do it but it would make it look a bit uglier.

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

Postby chewyman on Wed Jan 09, 2008 5:00 am

yeti_c wrote:
chewyman wrote:I loved the float actions feature, but I've had to turn it off now. The end attack and auto attack buttons are too close together and I've now stuffed up twice. I think you should put some sort of clear division, or even just a larger space, between the two buttons.


Here's a thought - turn on "Confirm Phase End"...

Adding stuff into the action form isn't overtly easy - I could do it but it would make it look a bit uglier.

C.

I already have it on, but I also have the confirm auto attack feature. It's just a simple enter key to bypass the confirmation, so if I've pressed the wrong button the confirmation isn't really going to help since my finger is already hovering over the enter key.

I understand if it would be too much work though, you're doing this for free and it's a great program after all. But wouldn't it be possible to get the buttons the same distance from each other as they are when they aren't floating.
If I had a world of my own, everything would be nonsense. Nothing would be what it is, because everything would be what it isn't. And contrary wise, what is, it wouldn't be. And what it wouldn't be, it would. You see?
User avatar
Colonel chewyman
 
Posts: 400
Joined: Sat Feb 17, 2007 12:48 am

help installing

Postby DrUniverse on Wed Jan 09, 2008 5:03 am

okay so I know this might be a dumb question but I am trying to get this however when I click the link here, and click install script, all I get is a web page with a bunch of cmp lingo. can anyone tell me what I am doing wrong?
Private DrUniverse
 
Posts: 7
Joined: Mon Dec 31, 2007 4:26 am

Re: help installing

Postby yeti_c on Wed Jan 09, 2008 5:21 am

DrUniverse wrote:okay so I know this might be a dumb question but I am trying to get this however when I click the link here, and click install script, all I get is a web page with a bunch of cmp lingo. can anyone tell me what I am doing wrong?


You need to download Greasemonkey first I think...

https://addons.mozilla.org/en-US/firefox/addon/748

If you already have - then check that it's "on" - in the bottom right hand corner - is your monkey Brown of Black and White?

If black and white - click on him once...

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

Postby yeti_c on Wed Jan 09, 2008 5:22 am

chewyman wrote:
yeti_c wrote:
chewyman wrote:I loved the float actions feature, but I've had to turn it off now. The end attack and auto attack buttons are too close together and I've now stuffed up twice. I think you should put some sort of clear division, or even just a larger space, between the two buttons.


Here's a thought - turn on "Confirm Phase End"...

Adding stuff into the action form isn't overtly easy - I could do it but it would make it look a bit uglier.

C.

I already have it on, but I also have the confirm auto attack feature. It's just a simple enter key to bypass the confirmation, so if I've pressed the wrong button the confirmation isn't really going to help since my finger is already hovering over the enter key.

I understand if it would be too much work though, you're doing this for free and it's a great program after all. But wouldn't it be possible to get the buttons the same distance from each other as they are when they aren't floating.


The webpage that the div is in before governs it's size - thus it stretches across...

Once you pop it off the page - then it's no longer got that width so the "right align" of the end buttons - is immaterial.

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

Postby cicero on Wed Jan 09, 2008 5:59 am

chewyman wrote:
yeti_c wrote:
chewyman wrote:I loved the float actions feature, but I've had to turn it off now. The end attack and auto attack buttons are too close together <snip>
Here's a thought - turn on "Confirm Phase End"... <snip>

C.

I already have it on, but I also have the confirm auto attack feature. It's just a simple enter key to bypass the confirmation, so if I've pressed the wrong button the confirmation isn't really going to help since my finger is already hovering over the enter key.<snip>


Yeti, perhaps you could put in confirm confirm auto attack and confirm confirm phase end features?

That way at least chewyman will have no reason to argue that his "finger is already hovering over the enter key" ...

But then he'd just press enter twice I suppose ...

Perhaps confirm confirm confirm auto attack and confirm confirm confirm phase end features as well?

No,no. Just press enter three times ...

Perhaps you could distribute the script on a CD with a free razor blade and instructions that the user put their finger through the hole in the CD and guillotine it with the razor blade?

Hmm, but what about people who couldn't get their fingers through the hole?

Sheesh. I'm glad you're the developer yeti.


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 chewyman on Wed Jan 09, 2008 8:38 am

cicero wrote:
chewyman wrote:
yeti_c wrote:
chewyman wrote:I loved the float actions feature, but I've had to turn it off now. The end attack and auto attack buttons are too close together <snip>
Here's a thought - turn on "Confirm Phase End"... <snip>

C.

I already have it on, but I also have the confirm auto attack feature. It's just a simple enter key to bypass the confirmation, so if I've pressed the wrong button the confirmation isn't really going to help since my finger is already hovering over the enter key.<snip>


Yeti, perhaps you could put in confirm confirm auto attack and confirm confirm phase end features?

That way at least chewyman will have no reason to argue that his "finger is already hovering over the enter key" ...

But then he'd just press enter twice I suppose ...

Perhaps confirm confirm confirm auto attack and confirm confirm confirm phase end features as well?

No,no. Just press enter three times ...

Perhaps you could distribute the script on a CD with a free razor blade and instructions that the user put their finger through the hole in the CD and guillotine it with the razor blade?

Hmm, but what about people who couldn't get their fingers through the hole?

Sheesh. I'm glad you're the developer yeti.


Cicero :)

No reason to be such a smart arse cicero, 'twas just a suggestion.
If I had a world of my own, everything would be nonsense. Nothing would be what it is, because everything would be what it isn't. And contrary wise, what is, it wouldn't be. And what it wouldn't be, it would. You see?
User avatar
Colonel chewyman
 
Posts: 400
Joined: Sat Feb 17, 2007 12:48 am

prblem with menu

Postby lalinea on Wed Jan 09, 2008 2:43 pm

hi i instaled scrips an everithing works fine till i turned menu off.Now i dont know where can put menu on again.
Sergeant 1st Class lalinea
 
Posts: 4
Joined: Sat Oct 13, 2007 1:24 pm

Re: prblem with menu

Postby yeti_c on Wed Jan 09, 2008 2:45 pm

lalinea wrote:hi i instaled scrips an everithing works fine till i turned menu off.Now i dont know where can put menu on again.


Move your mouse to the left of the screen...

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

Postby lalinea on Wed Jan 09, 2008 2:53 pm

thanks yeti_c
Sergeant 1st Class lalinea
 
Posts: 4
Joined: Sat Oct 13, 2007 1:24 pm

Postby yeti_c on Wed Jan 09, 2008 2:55 pm

lalinea wrote:thanks yeti_c


No worries - if you have the latest version 3.5.1 then you can get info from the "Help/Info" link (of course that's of no use when you can't find the menu again!!)

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

Postby mibi on Wed Jan 09, 2008 7:20 pm

wtf does BOB stand for.
User avatar
Captain mibi
 
Posts: 3350
Joined: Thu Mar 01, 2007 8:19 pm
Location: The Great State of Vermont

Postby Frop on Wed Jan 09, 2008 7:30 pm

Suggestion: Some sort of warning sign (for example Image) in front of the Missed Turn counter if a player has missed turns. I know it should be pretty obvious already if you can tell 0 from 1 or 2, but the Cards counter has a picture as well and Missed Turns is jealous.

Bug(?): The Armies and Territories percentage isn't displayed except for the last Team if you have Stats set to Standard. If you use Extended stats the percentages are displayed for each team.
User avatar
Captain Frop
 
Posts: 1201
Joined: Thu May 10, 2007 3:02 pm

Postby Ishiro on Wed Jan 09, 2008 8:48 pm

Frop wrote:Bug(?): The Armies and Territories percentage isn't displayed except for the last Team if you have Stats set to Standard. If you use Extended stats the percentages are displayed for each team.


Thats the difference between Standard and Extended stats.
Image
User avatar
Corporal 1st Class Ishiro
 
Posts: 324
Joined: Mon Jul 17, 2006 5:53 pm
Location: Under the Rainbow

Postby Frop on Wed Jan 09, 2008 9:09 pm

Ishiro wrote:
Frop wrote:Bug(?): The Armies and Territories percentage isn't displayed except for the last Team if you have Stats set to Standard. If you use Extended stats the percentages are displayed for each team.

Thats the difference between Standard and Extended stats.

I said "except for the last Team".

Image
User avatar
Captain Frop
 
Posts: 1201
Joined: Thu May 10, 2007 3:02 pm

Postby Ishiro on Wed Jan 09, 2008 11:41 pm

Ahh... missed that key word. Problem is in the code that displays the final team's info when the player loop is done. Starting on line 2868 in the code, it needs to be changed to match the team line displays inside the loop. There are actually a couple of problems (fog of war counts are not being applied to the last team either).
Image
User avatar
Corporal 1st Class Ishiro
 
Posts: 324
Joined: Mon Jul 17, 2006 5:53 pm
Location: Under the Rainbow

Postby yeti_c on Thu Jan 10, 2008 4:06 am

Ishiro wrote:Ahh... missed that key word. Problem is in the code that displays the final team's info when the player loop is done. Starting on line 2868 in the code, it needs to be changed to match the team line displays inside the loop. There are actually a couple of problems (fog of war counts are not being applied to the last team either).


Cheers - I'll recode that...

(Might recode it to use the same code - that would be better! - Code duplication is Bad Okay!)

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

Postby yeti_c on Thu Jan 10, 2008 5:20 pm

Ishiro wrote:
yeti_c wrote:
cicero wrote:A bug in 3.5.1. Was also present in 3.4.5.

Check this game http://www.conquerclub.com/game.php?game=1524353

Choose standard stats table and check deferred armies for arbz ... it shows 4.
However arbz has not just missed a turn.


Cicero


OK - I'll look into fixing that Thursday!

C.


Code: Select all
      if (log[i].has("deferred"))
         playersArray[name]._deferred = armies;
      else
         playersArray[name]._lastBonus = playersArray[name]._lastBonus + armies;

In your processing of the log, if you see deferred armies, you are storing them. But if deferred armies are seen in the log, he is no longer deferring armies, and it should be setting it to 0. Deferred armies should only be calculated at the end of the log, if the player currently has a skipped value other than 0. Then when you get to displaying stats:
Code: Select all
         if (playersArray[name]._skipped==0)
             statsStr2+= makeTableCellTextWrap(isEliminated, curpid, playersArray[name]._deferred );

You are displaying the deferred value. In the case linked, the player previously missed a turn. When a deferred cash in is seen, its stored, but since the player has played a turn, skipped was set back 0 but deferred is never cleared.

As I previously mentioned, I think the deferred variable can be dropped altogether. If there are no skipped turns, deferred is 0 and if there are skipped turns, deferred is the current bonus waiting for them times the number of skipped turns.


Hi Ishiro - I've just read this - The deferred value is only used to show the deferred armies when the player is playing his turn...

I.e. for when the player has pressed Begin - and until the player is deploying his deferred armies - at all other times the plan was to calculate the deferred armies by the bonus * missed turns (this calc doesn't work in turn as the player may have changed their bonus)

So the trick is when to reinitialise "deferred"... I can't do it on Deploy... as that happens before - or Attack...

I can't do it on "Fortify" of "gets a card" - although these would help minimise the problem - but if they didn't fortify in a no cards game - then the bug will still happen...

I can't reset it if someone else plays - as that won't work on Freestyle...

Hmmm.

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

Postby yeti_c on Thu Jan 10, 2008 5:29 pm

mibi wrote:wtf does BOB stand for.


The beauty of the name is that it doesn't stand for anything...

Or does it? I did make up an Acronym... however that was just a meaningless ploy to get it to be called Bob...

Alternatively - I could of named it Kate!!!

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

Postby cena-rules on Thu Jan 10, 2008 5:36 pm

when I am violet and I have the deployment menu in doubles all the backgrounds are white. Just to let you know


I love you man
19:41:22 ‹jakewilliams› I was a pedo
User avatar
Lieutenant cena-rules
 
Posts: 9740
Joined: Sat Apr 28, 2007 2:27 am
Location: Chat

PreviousNext

Return to Tool Archives

Who is online

Users browsing this forum: No registered users