EniGmaa
(EniGmaa)
April 5, 2017, 10:29pm
1
hello not sure if this is a bug or if i am just doing it wrong but im getting very strange behaviour.
i am making a chat system and would like to display the time a message was sent.
im using the utcNow node to pass the date/time into my message struct.
then im breaking the struct and using the AsDateTime(from UTC) function to set the text to display the date/time in the widget.
the problem is im getting different values depending on how and where i run the game.
For example if i run the game in the selected viewport or from a new editor window then i get the wrong value
if i run the game in standalone mode from the editor. Then i get the correct values displayed
if i package the game and run i get the same date and time as before when i was running in selected viewport
so my question is how do i get it to display the correct date/time in a packaged game??
And why would it work fine in standalone mode but not in any others
thanks
EniGmaa
(EniGmaa)
April 6, 2017, 12:16pm
2
Oh just found out that date Time Variables don’t have any UPROPERTY values, so they won’t replicate. Which is what’s causing the problem I think
Hello EniGmaa,
I was unable to reproduce your issue on our end. I have a couple of questions that will help me narrow down the issue you are experiencing.
Can you reproduce this issue in a new project?
If so, could you provide a detailed list of steps so I can reproduce your issue on our end?
Could you provide screenshots of the full blueprint where you are using the utcNow node?
Thanks!
EniGmaa
(EniGmaa)
April 9, 2017, 11:45am
4
,Apparently the issue is already been reported Unreal Engine Issues and Bug Tracker (UE-22533)
It doesn’t replicate because they don’t have any uproperty values.
The workaround for now is to simply split the Utc now struct and then promote them to variables and then send the variables through instead this replicates fine although at a cost of higher bandwidth and more work to display it properly the other end