'Unity PlayFab best way to save race information settings
A bit new to data analytics in PlayFab so thought I'd ask here and see if anyone has had to deal with something similar before.
Right now I have the need to capture some details that will later be pushed to a database, however not entirely sure how to set it up in PlayFab in the most optimal way.
Example of data that needs to save: Date, Course, Time of Day, Weather, Distance, Time to complete
Some of these are set before or after the race is started.
As they're later to be used to generate more user statistics/replay vs. yourself to see how/if you've improved, I'd like to have multiples of these and easily convert them to datatable rows.
From looking through forum posts on the subject it seems that saving in the Player Data (Title) would be the easiest to accomplish by reading json from previous rows/entries and them adding onto it, however there's PlayStream and that might be better, but couldn't find a lot of coverage on it.
Additionally how would you go about linking up the stats set before the race and those after the race is finished?
Thank you in advance!
Solution 1:[1]
CallbackQuery contains the message object which holds chat id that can be used with send_message()
@bot.callback_query_handler(func=lambda call: True)
def callback_query(call):
if call.data == "cb_yes":
bot.answer_callback_query(call.id, "Answer is Yes")
elif call.data == "cb_no":
bot.send_message(call.message.chat.id, "This is a message")
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | W4RR10R |
