ASX Tools Chrome Extension for Airline Sim

Thread is getting long and messy. Putting this at the top:

Current version: v0.0.0.11 - Alpha testing 11 (2023-02-03)

Intro
I’ve been playing AS for several years now (I think 5 or 6).

Multiple times in the past few months the subject of chrome extensions came up, both related to AS with the old ASE extension, and for other reasons outside of AS.

I decided the best way to learn how chrome extensions work was to actually write one from scratch. Writing one for AS seemed like a good fit since it was something I was interested in.

Long story short, this is the extension I have right now. It has four features to start with, and I have ideas for adding more over time.

Current features

  1. Embedded AS Route Map Link on the airline info page.

This was a good first item to tackle since it wasn’t very complicated, but it is useful. I use AS Route Map all the time, and I know other people do, too.

Click on an airline and go to the overview page. Next to the “short-haul”, “medium-haul”, “long-haul” links it will now add a link to AS Route Map for that airline. Click the link and the flight map for that airline on AS Route Map will open in a new tab.

If it opens and you’re in the middle of the ocean, it means the airline does not exist or is not updated on AS Route Map.

  1. Salary adjustment relative to country average

This was something that is in the ASE extension, but was a good second item for me to work on. More complicated than a link, but not overly complicated. It functions much the same way as the ASE version.

On the personnel management page, in the last row of the table at the end in the “Country Average” column is a text box. That is how much you want to adjust salaries relative to the country average. You can do anything from -50% to 100%, which doubles the country average. 0% will set them to the country average.

As you change the amount, it will update what the proposed salaries are in the Country Average column in parentheses.

You must hit the submit button for the changes to be submitted to AS. Salaries will be updated one at a time. If the current salary already matches the proposed salary it will be skipped.

3 & 4. Service profile templates and cabin configuration templates

These two items function in much the same way. You can save your current service profiles and cabin configurations as templates, then reload them into a new airline. It can be an airline on the current server or a different server. It also works with private servers.

This will allow you to get new airlines up and running with less tedious re-entry of service profiles and cabin configurations. I hated re-entering service profiles and cabin configurations when servers were starting or I was creating a subsidiary. This should alleviate that.

On either the Service Profiles or Cabin Configuration page there will be a new button “Add” next to each profile or cabin. There will also be an “ASX Templates” section in the last column.

Click the new “Add” button to add that item to your templates. It show immediately show up in the lower right ASX Templates section.

Go to a different airline. On the Service Profiles or Cabin Configuration pages, click “Copy” next to the template you want to import to you airline.

It may take a few seconds to copy. There are some messages in navbar on the right that show the progress.

The page should refresh when it’s done and you should see your new service profile or cabin configuration.

  1. Options page

On the pages where this extension works, there is an ASX menu added to the menu bar. It only contains one item now which is a link to a very basic options page. You can enable or disable stuff here if you want and make a couple of minor changes to the extension.

  1. Message Area

A message area for ASX messages was added to the right side of the main menu. Any information or updates from ASX will be put there.

Guide

PA747sp made an excellent guide for my extension. Changes were being made kind of quickly, so it’s a little outdated, but it’ll be updated, and it should still provide some assistance in using it right now and will be fleshed out as things get more stable and more polished.

Extension

The extension is still very early in development so it’s unrefined and unpolished.

There are some known bugs which I have already addressed, but didn’t make it to the Chrome Store yet.

The extension is on the Chrome extension store, but is not listed publicly, so you’ll need to use this link to get to it:

Current version: v0.0.0.11 - Alpha testing 11 (2023-02-03)

Builds:

v0.0.0.11 - Alpha testing 11 (2023-02-03):
//-------------------------------------------------------\\
Fixed bug where scraping usernames and end dates in non-English languages didn’t always work
Added internal version checking to standardize update process

v0.0.0.10 - Alpha testing 10 (2023-01-31):
//-------------------------------------------------------\\
Reset local storage to address multiple sporadic issues related to data inconsistencies built up over previous releases

That’s about it for now. Bugs, issues, questions, feedback of any kind or all welcome.

Thanks,
Xth

11 Likes

Thank you so much for this! Being able to easily adjust salaries, copy service profiles and easily reach AS routemap is such an incredible thing.

1 Like

Wow thank you ! Copying profiles and configs is incredibly helpful.

2 Likes

Anytime.

The cabin configuration and service profile templates should end up being a timesaver for people, especially if they create a lot of airlines. Plus it just removes the drudgery of re-entering them for 100th time.

If you run into any problems, even small ones, please let me know. It’s a very early version of this, so I expect bugs and if I know about them I can get them fixed quickly.

Also, there should be updates every few days for a while as I get this a bit more stable, so improvements and fixes should be coming out fairly regularly for a while.

Just for info purposes, current version in the chrome webstore is Alpha 3 (0.0.0.3).

4 Likes

Awesome. Did not yet have enough time to check the whole tool set but to store templates is something we were waiting now for ages… Thank you so much!

1 Like

Thank you for your work!

1 Like

WOW Thank you so much for this extension. To me it is a game changer and will make our lives so much easier.

Thank you!

1 Like

Link to AS routemap disappeared… anybody else having troubles?

Hi.

I can’t reproduce that on my end, so I’ll need a little more info. I sent you a message.

I did find another issue related to the AS Route Map Link (it always points to your airline now), so I’ll get that fixed and up on chrome webstore tonight. It’ll be available once they review it (usually takes anywhere from 1 to 3 days.

EDIT: This issue was fixed in alpha testing 7 build. Extension should be relatively stable now with all basic functionality working.

Xth

I find it useful,

could you consider also showing the as-route link on the main airline page no just the “info” page ? Even if not seeing the map it is practical when managing several airlines.

I don’t know if it’s possible but also a “create airline” button if it’s not already in airlinesim, it would be a nice thing not to have to find the airline ID and go to asmap’s main page to create the airline there.

1 Like

I can add the link to another page pretty easily.

I also like the idea of a link to create the airline in AS Route Map, I’ll see what I can do about that.

I got the ASRM links on the airline overview page. ‘Update ASRM’ will create/update the airline on ASRM.

As soon as google approves the change to the extension it will be available. They usually take from 1 to 3 days to do this.

It will be build 0.0.0.9 (Alpha build 9).

image

1 Like

Thanks ! That will be pretty neat :slight_smile: And you got what I meant, adding an “AS Route Map” line to the page is practical in my opinion.

A feedback on employee’s salaries on page AirlineSim

Has it changed? As it stands, 0% is average salary, and negative values (to pay as low as 50% of national average) doesn’t work anymore ? At least not on my system. Also I do not know if it depends on airlines but sometimes the script doesn’t affect the pilot salaries but works for the others (I am not sure how to reproduce it, if I find a pattern I will post it here).

Also the ASX menu (next to Management) does not appear on all pages. Maybe you have to add this manually to all of them, in which case fair enough. It’s just in case it should not matter (for example on page “Scheduling” it does not appear but on Fleet Management it does

Just to be sure, I am using Brave current build (not chrome vanilla) with almost no extension.

1 Like

I didn’t change the salary page specifically, but I have been making a lot of changes to things internally. I’ll doublecheck that page and make sure negative salary changes are working. I actually never use them, so I guess I haven’t tested that particular aspect in a while.

As far as which salaries it affects, it is setting them correctly for me on all the positions using 0% or above. If you can get some screenshots that would be helpful.

The menu only appears on pages that scripts are configured to run on. It shows on the fleet page because I was starting to work on something for it so the basic things like the menu are in place on that page, but nothing else really happens yet.

Thanks!

The copy seating configuration option isnt available anymore.

On other gameworld it works. strange.

Can you let me know a few things?

  1. Which browser are you using? Any other extensions installed?
  2. Version you are running of the extension (most likely 0.0.0.9)
  3. Which world it’s working on and which it isn’t.

There’s an issue with some of the data that’s stored in the browser’s data store, so I’m going to guess this is related to that.

I have another build that’s been submitted to google that will reset the local storage almost entirely which should fix a few sporadic issues. That will be build 10 and should be out in a day or two depending on google’s turnaround on reviewing it.

EDIT: Actually Google already approved 0.0.0.10. That only took a few hours this time. Amazing.

Update to build 0.0.0.10 and let me know if that fixes it for you.

On a related topic, in case anyone is interested in this, this is how you can see exactly what data is being stored in the chrome storage area for this extension (this will work for any extension you have installed).

  1. Go to chrome://extensions Find the box for this extension and click the “service worker” link. This will open a dev console for the service page that runs in browser.

image

  1. In the dev console type the following. This will pull all the storage keys for this extension and show them to you in the console.

chrome.storage.local.get(null, function(data) { console.info(data) });

image

  1. If you have 0.0.0.10 installed, your output should be similar to the following. If you have an earlier build, you will probably see a bunch of other keys. You can drill down into each section to by clicking on the arrow next to it.

image

You can do the same for any chrome extension you have installed. Find it in the chrome://extensions page, open the dev console for it, and type the above chrome.storage.local command.

Thank you for your fast response! :slight_smile:
So I updated to your new Version 10 and the problem still remains.
It doesnt work on Bleriot but it works perfectly on Maddog.
I am using Chrome Browser with the following extentions:

Unfortunately, I can’t reproduce it on my end.

Can you get the logs from the dev console? You can send them to me in private message or in Discord if you want.

If you’re not sure how, let me know and I can walk you through it.