Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating to UE 5.2+ #28

Open
kabassmusic opened this issue Jul 8, 2023 · 1 comment
Open

Updating to UE 5.2+ #28

kabassmusic opened this issue Jul 8, 2023 · 1 comment

Comments

@kabassmusic
Copy link

kabassmusic commented Jul 8, 2023

Hello. I was attempting to update the develop branch to work with 5.2 and would like to share my progress below. I'm still having one error with the GetTypeHash if you know how to fix this.

SteamBridge Develop Branch | UE 5.2 | Steamworks SDK 1.53
------------------------------------------------------------------------------------------------------

- SteamInput.h: 	Rename "GetGlyphForActionOrigin" to "GetGlyphForActionOrigin_Legacy".
- SteamInput.h: 	Rename "TriggerHapticPulse" to "Legacy_TriggerHapticPulse".
- SteamInput.h: 	Rename "TriggerRepeatedHapticPulse" to "Legacy_TriggerRepeatedHapticPulse".
- SteamGameServer.h: 	Rename "EnableHeartbeats" to "SetAdvertiseServerActive".
- SteamGameServer.h: 	Remove/Comment Out "ForceHeartbeat" & "SetHeartbeatInterval". They were removed in new version.

------------------------------------------------------------------------------------------------------

ERROR: 'ISteamInput::Init': function does not take 0 arguments

SteamInput.h

Change:
	bool Init() { return SteamInput()->Init(); }

To:
	bool Init(bool bExplicitlyCallRunFrame) { return SteamInput()->Init(bExplicitlyCallRunFrame); }

I don't know if this is correct but it fixes the error and is specified in "isteaminput.h" of the SDK. 

------------------------------------------------------------------------------------------------------

SteamInventory.cpp (Line 42)
There is a GetTypeHash error on FSteamItemDef when using TMap inside of ExchangeItems and GenerateItems. 

------------------------------------------------------------------------------------------------------
@kabassmusic kabassmusic changed the title Updating to UE 5.2 Updating to UE 5.2+ Nov 7, 2023
@kabassmusic
Copy link
Author

If you are updating to 5.3 with a new project, the build for SteamStructs will fail talking about Error C2666.

To fix it, go to your "Target.cs" files and change:
BuildSettingsVersion.V4;
to
BuildSettingsVersion.V2;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant