[教程教学] 传奇世界手游编译教程传世手游android/ios编译教程

[复制链接]
作者
n2n1   发布于2022-5-28 16:29:56 来自河北
本项目客戶端是基于cocos2d-x v3.9+lua版本开发的
后台开发: PHP
服务端开发: C++
cocos相关历史版本下载地址:
https://github.com/fusijie/Cocos-Resource
https://github.com/cocos2d/cocos2d-x/releases

客户端编译脚本目录:client/build
客户端工程编译目录:client/frameworks/runtime-src
客户端C++源文件:client/frameworks/runtime-src/Classes
客户端美术素材目录:client/kuniu/res
客户端lua脚本目录:client/kuniu/src
客户端地图文件目录:client/kuniu/res/mapnew
服务端脚本文件:server/publish
server/sbin/scripts
服务端数据库文件:erver/dbx
Android打包:
Android打包工程支持android studio,也支持Eclipse!
在client/frameworks/runtime-src目录内自由选择!
建议使用Eclipse,工程内已经有现成的脚本,原项目组就是用的Eclipse编译Android!
NDK默认用android-ndk-r10c,如果出现版本不兼容请使用低版本如:r9d,千万不要使用高版本的NDK!
打开以下bat文件,修改里面相关路径等,依次运行即可!
1. build_c++.bat
2. build_patch.bat
3. build_apk.bat
iOS打包:
ios直接使用xcode打开
client/frameworks/runtime-src/proj.ios_mac/cqsj.xcodeproj工程文件进行编译,记得一定要提前下载好cocos2dx库文件并导入!
编译的过程如果出现库文件报错,请按照下列方法解决:
xcode 10 'string' file not found C++头文件缺失问题
将对应文件拷贝到Xcode10对应目录下
真机:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/c++
模拟器:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/c++
Xcode9 C++头文件github链接:https://github.com/DeCori/Xcode9-cpp
1. 编译的时候如果出现unexpected service error: The Xcode build system has crashed. Please close and reopen your workspace.
请按照以下步骤进行修复:
2. 删除DerivedData
3. 设置:File -> Workspace Settings -> Build System -> Legacy Build Sysem
3. 关闭xcode重新打开
服务器部署说明:
先编译libevent库,然后编译WorldEngine、WorldFrame
server/world/build
再编译CenterServer、DirServer、GameGateway、ListenServer、NameServer、SessionServer。
/MirWorldServerSrc/server/server/build
最后运行脚本:
server/sbin

源码下载地址:https://n2n1.cn/tag-1415.htm
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 创建账号

本版积分规则

Archiver|小黑屋|( 冀ICP备2021005463号 )

GMT+8, 2024-4-19 17:10 , Processed in 0.107283 second(s), 28 queries , Gzip On.

N2N1 It社区 n2n1.cn

Copyright © 2001-2021,MeiCheng.

快速回复 返回顶部 返回列表