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
Re: http://forums.everybodyedits.com/viewto … 52#p621352
NB: I'm not trying to accept friend requests right now, just want to get names of those who have sent an invite to me.
I'm having issues accepting friend requests and not sure why.
Getting invites seems to be "getInvitesToMe".
client = PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", "email", "password", null);
connection = client.Multiplayer.CreateJoinRoom(client.ConnectUserId, $"Lobby{client.BigDB.Load("config", "config")["version"]}", true, null, null);
connection.OnMessage += (s, e) =>
{
Console.WriteLine(e);
switch (e.Type)
{
case "getInvitesToMe":
Console.WriteLine("Invites");
break;
}
};
connection.Send("getInvitesToMe");
connection.Send("getFriends");
I get no response from getInvitesToMe but get a response from getFriends.
Has anyone had this issue before or know what could be the issue?
Thank you eleizibeth ^
I stack my signatures rather than delete them so I don't lose them
Offline
Off topic:?
Koya wrote:unknown.png
You might want to fix that
All images work for me, discord labels C&P images as unknown.png
Thank you eleizibeth ^
I stack my signatures rather than delete them so I don't lose them
Offline
Have you tried to send "getInvitesToMe" before onmessage?
What I can read in the swf you need to send it first, to receive it.
Offline
Have you tried to send "getInvitesToMe" before onmessage?
What I can read in the swf you need to send it first, to receive it.
I've tried sending it before and after, switched positions with getFriends and just sent getInvites on its own
<atillabyte> well your code is fine must be something else :p
Thank you eleizibeth ^
I stack my signatures rather than delete them so I don't lose them
Offline
That's rather messed up, I'd poll the devs and wonder if there's an issue on their end.
Can you still view the list logged into the client?
Could you consider the reverse process: users come to you with their username, you send the request to them?
Offline
That's rather messed up, I'd poll the devs and wonder if there's an issue on their end.
Can you still view the list logged into the client?
Could you consider the reverse process: users come to you with their username, you send the request to them?
I can view requests on the client fine and have accepted friend requests through that, but cannot programatically get friend requests.
Thank you eleizibeth ^
I stack my signatures rather than delete them so I don't lose them
Offline
I believe the client sends "getInvitesToMe" after "connectioncomplete" has been received. So, perhaps this will work?
client = PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", "email", "password", null);
connection = client.Multiplayer.CreateJoinRoom(client.ConnectUserId, $"Lobby{client.BigDB.Load("config", "config")["version"]}", true, null, null);
connection.OnMessage += (s, e) =>
{
Console.WriteLine(e);
switch (e.Type)
{
case "connectioncomplete":
connection.Send("getInvitesToMe");
break;
case "getInvitesToMe":
Console.WriteLine("Invites");
break;
}
};
Offline
I believe the client sends "getInvitesToMe" after "connectioncomplete" has been received. So, perhaps this will work?
client = PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", "email", "password", null); connection = client.Multiplayer.CreateJoinRoom(client.ConnectUserId, $"Lobby{client.BigDB.Load("config", "config")["version"]}", true, null, null); connection.OnMessage += (s, e) => { Console.WriteLine(e); switch (e.Type) { case "connectioncomplete": connection.Send("getInvitesToMe"); break; case "getInvitesToMe": Console.WriteLine("Invites"); break; } };
I don't get the message "connectioncomplete".
But on the client I do have
Not sure what is going on.
Edit: Hang on, I just noted out my code and C&P yours and it works
Thank you eleizibeth ^
I stack my signatures rather than delete them so I don't lose them
Offline
Try adding an error handler to the SimpleConnect part and see if you get any error messages.
Offline
It's working now but the changed I typed out which reflect exactly what you provided didn't work - there is literally no difference and I am confused.
Thank you eleizibeth ^
I stack my signatures rather than delete them so I don't lose them
Offline
Well your first code dump had no connectioncomplete wait... I guess I should've seen that but eh
But even after I waited for it I never received "connectioncomplete".
Thank you eleizibeth ^
I stack my signatures rather than delete them so I don't lose them
Offline
Pages: 1
[ Started around 1732420993.7654 - Generated in 0.085 seconds, 12 queries executed - Memory usage: 1.59 MiB (Peak: 1.8 MiB) ]