'Associate Object with Peer' does not work with Families

Bugs will be moved here once resolved.

Post » Tue Aug 05, 2014 10:15 pm

Problem Description
The 'Associate Object with Peer' action only works with individual objects, and not with instances of a Family.

Attach a Capx
https://www.scirra.com/forum/download/file.php?id=4413

Description of Capx
The CAPX is exactly the same as the Multiplayer Real-Time Game tutorial, with a few modifications in Game Events (do a search for "MODIFICATION" to see them all). 'Associate Object with Peer' now associates with an instance of 'PeerFamily' instead of 'Peer'. 'PeerFamily' is a simple family that I created that has only one object: 'Peer'.

Steps to Reproduce Bug
  • Step 1 - Run the game from the Login screen as you would normally to create a Host.
  • Step 2 - Open a second game window to create a Peer.
  • Step 3 - Close the Peer window.

Observed Result
In the Host window, the Peer object is not destroyed, indicating that the association did not take place.

Expected Result
Object associated with Peer should be destroyed.

Affected Browsers
[list]
[*] Chrome: (YES)
[*] FireFox: (YES)

Operating System and Service Pack
____ Windows 8 64-Bit ____

Construct 2 Version ID
r175
You do not have the required permissions to view the files attached to this post.
(M.A.D. are my initials. I'm not the least bit angry, really!)
@madguy90
B
11
S
4
Posts: 41
Reputation: 1,671

Post » Wed Aug 06, 2014 11:52 am

Closing as not a bug. This is not to do with the multiplayer object. You just can't 'pick by UID' in its family type before the object is fully created. Any object created with 'Create object' or 'Spawn an object' does not actually fully exist until the end of the next top-level event, and so can't be picked from its family in branches of the same sub-event. This is a quirk of the event system that is necessary to avoid crashing in this case given the particular algorithms we use.
Scirra Founder
B
387
S
230
G
88
Posts: 24,251
Reputation: 192,454


Return to Closed bugs

Who is online

Users browsing this forum: mallorcaredes and 5 guests