From 5ed1250e93af5d00a1b86336d8e91ba1e10a42e5 Mon Sep 17 00:00:00 2001 From: Nax <74548019+nax1800@users.noreply.github.com> Date: Sun, 26 Jan 2025 14:47:52 +0000 Subject: [PATCH] stuff --- .gitignore | 1 + GameMode.h | 11 ++++++----- dllmain.cpp | 11 +++++++++-- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 36854cc8..d462401a 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /.vs +/x64 diff --git a/GameMode.h b/GameMode.h index 084cfc44..7d6a3666 100644 --- a/GameMode.h +++ b/GameMode.h @@ -18,16 +18,17 @@ namespace GameMode Logging::Log(ELogEvent::Info, ELogType::Athena, "Playlist: %s", Playlist->UIDisplayName.ToString().c_str()); GameState->CurrentPlaylistId = Playlist->PlaylistId; - GameState->CurrentPlaylistData = Playlist; + GameState->CurrentPlaylistInfo.BasePlaylist = Playlist; + GameState->CurrentPlaylistInfo.OverridePlaylist = Playlist; + GameState->CurrentPlaylistInfo.PlaylistReplicationKey++; GameState->OnRep_CurrentPlaylistId(); - GameState->OnRep_CurrentPlaylistData(); - GameState->WinConditionTimeRemaining = Playlist->TimedWinConditionTime; - GameState->OnRep_WinConditionTimeRemaining(); + GameState->OnRep_CurrentPlaylistInfo(); + + GameState->FriendlyFireType = Playlist->FriendlyFireType; GameMode->CurrentPlaylistId = Playlist->PlaylistId; GameMode->CurrentPlaylistName = Playlist->PlaylistName; - GameMode->FriendlyFireType = Playlist->FriendlyFireType; GameMode->FortGameSession->MaxPlayers = Playlist->MaxPlayers; GameMode->FortGameSession->MaxPartySize = Playlist->MaxSocialPartySize; } diff --git a/dllmain.cpp b/dllmain.cpp index 27f106d8..bdbc1af1 100644 --- a/dllmain.cpp +++ b/dllmain.cpp @@ -24,6 +24,13 @@ void hkProcessEvent(UObject* InObject, UFunction* InFunction, void* InParameters DWORD Initialize(LPVOID) { + AllocConsole(); + FILE* File; + freopen_s(&File, "CONOUT$", "w+", stdout); + SetConsoleTitleA("Athena - 6.31"); + + Logging::Log(ELogEvent::Info, ELogType::Athena, "Made by @nax1800 and @ApfelTeeSaft."); + MH_STATUS StatusInitialize = MH_Initialize(); if (StatusInitialize == MH_OK) { Logging::Log(ELogEvent::Info, ELogType::Hook, "Minhook successfully initialized."); @@ -33,8 +40,8 @@ DWORD Initialize(LPVOID) FreeLibraryAndExitThread(GetModuleHandleA(0), 0); } - *(uint8_t*)(Memory::GetAddress(0x255BB17) + 7) = 0x74; - Logging::Log(ELogEvent::Info, ELogType::Athena, "Matchmaking should now be supported."); + // *(uint8_t*)(Memory::GetAddress(0x255BB17) + 7) = 0x74; + // Logging::Log(ELogEvent::Info, ELogType::Athena, "Matchmaking should now be supported."); UKismetSystemLibrary::ExecuteConsoleCommand(UWorld::GetWorld(), L"open Athena_Terrain", nullptr); UWorld::GetWorld()->OwningGameInstance->LocalPlayers.Remove(0);