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.
Locked
User avatar
yeti_c
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am
Gender: Male

Post by yeti_c »

The1exile wrote:
Bad Speler wrote:Can the ActionForm be longer, like how CC defaults it, because its incredably small, especially on the tall narrow maps like South America


seconded. On a portugal game this morning I nearly clicked auto attack instead of attack and end forts instead of fort.


Denied... I've already made it wider than it used to be - although I prefered it to be smaller - can't you just take more care where you point your mouse?

Or is it that now that I've set the width to the size of the map - that it's shorter than it used to be?

C.
Image
Highest score : 2297
User avatar
Frop
Posts: 1201
Joined: Thu May 10, 2007 3:02 pm

Post by Frop »

I'm afraid I have to agree with the other users - if the action form is really shorter than it used to be on 'narrow' maps that would have an undesirable effect (and consequently I'll wait a bit with updating :p).
User avatar
The1exile
Posts: 7140
Joined: Tue Aug 15, 2006 7:01 pm
Location: Devastation
Contact:

Post by The1exile »

yeti_c wrote:Denied... I've already made it wider than it used to be - although I prefered it to be smaller - can't you just take more care where you point your mouse?


Not when I'm playing in the morning :P

yeti_c wrote:Or is it that now that I've set the width to the size of the map - that it's shorter than it used to be?

C.


That's precisely it. I'd hate to turn BOB off (or go searching for a previous version) just to get the default width back.
Image
User avatar
yeti_c
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am
Gender: Male

Post by yeti_c »

The1exile wrote:
yeti_c wrote:Or is it that now that I've set the width to the size of the map - that it's shorter than it used to be?

C.


That's precisely it. I'd hate to turn BOB off (or go searching for a previous version) just to get the default width back.


Righto - I'll have a think about that...

How about I make it map width - unless it's under X then leave it at X... probably about 600?

C.
Image
Highest score : 2297
User avatar
Stoney229
Posts: 303
Joined: Fri Mar 03, 2006 10:46 am
Contact:

Post by Stoney229 »

edthemaster wrote:
yeti_c wrote:
evster wrote:Hi Yeti,

suggestion: instead of :check for updates, what if the rev # changed colour if it was different than the most current?

ps. great script - do you know what % of players use it?


I'm afraid that's not possible - The script doesn't know whether it's out of date or not - thus cannot change it's colour!! - Nice idea if it could though.

C.


c, if you look at the clickable maps code, i have the script automatically check its version against the version on the server by downloading the one on the server using xmlHttpRequest, finding the line that matches "var version =", then comparing it to it's own "version" variable...
I just thought I'd repost this, as it looked like you hadn't seen it, yeti, and it was the last post on the previous page.
Score: 1739
Games: 88 Completed, 52 (59%) Won
#1302/21963
User avatar
Bad Speler
Posts: 1027
Joined: Fri Jun 02, 2006 8:16 pm
Gender: Male
Location: Ottawa
Contact:

Post by Bad Speler »

yeti_c wrote:
The1exile wrote:
yeti_c wrote:Or is it that now that I've set the width to the size of the map - that it's shorter than it used to be?

C.


That's precisely it. I'd hate to turn BOB off (or go searching for a previous version) just to get the default width back.


Righto - I'll have a think about that...

How about I make it map width - unless it's under X then leave it at X... probably about 600?

C.

I'd prefer screen-width, but 600 is manageable...you might want to check if it will be enough for the Scotland map, because it has long names. In the following screenshot the fortify button managed to find its way below the end forts button. By the way, i have HUD turned off. It seems to be that turning it off in game makes the ActionForm screenwidth, whereas entering the game with it already off makes it map width

Image
Highest Score: 2532
Highest Position: 69 (a long time ago)
User avatar
Optimus Prime
Posts: 9665
Joined: Mon Mar 12, 2007 9:33 pm
Gender: Male

Post by Optimus Prime »

<removed>
Last edited by Optimus Prime on Tue Jan 15, 2008 6:44 pm, edited 1 time in total.
User avatar
Night Strike
Posts: 8512
Joined: Wed Apr 18, 2007 2:52 pm
Gender: Male

Post by Night Strike »

yeti_c wrote:
Night Strike wrote:I never saw where you made that floating menu standard rather than optional. And why?? I prefer the old, separate way. (Yes, I have HUD turned off and am running the newest version 3.5.7)


Turning HUD off - makes the Buttons dock for me - are you running with Clickable maps too?


It is off for me but it keeps rotating. And I don't have clickable maps.
Image
User avatar
Optimus Prime
Posts: 9665
Joined: Mon Mar 12, 2007 9:33 pm
Gender: Male

Post by Optimus Prime »

yeti_c wrote:
Night Strike wrote:I never saw where you made that floating menu standard rather than optional. And why?? I prefer the old, separate way. (Yes, I have HUD turned off and am running the newest version 3.5.7)


Turning HUD off - makes the Buttons dock for me - are you running with Clickable maps too?

Yes, it docks them, and they MOVE every time I click on one of them. :evil: :evil:
User avatar
Night Strike
Posts: 8512
Joined: Wed Apr 18, 2007 2:52 pm
Gender: Male

Post by Night Strike »

yeti_c wrote:VERSION : 3.5.7

FIXED :
Clock.
ActionForm width now equals the map width - and changes when you change the map size.


There was absolutely no reason for this to be installed, especially when it's not optional. Many of us insist you change it back.
Image
User avatar
yeti_c
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am
Gender: Male

Post by yeti_c »

Night Strike wrote:
yeti_c wrote:VERSION : 3.5.7

FIXED :
Clock.
ActionForm width now equals the map width - and changes when you change the map size.


There was absolutely no reason for this to be installed, especially when it's not optional. Many of us insist you change it back.


FFS - I was asked to make it map width - and now I'm asked not too...

I prefered it being just the normal width... - but then you don't get a gap between Auto Attack and End Attacks...

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

Post by yeti_c »

Stoney229 wrote:
edthemaster wrote:
yeti_c wrote:
evster wrote:Hi Yeti,

suggestion: instead of :check for updates, what if the rev # changed colour if it was different than the most current?

ps. great script - do you know what % of players use it?


I'm afraid that's not possible - The script doesn't know whether it's out of date or not - thus cannot change it's colour!! - Nice idea if it could though.

C.


c, if you look at the clickable maps code, i have the script automatically check its version against the version on the server by downloading the one on the server using xmlHttpRequest, finding the line that matches "var version =", then comparing it to it's own "version" variable...
I just thought I'd repost this, as it looked like you hadn't seen it, yeti, and it was the last post on the previous page.


I did see this and I was intrigued - I will investigate... once I'd posted the above answer I did think that there must be a way of doing this - my only concern is that it has to download the entire bob script to read the latest version number...

I suspect a better route will be to have a secondary script that just holds the latest version number - then I can call to download that without any bother whatsoever.

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

Post by yeti_c »

VERSION : 3.5.8

FIXED : Minimum Form Width is now configurable in the menu...
Absolute Minimum is 600 - Maximum is 1000.

C.

PS - This is a "per map setting" and is defaulted to 600.

PPS Note that this setting only comes into effect if the map is smaller than the minimum width.
Image
Highest score : 2297
User avatar
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

Post by cicero »

Night Strike wrote:
yeti_c wrote:VERSION : 3.5.7

FIXED :
Clock.
ActionForm width now equals the map width - and changes when you change the map size.


There was absolutely no reason for this to be installed, especially when it's not optional. Many of us insist you change it back.

Night Strike I dare say you posted in the heat of the moment, but let's try and remember the following:

(i) BOB is free
(ii) BOB only exists because yeti_c chooses to maintain it
(iii) yeti_c does not work for us (the community) or for ConquerClub
(iv) Notwithstanding all the above yeti_c chooses to consult us when considering what direction to take the script in
(v) Notwithstanding all the above if you believe that you should still be able to insist on anything regarding BOB then you should learn javamonkeyscript [or whatever ;)] and start developing your own script. If you choose to do this you will have the avantage of using all the existing code as a starting point.

Like I said, perhaps you posted in the heat of the moment. Nonetheless I think we could all do with reflecting on the above from time to time.


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.
Hrvat
Posts: 354
Joined: Mon Jul 23, 2007 8:41 pm

Post by Hrvat »

cicero wrote:
Night Strike wrote:
yeti_c wrote:VERSION : 3.5.7

(i) BOB is free
(ii) BOB only exists because yeti_c chooses to maintain it
(iii) yeti_c does not work for us (the community) or for ConquerClub
(iv) Notwithstanding all the above yeti_c chooses to consult us when considering what direction to take the script in
(v) Notwithstanding all the above if you believe that you should still be able to insist on anything regarding BOB then you should learn javamonkeyscript [or whatever ;)] and start developing your own script. If you choose to do this you will have the avantage of using all the existing code as a starting point.
Like I said, perhaps you posted in the heat of the moment. Nonetheless I think we could all do with reflecting on the above from time to time.


Cicero

ImageImageImage

If you do not like the script take it OFF your computer :roll: :roll: :roll:

However, there are people who are making errors, because Buttons are changing their locations (especially on the small map). So, perhaps, remedial action may be required.
AND, I am pretty sure, that this change was suggested by one of the users, and yeti_c has obliged.
Great work yeti_cImageImage
I'll never pay for another Premium on ConquerClub.
User avatar
yeti_c
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am
Gender: Male

Post by yeti_c »

Hrvat -> remedial action has already been done!!!

C.
Image
Highest score : 2297
Hrvat
Posts: 354
Joined: Mon Jul 23, 2007 8:41 pm

Post by Hrvat »

Great work yeti_cImageImage
I'll never pay for another Premium on ConquerClub.
User avatar
Tieryn
Posts: 781
Joined: Mon May 28, 2007 7:30 am
Gender: Male
Location: Generation One
Contact:

Post by Tieryn »

Something I've been wondering for a while, whether it might be possible to add with BOB, is something like an "Autoattack [x]" where you specify a number [x] and it will autoattack down to that number, rather than to 3...

I suspect it would be possible, but whether or not it's plausible, I don't know. I just thought I'd throw the idea out there.

Also possibly another button "autoattack and advance all" that would be useful in finishing off games where you've got bulk armies and you just need to follow the territories around.

Anyway, a couple of ideas, whether they're possible or plausible or even wanted, I dunno, but there you go :P
User avatar
yeti_c
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am
Gender: Male

Post by yeti_c »

Tieryn wrote:Something I've been wondering for a while, whether it might be possible to add with BOB, is something like an "Autoattack [x]" where you specify a number [x] and it will autoattack down to that number, rather than to 3...

I suspect it would be possible, but whether or not it's plausible, I don't know. I just thought I'd throw the idea out there.

Also possibly another button "autoattack and advance all" that would be useful in finishing off games where you've got bulk armies and you just need to follow the territories around.

Anyway, a couple of ideas, whether they're possible or plausible or even wanted, I dunno, but there you go :P


Technically they're possible... but a bit beyond the scope of the script really - mostly BOB tries to give you information - rather than actually change the way the game plays... I guess a more homely place for this suggestion would be the "Clickable Maps"

C.
Image
Highest score : 2297
User avatar
edthemaster
Posts: 111
Joined: Mon Jan 29, 2007 3:07 am
Contact:

Post by edthemaster »

yeti_c wrote:
Tieryn wrote:Something I've been wondering for a while, whether it might be possible to add with BOB, is something like an "Autoattack [x]" where you specify a number [x] and it will autoattack down to that number, rather than to 3...

I suspect it would be possible, but whether or not it's plausible, I don't know. I just thought I'd throw the idea out there.

Also possibly another button "autoattack and advance all" that would be useful in finishing off games where you've got bulk armies and you just need to follow the territories around.

Anyway, a couple of ideas, whether they're possible or plausible or even wanted, I dunno, but there you go :P


Technically they're possible... but a bit beyond the scope of the script really - mostly BOB tries to give you information - rather than actually change the way the game plays... I guess a more homely place for this suggestion would be the "Clickable Maps"

C.


Tieryn, good suggestions...

c, i think you're, right, i think could incorporate these suggestions into clickable maps.

the only thing about the "autoattack [x]" suggestion is that it won't be as fast as regular auto-attack because each attack would have to be sent individually, until the player's armies reached a certain number and the clickable maps (or whichever) script stopped attacking. this would still be faster than doing it manually, though...

the "autoattack then advance" suggestion is definitely doable. if you're not going to take this one, i can start working on it...
User avatar
yeti_c
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am
Gender: Male

Post by yeti_c »

edthemaster wrote:
yeti_c wrote:
Tieryn wrote:Something I've been wondering for a while, whether it might be possible to add with BOB, is something like an "Autoattack [x]" where you specify a number [x] and it will autoattack down to that number, rather than to 3...

I suspect it would be possible, but whether or not it's plausible, I don't know. I just thought I'd throw the idea out there.

Also possibly another button "autoattack and advance all" that would be useful in finishing off games where you've got bulk armies and you just need to follow the territories around.

Anyway, a couple of ideas, whether they're possible or plausible or even wanted, I dunno, but there you go :P


Technically they're possible... but a bit beyond the scope of the script really - mostly BOB tries to give you information - rather than actually change the way the game plays... I guess a more homely place for this suggestion would be the "Clickable Maps"

C.


Tieryn, good suggestions...

c, i think you're, right, i think could incorporate these suggestions into clickable maps.

the only thing about the "autoattack [x]" suggestion is that it won't be as fast as regular auto-attack because each attack would have to be sent individually, until the player's armies reached a certain number and the clickable maps (or whichever) script stopped attacking. this would still be faster than doing it manually, though...

the "autoattack then advance" suggestion is definitely doable. if you're not going to take this one, i can start working on it...


Go for it - like I say - BOB is for Info - Clickable maps is for Doing stuff...

Essentially you'll just have to run an "attack" press X times - of course to be really nice - then it would be good to hold the data on the dice and display it a bit like autoattack does at the moment - that'll be your tricky bit I imagine!!

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

Post by yeti_c »

VERSION : 3.5.9

FIXED : Small bug when viewing games.

C.
Image
Highest score : 2297
User avatar
Ishiro
Posts: 324
Joined: Mon Jul 17, 2006 5:53 pm
Gender: Male
Location: Under the Rainbow
Contact:

Post by Ishiro »

Hmm... wouldn't having an "Attack X times" button give an unfair advantage in realtime/freestyle games?
Image
yowzer14
Posts: 196
Joined: Sun Dec 24, 2006 10:20 pm
Location: Windsor, Ontario, Canada

Post by yowzer14 »

yeti_c wrote:VERSION : 3.5.9

FIXED : Small bug when viewing games.

C.


Slight fix needed, the compare needs to be against width, not 600 for the size setting to be of any effect.

Code: Select all

function setFormWidth()
{
   var width = GET_MINFORMWIDTH(myOptions,mapName);
   if (mapSize=="L")
   {
      lwidth = parseInt(largewidth,10)+5;
      if (lwidth>width)
         width = lwidth;
   }
   else
   {
      swidth = parseInt(smallwidth,10)+5;
      if (swidth>width)
         width = swidth;
   }
//   width=String(parseInt(width,10));
//   width=1000;
   var actionForm = document.getElementById('action-form');
   if (actionForm)
      actionForm.style.width=width+"px";
}

User avatar
yeti_c
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am
Gender: Male

Post by yeti_c »

VERSION : 3.5.10

FIXED : Compare against width not 600 - else maps that are bigger than 600 aren't affected.

C.

PS Cheers Yowzer...
Image
Highest score : 2297
Locked

Return to “Tool Archives”