fix editing s8-s10

This commit is contained in:
Gray
2025-07-15 21:33:57 -04:00
parent 131e494cef
commit 51d4ec80ea
4 changed files with 13 additions and 5 deletions

View File

@@ -83,7 +83,7 @@ static inline UFortAbilitySet* GetPlayerAbilitySet()
{
// There are some variables that contain this but it changes through versions soo..
static auto GameplayAbilitySet = (Fortnite_Version >= 8.30 ? LoadObject<UFortAbilitySet>(L"/Game/Abilities/Player/Generic/Traits/DefaultPlayer/GAS_AthenaPlayer.GAS_AthenaPlayer")
static auto GameplayAbilitySet = (Fortnite_Version > 8.30 ? LoadObject<UFortAbilitySet>(L"/Game/Abilities/Player/Generic/Traits/DefaultPlayer/GAS_AthenaPlayer.GAS_AthenaPlayer")
: LoadObject<UFortAbilitySet>(L"/Game/Abilities/Player/Generic/Traits/DefaultPlayer/GAS_DefaultPlayer.GAS_DefaultPlayer"));
return GameplayAbilitySet;

View File

@@ -1756,8 +1756,8 @@ void AFortPlayerController::ServerEditBuildingActorHook(UObject* Context, FFrame
// if (!PlayerState || PlayerState->GetTeamIndex() != BuildingActorToEdit->GetTeamIndex())
//return ServerEditBuildingActorOriginal(Context, Frame, Ret);
// if (Fortnite_Version < 16)
// BuildingActorToEdit->SetEditingPlayer(nullptr);
if (Fortnite_Version >= 8 && Fortnite_Version < 11) // uhhmmm
BuildingActorToEdit->SetEditingPlayer(nullptr);
static ABuildingSMActor* (*BuildingSMActorReplaceBuildingActor)(ABuildingSMActor*, __int64, UClass*, int, int, uint8_t, AFortPlayerController*) =
decltype(BuildingSMActorReplaceBuildingActor)(Addresses::ReplaceBuildingActor);
@@ -1840,5 +1840,6 @@ void AFortPlayerController::ServerEndEditingBuildingActorHook(AFortPlayerControl
if (EditTool)
{
EditTool->GetEditActor() = nullptr;
EditTool->OnRep_EditActor();
}
}

View File

@@ -49,6 +49,13 @@
#include "FortServerBotManagerAthena.h"
#include "botnames.h"
/*
KNOWN VERSIONS BROKEN:
v8.30
*/
enum class EMeshNetworkNodeType : uint8_t
{
Root = 0,
@@ -822,7 +829,7 @@ DWORD WINAPI Main(LPVOID)
std::ios_base::sync_with_stdio(false);
auto MH_InitCode = MH_Initialize();
if (MH_InitCode != MH_OK)
{
LOG_ERROR(LogInit, "Failed to initialize MinHook {}!", MH_StatusToString(MH_InitCode));

View File

@@ -121,7 +121,7 @@ inline void InitLogger()
#define LOG_FATAL(loggerName, ...)
#endif
#if 0
#if 1
#define DEBUG_LOG_INFO(loggerName, ...) \
if (spdlog::get(#loggerName)) \
spdlog::get(#loggerName)->info(std::format(__VA_ARGS__));