Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?
You are not logged in.
Pages: 1
Topic closed
I'm really stuck at this...
1) How to convert player id (not simple id) to username? What EE protocol message need to send or receive to get that beside "add"?
2) Get list of current users in the room with their id and username?
If possible, include code snippet example?
Say hello to my army :
Offline
ok its rlly simlple1:
1) in the bigdb called Usernames, you fetch a key the username, e.g. "benjaminsen". Then, in the table, there is a slot called "owners", if you fetch that, it'll return "simpleChris"
2) playerio.listrooms() or something and itll give you all of that
you can't find online users like that however
code snippits here
static void Main(string[] args) {
//Get SimpleId of benjaminsen
Console.WriteLine(GetSimpleId("benjaminsen"));
//Get Username of simpleChris
Console.WriteLine(GetUsername("simpleChris"));
//List rooms
var rooms = guest.Multiplayer.ListRooms("Everybodyedits221", null, 0, 0);
Console.ReadLine();
}
public static bool CreatedGuestClient = false;
public static PlayerIOClient.Client guest;
public static string GetSimpleId(string username) {
if(!CreatedGuestClient)
guest = PlayerIOClient.PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", "[email protected]", "guest", null);
return guest.BigDB.Load("Usernames", username)["owner"].ToString();
}
public static string GetUsername(string simpleid) {
if (!CreatedGuestClient)
guest = PlayerIOClient.PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", "[email protected]", "guest", null);
return guest.BigDB.Load("PlayerObjects", simpleid)["name"].ToString();
}
It's not possible to list the online players in a world individually unless you join and send "init2"
Please keep in mind that these functions are not designed to handle any errors, error checking will have to be included by you.
Offline
All of those questions have been answered before. Please use the forum search feature.
Don't ask to be spoonfed code.
One bot to rule them all, one bot to find them. One bot to bring them all... and with this cliché blind them.
Offline
the fourm search feature doesnt work that well etc maybe i did use it thought buit you have to be exact or it wont find it etc so idk
Offline
All of those questions have been answered before. Please use the forum search feature.
Don't ask to be spoonfed code.
the fourm search feature doesnt work that well etc maybe i did use it thought buit you have to be exact or it wont find it etc so idk
As said from soniiety, search feature is trash
Btw ninja, I forgot to specify that player id, not simple id, and thank for helping me
Edit: OK found a way around with it, lock the thread if you want
Will include these words for future search:
username convert playerId simpleId init2
Say hello to my army :
Offline
yes that right we we all used search then there would not be any new threads and we wouldn't post as much plus if they do fix it it will still hard to use it i think unless they explain how top use it then we would have more searchees
Offline
Pages: 1
Topic closed
[ Started around 1732964446.243 - Generated in 0.051 seconds, 13 queries executed - Memory usage: 1.43 MiB (Peak: 1.56 MiB) ]