game_tools.convert_etc_to_sqlite
简介
将游戏配置文件转成sqlite数据库
组件接口
样例
// 启动脚本
// windows
.\bin\gs.exe /e /pkg/game_tools/convert_etc_to_sqlite/convert_etc_to_sqlite.gs /D CONFIG=你的配置文件.json
// linux
/bin/gs /e /pkg/game_tools/convert_etc_to_sqlite/convert_etc_to_sqlite.gs /D CONFIG=你的配置文件.json
// 你的配置文件.json示例
{
"delay_exit" : 3,
// 挂载路径列表
"mount_points" : {
"/common" : "../../../m94/common",
"/etc" : "../../../m94/etc",
"/engine" : "../../../m94/server/engine",
"/pkg/entity_base" : "../../../m94/server/pkg/entity_base"
},
// 预先加载的静态对象列表(支持路径)
"preload_static_obs" : [
"/common/enums.gs",
"/common/daemons/EtcExtraFnD.gs"
],
// etc的一些配置(见pkg.etc)
"etc_settings" : {
"transform_to_lua" : false
},
// 配置表所在目录('/'结尾, 默认/etc/)
"etc_path" : "/etc/",
// 生成目标文件(完整路径,默认/etc/__SQL_CONF__.db)
"target_file" : "/etc/__SQL_CONF__.db",
// 是否开启数据校验(默认不开启)
"check_data" : false
};