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.. // 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")); : LoadObject<UFortAbilitySet>(L"/Game/Abilities/Player/Generic/Traits/DefaultPlayer/GAS_DefaultPlayer.GAS_DefaultPlayer"));
return GameplayAbilitySet; return GameplayAbilitySet;

View File

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

View File

@@ -49,6 +49,13 @@
#include "FortServerBotManagerAthena.h" #include "FortServerBotManagerAthena.h"
#include "botnames.h" #include "botnames.h"
/*
KNOWN VERSIONS BROKEN:
v8.30
*/
enum class EMeshNetworkNodeType : uint8_t enum class EMeshNetworkNodeType : uint8_t
{ {
Root = 0, Root = 0,

View File

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