Skip to content

Commit

Permalink
- Update for 3.9.0
Browse files Browse the repository at this point in the history
- Disable GroupPoint patches, BSG refactored that area of code
- Normalize sandbox maps to a single navmesh
  • Loading branch information
DrakiaXYZ committed Jul 6, 2024
1 parent 2ae0a27 commit 54a8900
Show file tree
Hide file tree
Showing 14 changed files with 36 additions and 48 deletions.
6 changes: 1 addition & 5 deletions Components/BotZoneDebugComponent.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
using Aki.Reflection.Utils;
using Comfort.Common;
using Comfort.Common;
using DrakiaXYZ.Waypoints.Helpers;
using EFT;
using EFT.Game.Spawning;
using HarmonyLib;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using UnityEngine;

namespace DrakiaXYZ.Waypoints.Components
Expand Down
17 changes: 10 additions & 7 deletions DrakiaXYZ-Waypoints.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>DrakiaXYZ.Waypoints</RootNamespace>
<AssemblyName>DrakiaXYZ-Waypoints</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.7.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
</PropertyGroup>
Expand All @@ -35,14 +35,17 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\BepInEx\core\0Harmony.dll</HintPath>
</Reference>
<Reference Include="aki-custom">
<HintPath>..\..\BepInEx\plugins\aki-custom.dll</HintPath>
<Reference Include="spt-custom">
<HintPath>..\..\BepInEx\plugins\spt\spt-custom.dll</HintPath>
</Reference>
<Reference Include="Aki.Reflection">
<HintPath>..\..\EscapeFromTarkov_Data\Managed\Aki.Reflection.dll</HintPath>
<Reference Include="spt-common">
<HintPath>..\..\BepInEx\plugins\spt\spt-common.dll</HintPath>
</Reference>
<Reference Include="aki_PrePatch">
<HintPath>..\..\BepInEx\patchers\aki_PrePatch.dll</HintPath>
<Reference Include="spt-reflection">
<HintPath>..\..\BepInEx\plugins\spt\spt-reflection.dll</HintPath>
</Reference>
<Reference Include="spt-prepatch">
<HintPath>..\..\BepInEx\patchers\spt-prepatch.dll</HintPath>
</Reference>
<Reference Include="Assembly-CSharp">
<HintPath>..\..\EscapeFromTarkov_Data\Managed\Assembly-CSharp.dll</HintPath>
Expand Down
4 changes: 1 addition & 3 deletions Patches/BotVoxelesPersonalActivatePatch.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using Aki.Reflection.Patching;
using EFT;
using SPT.Reflection.Patching;
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;

namespace DrakiaXYZ.Waypoints.Patches
Expand Down
8 changes: 1 addition & 7 deletions Patches/DebugPatch.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
using Aki.Reflection.Patching;
using Comfort.Common;
using SPT.Reflection.Patching;
using DrakiaXYZ.Waypoints.Components;
using DrakiaXYZ.Waypoints.Helpers;
using EFT;
using EFT.Game.Spawning;
using System.Collections.Generic;
using System.Reflection;
using UnityEngine;
using UnityEngine.AI;

namespace DrakiaXYZ.Waypoints.Patches
{
Expand Down
5 changes: 1 addition & 4 deletions Patches/DoorLinkPatch.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
using Aki.Reflection.Patching;
using Comfort.Common;
using SPT.Reflection.Patching;
using EFT;
using EFT.Interactive;
using HarmonyLib;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using UnityEngine;
using UnityEngine.AI;
Expand Down
2 changes: 1 addition & 1 deletion Patches/DoorLinkStateChangePatch.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Aki.Reflection.Patching;
using SPT.Reflection.Patching;
using EFT.Interactive;
using HarmonyLib;
using System.Reflection;
Expand Down
2 changes: 1 addition & 1 deletion Patches/ExfilDoorBlockerPatch.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Aki.Reflection.Patching;
using SPT.Reflection.Patching;
using EFT;
using EFT.Interactive;
using System.Collections.Generic;
Expand Down
4 changes: 2 additions & 2 deletions Patches/FindPathPatch.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Aki.Reflection.Patching;
using Aki.Reflection.Utils;
using SPT.Reflection.Patching;
using SPT.Reflection.Utils;
using HarmonyLib;
using System;
using System.Linq;
Expand Down
2 changes: 1 addition & 1 deletion Patches/GroupPointCachePatch.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Aki.Reflection.Patching;
using SPT.Reflection.Patching;
using Comfort.Common;
using EFT;
using System.Collections.Generic;
Expand Down
2 changes: 1 addition & 1 deletion Patches/GroupPointGetByIdPatch.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Aki.Reflection.Patching;
using SPT.Reflection.Patching;
using System.Collections.Generic;
using System.Reflection;

Expand Down
2 changes: 1 addition & 1 deletion Patches/SwitchDoorBlockerPatch.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Aki.Reflection.Patching;
using SPT.Reflection.Patching;
using EFT;
using EFT.Interactive;
using System.Linq;
Expand Down
13 changes: 6 additions & 7 deletions Patches/WaypointPatch.cs
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
using Aki.Reflection.Patching;
using SPT.Reflection.Patching;
using Comfort.Common;
using DrakiaXYZ.Waypoints.Helpers;
using EFT;
using HarmonyLib;
using JetBrains.Annotations;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using UnityEngine;
using UnityEngine.AI;
using Random = UnityEngine.Random;

namespace DrakiaXYZ.Waypoints.Patches
{
Expand Down Expand Up @@ -63,6 +57,11 @@ private static void InjectNavmesh(GameWorld gameWorld)
{
mapName = "factory4";
}
// Standardize Ground Zero
if (mapName.StartsWith("sandbox"))
{
mapName = "sandbox";
}

string navMeshFilename = mapName + "-navmesh.bundle";
string navMeshPath = Path.Combine(new string[] { WaypointsPlugin.NavMeshFolder, navMeshFilename });
Expand Down
6 changes: 3 additions & 3 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.4.3.0")]
[assembly: AssemblyFileVersion("1.4.3.0")]
[assembly: TarkovVersion(29197)]
[assembly: AssemblyVersion("1.5.0.0")]
[assembly: AssemblyFileVersion("1.5.0.0")]
[assembly: TarkovVersion(30626)]
11 changes: 6 additions & 5 deletions WaypointsPlugin.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Aki.Reflection.Patching;
using SPT.Reflection.Patching;
using BepInEx;
using DrakiaXYZ.Helpers;
using DrakiaXYZ.Waypoints.Helpers;
Expand All @@ -14,7 +14,8 @@

namespace DrakiaXYZ.Waypoints
{
[BepInPlugin("xyz.drakia.waypoints", "DrakiaXYZ-Waypoints", "1.4.3")]
[BepInPlugin("xyz.drakia.waypoints", "DrakiaXYZ-Waypoints", "1.5.0")]
[BepInDependency("com.SPT.core", "3.9.0")]
public class WaypointsPlugin : BaseUnityPlugin
{
public static string PluginFolder = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
Expand Down Expand Up @@ -45,9 +46,9 @@ private void Awake()
new SwitchDoorBlockerPatch().Enable();
new ExfilDoorBlockerPatch().Enable();
new FindPathPatch().Enable();
new GroupPointCachePatch().Enable();
new BotVoxelesPersonalActivatePatch().Enable();
new GroupPointGetByIdPatch().Enable();
//new GroupPointCachePatch().Enable();
//new BotVoxelesPersonalActivatePatch().Enable();
//new GroupPointGetByIdPatch().Enable();

// Debug perf timing output
//new PerfTimingPatch().Enable();
Expand Down

0 comments on commit 54a8900

Please sign in to comment.