update pyglet

fix crash
This commit is contained in:
shenjackyuanjie 2022-04-08 23:08:06 +08:00
parent 21e817000a
commit 2382ff5377
3 changed files with 158 additions and 0 deletions

48
configs/lang/en-us.toml Normal file
View File

@ -0,0 +1,48 @@
language = "English"
[main]
"version.now_on" = "Difficult Rocket is running on Python Vision"
"version.need3+" = "Difficult Rocket need Python vision 3.0+"
"version.best3.8+" = "Difficult Rocket is writen in Python {write_py_v}, and now is running on Python {py_v} may cause BUG"
"lang.language" = "English (EN-US)"
"logger.language" = "Logging language is: "
"logger.created" = "Log handler created"
"logger.mkdir" = "logs/ folder not found, now created"
"logger.main_done" = "Main log handler created "
"logger.logfile_name" = "Log file name :"
"logger.logfile_level" = "Log file record level :"
"logger.logfile_fmt" = "Log file record format :"
"logger.logfile_datefmt" = "Log file date format :"
"game_start.at" = "The main thread of the game starts with:"
[client]
"setup.done" = "Client load complete"
"setup.use_time" = "Client load use: {} second"
"setup.use_time_ns" = "Client load use: {} nano second"
[window]
"setup.done" = "Window load complete "
"setup.use_time" = "Window load use: {} second"
"setup.use_time_ns" = "Window load use: {} nano second"
"os.pid_is" = "Window's PID: {} PPID: {}"
"button.been_press" = "The button is pressed, the current state of the button is:"
"mouse.press_at" = "mouse was click at {} button is: {}"
"mouse.release" = "mouse release at {} button is: {}"
"mouse.RIGHT" = "right button"
"mouse.LEFT" = "left button"
"mouse.MIDDLE" = "middle button"
"key.press" = "key {} | {} been press"
"key.release" = "key {} | {} been release"
"text.input" = "input text \"{}\""
"text.new_line" = "new line"
"text.motion" = "text move {}"
"text.motion_select" = "text select {}"
"command.text" = "input command: {}"
"message.text" = "input message: {}"
"libs.local" = "using local pyglet, version: {}"
"libs.outer" = "using global pyglet, version: {}\n(may cause bug)"
"fonts.found" = "found fonts in font lib: {}"
[server]
"setup.done" = "Server load complete "
"os.pid_is" = "Server is using PID: {} PPID: {}"

View File

@ -0,0 +1,55 @@
language = "English"
[main]
"version.now_on" = "Difficult Rocket is running on Python Vision"
"version.need3+" = "Difficult Rocket need Python vision 3.0+"
"version.best3.8+" = "Difficult Rocket is writen in Python {write_py_v}, and now is running on Python {py_v} may cause BUG"
"lang.language" = "English (EN-US)"
"logger.language" = "Logging language is: "
"logger.created" = "Log handler created"
"logger.mkdir" = "logs/ folder not found, now created"
"logger.main_done" = "Main log handler created "
"logger.logfile_name" = "Log file name :"
"logger.logfile_level" = "Log file record level :"
"logger.logfile_fmt" = "Log file record format :"
"logger.logfile_datefmt" = "Log file date format :"
"game_start.at" = "The main thread of the game starts with:"
[client]
"setup.done" = "Client load complete"
"setup.use_time" = "Client load use: {} second"
"setup.use_time_ns" = "Client load use: {} nano second"
[window]
"setup.done" = "Window load complete "
"setup.use_time" = "Window load use: {} second"
"setup.use_time_ns" = "Window load use: {} nano second"
"os.pid_is" = "Window's PID: {} PPID: {}"
"button.been_press" = "The button is pressed, the current state of the button is:"
"mouse.press" = "鼠标在 {} 被按下,按键为:{}"
"mouse.release" = "mouse release at {} button is: {}"
"mouse.RIGHT" = "right button"
"mouse.LEFT" = "left button"
"mouse.MIDDLE" = "middle button"
"key.press" = "key {} | {} been press"
"key.release" = "key {} | {} been release"
"text.input" = "input text \"{}\""
"text.new_line" = "new line"
"text.motion" = "text move {}"
"text.motion_select" = "text select {}"
"command.text" = "input command: {}"
"message.text" = "input message: {}"
"libs.local" = "using local pyglet, version: {}"
"libs.outer" = "using global pyglet, version: {}\n(may cause bug)"
"fonts.found" = "found fonts in font lib: {}"
"fonts.load" = "正在加载字体: {}"
"game.input_stop" = "控制台"
"game.command_stop" = "游戏内命令行"
"game.window_stop" = "窗口"
"game.stop_get" = "从{}传入关闭指令,关闭游戏中"
"game.stop" = "游戏正在关闭,保存数据中···"
"game.end" = "游戏已经关闭"
[server]
"setup.done" = "Server load complete "
"os.pid_is" = "Server is using PID: {} PPID: {}"

55
configs/lang/zh-CN.toml Normal file
View File

@ -0,0 +1,55 @@
language = "简体中文"
[main]
"version.now_on" = "困难火箭的运行Python环境为"
"version.need3+" = "困难火箭需要Python3.0+的环境"
"version.best3.8+" = "困难火箭是在Python{write_py_v}的环境下编写的目前正在运行在Python{py_v}的环境下可能产生BUG"
"lang.language" = "简 体 中 文 zh-cn"
"logger.language" = "日志记录语言为:"
"logger.created" = "日志处理器创建完成"
"logger.mkdir" = "logs/文件夹不存在,已经新建文件夹"
"logger.main_done" = "主日志处理器创建完成"
"logger.logfile_name" = "日志文件文件名:"
"logger.logfile_level" = "日志文件记录级别:"
"logger.logfile_fmt" = "日志文件记录格式:"
"logger.logfile_datefmt" = "日志文件日期格式:"
"game_start.at" = "游戏主线程开始于:"
[client]
"setup.done" = "客户端载入完成"
"setup.use_time" = "客户端载入花费: {} 秒"
"setup.use_time_ns" = "客户端载入花费: {} 纳秒"
[window]
"setup.done" = "游戏窗口载入完成"
"setup.use_time" = "游戏窗口载入消耗时间: {} 秒"
"setup.use_time_ns" = "游戏窗口载入消耗时间: {} 纳秒"
"os.pid_is" = "游戏窗口 PID: {} PPID: {}"
"button.been_press" = "按钮被按下,目前状态为:"
"mouse.press" = "鼠标在 {} 被按下,按键为:{}"
"mouse.release" = "鼠标在 {} 释放,按键为:{}"
"mouse.RIGHT" = "右键"
"mouse.LEFT" = "左键"
"mouse.MIDDLE" = "中键"
"key.press" = "按键 {} | {} 被按下"
"key.release" = "按键 {} | {} 被释放"
"text.input" = "输入字符 \"{}\""
"text.new_line" = "换行"
"text.motion" = "光标移动 {}"
"text.motion_select" = "光标选择 {}"
"command.text" = "输入命令: {}"
"message.text" = "输入信息: {}"
"libs.local" = "正在使用本地 pyglet 库 版本为: {}"
"libs.outer" = "正在使用全局 pyglet 库 版本为: {}\n(可能会造成bug因为本地库版本为2.0dev9)"
"fonts.found" = "在字体列表中找到以下字体库: {}"
"fonts.load" = "正在加载字体: {}"
"game.input_stop" = "控制台"
"game.command_stop" = "游戏内命令行"
"game.window_stop" = "窗口"
"game.stop_get" = "从{}传入关闭指令,关闭游戏中"
"game.stop" = "游戏正在关闭,保存数据中···"
"game.end" = "游戏已经关闭"
[server]
"setup.done" = "服务端载入完成"
"os.pid_is" = "服务端 PID: {} PPID: {}"