|
1 | | -# kbengine_ue4_demo |
2 | | -kbengine_ue4_demo |
| 1 | +KBEngine_unity3d_demo |
| 2 | +============= |
| 3 | + |
| 4 | +##This client-project is written for KBEngine(a MMOG engine of server) |
| 5 | +http://www.kbengine.org |
| 6 | + |
| 7 | +##中文 |
| 8 | +[Demo搭建文档](https://github.com/kbengine/kbengine_unity3d_demo/blob/master/README_CN.md),QQ交流群:461368412,[论坛](http://bbs.kbengine.org) |
| 9 | + |
| 10 | +##Releases |
| 11 | + |
| 12 | + sources : https://github.com/kbengine/kbengine_unity3d_demo/releases/latest |
| 13 | + binarys : https://sourceforge.net/projects/kbengine/files/ |
| 14 | + |
| 15 | + |
| 16 | +##KBE-Plugins docs |
| 17 | + |
| 18 | + https://github.com/kbengine/kbengine_unity3d_plugins/blob/master/README.md |
| 19 | + |
| 20 | + |
| 21 | +##Start: |
| 22 | + 1. Download KBEngine(a MMOG engine of server): |
| 23 | + Download(KBEngine): |
| 24 | + https://github.com/kbengine/kbengine/releases/latest |
| 25 | + |
| 26 | + Build(KBEngine): |
| 27 | + http://www.kbengine.org/docs/build.html |
| 28 | + |
| 29 | + Installation(KBEngine): |
| 30 | + http://www.kbengine.org/docs/installation.html |
| 31 | + |
| 32 | + 2. Use git to get the plugin(client) and demo-assets(server): |
| 33 | + |
| 34 | + In the kbengine_unity3d_demo directory: |
| 35 | + |
| 36 | + * Git command: git submodule update --init --remote |
| 37 | + |
| 38 | + |
| 39 | + * Or use TortoiseGit(menu): TortoiseGit -> Submodule Update: |
| 40 | + |
| 41 | + |
| 42 | + * Or manually get the plugin(client) and demo-assets(server) |
| 43 | + |
| 44 | + Download plugin(client): |
| 45 | + https://github.com/kbengine/kbengine_unity3d_plugins/releases/latest |
| 46 | + unzip and copy to "Assets/plugins/kbengine/kbengine_unity3d_plugins" |
| 47 | + |
| 48 | + Download demo-assets(server): |
| 49 | + https://github.com/kbengine/kbengine_demos_assets/releases/latest |
| 50 | + unzip and copy to "kbengine/" (The root directory server engine, such as $KBE_ROOT) |
| 51 | + |
| 52 | + 3. Copy "kbengine_unity3d_demo\kbengine_demos_assets" to "kbengine\" root directory |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | +##Configure Demo(Optional): |
| 57 | + |
| 58 | + Change the login address: |
| 59 | + |
| 60 | + |
| 61 | + kbengine_unity3d_demo\Scripts\kbe_scripts\clientapp.cs -> ip |
| 62 | + kbengine_unity3d_demo\Scripts\kbe_scripts\clientapp.cs -> port |
| 63 | + |
| 64 | + |
| 65 | +##Start the Servers: |
| 66 | + |
| 67 | + Ensure that the "kbengine_unity3d_demo\kbengine_demos_assets" has been copied to the "kbengine\" directory |
| 68 | + Reference:Start |
| 69 | + |
| 70 | + Check the startup status: |
| 71 | + If successful will find log "Components::process(): Found all the components!". |
| 72 | + Otherwise, please search the "ERROR" keyword in logs, according to the error description to try to solve. |
| 73 | + (More: http://www.kbengine.org/docs/startup_shutdown.html) |
| 74 | + |
| 75 | + Start server: |
| 76 | + Windows: |
| 77 | + kbengine\kbengine_demos_assets\start_server.bat |
| 78 | + |
| 79 | + Linux: |
| 80 | + kbengine\kbengine_demos_assets\start_server.sh |
| 81 | + |
| 82 | + (More: http://www.kbengine.org/docs/startup_shutdown.html) |
| 83 | + |
| 84 | + |
| 85 | +##Start the Client: |
| 86 | + |
| 87 | + Directly start(U3DEditor or Executable file). |
| 88 | + (Build Client:Unity Editor -> File -> Build Settings -> PC, MAC & Linux Standalone.) |
| 89 | + |
| 90 | + |
| 91 | +##Navmesh-navigation(Optional): |
| 92 | + |
| 93 | + The server to use recastnavigation navigation. |
| 94 | + Recastnavigation generated navigation mesh (Navmeshs) placed on the: |
| 95 | + kbengine\kbengine_demos_assets\res\spaces\* |
| 96 | + |
| 97 | + Generation Navmeshs: |
| 98 | + https://github.com/kbengine/unity3d_nav_critterai |
| 99 | + |
| 100 | + |
| 101 | +##Structure and interpretation: |
| 102 | + |
| 103 | + The relationship between plug-ins(KBE) and U3D and servers: |
| 104 | + Plug-in and servers: Responsible for processing and server network packet. account login/logout process. |
| 105 | + By server notification logic entities are created and destroyed. Processing synchronous logical entity attribute data. etc. |
| 106 | + Plug-in and U3D: The plug-in will trigger some events to the U3D graphics layer, the graphics layer determines whether to capture some events, |
| 107 | + get data to render performance (for example: create a monster, a NPC move-speed increase, HP changes). |
| 108 | + U3D graphics layer will input the event trigger to the plug-in layer (for example: the player moved, hit the relive button UI), |
| 109 | + the plug-in logic script layer determines whether the need to transfer to the server. etc. |
| 110 | + |
| 111 | + |
| 112 | + Plugins\kbengine\kbengine_unity3d_plugins: |
| 113 | + Client plug-in core codes. |
| 114 | + |
| 115 | + Scripts\kbe_scripts: |
| 116 | + KBE client logic scripts(in this implementation of the server side of the entity script, the entity's bag data structure, skills in client condition checks, etc.). |
| 117 | + |
| 118 | + Scripts\kbe_scripts\Account.cs: |
| 119 | + Corresponds to the client side of the KBE server account entity. |
| 120 | + |
| 121 | + Scripts\kbe_scripts\Avatar.cs: |
| 122 | + Corresponds to the client side of the KBE server avatar entity. |
| 123 | + |
| 124 | + Scripts\kbe_scripts\Monster.cs: |
| 125 | + Corresponds to the client side of the KBE server monster entity. |
| 126 | + |
| 127 | + Scripts\kbe_scripts\clientapp.cs: |
| 128 | + In the system of KBE abstraction of a client APP, which contains the KBE client plug-in initialization and destruction, etc. |
| 129 | + |
| 130 | + Scripts\kbe_scripts\interfaces: |
| 131 | + Corresponding to the module defined in KBE(entity_defs\interfaces). |
| 132 | + |
| 133 | + Scripts\u3d_scripts: |
| 134 | + Unity graphics layer (including scene rendering, UI, object, character model, monster model). |
| 135 | + |
| 136 | + Scripts\u3d_scripts\GameEntity.cs: |
| 137 | + Monster/NPC or player script (management model and animation, etc.). |
| 138 | + |
| 139 | + Scripts\u3d_scripts\World.cs: |
| 140 | + Manage a map of the game script, for example: to create a specific 3D monster into the scene. |
| 141 | + |
| 142 | + Scripts\u3d_scripts\UI.cs: |
| 143 | + the game's UI processing script. |
| 144 | + |
| 145 | + Scenes\start.unity: |
| 146 | + Start the scene, which starts to enter the game. |
| 147 | + |
| 148 | + Scenes\_scenes\login.unity: |
| 149 | + login map. |
| 150 | + |
| 151 | + Scenes\_scenes\selavatars.unity: |
| 152 | + Game character selection map. |
| 153 | + |
| 154 | + Scenes\_scenes\world.unity: |
| 155 | + A map of the scene in the game. |
| 156 | + |
| 157 | +##Screenshots: |
| 158 | + |
| 159 | + |
| 160 | + |
0 commit comments