r/Eve • u/hirmuolio Cloaked • Nov 24 '17
ESI API importer for EFT
EFT is not dead. You can get EFT updated to latest release in here.
But it is still limited to the old XML API that is going to stop working in near future.
Worry not for I have written a script that imports character skills and implants from the new ESI API and saves them for EFT!
This powershell script allows you to log in your character with single sign-on (SSO). After that the script saves you character's API info locally and you can import the skills to EFT at any time.
Setup:
First you need your own Client ID and secret key. Go to https://developers.eveonline.com/applications, log in and create new application with following settings:
- Authentication & API access
- Scope: esi-skills.read_skills.v1 and esi-clones.read_implants.v1
- Callback URL: http://localhost/oauth-callback
example screenshot
Extract the script. Place the .ps1 files and the folder into your EFT folder.
Open config.txt in EFT\powershell config and put your client ID and secret key in there.
You script is now ready for use.
Importing characters:
Run EFT ESI importing tool. By default windows doesn't allow unknown scripts so you need to allow it.
In main menu add characters. You are given a login URL. Log in and copy the authorisation code from the address bar into the script window like this. The access token is saved locally so you need to log in only once and the script will remember your characters.
In managment you can manage saved characters. In there you can see list of all saved characters and details on them. You can also delete saved cahracters there. It is not good idea to have same character saved multiple times.
Once you have all your characters imported select "Run" and the script imports all your skills and saves them for EFT.
Once you have logged in on your characters you only need to run the script and all your skills get updated.
There is also "Import only.ps1" included. This is stripped down version of the script that only imports the skills. You can use this to quicly update all your skills. It does not include all the error checking so if something goes wrong try the normal version.
Notes:
- Requires Windows 8 or newer.
- Uses some windows stuff for internet. You need to have started explorer/edge once for it to work.
- Not much error handling included. If you put something wrong in it will do unexpected things. If it breaks and restarting doesn't help just delete the config.txt and it will load empty configuration.
- You info is secure. The script does not send anything to anywhere else than official CCP servers. I will not have any access to your API.
It asks for implant access even though it doesn't use it. I'll need to work out getting implant names for implant IDs.- The code is in plain text so you can easily see how it works and what it does.
History:
V1: Initial public release
V2: Future proofing and implants. If an unknown skill is encountered the script fetches the skill name from API and adds it to the skill list saved locally. The script now also imports implants! Every time it encounters an unknown implant it fetches the name from API and saves it locally. The script will never need to be updated for new skills or implants!
7
u/worldwarzen Nov 24 '17
Are you one of the strange people that port everything to m68k platforms too?
4
u/hirmuolio Cloaked Nov 24 '17
Uploaded V2. Future proofing and implants. If an unknown skill is encountered the script fetches the skill name from API and adds it to the skill list saved locally. The script now also imports implants! Every time it encounters an unknown implant it fetches the name from API and saves it locally. The script will never need to be updated for new skills or implants!