Forum Discussion
Gunfire_JackH
9 years agoHonored Guest
Achievements - issue using Unreal's Write Achievement Progress node for Count type achievements
Using UE 4.16.2
Works just fine for EAchievementType::Simple achievements, however when incrementing an EAchievementType::Count type, due to the float Progress pin, Oculus spits out the following error message: Could not float convert to uint64
VariantData's type is float as expected, so the following Oculus code fails.
FOnlineAchievementsOculus::WriteAchievements
...
I can modify the Oculus code and rebuild the engine to fix the issue, but hopefully you already have a CL I can integrate - or a better / correct way to increment Count based achievements.
Please advise. TY
Works just fine for EAchievementType::Simple achievements, however when incrementing an EAchievementType::Count type, due to the float Progress pin, Oculus spits out the following error message: Could not float convert to uint64
VariantData's type is float as expected, so the following Oculus code fails.
FOnlineAchievementsOculus::WriteAchievements
...
case EAchievementType::Count:
uint64 Count;
GetWriteAchievementCountValue(VariantData, Count);
RequestId = ovr_Achievements_AddCount(TCHAR_TO_ANSI(*AchievementId), Count);
break;
I can modify the Oculus code and rebuild the engine to fix the issue, but hopefully you already have a CL I can integrate - or a better / correct way to increment Count based achievements.
Please advise. TY
2 Replies
Replies have been turned off for this discussion
- juanoldinhoHeroic ExplorerThank you for reporting this issue. I will pass it along to our internal team for review and keep you updated.
- Gunfire_JackHHonored Guest
juanoldinho said:
Thank you for reporting this issue. I will pass it along to our internal team for review and keep you updated.
You're welcome. I made the following change to fix it locally.
void FOnlineAchievementsOculus::GetWriteAchievementCountValue
...case EOnlineKeyValuePairDataType::Float:
{
float Value;
VariantData.GetValue(Value);
OutData = static_cast<uint64>(Value);
break;
}
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 9 months ago
- 3 years ago
- 5 years agoAnonymous
- 4 months ago
- 2 years ago