From 9deca27ca762f850632d5c42c4014a2cff32cb4b Mon Sep 17 00:00:00 2001 From: 2vb Date: Wed, 15 May 2024 19:09:38 -0700 Subject: [PATCH] Testing things --- config/DefaultGame.ini | 43 ++++++++++++++++++++++++++++++++ config/DefaultRuntimeOptions.ini | 18 +++++++++++++ main.go | 3 +++ storage/hotfix.go | 41 +++++++++++++++++++----------- 4 files changed, 90 insertions(+), 15 deletions(-) create mode 100644 config/DefaultGame.ini create mode 100644 config/DefaultRuntimeOptions.ini diff --git a/config/DefaultGame.ini b/config/DefaultGame.ini new file mode 100644 index 0000000..b872438 --- /dev/null +++ b/config/DefaultGame.ini @@ -0,0 +1,43 @@ +[/Script/FortniteGame.FortGlobals] +bAllowLogout=false + +[/Script/FortniteGame.FortChatManager] +bShouldRequestGeneralChatRooms=false +bShouldJoinGlobalChat=false +bShouldJoinFounderChat=false +bIsAthenaGlobalChatEnabled=false + +[/Script/FortniteGame.FortOnlineAccount] +bEnableEulaCheck=false +bShouldCheckIfPlatformAllowed=false + +[EpicPurchaseFlow] +bUsePaymentWeb=false +CI="http://127.0.0.1:3000/purchase" +GameDev="http://127.0.0.1:3000/purchase" +Stage="http://127.0.0.1:3000/purchase" +Prod="http://127.0.0.1:3000/purchase" +UEPlatform="FNGame" + +[/Script/FortniteGame.FortTextHotfixConfig] ++TextReplacements=(Category=Game, bIsMinimalPatch=True, Namespace="", Key="68ADE44C49B20BFF78677799BE68B0EE", NativeString="FORTNITEMARES", LocalizedStrings=(("en","BOOST PERKS"))) ++TextReplacements=(Category=Game, bIsMinimalPatch=True, Namespace="", Key="BE6B17BD456F3F13EEB2998AF91DC717", NativeString="THANKS FOR PLAYING!", LocalizedStrings=(("en","THANKS FOR SUPPORTING SNOW!"))) + +[/Script/FortniteGame.FortGameInstance] +!FrontEndPlaylistData=ClearArray ++FrontEndPlaylistData=(PlaylistName=Playlist_DefaultSolo, PlaylistAccess=(bEnabled=True, bIsDefaultPlaylist=True, bVisibleWhenDisabled=True, bDisplayAsNew=False, CategoryIndex=0, bDisplayAsLimitedTime=False, DisplayPriority=0)) ++FrontEndPlaylistData=(PlaylistName=Playlist_DefaultDuo, PlaylistAccess=(bEnabled=True, bIsDefaultPlaylist=True, bVisibleWhenDisabled=True, bDisplayAsNew=False, CategoryIndex=0, bDisplayAsLimitedTime=False, DisplayPriority=1)) ++FrontEndPlaylistData=(PlaylistName=Playlist_DefaultSquad, PlaylistAccess=(bEnabled=True, bIsDefaultPlaylist=True, bVisibleWhenDisabled=True, bDisplayAsNew=False, CategoryIndex=0, bDisplayAsLimitedTime=False, DisplayPriority=2)) ++FrontEndPlaylistData=(PlaylistName=Playlist_ShowdownAlt_Solo, PlaylistAccess=(bEnabled=True, bIsDefaultPlaylist=False, bVisibleWhenDisabled=True, bDisplayAsNew=False, CategoryIndex=1, bDisplayAsLimitedTime=False, DisplayPriority=0)) ++FrontEndPlaylistData=(PlaylistName=Playlist_ShowdownAlt_Duos, PlaylistAccess=(bEnabled=True, bIsDefaultPlaylist=False, bVisibleWhenDisabled=True, bDisplayAsNew=False, CategoryIndex=1, bDisplayAsLimitedTime=False, DisplayPriority=1)) + +[AssetHotfix] ++DataTable=/Game/Athena/Items/Weapons/AthenaRangedWeapons;RowUpdate;Sniper_BoltAction_Scope_Athena_R_Ore_T03;Spread;0 ++DataTable=/Game/Athena/Items/Weapons/AthenaRangedWeapons;RowUpdate;Sniper_BoltAction_Scope_Athena_R_Ore_T03;StandingStillSpreadMultiplier;0.0 ++DataTable=/Game/Athena/Items/Weapons/AthenaRangedWeapons;RowUpdate;Sniper_BoltAction_Scope_Athena_R_Ore_T03;AthenaCrouchingSpreadMultiplier;0.0 ++DataTable=/Game/Athena/Items/Weapons/AthenaRangedWeapons;RowUpdate;Sniper_BoltAction_Scope_Athena_R_Ore_T03;AthenaJumpingFallingSpreadMultiplier;0.0 ++DataTable=/Game/Athena/Items/Weapons/AthenaRangedWeapons;RowUpdate;Sniper_BoltAction_Scope_Athena_R_Ore_T03;AthenaSprintingSpreadMultiplier;0.0 ++DataTable=/Game/Athena/Items/Weapons/AthenaRangedWeapons;RowUpdate;Sniper_BoltAction_Scope_Athena_R_Ore_T03;BulletsPerCartridge;5 +; +CurveTable=/Game/Athena/Balance/DataTables/AthenaGameData;RowUpdate;Default.ShockwaveGrenade.LaunchVelocity;0;10000 +; +CurveTable=/Game/Athena/Balance/DataTables/AthenaGameData;RowUpdate;Default.GrapplingHoot.Speed;0;10000 +; +CurveTable=/Game/Athena/Balance/DataTables/AthenaGameData;RowUpdate;Default.PistolFlintlock.KnockMagSelf;0;8000 \ No newline at end of file diff --git a/config/DefaultRuntimeOptions.ini b/config/DefaultRuntimeOptions.ini new file mode 100644 index 0000000..eb438b0 --- /dev/null +++ b/config/DefaultRuntimeOptions.ini @@ -0,0 +1,18 @@ +[/Script/FortniteGame.FortRuntimeOptions] +!DisabledFrontendNavigationTabs=ClearArray +;+DisabledFrontendNavigationTabs=(TabName="AthenaChallenges",TabState=EFortRuntimeOptionTabState::Hidden) +;+DisabledFrontendNavigationTabs=(TabName="Showdown",TabState=EFortRuntimeOptionTabState::Hidden) +;+DisabledFrontendNavigationTabs=(TabName="AthenaStore",TabState=EFortRuntimeOptionTabState::Hidden) + +[/Script/FortniteGame.FortRuntimeOptions] +bForceBRMode=True +bSkipSubgameSelect=True +bEnableInGameMatchmaking=True + +bEnableGlobalChat=true +bDisableGifting=false +bDisableGiftingPC=false +bDisableGiftingPS4=false +bDisableGiftingXB=false +!ExperimentalCohortPercent=ClearArray ++ExperimentalCohortPercent=(CohortPercent=100,ExperimentNum=20) \ No newline at end of file diff --git a/main.go b/main.go index cf1b699..818778a 100644 --- a/main.go +++ b/main.go @@ -95,6 +95,9 @@ func main() { r.Put("/profile/play_region", handlers.AnyNoContent) r.Get("/api/v1/search/:accountId", handlers.GetPersonSearch) r.Get("/", handlers.RedirectSocket) + r.Get("/datarouter/api/v1/public/data", func(c *fiber.Ctx) error { + return c.SendStatus(200) + }) r.Get("/socket", handlers.MiddlewareWebsocket, websocket.New(handlers.WebsocketConnection)) account := r.Group("/account/api") diff --git a/storage/hotfix.go b/storage/hotfix.go index 01d2e95..1bd83f2 100644 --- a/storage/hotfix.go +++ b/storage/hotfix.go @@ -2,6 +2,7 @@ package storage import ( "fmt" + "os" "strconv" "github.com/ectrc/snow/aid" @@ -65,32 +66,37 @@ bDisableDomainWhitelist=true` bUsePlainTextAuth=true bUseSSL=false Protocol=tcp -ServerAddr="`+ aid.Config.API.XMPP.Host + aid.Config.API.XMPP.Port + `" -ServerPort=`+ realPort + ` +ServerAddr="` + aid.Config.API.XMPP.Host + aid.Config.API.XMPP.Port + `" +ServerPort=` + realPort + ` [OnlineSubsystemMcp.Xmpp Prod] bUsePlainTextAuth=true bUseSSL=false Protocol=tcp -ServerAddr="`+ aid.Config.API.XMPP.Host + aid.Config.API.XMPP.Port + `" -ServerPort=`+ realPort +ServerAddr="` + aid.Config.API.XMPP.Host + aid.Config.API.XMPP.Port + `" +ServerPort=` + realPort } else { str += ` [OnlineSubsystemMcp.Xmpp] bUseSSL=false Protocol=ws -ServerAddr="ws://`+ aid.Config.API.XMPP.Host + aid.Config.API.XMPP.Port +`/?SNOW_SOCKET_CONNECTION" +ServerAddr="ws://` + aid.Config.API.XMPP.Host + aid.Config.API.XMPP.Port + `/?SNOW_SOCKET_CONNECTION" [OnlineSubsystemMcp.Xmpp Prod] bUseSSL=false Protocol=ws -ServerAddr="ws://`+ aid.Config.API.XMPP.Host + aid.Config.API.XMPP.Port +`/?SNOW_SOCKET_CONNECTION"` +ServerAddr="ws://` + aid.Config.API.XMPP.Host + aid.Config.API.XMPP.Port + `/?SNOW_SOCKET_CONNECTION"` } return []byte(str) } -func GetDefaultGame() []byte {return []byte(` +func GetDefaultGame() []byte { + file, err := os.ReadFile("config/DefaultGame.ini") + if err == nil { + return file + } else { + return []byte(` [/Script/FortniteGame.FortGlobals] bAllowLogout=false @@ -123,14 +129,16 @@ UEPlatform="FNGame" +FrontEndPlaylistData=(PlaylistName=Playlist_DefaultSquad, PlaylistAccess=(bEnabled=True, bIsDefaultPlaylist=True, bVisibleWhenDisabled=True, bDisplayAsNew=False, CategoryIndex=0, bDisplayAsLimitedTime=False, DisplayPriority=2)) +FrontEndPlaylistData=(PlaylistName=Playlist_ShowdownAlt_Solo, PlaylistAccess=(bEnabled=True, bIsDefaultPlaylist=False, bVisibleWhenDisabled=True, bDisplayAsNew=False, CategoryIndex=1, bDisplayAsLimitedTime=False, DisplayPriority=0)) +FrontEndPlaylistData=(PlaylistName=Playlist_ShowdownAlt_Duos, PlaylistAccess=(bEnabled=True, bIsDefaultPlaylist=False, bVisibleWhenDisabled=True, bDisplayAsNew=False, CategoryIndex=1, bDisplayAsLimitedTime=False, DisplayPriority=1)) + `) + } +} -[AssetHotfix] -+CurveTable=/Game/Athena/Balance/DataTables/AthenaGameData;RowUpdate;Default.ShockwaveGrenade.LaunchVelocity;0;10000 -+CurveTable=/Game/Athena/Balance/DataTables/AthenaGameData;RowUpdate;Default.GrapplingHoot.Speed;0;10000 -+CurveTable=/Game/Athena/Balance/DataTables/AthenaGameData;RowUpdate;Default.PistolFlintlock.KnockMagSelf;0;8000 -`)} - -func GetDefaultRuntime() []byte {return []byte(` +func GetDefaultRuntime() []byte { + file, err := os.ReadFile("config/DefaultRuntime.ini") + if err == nil { + return file + } else { + return []byte(` [/Script/FortniteGame.FortRuntimeOptions] !DisabledFrontendNavigationTabs=ClearArray ;+DisabledFrontendNavigationTabs=(TabName="AthenaChallenges",TabState=EFortRuntimeOptionTabState::Hidden) @@ -148,4 +156,7 @@ bDisableGiftingPC=false bDisableGiftingPS4=false bDisableGiftingXB=false !ExperimentalCohortPercent=ClearArray -+ExperimentalCohortPercent=(CohortPercent=100,ExperimentNum=20)`)} ++ExperimentalCohortPercent=(CohortPercent=100,ExperimentNum=20) +`) + } +}