diff --git a/Project Reboot 3.0/FortGameModeAthena.h b/Project Reboot 3.0/FortGameModeAthena.h index 853a427..de559f9 100644 --- a/Project Reboot 3.0/FortGameModeAthena.h +++ b/Project Reboot 3.0/FortGameModeAthena.h @@ -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(L"/Game/Abilities/Player/Generic/Traits/DefaultPlayer/GAS_AthenaPlayer.GAS_AthenaPlayer") + static auto GameplayAbilitySet = (Fortnite_Version > 8.30 ? LoadObject(L"/Game/Abilities/Player/Generic/Traits/DefaultPlayer/GAS_AthenaPlayer.GAS_AthenaPlayer") : LoadObject(L"/Game/Abilities/Player/Generic/Traits/DefaultPlayer/GAS_DefaultPlayer.GAS_DefaultPlayer")); return GameplayAbilitySet; diff --git a/Project Reboot 3.0/FortPlayerController.cpp b/Project Reboot 3.0/FortPlayerController.cpp index ab15a60..5732aaf 100644 --- a/Project Reboot 3.0/FortPlayerController.cpp +++ b/Project Reboot 3.0/FortPlayerController.cpp @@ -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(); } } \ No newline at end of file diff --git a/Project Reboot 3.0/dllmain.cpp b/Project Reboot 3.0/dllmain.cpp index a845c00..fd565a9 100644 --- a/Project Reboot 3.0/dllmain.cpp +++ b/Project Reboot 3.0/dllmain.cpp @@ -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)); diff --git a/Project Reboot 3.0/log.h b/Project Reboot 3.0/log.h index 60c51b2..41555c3 100644 --- a/Project Reboot 3.0/log.h +++ b/Project Reboot 3.0/log.h @@ -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__));