NOTE: This page is still under construction!
The purpose of these tools is to make building and testing of Table Realms integrated games in P2P and embedded modes easier.
Prior to the creation of these tools, it was necessary to deploy the P2P and embedded modes of the games to test them.
Please note the testing tool requires node.js to run. If you have not installed it yet, please do so. The tool is hosted in this repo, and the steps to using it are as follows:
Once the run.bat file has been opened from the folder structure, the following command line script will run in the back end, via Windows command prompt:
The command line script will cause the a Chrome browser window to open, displaying a QR code hosted on the test harness framework.
Please note: Debugging builds won’t work in PlayCanvas, since that platform requires you to be authenticated.
This tool reduces the necessity of deploying to test P2P and embedded modes by doing the following:
A new feature of the test harness allows the user to choose either the P2P or P3P protocol in order to test. As described in greater detail here, the P2 protocol allows only the host to send messages to the clients, whereas the P3 protocol also allows the clients to send messages to the host, and from there have the messages sent to other clients.
While P3 allows for a greater range of functionality to be implemented, it is important to first ensure whether your game warrants that protocol - if you don’t plan and sequence actions correctly, you’ll be in for some pretty big problems.
It is important to remember which protocol your game uses, and selecting the correct mode when using the build tool. Although it is possible to run a game built using P2 in the harness’s P3 mode, it could cause unintentional messages to be sent from the client to the host. Likewise, a game built using P3 will not function correctly in the harness’s P2 mode, as the client devices will be unable to send messages to the host device.