Topic: Ic Fleet Boss

the new scrip is incredible and momentum i thank you a lot.

i would like to ask here if it would be cheat and/or if it would be possible that instead of "only" enter automatticaly the fleet size  it could be added an attack buttom that would send automatticaly fleets to all those planets selected instead of pressing attack in each page smile

retired.

Re: Ic Fleet Boss

>it could be added an attack buttom that would send automatticaly fleets to all those planets selected instead of pressing attack in each page smile

That would definitely be illegal.

Rehabilitated IC developer

Re: Ic Fleet Boss

Momentum (my roomate) had his program to do this initially, but the Mods told him this was illegal, so this is as far as he could take the program...

Re: Ic Fleet Boss

Yup. Brought down by The Man. Sorry. It makes me mad, too.. It's a very simple fix. Perhaps I'll try to push this a little further, but we'll see...

Re: Ic Fleet Boss

Momentum, This still doesn't work for droids. :-(

Amazing script! Doesn't work in opera but was worth switching to firefox for!

Rehabilitated IC developer

Re: Ic Fleet Boss

Right click the monkey, go to "User Script Commands..." -> "Update droid availability"

If this still doesn't work, let me know. And try and be a little more specific if you can tongue "Doesn't work" doesn't really help. Do you not have a "droids" box? Or does it put in the wrong numbers?

Re: Ic Fleet Boss

Every time you click the attack button, a request is sent to the server. The server processes it and sends back a response (The HTML page). When the server processes this response it will connect to a database, manipulate cookies (yum), and just generally use the servers processor and memory.

If everyone starts sending "automated requests" the server will get overloaded VERY quickly.

The server simply couldn't handle it...thats why...

Morbo: Morbo can't understand his teleprompter. He forgot how you say that letter that looks like a man with a hat.
Linda: It's a 't'. It goes "tuh".
Morbo: Hello, little man. I will destroy you!!

http://www.youtube.com/watch?v=cpP7b2lUxVE

Re: Ic Fleet Boss

sKoE,

automated requests would take load OFF the server. As long as the requests are one's that would be made eventually. For example, it normally takes up to 6 calls to the server to attack once. Let's say someone  sends you coordinates in a message:

Notes -> Maps -> Sector -> System -> Planet -> Attack -> Request

With my script as is, takes 2 calls:

Notes -> Attack -> Request

If I could make calls from the page, I could eliminate the middle pages altogether:

Notes -> Request

Re: Ic Fleet Boss

@ momentum

Updating droid availability worked.

I have a couple friendly suggestions though.

Before I read your post  I edited your script and removed all traces of having to check for droid availability.

It worked just fine. This means that the droid element would always appear when you pressed 'a', but the correct values would still be entered in the right places and the script wouldn't have to use extra bandwidth checking a users race. It seems quite silly to make a page request to decide whether or not to hide the droid element when a user is going to know whether or not they have droids.

Also Look at the first arguments passed to GM_setValue. Those should be changed to 'type4' and 'type5' respectively

    b = document.getElementsByName('type4')[0];
    if(b){
      b.setAttribute('value',GM_getValue('type4',''));
      b.addEventListener('change', function() {GM_setValue('type3',document.getElementsByName('type4')[0].value)}, true);
    }
    b = document.getElementsByName('type5')[0];
    if(b){
      b.setAttribute('value',GM_getValue('type5',''));
      b.addEventListener('change', function()
{GM_setValue('type3',document.getElementsByName('type5')[0].value)}, true);




Great script!

Rehabilitated IC developer

Re: Ic Fleet Boss

Argh. Yeah. Droid updates have been much more of a hassle than they were worth.

New version, no droid updates: http://userscripts.org/scripts/source/38573.user.js

And thanks for catching the 'type3' error, A10. I missed them in my copy-pasting. Happens a lot... >.<

11

Re: Ic Fleet Boss

>And thanks for catching the 'type3' error, A10. I missed them in my copy-pasting. Happens a lot... >.<

OMG you have no idea how many times that's screwed me. I once spent 4 days trying to find a series of bugs that was caused by me copying and pasting lines of code without correctly editing them hmm

Rehabilitated IC developer

Re: Ic Fleet Boss

the a is not to configure how much fleet you will send and yes to make the link directable to the attack page right?cause after u do the attack, now it is stored somewhere my attack as defaul so it shows there always until i put new numbers. right?

retired.

13 (edited by =( sKoE )= 21-Dec-2008 02:49:05)

Re: Ic Fleet Boss

[@momentum]
No lol, the number of requests would increase -- and the time between each request would significantly decrease. You assume that everyone is attacking large amounts of planets, which isnt true. If this script was allow the oppertunity to use it would arise more often then not -- and thus there would be a much bigger increase in traffic.

The proper way to do this would be to pass an array of co-ordinates in the request -- and let a single request pass that information to the database. Its fair, it wouldn't be too hard to do, but obviously that requires Stefan.

Morbo: Morbo can't understand his teleprompter. He forgot how you say that letter that looks like a man with a hat.
Linda: It's a 't'. It goes "tuh".
Morbo: Hello, little man. I will destroy you!!

http://www.youtube.com/watch?v=cpP7b2lUxVE

Re: Ic Fleet Boss

@sKoE

I see a flaw in your plan: "that requires Stefan."

Re: Ic Fleet Boss

Also, I don't think people will change their strategy because of my scripts. They're there just to make things easier. Also, what's the problem with the time between requests decreasing? You're IP is limited to 50 calls a minute, so I can't exceed that.

Re: Ic Fleet Boss

> You're IP is limited to 50 calls a minute, so I can't exceed that.

Really? I wasn't aware of that. Last time, i mean erm, last time "Mr. SHOE" (NOT ME) wrote an illegal script there was no such barrier.
But thats still not the point. 50 requests within 2 seconds is alot more of a load then 50 requests within 3 minutes.

And yes, if you create the script alot more people *will* use it. Few people actually send mass-fleets right now but if this were to change, everyone would just be sending mass-retake fleets (for example).

> I see a flaw in your plan: "that requires Stefan."

I know. Hence why i put "but obviously that requires" before his name smile.

Morbo: Morbo can't understand his teleprompter. He forgot how you say that letter that looks like a man with a hat.
Linda: It's a 't'. It goes "tuh".
Morbo: Hello, little man. I will destroy you!!

http://www.youtube.com/watch?v=cpP7b2lUxVE

Re: Ic Fleet Boss

Perhaps Mr. SHOE is the reason I've got to work around said rate limit now.

Re: Ic Fleet Boss

But my point still stands -- any script that repeatedly accesses the server is baaad smile.

Morbo: Morbo can't understand his teleprompter. He forgot how you say that letter that looks like a man with a hat.
Linda: It's a 't'. It goes "tuh".
Morbo: Hello, little man. I will destroy you!!

http://www.youtube.com/watch?v=cpP7b2lUxVE

Re: Ic Fleet Boss

Try opening 50 planet pages in a minute. You'll get something about the server "having a bad day" or something..

Re: Ic Fleet Boss

I'll rephrase then:

The more requests are spread over time - the less load on the server.

Could you imagine if 1,000 people all used the same script to access 50 pages within the same minute?

That could be upward of 100,000 requests. In just 1 minute.

Morbo: Morbo can't understand his teleprompter. He forgot how you say that letter that looks like a man with a hat.
Linda: It's a 't'. It goes "tuh".
Morbo: Hello, little man. I will destroy you!!

http://www.youtube.com/watch?v=cpP7b2lUxVE

Re: Ic Fleet Boss

The thingy on the bottom doesnt work in the forum, i'm forced to first go to fam news and change it before clickin links in forum

Not many people know this, but I own the first radio in Springfield. Not much on the air then, just Edison reciting the alphabet over and over. "A" he'd say; then "B." "C" would usually follow...

Re: Ic Fleet Boss

Yeah, I know about that. It's there, it's just hidden under everything. What you're doing now is gonna have to work for the time being. Maybe I'll try and get this fixed tomorrow.