Specific Problem with Multiplayer plugin.

Bugs will be moved here once resolved.

Post » Sat Aug 22, 2015 2:04 pm

there is a problem that happens with Multiplayer plugin,,,, the cituation to occur is very specific .....

you get a game every suppose is 1x1 as in the case of C2 Pong,,,,, each User has its object (Host and Peer),,,

If you make a multiplayer system that the User returns to an initial layout and disconnect the room after finish the game and can get into another game that is waiting for challenging ocorerá a problem with the player at another time was the (HOST) another room,,,

the player is a PEER a room, but that was before HOST another room, even after (Leave Room) or (Desconect from Room),, when it connects to a new room but as PEER he is creating two objects to the host.....

As if the player had not lost all linkages with their former state of HOST ...

I can not find a way to solve this problem,,,,,

Examples ....

Image

First combat everything running, players OK, objects OK, variables OK in debug mode.

Image

Second combat, reversing players ,,, the player who was once the HOST and is now the PEER creates two objects to the room HOST.
B
28
S
7
G
1
Posts: 78
Reputation: 2,253

Post » Sat Aug 22, 2015 3:52 pm

@Reinarte

You will need to follow the bug reporting guidelines - supply a minimum .capx and precise instruction, etc - or this will likely be closed automatically by Ashley.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
86
Posts: 5,422
Reputation: 59,530

Post » Mon Aug 24, 2015 11:02 pm

OK, I'll prepare a new capx file because it will not pass command lines of my advanced design of multiplayer,,,,

I imagine that this problem was not detected because it would require a large project using Multyplayer, but it seems that no one even made an advanced design using the multiplayer of Scirra,,,

Do not worry I play the same problem using the example of Scirra (Multiplayer Pong) will pass it to understand what it is and solve the problem ....

Just play a game and the next game reversing players,, HOST and PEER ..

Then you will see the first game everything is okay, there is no any problem,,, but if they get the second start inverting the players then the problem will appear.

All small modifications in Multiplayer Pong Scirra are marked in capx file.

https://www.dropbox.com/s/g37an3nw0jkxv ... .capx?dl=0
B
28
S
7
G
1
Posts: 78
Reputation: 2,253

Post » Wed Aug 26, 2015 6:30 pm

someone who works in Scirra will give attention and this problem?
B
28
S
7
G
1
Posts: 78
Reputation: 2,253

Post » Tue Sep 08, 2015 3:24 pm

Closing as won't investigate: I don't see any evidence this is not just a mistake in your events. You need to keep the host and the peer all on the same layout at all times, and your events don't appear to be sufficient to ensure that happens. The multiplayer engine is also not designed to make people explicitly choose if they should be host or peer, it's automatically assigned and your events need to respect the automatic assignment, so I'm not sure what the purpose of having separate buttons for that is or what you expect it to do. It appears entirely possible that a user could click the "host" button and be automatically assigned as a peer or vice-versa, so I think you are just contradicting the way the multiplayer engine works.
Scirra Founder
B
398
S
236
G
88
Posts: 24,441
Reputation: 194,661

Post » Wed Sep 09, 2015 11:20 am

Ashley wrote:Closing as won't investigate: I don't see any evidence this is not just a mistake in your events. You need to keep the host and the peer all on the same layout at all times, and your events don't appear to be sufficient to ensure that happens. The multiplayer engine is also not designed to make people explicitly choose if they should be host or peer, it's automatically assigned and your events need to respect the automatic assignment, so I'm not sure what the purpose of having separate buttons for that is or what you expect it to do. It appears entirely possible that a user could click the "host" button and be automatically assigned as a peer or vice-versa, so I think you are just contradicting the way the multiplayer engine works.


Before you give your opinion, please download the available capx file.
Make tests of some matches and then come their views known.
B
28
S
7
G
1
Posts: 78
Reputation: 2,253

Post » Wed Sep 09, 2015 11:32 am

Ashley wrote:Closing as won't investigate: I don't see any evidence this is not just a mistake in your events. You need to keep the host and the peer all on the same layout at all times, and your events don't appear to be sufficient to ensure that happens. The multiplayer engine is also not designed to make people explicitly choose if they should be host or peer, it's automatically assigned and your events need to respect the automatic assignment, so I'm not sure what the purpose of having separate buttons for that is or what you expect it to do. It appears entirely possible that a user could click the "host" button and be automatically assigned as a peer or vice-versa, so I think you are just contradicting the way the multiplayer engine works.


Ashley did not understand the explanation, we are not forcing a peer to host and also we are not forcing a host to peer,,,,
the question is when you makes a FULL game with extrutura rooms and layout for the player to create a new game or connect to a game that is a problem waiting for players will take place in the specific situation.

Agree that when a game ends players are disconnected from the room and returned to the layout they call (lobby) or entry,,, where again the player can choose to create a new game or connect to an existing game,,,

This system will cause problems from the second straight game because occurs problem with the multiplayer plugin if a player on another previous game that has ended and it was also the HOST to connect to a new game but this time as a PEER.

You get the idea or need a more detailed explanation yet?
B
28
S
7
G
1
Posts: 78
Reputation: 2,253

Post » Wed Sep 09, 2015 12:02 pm

Running the CAPX in Chrome. Played first game with "AAA" as host and "BBB" as peer of "AAA". All OK.

Second game, after disconnection, played with "BBB" as host and "AAA" as peer of "BBB". All OK.

Can't reproduce the problem you're talking about. I'm missing something?

I've understand that the buttons for "host" and "peer" are mainly to allow to any player pair with any other. Some players connect as "host" and other players select the "host" they want and connect with him pressing "peer". Is like a manual pairing of players.
B
6
S
1
Posts: 24
Reputation: 460

Post » Wed Sep 09, 2015 12:47 pm

jsj wrote:Running the CAPX in Chrome. Played first game with "AAA" as host and "BBB" as peer of "AAA". All OK.

Second game, after disconnection, played with "BBB" as host and "AAA" as peer of "BBB". All OK.

Can't reproduce the problem you're talking about. I'm missing something?

I've understand that the buttons for "host" and "peer" are mainly to allow to any player pair with any other. Some players connect as "host" and other players select the "host" they want and connect with him pressing "peer". Is like a manual pairing of players.


It seems that you did everything right, but you can not reload the browser page and can not refresh the page so that the player ID in multiplayer does not change.

All that remains now you post a screen shot of your browser by starting the second PEER screen to make sure that everything was correct.

Image
https://www.dropbox.com/s/g75b5dv4wijhk ... g.jpg?dl=0
B
28
S
7
G
1
Posts: 78
Reputation: 2,253

Post » Wed Sep 09, 2015 1:51 pm

Ok. I was reloading game so it works fine.

If I simply let the game redirect me to the "login" again, the second time things are messed as you say. Seems that the actions from Multiplayer: "leave room" or "disconnect from room" are leaving something in an "unknown" state in the server or in the client.

Perhaps adding a "disconnect form signalling server" and then again reconnect could resolve the problem?
B
6
S
1
Posts: 24
Reputation: 460

Next

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 5 guests