-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate a JSON tracker for player activities during game sessions #238
Comments
Example: [{"name":"Allison","guest":true,"gamePin":"12","team":"1","player":"1","currState":"state_1","currTransition":"trans_1","timeEnterState":"2022-04-19T18:03:34.754Z","timeExitApp":""},{"name":"Allison","guest":true,"gamePin":"12","team":"1","player":"1","currState":"state_2","currTransition":"trans_2","timeEnterState":"2022-04-19T18:04:03.990Z","timeExitApp":"","prevTransAnswer":"RD"},{"name":"h","guest":true,"gamePin":"12","team":"1","player":"1","currState":"state_1","currTransition":"trans_1","timeEnterState":"2022-04-19T18:13:32.753Z","timeExitApp":""},{"name":"h","guest":true,"gamePin":"12","team":"1","player":"1","currState":"state_2","currTransition":"trans_2","timeEnterState":"2022-04-19T18:13:34.275Z","timeExitApp":"","prevTransAnswer":"BL"},{"name":"z","guest":true,"gamePin":"12","team":"1","player":"1","currState":"state_1","currTransition":"trans_1","timeEnterState":"2022-04-19T18:15:04.634Z","timeExitApp":""},{"name":"z","guest":true,"gamePin":"11","team":"1","player":"1","currState":"state_1","currTransition":"trans_1","timeEnterState":"2022-04-19T18:15:26.981Z","timeExitApp":""},{"name":"z","guest":true,"gamePin":"11","team":"1","player":"1","currState":"state_1","currTransition":"trans_1","timeEnterState":"2022-04-19T18:15:31.861Z","timeExitApp":"","prevTransAnswer":"BL"},{"name":"z","guest":true,"gamePin":"11","team":"1","player":"1","currState":"state_1","currTransition":"trans_1","timeEnterState":"2022-04-19T18:15:37.246Z","timeExitApp":"","prevTransAnswer":"BL"},{"name":"z","guest":true,"gamePin":"11","team":"1","player":"1","currState":"state_1","currTransition":"trans_1","timeEnterState":"2022-04-19T18:15:38.414Z","timeExitApp":"","prevTransAnswer":"BL"},{"name":"z","guest":true,"gamePin":"11","team":"1","player":"1","currState":"state_1","currTransition":"trans_1","timeEnterState":"2022-04-19T18:15:38.612Z","timeExitApp":"","prevTransAnswer":"BL"},{"name":"z","guest":true,"gamePin":"11","team":"1","player":"1","currState":"state_1","currTransition":"trans_1","timeEnterState":"2022-04-19T18:15:38.812Z","timeExitApp":"","prevTransAnswer":"BL"},{"name":"z","guest":true,"gamePin":"11","team":"1","player":"1","currState":"state_1","currTransition":"trans_1","timeEnterState":"2022-04-19T18:15:39.013Z","timeExitApp":"","prevTransAnswer":"BL"},{"name":"z","guest":true,"gamePin":"11","team":"1","player":"1","currState":"state_1","currTransition":"trans_1","timeEnterState":"2022-04-19T18:15:39.212Z","timeExitApp":"","prevTransAnswer":"BL"},{"name":"z","guest":true,"gamePin":"11","team":"1","player":"1","currState":"state_2","currTransition":"trans_2","timeEnterState":"2022-04-19T18:15:40.001Z","timeExitApp":"","prevTransAnswer":"GR"},{"name":"A","guest":true,"gamePin":"12","team":"1","player":"1","currState":"state_1","currTransition":"trans_1","timeEnterState":"2022-04-19T18:18:11.714Z","timeExitApp":""},{"name":"A","guest":true,"gamePin":"12","team":"1","player":"1","currState":"state_1","currTransition":"trans_1","timeEnterState":"2022-04-19T18:18:13.621Z","timeExitApp":"","prevTransAnswer":"BL"},{"name":"A","guest":true,"gamePin":"12","team":"1","player":"1","currState":"state_1","currTransition":"trans_1","timeEnterState":"2022-04-19T18:18:15.449Z","timeExitApp":"","prevTransAnswer":"BL"},{"name":"A","guest":true,"gamePin":"12","team":"1","player":"1","currState":"state_2","currTransition":"trans_2","timeEnterState":"2022-04-19T18:18:20.243Z","timeExitApp":"","prevTransAnswer":"RD"},{"name":"A","guest":true,"gamePin":"12","team":"1","player":"1","currState":"state_2","currTransition":"trans_2","timeEnterState":"2022-04-19T18:18:25.089Z","timeExitApp":"","prevTransAnswer":"RD&GR"},{"name":"A","guest":true,"gamePin":"12","team":"1","player":"1","currState":"state_2","currTransition":"trans_2","timeEnterState":"2022-04-19T18:18:29.708Z","timeExitApp":"","prevTransAnswer":"RD&GR&BK"},{"name":"A","guest":true,"gamePin":"12","team":"1","player":"1","currState":"state_3","currTransition":"trans_3","timeEnterState":"2022-04-19T18:18:35.613Z","timeExitApp":"","prevTransAnswer":"BK&BL"},{"name":"A","guest":true,"gamePin":"12","team":"1","player":"1","currState":"state_3","currTransition":"trans_3","timeEnterState":"2022-04-19T18:18:39.577Z","timeExitApp":"","prevTransAnswer":""},{"name":"A","guest":true,"gamePin":"12","team":"1","player":"1","currState":"state_3","currTransition":"trans_3","timeEnterState":"2022-04-19T18:18:42.127Z","timeExitApp":"","prevTransAnswer":"dog"},{"name":"A","guest":true,"gamePin":"12","team":"1","player":"1","currState":"state_3","currTransition":"trans_3","timeEnterState":"2022-04-19T18:18:45.578Z","timeExitApp":"","prevTransAnswer":"neow"},{"name":"A","guest":true,"gamePin":"12","team":"1","player":"1","currState":"state_4","currTransition":"trans_4","timeEnterState":"2022-04-19T18:18:50.127Z","timeExitApp":"","prevTransAnswer":"cat"},{"name":"A","guest":true,"gamePin":"12","team":"1","player":"1","currState":"state_4","currTransition":"trans_4","timeEnterState":"2022-04-19T18:18:52.813Z","timeExitApp":"","prevTransAnswer":"RD"},{"name":"A","guest":true,"gamePin":"12","team":"1","player":"1","currState":"state_4","currTransition":"trans_4","timeEnterState":"2022-04-19T18:18:53.383Z","timeExitApp":"","prevTransAnswer":"GR"},{"name":"A","guest":true,"gamePin":"12","team":"1","player":"1","currState":"state_4","currTransition":"trans_4","timeEnterState":"2022-04-19T18:18:54.467Z","timeExitApp":"","prevTransAnswer":"BK"},{"name":"A","guest":true,"gamePin":"12","team":"1","player":"1","currState":"state_5","currTransition":"trans_5","timeEnterState":"2022-04-19T18:18:55.473Z","timeExitApp":"","prevTransAnswer":"BL"},{"name":"A","guest":true,"gamePin":"12","team":"1","player":"1","currState":"state_6","currTransition":"trans_6","timeEnterState":"2022-04-19T18:18:58.725Z","timeExitApp":"","prevTransAnswer":"GR&RD&BK"},{"name":"A","guest":true,"gamePin":"12","team":"1","player":"1","currState":"state_6","currTransition":"trans_6","timeEnterState":"2022-04-19T18:19:06.789Z","timeExitApp":"","prevTransAnswer":"GR&GR"},{"name":"A","guest":true,"gamePin":"12","team":"1","player":"1","currState":"state_6","currTransition":"trans_6","timeEnterState":"2022-04-19T18:19:11.376Z","timeExitApp":"","prevTransAnswer":"BL&BL&BL"},{"name":"A","guest":true,"gamePin":"12","team":"1","player":"1","currState":"state_7","currTransition":"trans_7","timeEnterState":"2022-04-19T18:19:14.765Z","timeExitApp":"","prevTransAnswer":"BL&BL"},{"name":"A","guest":true,"gamePin":"12","team":"1","player":"1","currState":"state_7","currTransition":"trans_7","timeEnterState":"2022-04-19T18:19:16.697Z","timeExitApp":"","prevTransAnswer":"a"},{"name":"A","guest":true,"gamePin":"12","team":"1","player":"1","currState":"state_7","currTransition":"trans_7","timeEnterState":"2022-04-19T18:19:19.515Z","timeExitApp":"","prevTransAnswer":"🍎"}] |
Updated/Added Logging Fields: name guest gamePin team player currState currTransition prevTransAnswer currTransAnswer interactionType interactionTime timeEnterState timeExitApp |
Log file is deleted from device after 2 hours of the app being closed. This should give enough time for the log data to be transmitted to the server and database. |
Added new field to logs: prevTransType |
Create a JSON file
gamePlayLog.json
that tracks all player activities for a session.gamePlayLog.json
will get updated for all player actions on the app -- e.g., joining a game, movement from one state to the next, etc.Updates to this JSON file will primarily be appends of player actions, formatted according to the specifications indicated in the
GameInfo.kt
utility class.This JSON file works in tandem with
playerTracker.json
. WhileplayerTracker.json
will only store the current players in a session and will update those player records,gamePlayLog.json
will append all player actions to generate a history track of player events.An example snapshot for contents of
gamePlayLog.json
is as follows:[
{
name: allison1
Team: 1
Player: 1
currState: 1
currTransition: 1
timeEnterState: 00:00
prevTransAnswer: null
},
{
name: allison1
Team: 1
Player: 1
currState: 2
currTransition: 2
timeEnterState: 00:05
prevTransAnswer: “dogs”
},
{
name: allison1
Team: 1
Player: 1
currState: 3
currTransition: 3
timeEnterState: 00:10
prevTransAnswer: “cats”
},
{
name: allison2
Team: 1
Player: 1
currState: 3
currTransition: 3
timeEnterState: 00:10
prevTransAnswer: “cats”
}
]
The text was updated successfully, but these errors were encountered: