trdwll / SteamBridge

An Unreal Engine implementation of the Steamworks API.
https://trdwll.com/experiments/steambridge/
MIT License
133 stars 20 forks source link

Errors C4369, C4309, C4340 When Trying to Compile with UE 4.27.2, Seemingly Too Many Input Actions (More than 256) #18

Closed devinjdawson closed 2 years ago

devinjdawson commented 2 years ago

I get the following errors when trying to compile with Unreal Editor 4.27.2 (engine, not project).:

Error   C4369   
'ESteamInputActionOrigin::PS5_RightPad_DPadSouth':  enumerator value '256' cannot be represented as 'unsigned char', value is '0'
UE4 
\SteamBridge\Source\SteamBridge\Public 
\SteamBridge\Source\SteamBridge\Public\SteamEnums.h 786 
Error   C4309   
'initializing': truncation of constant value    
UE4 
\SteamBridge\Source\SteamBridge\Public  
\SteamBridge\Source\SteamBridge\Public\SteamEnums.h 786 
Error   C4340   
'PS5_RightPad_DPadSouth': value wrapped from positive to negative value 
UE4 
\SteamBridge\Source\SteamBridge\Public  
\SteamBridge\Source\SteamBridge\Public\SteamEnums.h 786 

I just removed all the PS5 Inputs in that section as a quick remedy

trdwll commented 2 years ago

Resolved on 3c9f507cff9b60769fc5fb75738a2c279fbe1c16. Sorry about that. My CI was down when I accepted that PR so it was never verified.