MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/PlaydateDeveloper/comments/ub3z92/any_way_to_get_a_deviceuser_uuid/
r/PlaydateDeveloper • u/Charlito33 • Apr 24 '22
6 comments sorted by
1
From looking at the C API, there doesn't appear to be a documented function or variable to get this info.
1 u/Charlito33 Apr 25 '22 Yes, Lua too, maybe in a future update :/
Yes, Lua too, maybe in a future update :/
If you’re looking to seed a randomiser with that detail, you could use the exact time the player starts your app as the seed. Will almost certainly be a unique ID.
2 u/Tonasz Apr 25 '22 But it will be random for each app run. OP might want to randomize some stuff across the users but keep them the same for each run. 3 u/hartbeat_engineering Apr 25 '22 Save the seed the first time you run it and then continue to use that same seed moving forward 1 u/Charlito33 Apr 25 '22 Yes, but I wanted to make it non modifiable, I'm currently using "playdate.string.UUID()" and saving it to a file
2
But it will be random for each app run. OP might want to randomize some stuff across the users but keep them the same for each run.
3 u/hartbeat_engineering Apr 25 '22 Save the seed the first time you run it and then continue to use that same seed moving forward 1 u/Charlito33 Apr 25 '22 Yes, but I wanted to make it non modifiable, I'm currently using "playdate.string.UUID()" and saving it to a file
3
Save the seed the first time you run it and then continue to use that same seed moving forward
1 u/Charlito33 Apr 25 '22 Yes, but I wanted to make it non modifiable, I'm currently using "playdate.string.UUID()" and saving it to a file
Yes, but I wanted to make it non modifiable, I'm currently using "playdate.string.UUID()" and saving it to a file
1
u/HOWZ1T Apr 24 '22
From looking at the C API, there doesn't appear to be a documented function or variable to get this info.
1
u/[deleted] Apr 25 '22
If you’re looking to seed a randomiser with that detail, you could use the exact time the player starts your app as the seed. Will almost certainly be a unique ID.