Welcome to the forum, feel free to look around and feel free to sign in and join this community it is free and very easy. Ask a question related to computers, networks, security, internet...etc or comment on others' questions. Thanks :)
Autopilot for Airline Manager on Facebook
  • I am going to move the discussion about the script here. So bugs, new features and "arguments" are to be discussed here instead of the blog. :)
  • hi fahad,

    is it save to discussed about your script here from AM mods?
  • Hi sam,

    No, it is not. Since they can also join and post here and anyone can read this.



    Actually, a rule of the internet is that you should not trust anything, not even me .

    Do you know that any one can send emails from any address! so anyone can
    fake an email from something@fadvisor.net, or any other email.

    As Luke said on the blog, just use fake names and information.
    Fahad Alduraibi
    fadvisor.net
  • oke fahad, so when will the advertising button will implement? i just can't wait to use that button :D
  • it is in my todo list.. once i have the time...
    Fahad Alduraibi
    fadvisor.net
  • So for the Ads,, I was thinking about making it in a way similar to fuel, so you select the type of advertisement and the number of days and you set the the maximum price, and once the prices are at or below that price it will buy. However, there is a small problem, let say you want to catch a low price that for example happens every Thursday at 9AM and you st it for 7 days, so every week it will buy the same deal again, then the first time the script runs at that hour it will buy it let assume it is 9:10AM, so until same time next week you will not be able to buy anything, that is normal however, you have to wait until 9:10 or after to buy. So let say the the second week the script ran at 9:05 could not buy since you still have the ads and the second and the second run at the same hour was let say 30minutes later so it will be 9:35. so you see that next week's buying window is just 25minutes and not one hour and the time will keep getting shorter and shorter until you miss one whole week then the same scenario will repeat again.
    A simple solution will be to get Ads for 6 days only so the last day you will be running with no ads but you will be able to buy at any minutes of the hour in the next day.


    What are your suggestions guys? Do you recommend doing it in a different way? a more efficient way that i did not think of? maybe i am thinking inside the box :-?
    Post edited by fduraibi at 2011-07-13 10:54:54
    Fahad Alduraibi
    fadvisor.net
  • I thinking just like yours simple solution, setting the ads for 6 days only. I thinking it's already the right solution. By the way, where's luke, is he notice about this forum?
  • yes, he was the first one to have an account actually =D>, but maybe he is busy managing his aircraft :-)
    Post edited by fduraibi at 2011-07-14 09:49:46
    Fahad Alduraibi
    fadvisor.net
  • OK, so i think i got the Ads working now, still need some testing to make sure everything is working as intended since I have also changed the way tasks are being run to fix some of the timing issues with tasks getting executed before other are finished.

    If you wanna help then kindly download the file and try it (ver 1.2.11a)
    Report any bug you find here on this thread.

    * You will need to rename the file to "am_autopilot.user.js" so greasemonkey will detect it. I am trying to find a way to make the forum keep the original file name.
    am_autopilot.user.js
    44K
    Post edited by fduraibi at 2011-07-18 00:45:55
    Fahad Alduraibi
    fadvisor.net
  • Here I am !

    Hehe. You're right about me making an account early on. It's just that I didn't really have anything to add (except for maybe saying something like "first post!!") so I never posted in this forum... and thus I wasn't being notified of any of the conversations of this forum. However now that I posted this message I should be subscribed so I will get notifications by email :)

    About the advertising problem, I'd like to say three things:
    1. It reaches low prices several times a day, as you can see in the table on the home page of Fahoud's blog. So if your 1 hour window to buy cheap advertising has expired, the next 1 hour window is never that far away. Sometimes the price gets that low again in 1-2 hours, sometimes you have to wait until the next day, but it's not something serious.
    2. I assume advertising price is significant for small airlines, but for medium-size airlines like mine it's still worth buying advertising even when it's at its at its most expensive because the number of extra passengers more than makes up for the price of the advertising
    3. A human player who is very dedicated and plays the game constantly will still have the same problem with regards to advertising. So in my opinion there's no way for the script not to have the exact same problem, and thus I wouldn't worry about it too much. The good thing is that we can automate advertising now and therefore the script is finally complete :)

    Now I just have to download and test it ;)
  • sorry if I asking some stupid question because i really blind with programmer.


    :">
    but how to download it to my Grease Monkey?


  • Sam - I'm assuming you already have greasemonkey installed.

    To install the script:

    1. click on the file in Fahoud's post. It should open a file with a lot of text (all the code for the script to be exact).

    2. Then, click file -> save page as -> pick a convenient location for it (I saved it to the desktop for example), and rename it to "am_autopilot_1.2.10.user.js" without the quotes

    3. Then, in firefox, open a new tab and go file -> open file -> select the file that you've just saved (am_autopilot_1.2.10.user.js) and click open. You should get the greasemonkey box that always shows up when you try to install scripts. Just click install and you're done! :)
  • Thank's a lot Luke..

    ;;)
  • Now the script already perfect even without Selling & Buying A/C setting implemented yet.

    You have make a great job Fahad!!
    ^:)^
  • Hey Fahad,

    Major props on the script! I do have a question for you though. I've not had any problems with previous versions, but I just installed 1.2.11 and stuff seems to have gone a bit crazy. I'm running Firefox 3.6.19 on my old Mac (10.4) and with the latest update, I can no longer use the script. I've attached an image of the problem, as it is now stuck at the bottom with no borders or ability to move the box. The button functions have also been disabled. Not being a programmer at all, I did pull up the error console and the majority of things in it are showing declarations dropped because of issues with property resize, text overflow, etc. Any ideas on what the issue might be? I'll try to provide more information if needed. Thanks!
    Picture 5.png
    851 x 602 - 144K
  • A quick update, just grabbed and installed the version you posted here and I'm not having the border issue or non-working buttons, so yay! I am still curious why it did that before though. Ah well, live and learn. Thanks again for an awesome script!
  • I have had that issue after changing something but i though i got it fixed, basically the coordinates of the box (X & Y) get stored in Firefox will empty values and that causes this behavior. I will try to find out why is that happening and will update the script. I might post it here first so you can test it and tell me if it works before i release it to the public.
    Thanks Jeep.
    Fahad Alduraibi
    fadvisor.net
  • OK guys. Bad news.

    I know what you're thinking, but no, my airline has not been suspended.

    The bad news is that the mods are onto us (as you can read in this thread - I can't take credit for finding the link, someone from this forum told me about it). They have a list of about 900 airlines who are suspected to be cheating. Probably the only reason I haven't been suspended yet is because they're only doing airlines with stock prices in the top 500. I'm more like in the top 10,000.

    The point of my post here is to give you some tips to make it hard for you to get caught, based on what I've understood about the ways they're catching script users from that thread in the link. Here goes:

    1. Turn off your computer at night. Real human players need sleep. A sure-fire way of knowing that someone's using a script is that their planes are flying at all times of the day and night. So make sure to stop using the script for at least 8 hours every day (preferably at night time) to avoid this giveaway.

    2. Set the delay to a long time. Something like 30+30. Real human players don't spend their waking hours logging on to facebook every 15 minutes to start their flights. Thus another sure fire way the mods will catch airlines using the script is that they always seem to have close to their full number of flights (600 or 800) flying. And the stock price graph goes up in a smooth, straight line for heavy script users. For real human players, the graph goes up in steps (every time they start a bunch of flights, that's one more step). So getting the script to log in just once every hour or so will make it look a lot like a human player.

    Those are my suggestions based on what they revealed in the thread. They might have other things up their sleeves (they mentioned a tracker for example, but I'm not sure what they meant exactly), but at least if you follow these two suggestions above you will make it that much harder for them to detect you.
  • Jeep, try this attached file and please tell me if it solves your problem.
    am_autopilot_1.2.12a.user.js
    46K
    Fahad Alduraibi
    fadvisor.net
  • Thanks Luke,

    I have just updates the script to allow times up to 999minutes + 999 random minutes, so that gives the use up to 16 hours (+random up to another 16 hours) of time between runs.

    So if you have those big aircraft (like A380) with long flight time, you should use large values for the wait time to make sure that they are not always up in the air.

    Also the random time is important so your script will not always kick in after the same interval, example:

    If the time is 90 and random is 60 then it means the wait time will be between 90minutes up to 150minutes (90+60), the script will generate a different random value for each run.

    try the new update: 1.2.12b
    am_autopilot_1.2.12b.user.js
    46K
    Fahad Alduraibi
    fadvisor.net
  • For A380s alone, that would be great, but then you'll end up losing the money from the cargo flights because the people at the top positions are starting their cargo more often than once every 16 hours, so you won't be able to beat them unless you run cargo about as often as they do.

    Now, in a perfect world, cargo can be started once every 5 minutes max, but to make the script appear more "human" I would suggest leaving it 30+30 so it starts your cargos around every 45 minutes to 1 hour on average. And this has the effect of also starting the A380s on your pax routes every time they complete their flights (meaning every 16 hours on average) automatically.
  • At my country, the different time with UTC+2 is 9 hour and that make me almost impossible to get fuel and advertising at low price. Honestly, i don't have ambition to make my airlines on top position, i already strat over my airlines about 5 times because this different time make me never get the low price of fuel and adv.
    After I found this script, it's me can more enjoy playing this game because I have same chance like players on other country who can get fuel and advertising at low price. Honestly I don't have ambition to make my Airlines at top position at all, i just want to fell enjoy playing the game.

    Anyway, is it possible to using the script only for get the fuel and adv at low price without launching the flight?
  • Sam, right now flying is the main function and it runs with every round, but i can add a check box for it so you can disable it.
    that will be added soon :)
    Post edited by fduraibi at 2011-07-23 01:22:21
    Fahad Alduraibi
    fadvisor.net
  • Thank's a lot Fahad, i really appreciate if you can add that..
  • My autopilot stopped working. Im with the last version
    Post edited by achkar at 2011-07-25 09:07:59
  • achkar, i fixed it, thanks for reporting the problem :)
    and kindly next time try to include the message that you get in the log console  (Ctrl + Shift + J) since it helps in finding the cause of the problem.
    Fahad Alduraibi
    fadvisor.net
  • Ur god! Thank you for the support.
  • Its not working again? autopilot/Airline Manager Auto Pilot: Could not find the Fly  ...
  • Dear FDuraibi,

    Thanks for your efforts to make us all happy and satisfied, but there's a problem with the latest version "1.2.12", simply no FLY working, I'm using FireFox and the Error Messages are:

    "autopilot/Airline Manager Auto Pilot: I believe I can fly...
    autopilot/Airline Manager Auto Pilot: Found F, open it..
    autopilot/Airline Manager Auto Pilot: F-wait
    www.paypal.com : server does not support RFC 5746, see CVE-2009-3555
    autopilot/Airline Manager Auto Pilot: Could not find the Fly  ..."

    So please help, thanks

  • Thanks guy for the report of the problem. Seems that they keeps on changing the link for stop Autopilot from working. But that is an easy fix.

    Will fix it and post the new update soon.
    Fahad Alduraibi
    fadvisor.net
  • Dear FDuraibi,

    Thanks for your responce, we are waiting

  • Done.

    Seems like there way in stopping the script users is by changing the fly link so the script will not find it. I am expecting them to change it again and I will update it again :)

    I am thinking now of a way to make it dynamic, so it will adapt to changes even if they are totally different. or allow the user to help figure out the new link.
    Fahad Alduraibi
    fadvisor.net
  • Fahad - make the script extract the link for the "fly" button every cycle (just before it starts sending "fly" requests). I'm sure it would be easy enough to parse the link from the button's code, the problem is how the script will find the button if the code keeps changing. Here's an idea. The one thing that remains constant, regardless of the code changes they make (for now), is the image the button uses, which is
    image
    . So if the script can look for that reference and copy the function one line above it (which is FetchFlightStarter(......) ), it should automatically go for the correct link for the button and start flights correctly for that cycle. Plus it will automatically update, regardless of how many times they change it.
  • Thanks Fahad, v1.2.13 works fine till now
  • Luke, i thought about that, but still they can change the link for the image. Keep in mind that they can download the script and look into it ;)


    I am thinking of an intelligent way for the script to find the link no matter what. It will take some time, or I might ask for the user's help to find the right button to click.


    Anyway, I will be busy for the coming week, moving to another apartment also travelling. so once things are back to normal I will start working on the script AI edition  :-bd
    Post edited by fduraibi at 2011-07-27 18:34:41
    Fahad Alduraibi
    fadvisor.net
  • Great job Fahad!!!!
  • Fixed again.  \m/
    Fahad Alduraibi
    fadvisor.net
  • Dear Fahad,

    Version 1.2.15 seems to have an infinite loop in the code, the error messages is :
    "autopilot/Airline Manager Auto Pilot: Do we have more routes to fly?....
    autopilot/Airline Manager Auto Pilot: Fly them.."
    and repeated themselves many times without any flying happen, please help, thanks
  • They blocked my account. If anyone can/know how to get the HTML code for the flight page and send it to me i can fix the script.

    You can use a personal proxy that keeps a copy of pages, or Httpfox for Firefox which shows you all the traffic that are leaving and coming to your browser including the html of requested pages.

    DON'T POST THE HTML CODE HERE or they will know your account!!! send it to my email [ fduraibi   .(at).  fadvisor.net ]
    Fahad Alduraibi
    fadvisor.net
  • Just saw this on AM page, i feel that the guy who responded is "Dan..." since he is rude and respect no one even with this poor guy who does not know what is going on.


    Lessons learned:Before you buy stock from any airline send them a mail an ask them these questions:
    1. Are you a low-life cheater?
    2. Is your stock going to rise?
    3. Do you have 200+ aircraft?
    If all the answers are 'No' then go a head and buy them safely, otherwise, DEAL WITH IT!!!!!!  [-(
    p1.png
    471 x 310 - 29K
    Post edited by fduraibi at 2011-07-29 00:00:41
    Fahad Alduraibi
    fadvisor.net
  • Fahad, i think the "war" between you and AM admin just started. I really hate that arrogant admin!!! If they want a "war" then we will give them a "war"  \m/
  • Sam, there's another alternative. You can choose to stop playing the game. Web traffic generates revenue for them. Less traffic means less revenue...
  • Luke, i know that..soon if they still arrogant, i will stop playing this game..
  • Dear Guys,
    Any news from Fahad ?
  • i will pm this message
    Post edited by runner1212 at 2011-09-05 04:28:51
  • Hi guys,

    I was on vacation enjoying some quality time with my family.
    I will try my best to get back on fixing this script. But cannot promise you anything soon.
    Fahad Alduraibi
    fadvisor.net
  • thanks Al! I hope your vacation was good.Recently i just flew back from Ft Myers Florida (vacation) on Continental Air,to SouthBend IN.
    Post edited by runner1212 at 2011-09-05 12:53:56

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!