Official Everybody Edits Forums

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.

#1 2016-08-29 17:09:15, last edited by Koya (2016-08-29 17:59:11)

Koya
Fabulous Member
From: The island with those Brits
Joined: 2015-02-18
Posts: 6,310

Getting friend invites

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.

Output

Has anyone had this issue before or know what could be the issue?

Extra

Po9cnQh.png

PLNQVL8.png
Thank you eleizibeth ^

1SYOldu.png

I stack my signatures rather than delete them so I don't lose them
giphy.gif

WfSi4mm.png

Offline

#2 2016-08-29 18:29:04

MartenM
Member
From: The Netherlands
Joined: 2016-03-31
Posts: 978
Website

Re: Getting friend invites

Off topic:?

Koya wrote:

unknown.png

You might want to fix that


lm3hgg8.jpg

Ingame: marten22        My steam: MartenM

Offline

#3 2016-08-29 18:41:58

Koya
Fabulous Member
From: The island with those Brits
Joined: 2015-02-18
Posts: 6,310

Re: Getting friend invites

MartenM wrote:

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

Hidden text

Po9cnQh.png

PLNQVL8.png
Thank you eleizibeth ^

1SYOldu.png

I stack my signatures rather than delete them so I don't lose them
giphy.gif

WfSi4mm.png

Offline

#4 2016-08-29 19:33:01, last edited by capasha (2016-08-29 19:34:31)

capasha
Member
Joined: 2015-02-21
Posts: 4,066

Re: Getting friend invites

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

#5 2016-08-29 19:37:34

Koya
Fabulous Member
From: The island with those Brits
Joined: 2015-02-18
Posts: 6,310

Re: Getting friend invites

capasha wrote:

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

Po9cnQh.png

PLNQVL8.png
Thank you eleizibeth ^

1SYOldu.png

I stack my signatures rather than delete them so I don't lose them
giphy.gif

WfSi4mm.png

Offline

#6 2016-08-29 23:58:25

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: Getting friend invites

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

#7 2016-08-30 00:06:11

Koya
Fabulous Member
From: The island with those Brits
Joined: 2015-02-18
Posts: 6,310

Re: Getting friend invites

hummerz5 wrote:

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.


Po9cnQh.png

PLNQVL8.png
Thank you eleizibeth ^

1SYOldu.png

I stack my signatures rather than delete them so I don't lose them
giphy.gif

WfSi4mm.png

Offline

#8 2016-08-30 00:58:13

Priddle
Member
From: The Netherlands
Joined: 2015-02-15
Posts: 454

Re: Getting friend invites

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

Wooted by:

#9 2016-08-30 01:02:16, last edited by Koya (2016-08-30 01:05:24)

Koya
Fabulous Member
From: The island with those Brits
Joined: 2015-02-18
Posts: 6,310

Re: Getting friend invites

NVD wrote:

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 mbnkjS
Not sure what is going on.

Edit: Hang on, I just noted out my code and C&P yours and it works


Po9cnQh.png

PLNQVL8.png
Thank you eleizibeth ^

1SYOldu.png

I stack my signatures rather than delete them so I don't lose them
giphy.gif

WfSi4mm.png

Offline

#10 2016-08-30 01:05:16

Priddle
Member
From: The Netherlands
Joined: 2015-02-15
Posts: 454

Re: Getting friend invites

Try adding an error handler to the SimpleConnect part and see if you get any error messages.

Offline

#11 2016-08-30 01:08:57, last edited by Koya (2016-08-30 01:11:37)

Koya
Fabulous Member
From: The island with those Brits
Joined: 2015-02-18
Posts: 6,310

Re: Getting friend invites

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.

Hidden text

Po9cnQh.png

PLNQVL8.png
Thank you eleizibeth ^

1SYOldu.png

I stack my signatures rather than delete them so I don't lose them
giphy.gif

WfSi4mm.png

Offline

#12 2016-08-30 01:28:07

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: Getting friend invites

Well your first code dump had no connectioncomplete wait... I guess I should've seen that but eh

Offline

#13 2016-08-30 01:29:18

Koya
Fabulous Member
From: The island with those Brits
Joined: 2015-02-18
Posts: 6,310

Re: Getting friend invites

hummerz5 wrote:

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".


Po9cnQh.png

PLNQVL8.png
Thank you eleizibeth ^

1SYOldu.png

I stack my signatures rather than delete them so I don't lose them
giphy.gif

WfSi4mm.png

Offline

#14 2016-08-30 01:30:23

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: Getting friend invites

Yeah, I remember that being a stickler for something else, too

Offline

hummerz51472517023621412

Board footer

Powered by FluxBB

[ Started around 1732741965.6988 - Generated in 0.184 seconds, 12 queries executed - Memory usage: 1.59 MiB (Peak: 1.8 MiB) ]