snow/storage/hotfix.go

117 lines
3.0 KiB
Go
Raw Normal View History

2024-01-04 19:02:14 +00:00
package storage
2024-01-20 01:58:57 +00:00
import (
2024-02-16 01:14:14 +00:00
"fmt"
"strconv"
2024-01-20 01:58:57 +00:00
"github.com/ectrc/snow/aid"
)
2024-01-04 19:02:14 +00:00
func GetDefaultEngine() []byte {
2024-02-16 01:14:14 +00:00
portNumber, err := strconv.Atoi(aid.Config.API.Port[1:])
if err != nil {
return nil
}
portNumber++
realPort := fmt.Sprintf("%d", portNumber)
2024-01-20 01:58:57 +00:00
2024-02-16 01:14:14 +00:00
str := `
2024-02-20 21:54:05 +00:00
[OnlineSubsystemMcp.OnlinePaymentServiceMcp Fortnite]
Domain="launcher-website-prod.ak.epicgames.com"
BasePath="/logout?redirectUrl=https%3A%2F%2Fwww.unrealengine.com%2Fid%2Flogout%3FclientId%3Dxyza7891KKDWlczTxsyy7H3ExYgsNT4Y%26responseType%3Dcode%26redirectUrl%3Dhttps%253A%252F%252Ftesting-site.neonitedev.live%252Fid%252Flogin%253FredirectUrl%253Dhttps%253A%252F%252Ftesting-site.neonitedev.live%252Fpurchase%252Facquire&path="
2024-01-04 19:02:14 +00:00
[XMPP]
bEnableWebsockets=true
2024-02-16 01:14:14 +00:00
[OnlineSubsystem]
bHasVoiceEnabled=true
2024-01-20 01:58:57 +00:00
[ConsoleVariables]
n.VerifyPeer=0
FortMatchmakingV2.ContentBeaconFailureCancelsMatchmaking=0
Fort.ShutdownWhenContentBeaconFails=0
FortMatchmakingV2.EnableContentBeacon=0
2024-01-04 19:02:14 +00:00
2024-01-20 01:58:57 +00:00
[/Script/Qos.QosRegionManager]
NumTestsPerRegion=5
2024-02-20 21:54:05 +00:00
PingTimeout=3.0
[LwsWebSocket]
bDisableCertValidation=true
bDisableDomainWhitelist=true
[WinHttpWebSocket]
bDisableDomainWhitelist=true`
2024-02-16 01:14:14 +00:00
if aid.Config.Fortnite.Season <= 2 {
str += `
[OnlineSubsystemMcp.Xmpp]
2024-02-20 21:54:05 +00:00
bUsePlainTextAuth=true
2024-02-16 01:14:14 +00:00
bUseSSL=false
Protocol=tcp
ServerAddr="`+ aid.Config.API.Host + `"
ServerPort=`+ realPort + `
[OnlineSubsystemMcp.Xmpp Prod]
2024-02-20 21:54:05 +00:00
bUsePlainTextAuth=true
2024-02-16 01:14:14 +00:00
bUseSSL=false
Protocol=tcp
ServerAddr="`+ aid.Config.API.Host + `"
ServerPort=`+ realPort
} else {
str += `
[OnlineSubsystemMcp.Xmpp]
2024-02-20 21:54:05 +00:00
bUsePlainTextAuth=true
2024-02-16 01:14:14 +00:00
bUseSSL=false
Protocol=ws
2024-02-20 21:54:05 +00:00
ServerAddr="ws://`+ aid.Config.API.Host + aid.Config.API.Port +`/?SNOW_SOCKET_CONNECTION"
2024-02-16 01:14:14 +00:00
[OnlineSubsystemMcp.Xmpp Prod]
2024-02-20 21:54:05 +00:00
bUsePlainTextAuth=true
2024-02-16 01:14:14 +00:00
bUseSSL=false
Protocol=ws
2024-02-20 21:54:05 +00:00
ServerAddr="ws://`+ aid.Config.API.Host + aid.Config.API.Port +`/?SNOW_SOCKET_CONNECTION"`
2024-02-16 01:14:14 +00:00
}
return []byte(str)
2024-01-31 16:20:26 +00:00
}
2024-02-19 16:08:37 +00:00
func GetDefaultGame() []byte {return []byte(`
2024-01-31 16:20:26 +00:00
[/Script/FortniteGame.FortGlobals]
bAllowLogout=false
[/Script/FortniteGame.FortChatManager]
bShouldRequestGeneralChatRooms=false
bShouldJoinGlobalChat=false
bShouldJoinFounderChat=false
bIsAthenaGlobalChatEnabled=false
[/Script/FortniteGame.FortOnlineAccount]
bEnableEulaCheck=false
2024-02-19 16:08:37 +00:00
bShouldCheckIfPlatformAllowed=false
[EpicPurchaseFlow]
bUsePaymentWeb=false
CI="http://localhost:5173/purchase"
GameDev="http://localhost:5173/purchase"
Stage="http://127.0.0.1:5173/purchase"
Prod="http://127.0.0.1:5173/purchase"
UEPlatform="FNGame"
2024-02-20 21:54:05 +00:00
2024-02-19 16:08:37 +00:00
`)}
func GetDefaultRuntime() []byte {return []byte(`
2024-01-31 16:20:26 +00:00
[/Script/FortniteGame.FortRuntimeOptions]
2024-02-19 01:49:14 +00:00
!DisabledFrontendNavigationTabs=ClearArray
;+DisabledFrontendNavigationTabs=(TabName="AthenaChallenges",TabState=EFortRuntimeOptionTabState::Hidden)
;+DisabledFrontendNavigationTabs=(TabName="Showdown",TabState=EFortRuntimeOptionTabState::Hidden)
;+DisabledFrontendNavigationTabs=(TabName="AthenaStore",TabState=EFortRuntimeOptionTabState::Hidden)
2024-01-31 16:20:26 +00:00
bEnableGlobalChat=true
bDisableGifting=false
bDisableGiftingPC=false
bDisableGiftingPS4=false
bDisableGiftingXB=false
!ExperimentalCohortPercent=ClearArray
2024-02-19 16:08:37 +00:00
+ExperimentalCohortPercent=(CohortPercent=100,ExperimentNum=20)`)}