vizor-games / InfraworldRuntimeExample

15 stars 5 forks source link

Server Time returns error #5

Open PepeDuke opened 3 years ago

PepeDuke commented 3 years ago

Hello, I'm using latest master branch of InfraworldRuntimeExample, infraworld-cornerstone, InfraworldRuntime. with UE 4.26. Example server and UE runs fine and Hello rpc works.

Unfortunately Server Time rpc does not, Py Server receives the the request and sends back valid data (as far as i can tell). But when retrieving data on the UE side it returns Error: [Error Code:] Unknown [Error Massage:] Exception calling application: '11' has type str, but expected one of: int, long [Error Details:]

PepeDuke commented 3 years ago

Found the reason in python Server Hours/Minutes/Seconds needs to be deliberately casted to int.

hours = int(strftime("%H", gmtime()))
minutes = int(strftime("%M", gmtime()))
seconds = int(strftime("%S", gmtime()))