About this mod
Workaround for the old bug that sometimes teleports ships very far away from any object.
Also works for when you went AFK in travel mode, forgot to pause the game, and all your auto save files got overwritten.
- Permissions and credits
- Changelogs
- Donations
Any undocked player owned ship at least 5000km away from their sector's core will be teleported back to it.
Automatically executed every time the game is loaded.
What bug are you talking about?
This one. It was already there when X4 came out, and even affected X Rebirth if I remember correctly (though the cause might have been different). I recently started playing X4 again and it happened again a few hours in, so I was looking for a workaround that didn't involve manual save editing.
Can I change the minimal distance?
Open {X4's folder}\extensions\teleport_far_away_ships\md\teleport_far_away_ships.xml, press Ctrl+F, look for 5000km, and edit it.
How do I teleport only a selected few ships and whenever I want?
Sorry! This mod is extremely lightweight, and adding any UI element would literally multiply its development time by 10. It would also shift its purpose from "bug workaround" to "cheating" somewhat.
Does it work on non player owned ships?
Not currently. I may add an option to do so if there's a need for it. I'm not sure if non player owned ships are affected by that bug in the first place (edit: they are).