未发布
功能
-
Net、Bus 消息、Kernel/配置与内置服务角色(含 Game)在启动钩子前检查已声明的依赖,按依赖顺序启动;Map/Kernel 运行时环不进入声明依赖图。详见模块依赖。
-
应用与日志设置共用一个清单;省略日志设置时提供控制台 INFO 默认日志,可在同一文件启用文件输出、格式和具名日志。
改进
-
进程停机请求受管任务取消,并按反向依赖逐个清理与销毁模块,最后关闭所有动态库。业务公告、关入口、踢人和保存由应用或运维在停止进程前完成。
-
核心类型分派与 Kernel 回调适配采用标准 C++20 工具,保留既有类型别名、随机序列与回调参数行为。
-
Zstandard 字典与上下文使用显式 RAII 所有权;移动已初始化的压缩器可安全转移资源。
修复
- 日志输出目录和文件名统一支持 UTF-8,Windows 文件操作使用原生 UTF-16 路径,保留现有轮转和输出设置。
- 通用 Entity 回调可被所有已注册类正常调用,后续类不再持有已移空的函数。
- XXTEA 在读取前拒绝畸形缓冲区,并在字符串操作抛出异常时释放临时分配;密文格式不变。
升级说明
-
**BREAKING CHANGE:**移除独立 XML 日志配置、
log_conf::load_log_conf()/get_default()及logger::init_logger(conf_file, filename)。改用logging_settings,或将应用 TOML 的manifest.logging传给 settings 重载,并一起重新编译应用/插件和使用方。详见日志迁移。 -
**BREAKING CHANGE:**日志字符串路径统一使用 UTF-8。Windows 使用方原先传入 ANSI/活动代码页字节时,须在调用日志接口前转换为 UTF-8。settings 接口继续使用字符串路径;包含框架文件 sink 的应用/插件应重新编译。详见 UTF-8 迁移。
-
BREAKING CHANGE: 移除
module::stop_accepting()和 Net 外部业务根回调助手,HTTP 不再按管理器状态关闭业务准入或特批续接。删除覆写并改用应用业务流程;一起重建启动器、全部插件与消费者。默认资源等待仍为无限,可显式设置--shutdown_timeout_ms。见生命周期迁移。 -
zstd_compress禁止复制、允许移动;修改了对象布局。不要复制已拥有字典/上下文的实例,改用移动、引用或重新创建实例,并一起重建使用方与插件。见压缩所有权。 -
必需依赖声明改变了
config_module_impl、kernel_module_impl、game_net_module_impl和 Login/Proxy/Master/World/Dir/Router 具体实现的基类。更新原module_base特化引用,并同时重新编译受影响的使用方与插件;接口键和线格式保持不变。详见 Kernel 迁移与服务角色迁移。 -
移除启动参数
--log_conf/-l,将旧日志配置迁入应用清单的[logging];显式传入旧参数会以退出码1结束。公开application_manifest和日志类型布局改变,应用、插件及使用方必须一起重新编译。详见迁移说明。 -
源码运行资产移出
build/:配置样例改为config/,业务资源改为resources/,离线工具改为tools/,四个启动/停止脚本改为deployment/scripts/。更新外部脚本与复制来源;运行包仍使用bin/、conf/和resource/。build/仅作为用户选择的 CMake 构建目录,已有构建产物不需要移动。 -
容器构建文件与 Kubernetes 示例已集中到
deployment/。从仓库根目录执行docker build -f deployment/Dockerfile .,并更新外部命令中的旧docker/、kubernetes/路径。 -
运行脚本现在按显式构建模式、名称和总线 ID 启动一个前台应用。将
rund.*与示例包装 脚本改为run.* Debug ...;停止脚本要求显式传入一个 PID。旧五服务启动顺序与 Visual Studio 清理命令的替代方式见运行脚本迁移。
version 0.9
- Fix
HeartBeatManagerremove mistake(Thanks @sks) - Add
DateTime - Fix sonar bad smells
- Replace
AFBitValuewithstd::bitset - Add
randomfunctions - Replace
easylogging++withspdlog - Add BusPlugin(use
busidas server id and communicate, for now not totally finished) - Update
Protolibrary toProtoPlugin - Update
Netlibrary toNetPlugin - Update
brynetto the newest version - Refactoring the net plugin
- Add DataTable callback when
DataTable.Add/Set/Del(data) - Modify table row index
- Modify module register order and fix config’s bug
- Optimise - Don’t load DataNode in AFConfigModule when the node value is the default
- Add AFCMsgModule(not finished yet)
version 0.8
- Replace
evppwithbrynetfor reducing dependence - Add
AFCronScheduleModule, usingcronsyntax - Add
WebSocketsupport - Replace
easylogging++withspdlog - Add
SonarCloudcheck - Add
Codecovtest - Fix some warnings
- Fix some code smells of SonarCloud
- Fix GUID bug
- Fix some known bugs
version 0.7
- Restructure log module
- Update to VS2017 as default IDE in windows
- Add function
strlcpy - Use a new memory pool
- Fix
AFTimerbugs - Reduce
.gitdisk usage - Fix Net bugs
- Fix parameters warnings
- Fix tools, config id can be a number
- Rename Example files
version 0.6
- Change Mem allocation
- Add Timer Module(Using time wheel)
- Modify Plugin DLL entry and exit functions by using macro
ARK_DLL_PLUGIN_ENTRY(Plugin Class) - Add
ARK_STATIC_ASSERT - Add launch parameters for launching multi-processes
- Use
std::is_base_ofto instead self derived class check
version 0.5
- Fix some memory bugs
- Add memory pool and allocation
- Add wiki(Unfinished)
- Restructure file directories
- Add a new file processing tool
version 0.4
- Unified concept, Property -> DataNode Record -> DataTable
- Unified configurations
- Update Google.Protobuffer 3.x
- Fix some bugs
version 0.3
- Fix msg head bugs
- Rename some files
version 0.2
- Modify base data structure
- Modify the performance of the network
- Modify directories structure
- Add CMake support(Linux platform is testing)
- Modify the compiling way of Dep
- Modify GUID to 128 bits
version 0.1
- First release