This project is written to update the Kbengine plug-in library (Https://github.com/kbengine/kbengine_unity3d_plugins) as a client demonstration of the Kbengine server engine: * Using the git command line, Go to kbengine_unity3d_warring directory execution: git submodule update--init * or use Tortoisegit (select menu): Tortoisegit-Submod Ule Update: * can also manually update the Kbengine plugin git clone https://github.com/kbengine/ kbengine_unity3d_plugins.git Plugin source please place in: Assets/plugins/kbengine/kbengine_ Unity3d_plugins Create assetbundles Unity3d (on menu)->publish->build pulish assetbundles-autoall may have been "moving file failed", you need to click "Try again" to continue, This may be unity3d when the file is moved files are occupied caused. Check if Assets->streamingassets has content after execution. Generate the service-side pathfinding data: First ASSETS\PLUGINS\CAI-NMGEN-RCN (Generate Navmesh). zip to the current directory and restart the Unity3d editor, and then perform the following steps: unity3d Resource Explorer (non-menu) selected: assets->nav_build->xinshoucun->navmeshbuild-> Build & Bake, wait for the build to complete unity3d Resource Explorer (non-menu): assets->nav_build-> Xinshoucun->caibakednavmesh->save, place Srv_xxx.navmesh in the server Kbengine\demo\res\spaces\xinshoucun (note: It is recommended to remove CAI-NMGEN-RCN (Generate Navmesh) after the build is complete. zip UnzipOut of the file, will cause the game can not be exported errors, the reason is unknown. ) Configure the Login IP address (if the server does not need to be changed on this machine): Kbengine_unity3d_warring\assets\plugins\kbengine\clientapp.cs IP test can run: first open the server, Unity3d select Assets\scenes\go scene and then click the Editor Run button, if no accident should be able to log into the game into the scene. Export Webplayer Project: Unity3d file->build settings->scenes in Build select Scenes/go.unity->platform Select Web Player-> Build. Running games in Browser: Web server deployment folder structure: -(server root) -streamingassets ( Create Assetbundles generated folder) -UI (UI folder under assets can be copied directly) -crossdomain.xml -initlogo.png -initprogressbar.png -initprogressframe.png -index.html -unity3d.unity3d (Files generated at Unity3d compile time) -unity3d.html (Files generated at Unity3d compile time) 1. Start Kbengine Server http://www.kbengine.org/docs/installation.html2. browser access to localhost if not clear please download compile packaged demo, and follow the folder structure to place and see the archive tutorial how to start: https:// sourceforge.net/projects/kbengine/files/log: Windows xp:c:\documents and settings\username\local Settings\temp\unitywebplayer\logwindows VISTA/7: c:\users\username\appdata\local\temp\unitywebplayer\log <ignore_js_op><ignore_js_op> <ignore_js_op> <ignore_js_op> <ignore_js_op> <ignore_js_op> <ignore_js_op>
|
SOURCE Download: http://code.662p.com/view/8231.html
Detailed Description: http://ios.662p.com/thread-2070-1-1.html
Kbengine MMO Source code (full server source + Resources + Full client source)