CTR Pia
4.11.3
Game Communication Engine
|
This sample demonstrates the use of PiaReckoning
.
This sample demonstrates the following.
Select the communication mode from this screen. Select to perform matchmaking, and then go to the Main screen.
Input | Operation |
---|---|
A Button | Run local communication (UDS library) as a host. After you successfully create a session, you transition to the Main screen. |
B Button | Run local communication (UDS) as a client. Search the UDS network and join what you find, and then transition to the Main screen. If you press START during a search of the UDS network, you cancel the search and return to the Mode Selection screen. |
X Button | Run in the mode that uses Internet communication. Perform random matchmaking. If there is a session that can be joined, join it as a client. If there are no sessions, create one as the host. Then you transition to the Main screen. |
START | Exits the program. |
State:, the first item from the bottom of the screen, indicates the state of CloneProtocol
. When two or more units become State:Active, communication starts and data is exchanged.
Clock:, the second item from the bottom of the screen, indicates the time. An 'R' appears after the time while the time is being resynchronized.
Send:Recv:, the center item at the bottom of the screen, displays the number of packets being sent and received every 0.5 second.
Input | Operation |
---|---|
A Button | Starts and stops communication using CloneProtocol . |
L Stick | Moves the position of the rectangle for the local station. |
Up/down on the +Control Pad | Selects the items in the lower-right of the screen (Reckoning, Latency, ChaseType, ChaseRatio, VelScale, StopThreshold, and Threshold). |
Left/right on the +Control Pad | Use Up or Down on the +Control Pad to change the selected value. |
START | Withdraws from the session and returns to the Mode Selection screen. |
The numerical values can be changed for items listed in the lower-right of the screen.
By changing Reckoning/Unreliable, you can alter the movement of the rectangle and compare the communication volume (the Send
and Recv
values). By setting ChaseType to None, you can also truncate the correction.
true
when the distance of movement is shorter than this threshold. When a session cannot continue because of an error or another reason, you are automatically returned to the Mode Selection screen.
Performs communication using CloneProtocol
.
The screen shows the rectangles controlled by each station and the values received for each rectangle* as described below.
ReceiveClone
and displays the value of the registered ReckoningCloneElement
. ReceiveClone
. SendClone
and ReceiveClone
. ReceiveClone
. ReckoningCloneElement
values are shown. If using Unreliable mode, the UnreliableCloneElement
values are shown. GetValue
. These values are updated and displayed when GetValue
is called. (*) The square controlled by the local station is displayed using the local x- and y-coordinates.