I realized that I need to automate the process after jumping to about 20 UFJD sectors manually in search for tuning crates.
Two scripts are included:
- A modified version of EJ's script that searches for containers. This version searches ONLY for tunings and also in the current sector ONLY. If it finds something, it opens a text input box to block any further input. You need to type "exit" in this input box or it will re-open. This is to block actions from the second script. It also jumps your ship far away from the sector center to avoid death by Xenons (death will close the input box). The script is named aaaaa.findwares.conditional and should appear as the first script in the list for script editor.
- A script for Authotkey (http://www.autohotkey.com/) . This scripts repeatedly jumps you to UFJD sector and back. Once in UFJD, it saves, activates the script editor, runs the first script and then reloads. If the first script is blocking the input, it won't be able to reload and the action will stop with a save available in UFJD sector with a tuning container.
- Autohotkey installed
- A lot of salvage insurance (1000+)
- A lot of EC (1500 should be sufficient to get at least one hit even if you are very unlucky)
- UFJD mapped to the right windows key (or some other key, but then autohotkey script will need to be changed)
- A ship to overtune
- Advanced Satellite
- A moderately fast computer that can load a save game in less than 30-35 seconds.
Installation.
- Copy aaaaa.findwares.conditional.xml to addon/scripts subfolder of X3 installation
- Install and start autohotkey
- Right-click on autohotkey icon in the system tray and select "Edit this script". Notepad will open, replace what you see in it with the the contents of Autohotkey.ahk and save (you can also just copy this file into your windows Documents folder).
- Right-click on autohotkey in system tray and select "Reload this script"
- MAKE A BACKUP OF ALL YOUR SAVES
- Note that the script will repeatedly overwrite the 1-st save on the list.
- Start X3AP, activate the script editor, make sure aaaaa.findwares.conditional.xml is the first script on the list. If not, either rename it with more aaaaa or change the autohotkey script (look for the comments there).
Running
- Reload a game that is not modified.
- Make sure CAPS LOCK is OFF. The autohotkey script uses CAPS LOCK as a toggle to switch itself off.
- Make sure UFJD is mapped to the right windows key (normally, the one right of the right Alt). You can change the key in autohotkey script as well.
- Jump into a relatively empty sector that doesn't produce a lot of lag upon entry
- press Alt N. You should see SETA being activated after short period of time.
- After this DO NOT TOUCH THE KEYBOARD. You cannot minimize the game. If you want to stop the script, turn on CAPS LOCK. Once you activate it, the script will stop running after some time.
- Once you see a popup box on the screen saying 1 Engine Tuning or 1 Rudder Optimization in the title, congratulations, you found a crate. Stop the script by activating CAPS LOCK (wait a bit for it to actually stop) and then type "exit" to close the input box. The script will print the coordinates of the tunings container. Write them down or remember them.
- Reload the game from the 1-st slot and order your ship to go to the coordinates you recorded. Engine Tuning will become visible once you get close, for rudder optimizations you will need to drop an advanced satellite before you can see them.
- Once you collected your crate, jump away manually and save your game to a slot other than the first. It is a good idea to check that your game is still not modified in case something went wrong.
- Repeat as needed