This page has been translated automatically.
Getting Started
Migrating to UNIGINE 2.0
C++ API Migration
UnigineScript
The Language
Core Library
Engine Library
Node-Related Classes
GUI-Related Classes
Plugins Library
High-Level Systems
Usage Examples
C++ API
API Reference
Integration Samples
Usage Examples
C++ Plugins
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

Syncker

This section contains description of the Syncker samples.

Running Syncker Samples

You can try out Syncker samples in Unigine SDK that run Syncker directly from world scripts.

  1. On each slave computer, open Unigine SDK Browser and press the Syncker slave demo button, which is located on the Samples & Demos tab under the High-Level Systems section.
  2. On the master computer, also open Unigine SDK Browser and press the Syncker master demo button.
  3. Change the network broadcast address of the master by typing the following console command (on the master computer):
    Source code
    master_address xxx.xxx.xxx.xxx
    
    And then reload the current world:
    Source code
    world_reload
    
    After that, in the master console you will see messages that slaves have connected. For example:
    Output
    Connection from "xxx.xxx.xxx.xxx" "unknown" accepted in 0.00 seconds
    
    In the console of the connected slaves you will see the following:
    Output
    Connection to "xxx.xxx.xxx.xxx" accepted in 0.00 seconds
    
    Notice
    Console commands world_reload or world_load with the same world as currently loaded are not run on slaves after the master. Only loading of a new world works.

For more details on Syncker initialization and update code, see Running Syncker for a custom project.

Last update: 2017-07-03
Build: ()