question

mohammadhabibiwork avatar image
mohammadhabibiwork asked

GSDK Unreal GetHttpManager().Flush(true)

Hi, when i build development Editor have issue on GSDK source on GSDKINTERNAL.CPP line 149

FHttpModule::Get().GetHttpManager().Flush(true);

6984-screenshot-2024-04-16-113200.png6985-screenshot-2024-04-16-114336.png

i think the true parameter should change with one of that but need to be fixed.

apisunreal
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Xiao Zha avatar image
Xiao Zha answered

The method "FHttpModule::Get().GetHttpManager().Flush();" is an Unreal method. In UnrealEngine versions 5.0 to 5.2, both the method using Boolean value as parameter and the method using EHttpFlushReason as parameter can be used. But in version 5.3, the Flush method that uses Boolean values as parameters has been removed.

--You could try referring to the code in Unreal Engine 5.2: https://github.com/EpicGames/UnrealEngine/blob/5.2/Engine/Source/Runtime/Online/HTTP/Private/HttpManager.cpp#L217-L220 and https://github.com/EpicGames/UnrealEngine/blob/5.2/Engine/Source/Runtime/Online/HTTP/Public/HttpManager.h#L113-L114 to add back the Flush method that uses Boolean values as parameters. Or try modifing the UnrealGSDK code to change true to EHttpFlushReason::Shutdown and recompile the GSDK.

--In addition, since PlayFab Unreal GSDK was initially tested using Unreal Engine 4.26, 4.27, 5.0 and 5.1. The plugin will be actively maintained to work with the latest 3 - 4 versions of Unreal. If you have issues using these versions, please file an issue here: https://github.com/PlayFab/gsdk/issues .

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.