Skip to content

Commit

Permalink
initial version
Browse files Browse the repository at this point in the history
  • Loading branch information
androdev88 authored Dec 17, 2024
1 parent d613c39 commit 8ad2b6f
Show file tree
Hide file tree
Showing 15 changed files with 1,532 additions and 0 deletions.
660 changes: 660 additions & 0 deletions FS2024Wormhole.cpp

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions FS2024Wormhole.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.4.33213.308
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "FS2024Wormhole", "FS2024Wormhole.vcxproj", "{9706E1E8-2DE7-41EA-BCBD-F421D2E997EB}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{9706E1E8-2DE7-41EA-BCBD-F421D2E997EB}.Debug|x64.ActiveCfg = Debug|x64
{9706E1E8-2DE7-41EA-BCBD-F421D2E997EB}.Debug|x64.Build.0 = Debug|x64
{9706E1E8-2DE7-41EA-BCBD-F421D2E997EB}.Debug|x86.ActiveCfg = Debug|Win32
{9706E1E8-2DE7-41EA-BCBD-F421D2E997EB}.Debug|x86.Build.0 = Debug|Win32
{9706E1E8-2DE7-41EA-BCBD-F421D2E997EB}.Release|x64.ActiveCfg = Release|x64
{9706E1E8-2DE7-41EA-BCBD-F421D2E997EB}.Release|x64.Build.0 = Release|x64
{9706E1E8-2DE7-41EA-BCBD-F421D2E997EB}.Release|x86.ActiveCfg = Release|Win32
{9706E1E8-2DE7-41EA-BCBD-F421D2E997EB}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {8FE169CF-82F8-42A2-9641-26E5A9F07F88}
EndGlobalSection
EndGlobal
168 changes: 168 additions & 0 deletions FS2024Wormhole.vcxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<VCProjectVersion>16.0</VCProjectVersion>
<Keyword>Win32Proj</Keyword>
<ProjectGuid>{9706e1e8-2de7-41ea-bcbd-f421d2e997eb}</ProjectGuid>
<RootNamespace>FS2024Wormhole</RootNamespace>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="Shared">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<LanguageStandard_C>stdc11</LanguageStandard_C>
<LanguageStandard>stdcpp20</LanguageStandard>
<AdditionalIncludeDirectories>$(SolutionDir)\packages\cpprestsdk.v142.2.10.15\build\native\include</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>gdiplus.lib;$(CoreLibraryDependencies);%(AdditionalDependencies);$(SolutionDir)\packages\cpprestsdk.v142.2.10.15\build\native\x64\lib\cpprest142_2_10d.lib</AdditionalDependencies>
<UACExecutionLevel>RequireAdministrator</UACExecutionLevel>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<LanguageStandard_C>stdc11</LanguageStandard_C>
<LanguageStandard>stdcpp20</LanguageStandard>
<AdditionalIncludeDirectories>$(SolutionDir)\packages\cpprestsdk.v142.2.10.15\build\native\include</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>gdiplus.lib;$(CoreLibraryDependencies);%(AdditionalDependencies);$(SolutionDir)\packages\cpprestsdk.v142.2.10.15\build\native\x64\lib\cpprest142_2_10.lib</AdditionalDependencies>
<UACExecutionLevel>RequireAdministrator</UACExecutionLevel>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="FS2024Wormhole.cpp" />
</ItemGroup>
<ItemGroup>
</ItemGroup>
<ItemGroup>
</ItemGroup>
<ItemGroup>
</ItemGroup>
<ItemGroup>
<Content Include="cpprest_2_10d.dll" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
<Import Project="packages\cpprestsdk.v142.2.10.15\build\native\cpprestsdk.v142.targets" Condition="Exists('packages\cpprestsdk.v142.2.10.15\build\native\cpprestsdk.v142.targets')" />
</ImportGroup>
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('packages\cpprestsdk.v142.2.10.15\build\native\cpprestsdk.v142.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\cpprestsdk.v142.2.10.15\build\native\cpprestsdk.v142.targets'))" />
</Target>
</Project>
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Flight Simulator 2024 Teleport Utility
* Simple util to make the game playable.
* Works in Career mode
* Version 1.2.7.0 supported

# Speed run - CR farming
1. Find well paid mission take a note of destination ICAO
2. Go to Free Flight for given ICAO, when plane is on runway, in web UI input ICAO under game instance Actions and hit Add (it will store the coordinates in locations.csv for future use)
3. Start you mission, skip the first part, when asked to "announce taxi" pause the game (important as loading scenery might crash your plane)
4. Click Teleport + 500ft, wait for game to load scenery
5. Click Teleport - you are now on runway of destination airport
6. Taxi onto the grass to enable skip to shutdown

Sometimes it won't detect you landed at destination, you need to takeoff and sometimes fly to nearest VOR and land again.
When flying to VOR is not required you can do a quick takeoff/landing by pausing on rotate clicking +500 un-pausing for a split second and going back to runway with -500.

# Playing the game
Follow similar steps to Speed run, do a proper take off, teleport using +2000ft button do a proper approach.

# Hotkeys
* Ctrl+Alt+F11 - +500ft
* Ctrl+Alt+F12 - -500ft

# Contributing
* Use Microsoft Visual Studio Community 2022 (64-bit) to compile the project (requires cpprest library)
* Entire UI is in the standalone index.html that uses React
* 90% of code is AI generated, code quality is atrocious
* Any contributions welcome

# Adding support for new game version
Add memory pointers into `[Pointers]` section of config.ini with game version as key
First pointer is added to the game base address, followed by list of offsets
5 changes: 5 additions & 0 deletions config.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Content]
dir=D:\Projects\FS2024Wormhole\static

[Pointers]
1.2.7.0=0x09DAC968,0x3A8
87 changes: 87 additions & 0 deletions locations.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
Name,Latitude,Longitude,Altitude
CYRV,50.959,-118.179,1
EDKZ,51.1007,7.60348,1
EDPS,48.6835,13.6951,2
EDRZ,49.2174,7.40759,1
LFKX,45.4066,6.57819,5
LIDA,45.8871,11.5211,3
LIQM,46.2663,10.6063,6
LOGI,47.4922,14.4996,2
LOWI,47.2615,11.3561,1
LSGC,47.0868,6.79874,3
LSGK,46.4875,7.25615,3
LSZA,46.0094,8.91311,894.518
LSZE,47.0141,9.48399,1
LSZJ,47.1844,7.09377,2
LSZS,46.5405,9.88903,5
LZHA,48.759,18.7421,1
LZZL,49.1705,18.7796,1
EBSL,50.9552,5.60556,311.549
EDFB,50.3437,8.87851,409.761
ETHC,52.5924,10.0345,130.234
EDVE,52.3202,10.5742,297.969
EGWU,51.555,-0.409621,127.11
EGSV,52.4964,1.04786,167.38
EDLD,51.6165,6.86997,225.341
LFAB,49.8831,1.08415,354.321
LFGH,47.3597,2.91985,590.191
LFEF,47.339,0.949021,180.713
LFMS,44.0746,4.14349,595.782
LFUK,44.3278,6.03173,2
LETL,40.4,-1.21694,3
EEPU,58.4269,24.4832,67.3613
UKDO,52.0783,31.1308,454.328
LJAJ,45.8892,13.8815,383.827
UKAJ,45.3347,40.4128,293.921
LTBH,40.129,26.4171,37.0098
LB19,42.6012,26.645,537.852
LIRI,40.6225,14.9168,130.494
EDQP,49.8633,11.7919,1
EYMM,54.6689,23.4556,225.472
UKUT,46.4909,30.6193,209.423
UWPS,54.1344,45.2228,637.091
EFLA,61.1428,25.6856,504.768
EKSB,54.9579,9.80137,36.7318
LFCA,46.7809,0.550666,211.482
LPLZ,40.142,-8.23886,664.344
LFOR,48.4568,1.52409,508.905
LFRT,48.5423,-2.84445,441.634
LFSL,45.0369,1.49409,984.343
EIWF,52.192,-7.08393,109.122
EVDA,55.9482,26.6729,404.338
LHUD,46.2414,20.0919,275.652
LEHN,41.1086,-2.98533,3
LFKO,41.6601,8.89652,28.2791
LGIO,39.6925,20.8268,1
LHPR,47.6244,17.8154,434.308
LIPM,44.6303,10.8125,192.692
UMOO,53.9621,30.0836,623.528
EKVJ,55.9899,8.3633,22.8477
EDCV,53.5056,13.9543,89.7903
UKLT,49.5232,25.7096,1
LDRI,45.2245,14.5627,257.858
EDVU,52.9839,10.4703,238.885
ENFL,61.5837,5.0249,25.4046
EDDM,48.3444,11.7996,1
ENCN,58.2102,8.09324,56.4745
EDXR,54.2239,9.60407,35.1964
EGAD,54.5839,-5.68906,13.6606
EDVP,52.4033,10.2336,269.61
EGGL,53.4789,-2.62581,153.319
EPGY,52.8367,21.7824,413.874
UBOL,54.7877,37.6479,762.752
UYEA,55.794,52.1414,493.917
UBOU,49.9034,40.5254,251.221
UKFK,45.3748,36.411,165.997
UBSH,41.1311,47.1616,1
LFEA,47.3261,-3.19909,185.873
EDXQ,53.1289,9.35299,105.583
ENLB,62.234,8.24854,1
KSPZ,39.4054,-119.243,4
17V,40.6275,-102.595,4
16S,42.999,-123.313,619.725
7V2,38.8333,-107.64,5
TS65,31.3615,-100.61,1
K59,39.5678,-95.18,1
KDUH,41.7361,-83.6504,680.989
5J9,34.0896,-78.8602,106.984
4 changes: 4 additions & 0 deletions packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="cpprestsdk.v142" version="2.10.15" targetFramework="native" />
</packages>
Binary file added static/fonts/bootstrap-icons.woff
Binary file not shown.
Binary file added static/fonts/bootstrap-icons.woff2
Binary file not shown.
Loading

0 comments on commit 8ad2b6f

Please sign in to comment.