Multiplayer QA thread
The_Gamesalad_Guru
Member Posts: 9,922
Since I can't post in the pro only thread on the topic! I started this to interact on this topic.
Using the provided template I was able to login to a game using copies of the nightly build. It doesn't seem the game.instances table is updating. I was trying to access the second players id to send a message but using a display text the table never changed to the player 2 id. It just stayed at zero, which is the default as it's an integer value.
Using the provided template I was able to login to a game using copies of the nightly build. It doesn't seem the game.instances table is updating. I was trying to access the second players id to send a message but using a display text the table never changed to the player 2 id. It just stayed at zero, which is the default as it's an integer value.
Comments
I'm going to set up a debugging screen that has a button that cycles through the table rows so I can see the full data set.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
If you want to direct anything to a particular player you're going to need to address that instance data.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Attached are both copies of a file I used for testing. Here's a short video I made to explain what I did to check the table data*:
*This video is NOT intended to be a comprehensive guide to using multiplayer features. In fact, it leaves out quite a bit with respect to setting up an account in playstogether and assumes basic knowledge of many things without explaining them well. I also didn't include audio so it's a poor-man's version of what it could be. But I'm sharing it in case any part of it is helpful to other people.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Related to user info, it seems necessary to use our Playstogether password when using the multiplayer template to log in.
Example: I can make any number of players with different user names and email addresses, but must use the same (my) Playstogether password to log in.
Is this the same for you, or am I missing something in what I'm doing?
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Make a copy of the template and name it copy.
In the first template....
Create a username: Player 6
Associate an email: player6@gmail.com
Give it a password: Harvey
Click Login - result: Connected
Then logout, change the password to something such as Dave.
Click Login - result: Disconnected
Now open the copy of the template (not the same template)
Enter the same user info Player 6, player6@gmail.com, with Dave as a password.
Click Login - result: Disconnected
And finally, in the copy of the template try Player 6, player6@gmail.com with the password Harvey.
Login result: Connected
My conclusion is that Player 6 with associated email player6@gmail.com will always need the password Harvey regardless which template is used.
This also makes me think that the user info is not only being saved in one of the tables, but somewhere else as well, like in a computer cache, application support or Playstogether site.
Does this make sense?
This is interesting stuff. I wish I had a better grasp on it... it feels a bit like re-learning GameSalad, which is both exciting and tricky.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
@tatiang that makes sense the info repopulating. The network player data table is the one that is persistent. I've been experimenting with the messaging with no success. I need to make a setup where I can enter the player ID manually after joining a game and try sending a message that way as I couldn't pull that info from the table that holds that data.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS