Hi,
How do I change device ID on the simulator - the one returned by system.getInfo( “deviceID” )
thx
Hi,
How do I change device ID on the simulator - the one returned by system.getInfo( “deviceID” )
thx
I don’t think that you can… and may you explain your purposes in wanting to do this? 
Thanks,
Brent
if you develop a game where people play each other - you need some kind of key to tell one device from another. the deviceID seems like the logical choice - you will store game info on a server again that key.
If you are testing that, then one turn you will want to be player A, the next Player B, etc. so you will want to pretend you are on different devices.
makes sense?
Changing the device ID wouldn’t really achieve the testing that you’re looking for. You might consider using two different devices/machines, so that the device IDs are in fact unique? That would be the easiest way I can think of to test your multiplayer.
Alex@Panc is correct, for a reliable test you should use 2 separate devices/simulators so that you get real unique keys and know for a fact that your code works.
Presumably you are at an early stage though, in which case why would you even need to use the real device ID? Just make up 2 strings and use those as device IDs.
local deviceOneID = "here\_is-my\_first-Device\_id" local deviceTwoID = "here\_is-my\_second-Device\_id"
I don’t think that you can… and may you explain your purposes in wanting to do this? 
Thanks,
Brent
if you develop a game where people play each other - you need some kind of key to tell one device from another. the deviceID seems like the logical choice - you will store game info on a server again that key.
If you are testing that, then one turn you will want to be player A, the next Player B, etc. so you will want to pretend you are on different devices.
makes sense?
Changing the device ID wouldn’t really achieve the testing that you’re looking for. You might consider using two different devices/machines, so that the device IDs are in fact unique? That would be the easiest way I can think of to test your multiplayer.
Alex@Panc is correct, for a reliable test you should use 2 separate devices/simulators so that you get real unique keys and know for a fact that your code works.
Presumably you are at an early stage though, in which case why would you even need to use the real device ID? Just make up 2 strings and use those as device IDs.
local deviceOneID = "here\_is-my\_first-Device\_id" local deviceTwoID = "here\_is-my\_second-Device\_id"