Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MSFS2024-Teleport

A Python utility to teleport your aircraft to any location in Microsoft Flight Simulator 2024 using SimConnect.

Features

  • Instantly teleport your aircraft to any GPS coordinates
  • Set custom altitude (meters above sea level)
  • Simple and lightweight script
  • Maintains connection to keep position

Requirements

  • Microsoft Flight Simulator 2024
  • Python 3.13 or higher
  • uv - Fast Python package manager

Installation

# Clone the repository
git clone https://github.com/judenimo/MSFS2024-Teleport.git
cd MSFS2024-Teleport

# Install dependencies
uv sync

Usage

  1. Start Microsoft Flight Simulator 2024 and load into a flight

  2. Edit the target coordinates in main.py:

    target_latitude = 37.82684      # Latitude in decimal degrees
    target_longitude = -122.457738  # Longitude in decimal degrees
    altitude = 1400                 # Altitude in meters (MSL)
  3. Run the script:

    uv run main.py

    Note: If you prefer to run with python main.py directly or use VS Code's Run/Debug features, make sure to select the Python interpreter from the .venv folder created by uv. In VS Code, press Ctrl+Shift+P → "Python: Select Interpreter" → choose the .venv interpreter.

  4. Your aircraft will be teleported to the specified location!

  5. Press Ctrl+C to stop the script and disconnect.

Example Locations

Location Latitude Longitude Suggested Altitude
Golden Gate Bridge, SF 37.82684 -122.457738 1400m
Eiffel Tower, Paris 48.8584 2.2945 500m
Mount Everest 27.9881 86.9250 9000m
Statue of Liberty, NYC 40.6892 -74.0445 300m
Sydney Opera House -33.8568 151.2153 500m

How It Works

The script uses the SimConnect Python library to interface with MSFS2024's SimConnect API. It establishes a connection to the simulator and uses the set_pos() method to update the aircraft's position.

Troubleshooting

  • "Failed to connect": Make sure MSFS2024 is running and you're loaded into a flight
  • Connection errors: Ensure SimConnect is properly installed with your MSFS2024 installation
  • Position not updating: The simulator must be unpaused for teleportation to work

License

MIT License

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages