From faff568b964f374060d9a599c5e5b492621c1f10 Mon Sep 17 00:00:00 2001 From: dockfries Date: Mon, 23 Feb 2026 18:46:55 +0800 Subject: [PATCH] update simplified chinese docs --- frontend/i18n/zh-CN/code.json | 48 +++++++ .../zh-CN/content/releases/launcher/v0.0.1.md | 18 +++ .../zh-CN/content/releases/launcher/v1.0.0.md | 39 ++++++ .../zh-CN/content/releases/launcher/v1.4.0.md | 45 +++++++ .../zh-CN/content/releases/launcher/v1.5.2.md | 81 ++++++++++++ .../zh-CN/content/releases/launcher/v1.6.1.md | 111 ++++++++++++++++ .../releases/server/Beta v0.0.11.2331.md | 17 +++ .../zh-CN/content/releases/server/v1-RC1.md | 37 ++++++ .../zh-CN/content/releases/server/v1-RC2.md | 29 +++++ .../content/releases/server/v1.1.0.2612.md | 113 +++++++++++++++++ .../content/releases/server/v1.2.0.2670.md | 65 ++++++++++ .../content/releases/server/v1.3.1.2748.md | 82 ++++++++++++ .../content/releases/server/v1.4.0.2779.md | 65 ++++++++++ .../content/releases/server/v1.5.8.3079.md | 118 ++++++++++++++++++ .../current/changelog.md | 64 +++++++++- .../scripting/functions/AddMenuItem.md | 2 +- .../scripting/functions/ClearAnimations.md | 2 +- .../scripting/functions/Create3DTextLabel.md | 2 +- .../functions/CreatePlayerTextDraw.md | 2 +- .../functions/DisableInteriorEnterExits.md | 2 +- .../scripting/functions/GameTextForPlayer.md | 2 +- .../functions/NPC_GetVehicleGearState.md | 12 +- .../scripting/functions/NPC_SetAmmo.md | 2 +- .../functions/NPC_SetVehicleGearState.md | 2 +- .../functions/NPC_SetVehicleHydraThrusters.md | 2 +- .../scripting/functions/PutPlayerInVehicle.md | 36 +----- .../scripting/functions/TextDrawCreate.md | 2 +- .../functions/TogglePlayerGhostMode.md | 2 +- .../functions/TogglePlayerWidescreen.md | 2 +- .../current/scripting/functions/floatcos.md | 2 +- .../current/scripting/functions/floattan.md | 2 +- .../scripting/resources/gametextstyles.md | 2 +- .../current/scripting/resources/limits.md | 2 +- .../current/server/config.json.md | 2 +- 34 files changed, 956 insertions(+), 58 deletions(-) create mode 100644 frontend/i18n/zh-CN/content/releases/launcher/v0.0.1.md create mode 100644 frontend/i18n/zh-CN/content/releases/launcher/v1.0.0.md create mode 100644 frontend/i18n/zh-CN/content/releases/launcher/v1.4.0.md create mode 100644 frontend/i18n/zh-CN/content/releases/launcher/v1.5.2.md create mode 100644 frontend/i18n/zh-CN/content/releases/launcher/v1.6.1.md create mode 100644 frontend/i18n/zh-CN/content/releases/server/Beta v0.0.11.2331.md create mode 100644 frontend/i18n/zh-CN/content/releases/server/v1-RC1.md create mode 100644 frontend/i18n/zh-CN/content/releases/server/v1-RC2.md create mode 100644 frontend/i18n/zh-CN/content/releases/server/v1.1.0.2612.md create mode 100644 frontend/i18n/zh-CN/content/releases/server/v1.2.0.2670.md create mode 100644 frontend/i18n/zh-CN/content/releases/server/v1.3.1.2748.md create mode 100644 frontend/i18n/zh-CN/content/releases/server/v1.4.0.2779.md create mode 100644 frontend/i18n/zh-CN/content/releases/server/v1.5.8.3079.md diff --git a/frontend/i18n/zh-CN/code.json b/frontend/i18n/zh-CN/code.json index 21636e301aa..f139129fea6 100644 --- a/frontend/i18n/zh-CN/code.json +++ b/frontend/i18n/zh-CN/code.json @@ -178,6 +178,9 @@ "animations.title": { "message": "open.mp动画预览器" }, + "animations.subtitle": { + "message": "浏览并预览 open.mp 中所有可用的动画。" + }, "animations.library": { "message": "动作库:" }, @@ -268,6 +271,51 @@ "serverInfo.lastUpdated": { "message": "{time}前更新" }, + "downloads.server.pageTitle": { + "message": "open.mp 服务器" + }, + "downloads.server.pageSubtitle": { + "message": "托管你自己的《侠盗猎车手:圣安地列斯》多人联机服务器。" + }, + "downloads.launcher.pageTitle": { + "message": "open.mp 启动器" + }, + "downloads.launcher.pageSubtitle": { + "message": "在 open.mp 和 SA-MP 服务器上游玩《侠盗猎车手:圣安地列斯》多人联机。" + }, + "downloads.latestBadge": { + "message": "最新" + }, + "downloads.releaseDate": { + "message": "发布于 {date}" + }, + "downloads.release.highlights": { + "message": "亮点" + }, + "downloads.release.viewChangelog": { + "message": "查看完整更新日志" + }, + "downloads.release.viewOnGitHub": { + "message": "在 GitHub 上查看发布" + }, + "downloads.release.github": { + "message": "GitHub" + }, + "downloads.showOlderReleases": { + "message": "查看 {count} 个历史发布" + }, + "downloads.hideOlderReleases": { + "message": "隐藏历史发布" + }, + "downloads.opensourceTrust": { + "message": "所有发布均为开源。从源代码编译,或直接从 GitHub 下载。" + }, + "downloads.downloadFromGithub": { + "message": "从 GitHub 下载" + }, + "downloads.release.dynSslNote": { + "message": "* DynSSL 版本要求你的 Linux 发行版中已安装 libssl。" + }, "theme.footer.title.Documentations": { "message": "文档" }, diff --git a/frontend/i18n/zh-CN/content/releases/launcher/v0.0.1.md b/frontend/i18n/zh-CN/content/releases/launcher/v0.0.1.md new file mode 100644 index 00000000000..5c334c0d0e3 --- /dev/null +++ b/frontend/i18n/zh-CN/content/releases/launcher/v0.0.1.md @@ -0,0 +1,18 @@ +--- +tag: v0.0.1 +publishedAt: "2023-11-10T10:19:44Z" +htmlUrl: https://github.com/openmultiplayer/launcher/releases/tag/v0.0.1 +assets: + - label: "下载启动器 (.exe)" + url: https://github.com/openmultiplayer/launcher/releases/download/v0.0.1/omp-launcher_0.0.1_x64-setup.exe + size: "3.6 MB" +--- + +## open.mp 启动器首次发布 + +请注意,你仍需安装 SA-MP 才可进行游戏。你可从 https://sa-mp.mp/downloads/ 安装 SA-MP,之后启动 open.mp 启动器,即可畅享一份实时、可靠、服务器众多的列表,从中找寻你心仪的任意服务器进行游玩! +更多功能将在未来版本中陆续推出,并直接整合于启动器内。 + +## 安装指南 + +你可选择便携版本,亦可将其如常规应用程序般安装于你所指定的路径。若需便携版本,仅需下载 **omp-launcher.exe** 即可;其余两者为安装程序,任你择一使用。 diff --git a/frontend/i18n/zh-CN/content/releases/launcher/v1.0.0.md b/frontend/i18n/zh-CN/content/releases/launcher/v1.0.0.md new file mode 100644 index 00000000000..63562049289 --- /dev/null +++ b/frontend/i18n/zh-CN/content/releases/launcher/v1.0.0.md @@ -0,0 +1,39 @@ +--- +tag: v1.0.0 +publishedAt: "2024-01-29T00:29:08Z" +htmlUrl: https://github.com/openmultiplayer/launcher/releases/tag/v1.0.0 +highlights: + - 启动器用户界面完全重新设计 + - 内置 SA-MP 安装/版本选择流程 + - 服务器列表浏览器中支持展示服务器横幅及 Discord 链接 + - 性能与资源占用优化,并新增多种语言支持 +assets: + - label: "下载启动器 (.exe)" + url: https://github.com/openmultiplayer/launcher/releases/download/v1.0.0/omp-launcher-setup.exe + size: "3.9 MB" +--- + +## 安装指南 + +直接运行 `omp-launcher.exe` 即可。 + +### 注意: + +对于仍在使用旧版 Windows 10、Windows 8(.1) 或 Windows 7 的用户,如果你未安装 WebView2 运行时(该运行时在较新的 Windows 10 和 11 系统中已预装,并随 Microsoft Edge 一同提供),则必须通过发布页中的安装程序文件来安装此启动器。 + +## 变更内容 + +启动器新版 **v1.0.0** 现已发布。在此版本中,整个用户界面进行了重构(特别感谢 @continue2048 的参与和帮助)。我们进行了大量改进以提升性能、优化资源占用,旨在为你使用本启动器浏览服务器并加入心仪服务器时,提供最佳体验。 + +以下是 open.mp 启动器最新版本的新增功能与变化列表: + +- **全新设计** +- **SA-MP 安装**:无需再单独下载 SA-MP 了!现在你可以从版本列表中选择,或直接使用已安装于你游戏目录中的 SA-MP 版本。 +- **服务器横幅与 Discord 链接**:如果服务器支持,将在浏览器中展示 open.mp 服务器横幅及 Discord 邀请链接。 +- 可在设置中切换 Discord 状态显示。 +- 性能与资源占用优化。 +- 新增数十种语言支持。 + +**完整更新日志**:https://github.com/openmultiplayer/launcher/compare/v0.0.1...v1.0.0 + +特别感谢 @continue98 在用户界面设计稿方面做出的贡献。 diff --git a/frontend/i18n/zh-CN/content/releases/launcher/v1.4.0.md b/frontend/i18n/zh-CN/content/releases/launcher/v1.4.0.md new file mode 100644 index 00000000000..fee53c183f1 --- /dev/null +++ b/frontend/i18n/zh-CN/content/releases/launcher/v1.4.0.md @@ -0,0 +1,45 @@ +--- +tag: v1.4.0 +publishedAt: "2024-08-18T09:04:32Z" +htmlUrl: https://github.com/openmultiplayer/launcher/releases/tag/v1.4.0 +highlights: + - 广泛的稳定性和性能改进 + - 支持命令行界面 (CLI) 及深度链接 URI 处理(`omp://` 和 `samp://`) + - 首次集成 open.mp 客户端,并改进了版本选择功能 + - 采用仅 x86 (32位) 打包,降低了杀毒软件误报风险 +assets: + - label: "下载启动器 (.exe)" + url: https://github.com/openmultiplayer/launcher/releases/download/v1.4.0/omp-launcher-setup.exe + size: "3.1 MB" +--- + +## 变更内容 + +- 新增并修复了更多语言本地化。 +- 大量性能修复。 +- 支持命令行参数,使用 `--help` 查看更多信息。 +- 加入服务器提示时,会通过显示服务器图标和横幅来展示服务器档案。 +- Discord 状态现在会使用服务器图标。 +- 可能为所有人修复了 samp.dll 注入问题。 +- 首次加入了 open.mp 客户端(第一个变体)。 +- 改进了 SA-MP 版本选择功能。 +- 新增深度链接和 URI 方案 `omp://ip:port` 并接管 `samp://`。 +- 处理 URI 方案。 +- 在 Discord 状态按钮中添加下载启动器并与朋友一起游玩的选项。 +- 完全转向 x86 (32位) 架构,以便我们无需为不同用户分发多个版本。 +- 不再使用 UPX 压缩以减少杀毒软件的误报。 +- 修复了当服务器先前被锁定并存储了密码时的密码问题。 + +## 新贡献者 + +- @Ykpauneu 在 https://github.com/openmultiplayer/launcher/pull/94 首次贡献 +- @midosvt 在 https://github.com/openmultiplayer/launcher/pull/97 首次贡献 +- @coool9 在 https://github.com/openmultiplayer/launcher/pull/111 首次贡献 +- @tnz1992 在 https://github.com/openmultiplayer/launcher/pull/114 首次贡献 +- @aujiz11 在 https://github.com/openmultiplayer/launcher/pull/115 首次贡献 +- @lahaine42 在 https://github.com/openmultiplayer/launcher/pull/117 首次贡献 +- @karthigenius 在 https://github.com/openmultiplayer/launcher/pull/159 首次贡献 +- @ulasbayraktar 在 https://github.com/openmultiplayer/launcher/pull/133 首次贡献 +- @Tornamic 在 https://github.com/openmultiplayer/launcher/pull/176 首次贡献 + +**完整更新日志**: https://github.com/openmultiplayer/launcher/compare/v1.0.0...v1.4.0 diff --git a/frontend/i18n/zh-CN/content/releases/launcher/v1.5.2.md b/frontend/i18n/zh-CN/content/releases/launcher/v1.5.2.md new file mode 100644 index 00000000000..d0d26671fb9 --- /dev/null +++ b/frontend/i18n/zh-CN/content/releases/launcher/v1.5.2.md @@ -0,0 +1,81 @@ +--- +tag: v1.5.2 +publishedAt: "2025-01-10T02:42:10Z" +htmlUrl: https://github.com/openmultiplayer/launcher/releases/tag/v1.5.2 +highlights: + - 为 open.mp 服务器新增客户端-服务器端加密通信 + - 客户端重大稳定性和崩溃修复 + - 改进与 CLEO 脚本及其他模组的兼容性 + - 提升 Windows 支持并移除遗留依赖项 +admonition: +assets: + - label: "下载启动器 (.exe)" + url: https://github.com/openmultiplayer/launcher/releases/download/v1.5.2/omp-launcher-setup.exe + size: "3.9 MB" +--- + +## 变更内容 + +### 启动器变更 + +- 如果可能,尽早注入 samp +- 修复服务器数据中波兰语文本的编码问题 +- 修复版本字符串被修改时的 omp 服务器检查 +- 移除手动“以管理员身份运行”的启动方式,仅为无法理解此操作的用户提供 GIF 文件说明 +- 将数据存储移回 `localStorage`,以解决数据偶尔重置的问题 +- 移除 Discord 状态实现,交由原生模组处理 +- 移除 UPX 的使用 +- 改进深度链接 +- 在“添加服务器”模态框的文本输入框中添加“复制到剪贴板”功能 +- 修复缺失 d3dx9_25.dll 的问题 +- 使用正确的快捷方式名称 + +### 客户端模组变更 + +- 新增服务器到客户端的加密通信(仅限 open.mp 服务器),以安全地与服务器通信并防范恶意数据包。 +- 为所有 SA-MP 版本重新实现客户端检查类型 69 和 5(这意味着 0.3.7 R1 玩家也能拥有此功能)。 +- 修复动画加载,服务器端不再进行动画预加载,现在首次尝试播放即可成功。 +- 修复 `RemoveBuildingForPlayer` 崩溃并移除其限制。 +- 修复当玩家使用吸烟特殊动作并按下鼠标左键(LMB)时的吸烟动画。 +- 移除 LV 和 LS 体育馆的地图图标和无用的检查点。 +- 修复玩家在安装了液压组件时按下 H 键导致车辆喇叭为其他玩家播放的问题。 +- 将截图数量上限从 1000 提高到 1,000,000。 +- 原生实现 Discord 状态并将其内置于客户端模组中。 +- 支持 1.0 EU 版本。 +- 修复游戏在较新 Windows 版本上运行时的鼠标问题。 +- 移除对 DirectPlay 的依赖。 +- 一个小的堆损坏修复。 +- 修复发生在地址 0x0040FB80 和 0x006F5636 的崩溃问题(禁用 data/Paths/tracks2.dat 和 data\Paths\tracks4.dat 的加载)。 +- 完全改变此模组挂钩函数的方式。 +- 修复与某些 CLEO4 脚本以及 CLEO5 和 CLEO Redux 的兼容性问题。 +- 修复与各种模组的兼容性问题。 +- 妥善修复名称缓冲区溢出导致的动画问题。 + +### 其他人的贡献 + +- A tiny correction in RU localization by @NexiusTailer in https://github.com/openmultiplayer/launcher/pull/195 +- Translation Update zh-TW.ts by @XiaoNiaoa in https://github.com/openmultiplayer/launcher/pull/198 +- Update Arabic localization by @RouatbiH in https://github.com/openmultiplayer/launcher/pull/192 +- Translation Update zh-CN.ts by @XiaoNiaoa in https://github.com/openmultiplayer/launcher/pull/197 +- Implement Serbian Translation by @Trysha-rbrn in https://github.com/openmultiplayer/launcher/pull/213 +- Update Italian translation by @ReshiramZekrom1 in https://github.com/openmultiplayer/launcher/pull/214 +- update Vietnamese translation by @aujiz11 in https://github.com/openmultiplayer/launcher/pull/217 +- Added Georgian language by @Lasho4 in https://github.com/openmultiplayer/launcher/pull/236 +- Update Portuguese (Brazil) Translation File Format and Keys by @itsneufox in https://github.com/openmultiplayer/launcher/pull/234 +- update polish translation by @mpudliszewski in https://github.com/openmultiplayer/launcher/pull/237 +- fix encoding for polish strings by @mpudliszewski in https://github.com/openmultiplayer/launcher/pull/238 +- Check for `allowed_clients` rule instead of `allow_DL` to determine if server is open.mp by @xunder-matth in https://github.com/openmultiplayer/launcher/pull/253 +- Fixed missing password option in cli by @znemoe in https://github.com/openmultiplayer/launcher/pull/267 +- Add settings_advanced_discord_status_requires_restart key to PT translation by @itsneufox in https://github.com/openmultiplayer/launcher/pull/272 + +## 新贡献者 + +- @XiaoNiaoa 在 https://github.com/openmultiplayer/launcher/pull/198 首次贡献 +- @Trysha-rbrn 在 https://github.com/openmultiplayer/launcher/pull/213 首次贡献 +- @Lasho4 在 https://github.com/openmultiplayer/launcher/pull/236 首次贡献 +- @itsneufox 在 https://github.com/openmultiplayer/launcher/pull/234 首次贡献 +- @mpudliszewski 在 https://github.com/openmultiplayer/launcher/pull/237 首次贡献 +- @xunder-matth 在 https://github.com/openmultiplayer/launcher/pull/253 首次贡献 +- @znemoe 在 https://github.com/openmultiplayer/launcher/pull/267 首次贡献 + +**完整更新日志**: https://github.com/openmultiplayer/launcher/compare/v1.4.0...v1.5.2 diff --git a/frontend/i18n/zh-CN/content/releases/launcher/v1.6.1.md b/frontend/i18n/zh-CN/content/releases/launcher/v1.6.1.md new file mode 100644 index 00000000000..9af8f8050de --- /dev/null +++ b/frontend/i18n/zh-CN/content/releases/launcher/v1.6.1.md @@ -0,0 +1,111 @@ +--- +tag: v1.6.1 +publishedAt: "2025-12-17T10:12:15Z" +htmlUrl: https://github.com/openmultiplayer/launcher/releases/tag/v1.6.1 +highlights: + - 游戏内服务器浏览器 (F9):无需离开游戏即可浏览、切换和重新加入服务器 + - 导入和导出你喜爱的服务器列表,支持拖放重新排序 + - 支持自定义游戏可执行文件名 + - 自动选择客户端版本,并可针对每个服务器选择客户端版本 +admonition: + type: warning + title: 杀毒软件误报 + body: "部分杀毒软件可能将 open.mp 启动器误报为病毒。此为误报。本启动器是开源软件,可安全使用。若受影响,请将 open.mp 启动器的安装文件夹添加到你杀毒软件的排除列表中。" +assets: + - label: "下载启动器 (.exe)" + url: https://github.com/openmultiplayer/launcher/releases/download/v1.6.1/omp-launcher-setup.exe + size: "5.1 MB" +--- + +## 变更内容 + +### 游戏内与客户端功能 + +- 新增**游戏内服务器浏览器**(按 **F9** 键),无需离开游戏即可浏览服务器列表,切换或重新加入服务器。 +- 新增**自定义启动画面**。 +- 在游戏内暂停菜单中直接添加了 **open.mp 设置**。 +- 在 open.mp 设置中添加了用于**切换 Discord 状态**(及其他状态指示器)的选项。 +- 改进了 Discord 状态处理,并修复了错误的 IP 报告。 +- 修复了与**重连逻辑和 open.mp 协议**相关的多个问题。 +- 修复了多个**SA-MP 崩溃场景**,提升了整体稳定性。 + +### 启动器改进 + +- 在整个启动器中**大幅提升了稳定性和性能**。 +- 在 Rust 和 TypeScript 两端对**代码库进行了大规模重构**,以提升长期可维护性。 +- 显著改进了**服务器查询机制**,以提升效率和防止垃圾请求。 +- 为收藏的服务器添加了**拖放重新排序**功能。 +- 改进了**Windows 7 兼容性**。 +- 安装程序现在**捆绑了 WebView2 安装程序**,简化了设置流程。 +- 从“高级”设置选项卡中移除了 Discord 状态设置。 +- 在“高级”设置中添加了**支持自定义游戏可执行文件名**的选项。 +- 添加了**导入和导出收藏服务器列表**的功能。 +- 如果尚未安装 SA-MP,可**自动选择合适的客户端版本**。 +- 新增了**按服务器选择客户端版本**的功能。 +- 添加了大量有意义的**日志信息**,以改进诊断和支持。 +- 使用快速连接时,为有密码保护的服务器添加了**加入提示**。 +- 为大多数 API 添加了**API 超时**,以提高响应速度和可靠性。 + +### 错误修复与用户体验改进 + +- 修复了文件缺失(特别是字体文件)时的文件复制问题。 +- 修复了服务器数据在重启应用程序后仍被缓存的问题。 +- 修复了主题切换故障。 +- 修复了按服务器设置的昵称输入故障。 +- 修复了排序箭头方向错误的问题。 +- 修复了搜索输入未包含游戏模式文本的问题。 +- 改进了服务器主机名解析。 +- 改进了权限处理和面向用户的消息提示。 +- 修复了网页 URL 验证问题。 +- 修复了更改语言后设置选项卡标题不更新的问题。 +- 为服务器查询请求添加了频率限制,以防垃圾请求。 +- 更新并扩充了多种语言的本地化文件。 + +### 文档与社区 + +- 主网站: https://open.mp/ +- 文档: https://open.mp/docs +- 在 Discord 上加入社区: https://discord.gg/samp +- 通过 OpenCollective 支持开发: https://opencollective.com/openmultiplayer + +## 按合并的拉取请求整理的更新日志 + +- Update Italian translation by @ReshiramZekrom1 in https://github.com/openmultiplayer/launcher/pull/286 +- Edited sr.ts by @Trysha-rbrn in https://github.com/openmultiplayer/launcher/pull/287 +- Add translations for Indonesian by @flxzor in https://github.com/openmultiplayer/launcher/pull/294 +- Polish translation update by @Slideinn in https://github.com/openmultiplayer/launcher/pull/293 +- Turkish translation update by @ulasbayraktar in https://github.com/openmultiplayer/launcher/pull/295 +- Georgian translation update by @Lasho4 in https://github.com/openmultiplayer/launcher/pull/288 +- Update Lithuanian translation by @tnz1992 in https://github.com/openmultiplayer/launcher/pull/216 +- Fix Discord Update status Binding by @brunorrr in https://github.com/openmultiplayer/launcher/pull/300 +- This fixes the sort arrow direction, it was inverted by @Bios-Marcel in https://github.com/openmultiplayer/launcher/pull/301 +- Fixes #233 by @Bios-Marcel in https://github.com/openmultiplayer/launcher/pull/302 +- The appearances tab in settings now has a radiobutton by @Bios-Marcel in https://github.com/openmultiplayer/launcher/pull/303 +- update Vietnamese locale by @aujiz11 in https://github.com/openmultiplayer/launcher/pull/305 +- add Finnish (Suomi) language support by @weltschmerzie in https://github.com/openmultiplayer/launcher/pull/304 +- Implementation of import/export functionality for favourite servers list by @itsneufox in https://github.com/openmultiplayer/launcher/pull/307 +- update Chinese translation by @dockfries in https://github.com/openmultiplayer/launcher/pull/312 +- Update Italian Translation (Import/Export feature) by @ReshiramZekrom1 in https://github.com/openmultiplayer/launcher/pull/315 +- feat: Added missing entries for french translation file by @MichaelAceAnderson in https://github.com/openmultiplayer/launcher/pull/321 +- Ability to reorder servers in the favourites tab by dragging them around by @itsneufox in https://github.com/openmultiplayer/launcher/pull/320 +- Update sr.ts by @Trysha-rbrn in https://github.com/openmultiplayer/launcher/pull/323 +- Ditch PanResolver in favour of dnd-kit by @itsneufox in https://github.com/openmultiplayer/launcher/pull/324 +- update georgian translation & advanced search for georgian servers by @Lasho4 in https://github.com/openmultiplayer/launcher/pull/326 +- add dutch (nederlands) translations by @DignitySAMP in https://github.com/openmultiplayer/launcher/pull/329 +- Update Hungarian translations with minor fixes and new strings by @Cappsyhun in https://github.com/openmultiplayer/launcher/pull/331 +- Small update ru.ts with proposed corrections by @NexiusTailer in https://github.com/openmultiplayer/launcher/pull/337 +- Update ru localization with latest additions by @NexiusTailer in https://github.com/openmultiplayer/launcher/pull/338 +- add pt strings by @itsneufox in https://github.com/openmultiplayer/launcher/pull/339 + +## 新贡献者 + +- @flxzor 在 https://github.com/openmultiplayer/launcher/pull/294 首次贡献 +- @Slideinn 在 https://github.com/openmultiplayer/launcher/pull/293 首次贡献 +- @brunorrr 在 https://github.com/openmultiplayer/launcher/pull/300 首次贡献 +- @weltschmerzie 在 https://github.com/openmultiplayer/launcher/pull/304 首次贡献 +- @dockfries 在 https://github.com/openmultiplayer/launcher/pull/312 首次贡献 +- @MichaelAceAnderson 在 https://github.com/openmultiplayer/launcher/pull/321 首次贡献 +- @DignitySAMP 在 https://github.com/openmultiplayer/launcher/pull/329 首次贡献 +- @Cappsyhun 在 https://github.com/openmultiplayer/launcher/pull/331 首次贡献 + +**完整更新日志**: https://github.com/openmultiplayer/launcher/compare/v1.5.2...v1.6.1 diff --git a/frontend/i18n/zh-CN/content/releases/server/Beta v0.0.11.2331.md b/frontend/i18n/zh-CN/content/releases/server/Beta v0.0.11.2331.md new file mode 100644 index 00000000000..87385c119b9 --- /dev/null +++ b/frontend/i18n/zh-CN/content/releases/server/Beta v0.0.11.2331.md @@ -0,0 +1,17 @@ +--- +tag: v0.0.11.2331 +publishedAt: "2022-12-24T22:19:34Z" +htmlUrl: https://github.com/openmultiplayer/open.mp/releases/tag/v0.0.11.2331 +assets: + - label: Windows + url: https://github.com/openmultiplayer/open.mp/releases/download/v0.0.11.2331/open.mp-win-x86.zip + size: "31.4 MB" + - label: Linux + url: https://github.com/openmultiplayer/open.mp/releases/download/v0.0.11.2331/open.mp-linux-x86.tar.xz + size: "15.5 MB" + - label: Linux (DynSSL) + url: https://github.com/openmultiplayer/open.mp/releases/download/v0.0.11.2331/open.mp-linux-x86-dynssl.tar.xz + size: "12.6 MB" +--- + +详细信息将在 https://github.com/openmultiplayer/server-beta/releases 中提供。 diff --git a/frontend/i18n/zh-CN/content/releases/server/v1-RC1.md b/frontend/i18n/zh-CN/content/releases/server/v1-RC1.md new file mode 100644 index 00000000000..17601422b17 --- /dev/null +++ b/frontend/i18n/zh-CN/content/releases/server/v1-RC1.md @@ -0,0 +1,37 @@ +--- +tag: v1-RC1 +publishedAt: "2023-01-05T21:22:44Z" +htmlUrl: https://github.com/openmultiplayer/open.mp/releases/tag/v1-RC1 +assets: + - label: Windows + url: https://github.com/openmultiplayer/open.mp/releases/download/v1-RC1/open.mp-win-x86.zip + size: "31.4 MB" + - label: Linux + url: https://github.com/openmultiplayer/open.mp/releases/download/v1-RC1/open.mp-linux-x86.tar.xz + size: "15.5 MB" + - label: Linux (DynSSL) + url: https://github.com/openmultiplayer/open.mp/releases/download/v1-RC1/open.mp-linux-x86-dynssl.tar.xz + size: "12.6 MB" +--- + +## 变更内容 + +- Memory reduction. by @Y-Less in https://github.com/openmultiplayer/open.mp/pull/550 +- Use `Span<>`, don't expose `vector<>`. by @Y-Less in https://github.com/openmultiplayer/open.mp/pull/548 +- Fix `funcidx` in the streamer plugin. by @Y-Less in https://github.com/openmultiplayer/open.mp/pull/552 +- In memory db by @Y-Less in https://github.com/openmultiplayer/open.mp/pull/553 +- Component load pr by @Y-Less in https://github.com/openmultiplayer/open.mp/pull/554 +- Append `.so` to plugin names. by @Y-Less in https://github.com/openmultiplayer/open.mp/pull/555 +- CMake changes and m1/macos support by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/551 +- Use the correct string search function. by @Y-Less in https://github.com/openmultiplayer/open.mp/pull/557 +- command text sanity check by checking cmd length by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/556 +- Actually ignore missing `main`, like the comment says. by @Y-Less in https://github.com/openmultiplayer/open.mp/pull/560 +- Deprecate `str_buf_addr` from PawnPlus. by @Y-Less in https://github.com/openmultiplayer/open.mp/pull/558 +- Special-case NPCs (and localhost in general) in connection code. by @Y-Less in https://github.com/openmultiplayer/open.mp/pull/559 +- Log SQLite queries. by @Y-Less in https://github.com/openmultiplayer/open.mp/pull/561 +- Keep a local copy of the loaded defaults and revert to them on GMX. by @Y-Less in https://github.com/openmultiplayer/open.mp/pull/562 +- TD crash fix. by @Y-Less in https://github.com/openmultiplayer/open.mp/pull/563 +- Configurable http threads count. by @ksenonadv in https://github.com/openmultiplayer/open.mp/pull/564 +- Fix GDK hooks by @Cheaterman in https://github.com/openmultiplayer/open.mp/pull/566 +- Player attached objects. by @ksenonadv in https://github.com/openmultiplayer/open.mp/pull/565 +- Check supported major version when loading components. by @Y-Less in https://github.com/openmultiplayer/open.mp/pull/568 diff --git a/frontend/i18n/zh-CN/content/releases/server/v1-RC2.md b/frontend/i18n/zh-CN/content/releases/server/v1-RC2.md new file mode 100644 index 00000000000..d2cb85a1a70 --- /dev/null +++ b/frontend/i18n/zh-CN/content/releases/server/v1-RC2.md @@ -0,0 +1,29 @@ +--- +tag: v1-RC2 +publishedAt: "2023-01-09T21:41:26Z" +htmlUrl: https://github.com/openmultiplayer/open.mp/releases/tag/v1-RC2 +assets: + - label: Windows + url: https://github.com/openmultiplayer/open.mp/releases/download/v1-RC2/open.mp-win-x86.zip + size: "43.0 MB" + - label: Linux + url: https://github.com/openmultiplayer/open.mp/releases/download/v1-RC2/open.mp-linux-x86.tar.gz + size: "23.6 MB" + - label: Linux (DynSSL) + url: https://github.com/openmultiplayer/open.mp/releases/download/v1-RC2/open.mp-linux-x86-dynssl.tar.gz + size: "20.1 MB" +--- + +## 变更内容 + +- **服务器**:修复了旧版Linux插件必须包含`.so`扩展名的问题。 +- **服务器**:`reloadfs` 命令现在会复用其插槽以保持脚本(filterscript)的加载顺序。 +- **服务器**:玩家附加的物体现在能正确显示给其他玩家。 +- **服务器**:修复了加载无效Pawn内存时导致的崩溃。 +- **Pawn脚本**:新增了 `GetPlayerMarkerForPlayer` 函数。 +- **Pawn脚本**:新增了 `a_???` 文件包装器。 +- **升级器**:支持多种编码页。 +- **升级器**:新增文件排除功能。 +- **升级器**:提供完整的替换报告。 + +**完整更新日志**:https://github.com/openmultiplayer/open.mp/compare/v1-RC1...v1-RC2 diff --git a/frontend/i18n/zh-CN/content/releases/server/v1.1.0.2612.md b/frontend/i18n/zh-CN/content/releases/server/v1.1.0.2612.md new file mode 100644 index 00000000000..eb469c3fb9f --- /dev/null +++ b/frontend/i18n/zh-CN/content/releases/server/v1.1.0.2612.md @@ -0,0 +1,113 @@ +--- +tag: v1.1.0.2612 +publishedAt: "2023-11-10T14:39:37Z" +htmlUrl: https://github.com/openmultiplayer/open.mp/releases/tag/v1.1.0.2612 +highlights: + - open.mp 正式脱离候选版本 (RC),进入稳定版发布阶段 + - 首个 open.mp 启动器发布,向玩家推出 + - 进行了大规模的错误修复和兼容性改进 + - 提升了组件/插件的兼容性和运行时安全性 +assets: + - label: Windows + url: https://github.com/openmultiplayer/open.mp/releases/download/v1.1.0.2612/open.mp-win-x86.zip + size: "43.2 MB" + - label: Linux + url: https://github.com/openmultiplayer/open.mp/releases/download/v1.1.0.2612/open.mp-linux-x86.tar.gz + size: "24.5 MB" + - label: Linux (DynSSL) + url: https://github.com/openmultiplayer/open.mp/releases/download/v1.1.0.2612/open.mp-linux-x86-dynssl.tar.gz + size: "20.9 MB" +--- + +## 脱离候选版 + +open.mp 现已结束候选版本阶段,我们很高兴地宣布,我们的项目现已足够稳定,可以走上持续发展的道路。在 v1.1.0.2612 中,我们修复了大量的错误和问题,并解决了众多行为差异。请务必更新到最新版本,以顺畅地运行你的服务器。 + +## 启动器,迈向客户端的第一步 + +open.mp 启动器终于发布了!你现在可以可靠地浏览服务器列表,选择你想游玩的服务器,并加入其中!启动器带来了许多新功能,与你以往使用 SA-MP 启动器的体验相比,你将获得好得多的体验。启动器位于此处。 + +本次更新包含了大量的修复和新增内容。对于不了解详情的人,可以阅读下方的变更列表,并点击每个 PR 链接以获取更多细节。 + +## 变更内容 + +- Memory reduction. by @Y-Less in https://github.com/openmultiplayer/open.mp/pull/550 +- Use `Span<>`, don't expose `vector<>`. by @Y-Less in https://github.com/openmultiplayer/open.mp/pull/548 +- Fix `funcidx` in the streamer plugin. by @Y-Less in https://github.com/openmultiplayer/open.mp/pull/552 +- In memory db by @Y-Less in https://github.com/openmultiplayer/open.mp/pull/553 +- Component load pr by @Y-Less in https://github.com/openmultiplayer/open.mp/pull/554 +- Append `.so` to plugin names. by @Y-Less in https://github.com/openmultiplayer/open.mp/pull/555 +- CMake changes and m1/macos support by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/551 +- Use the correct string search function. by @Y-Less in https://github.com/openmultiplayer/open.mp/pull/557 +- command text sanity check by checking cmd length by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/556 +- Actually ignore missing `main`, like the comment says. by @Y-Less in https://github.com/openmultiplayer/open.mp/pull/560 +- Deprecate `str_buf_addr` from PawnPlus. by @Y-Less in https://github.com/openmultiplayer/open.mp/pull/558 +- Special-case NPCs (and localhost in general) in connection code. by @Y-Less in https://github.com/openmultiplayer/open.mp/pull/559 +- Log SQLite queries. by @Y-Less in https://github.com/openmultiplayer/open.mp/pull/561 +- Keep a local copy of the loaded defaults and revert to them on GMX. by @Y-Less in https://github.com/openmultiplayer/open.mp/pull/562 +- TD crash fix. by @Y-Less in https://github.com/openmultiplayer/open.mp/pull/563 +- Configurable http threads count. by @ksenonadv in https://github.com/openmultiplayer/open.mp/pull/564 +- Fix GDK hooks by @Cheaterman in https://github.com/openmultiplayer/open.mp/pull/566 +- Player attached objects. by @ksenonadv in https://github.com/openmultiplayer/open.mp/pull/565 +- Check supported major version when loading components. by @Y-Less in https://github.com/openmultiplayer/open.mp/pull/568 +- Add checks to `amx_GetAddr` all over. by @Y-Less in https://github.com/openmultiplayer/open.mp/pull/570 +- Reloadfs pr by @Y-Less in https://github.com/openmultiplayer/open.mp/pull/569 +- Implement GetPlayerMarkerForPlayer by @AGraber in https://github.com/openmultiplayer/open.mp/pull/571 +- Fix `.so` being appended, again. by @Y-Less in https://github.com/openmultiplayer/open.mp/pull/572 +- Fix attached objects by @ksenonadv in https://github.com/openmultiplayer/open.mp/pull/573 +- Attempt to fix CI. by @ksenonadv in https://github.com/openmultiplayer/open.mp/pull/596 +- Fix animation library name by @dimmyi in https://github.com/openmultiplayer/open.mp/pull/594 +- Fix abi-check CI by @Hual in https://github.com/openmultiplayer/open.mp/pull/605 +- Fix typos in Get(Player)NetworkStats. by @mrreus in https://github.com/openmultiplayer/open.mp/pull/606 +- Fix `GetVehicleLastDriver` returning 0 when invalid `vehicleid` is passed by @xunder-matth in https://github.com/openmultiplayer/open.mp/pull/615 +- Fix submodules URLs by @r4nx in https://github.com/openmultiplayer/open.mp/pull/604 +- Tiny message corrections by @NexiusTailer in https://github.com/openmultiplayer/open.mp/pull/603 +- Validate `roll` in unoccupied sync by @xunder-matth in https://github.com/openmultiplayer/open.mp/pull/624 +- x64 by @Y-Less in https://github.com/openmultiplayer/open.mp/pull/499 +- Use per-player color on player stream in by @AGraber in https://github.com/openmultiplayer/open.mp/pull/629 +- Add natives for calling public functions by index by @AGraber in https://github.com/openmultiplayer/open.mp/pull/630 +- Constant instead of magic numbers by @ALF-ONE in https://github.com/openmultiplayer/open.mp/pull/633 +- Amir/changes by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/648 +- Add more relevant items to BrokenPlugins list by @NexiusTailer in https://github.com/openmultiplayer/open.mp/pull/644 +- Fixed incorrect locale saving in Core::vlogLnInternal(). by @dev-karpov0 in https://github.com/openmultiplayer/open.mp/pull/656 +- Fix MoveObject & MovePlayerObject return type. Fix ping packet spam. by @ksenonadv in https://github.com/openmultiplayer/open.mp/pull/659 +- Ported several functions missed out from fixes.inc. by @Y-Less in https://github.com/openmultiplayer/open.mp/pull/663 +- Max seats correction and more comments by @NexiusTailer in https://github.com/openmultiplayer/open.mp/pull/668 +- Fix HTTP calls and AnnounceHTTPResponseHandler by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/676 +- Bunch of improvements, bug fixes and additions by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/671 +- Fixed possibility to load the same script more than once. by @dev-karpov0 in https://github.com/openmultiplayer/open.mp/pull/660 +- Two minor fixes by @Y-Less in https://github.com/openmultiplayer/open.mp/pull/680 +- Trailer improvements by @Y-Less in https://github.com/openmultiplayer/open.mp/pull/681 +- Various ports to open.mp by @Hual in https://github.com/openmultiplayer/open.mp/pull/683 +- Some proper pawn native param casts by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/684 +- Better legacy announce message by @Hual in https://github.com/openmultiplayer/open.mp/pull/686 +- Some build documentation clarifications. by @Y-Less in https://github.com/openmultiplayer/open.mp/pull/662 +- Update pawn. by @Y-Less in https://github.com/openmultiplayer/open.mp/pull/711 +- add checks in multiple places for queryExtension results by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/719 +- more queryExtension return value checks, update cmake-conan by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/725 +- Clear components in a separate pass to avoid cross-component invalid access by @Hual in https://github.com/openmultiplayer/open.mp/pull/724 +- Fix object data initialization and event priority conflict with pawn by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/731 +- fix obj crash, deleted objects being delayed processed by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/734 +- Add boundary to TD font setter, fix spectating when spectated disconnects, add webserver binding by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/737 +- Properly handle spectating when a player disconnects by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/740 +- Fix issue with atcprintf not incrementing output length when adding - in trailing zero mode by @Hual in https://github.com/openmultiplayer/open.mp/pull/744 +- remove extra sanity check in setSpectating by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/745 +- Correctly retrieve `modelid` and material colors in `GetObjectMaterial(Text)` by @xunder-matth in https://github.com/openmultiplayer/open.mp/pull/747 +- add a note about downgrading conan using pip by @Zorono in https://github.com/openmultiplayer/open.mp/pull/752 +- Fix move object rotation when optional args are not set by @ksenonadv in https://github.com/openmultiplayer/open.mp/pull/753 +- Update actors_main.cpp by @ReshiramZekrom1 in https://github.com/openmultiplayer/open.mp/pull/762 +- Some small changes before new release by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/763 + +## 新贡献者 + +- @dimmyi 在 https://github.com/openmultiplayer/open.mp/pull/594 首次贡献 +- @mrreus 在 https://github.com/openmultiplayer/open.mp/pull/606 首次贡献 +- @xunder-matth 在 https://github.com/openmultiplayer/open.mp/pull/615 首次贡献 +- @r4nx 在 https://github.com/openmultiplayer/open.mp/pull/604 首次贡献 +- @NexiusTailer 在 https://github.com/openmultiplayer/open.mp/pull/603 首次贡献 +- @ALF-ONE 在 https://github.com/openmultiplayer/open.mp/pull/633 首次贡献 +- @dev-karpov0 在 https://github.com/openmultiplayer/open.mp/pull/656 首次贡献 +- @Zorono 在 https://github.com/openmultiplayer/open.mp/pull/752 首次贡献 +- @ReshiramZekrom1 在 https://github.com/openmultiplayer/open.mp/pull/762 首次贡献 + +**完整更新日志**:https://github.com/openmultiplayer/open.mp/compare/v0.0.11.2331...v1.1.0.2612 diff --git a/frontend/i18n/zh-CN/content/releases/server/v1.2.0.2670.md b/frontend/i18n/zh-CN/content/releases/server/v1.2.0.2670.md new file mode 100644 index 00000000000..9f878f86837 --- /dev/null +++ b/frontend/i18n/zh-CN/content/releases/server/v1.2.0.2670.md @@ -0,0 +1,65 @@ +--- +tag: v1.2.0.2670 +publishedAt: "2024-01-29T03:17:22Z" +htmlUrl: https://github.com/openmultiplayer/open.mp/releases/tag/v1.2.0.2670 +highlights: + - 关键安全修复和可测量的性能提升 + - 面向启动器的新服务器横幅和 Discord 查询设置 + - IPv4 优先的公告处理,改进的 HTTP 行为 + - RakNet 崩溃修复,以及更强的游戏数据验证 +assets: + - label: Windows + url: https://github.com/openmultiplayer/open.mp/releases/download/v1.2.0.2670/open.mp-win-x86.zip + size: "44.0 MB" + - label: Linux + url: https://github.com/openmultiplayer/open.mp/releases/download/v1.2.0.2670/open.mp-linux-x86.tar.gz + size: "24.5 MB" + - label: Linux (DynSSL) + url: https://github.com/openmultiplayer/open.mp/releases/download/v1.2.0.2670/open.mp-linux-x86-dynssl.tar.gz + size: "20.9 MB" +--- + +## 重要信息 + +**请仔细阅读:** 我们强烈建议所有 open.mp 服务器更新至此版本。此次更新不仅带来了明显的性能改进,更重要的是**包含了关键的安全修复。** + +## 变更内容 + +- 若干安全修复。 +- 显著提升了性能,特别是 Pawn 原生函数现在的工作方式。 +- 新增配置变量,用于设置在新版 [open.mp 启动器] 中显示的横幅和 Discord 邀请链接。 +- 公告系统现在默认使用 IPv4,而非在可用时使用 IPv6。 +- 修复了 `Get(Player)ObjectMaterial(Text)` 返回颜色格式错误和 `modelid` 的问题。 +- 修复了在分配内存超过预留空间时可能导致服务器崩溃的问题,现在会提供详细的警告信息。 +- 修复了在释放数据包时 RakNet 的随机崩溃问题。 +- 在多个位置验证伤害原因(武器)。 +- 修复了 `Get(Player)Gravity` 函数。 +- 新增用于禁用加入消息和动画验证的配置变量。 +- 支持同步封禁,以便在需要时一次性封禁多个玩家。 +- 修复了 WSL 相关的问题。 + +## 按合并的拉取请求整理的更新日志 + +- Synchronize bans so multiple players are banned at once by @Hual in https://github.com/openmultiplayer/open.mp/pull/776 +- Support LFS by @Hual in https://github.com/openmultiplayer/open.mp/pull/777 +- Add core->requestHTTP4. Force IPV4 requests for announce. Use bind address if provided by @ksenonadv in https://github.com/openmultiplayer/open.mp/pull/786 +- Add config options to disable animation validation and join messages by @Hual in https://github.com/openmultiplayer/open.mp/pull/792 +- Retrieve player objects material colors in a ARGB format by @mrreus in https://github.com/openmultiplayer/open.mp/pull/795 +- Add a static openssl warning by @Hual in https://github.com/openmultiplayer/open.mp/pull/793 +- New way of handling ParamCast errors instead of throwing exceptions. by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/798 +- return modelid in GetPlayerObjectMaterial by @adib-yg in https://github.com/openmultiplayer/open.mp/pull/805 +- Return 0.0 if floatstr fails and throws an exception by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/812 +- Weapon validity check in foot, passenger, and vehicle sync, and Give/TakeDamage events by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/804 +- Fix amx_Allot trying to access invalid memory when data size is higher than amx STK size by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/819 +- Remove preconnect packet handler by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/820 +- 52 IS a valid damage reason. by @Y-Less in https://github.com/openmultiplayer/open.mp/pull/825 +- Change gravity type to float by @vedran77 in https://github.com/openmultiplayer/open.mp/pull/832 +- Add a note about mac compilation with brew. by @Y-Less in https://github.com/openmultiplayer/open.mp/pull/828 +- Add banners & discord configs and send through query by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/831 + +## 新贡献者 + +- @adib-yg 在 https://github.com/openmultiplayer/open.mp/pull/805 首次贡献 +- @vedran77 在 https://github.com/openmultiplayer/open.mp/pull/832 首次贡献 + +**完整更新日志**:https://github.com/openmultiplayer/open.mp/compare/v1.1.0.2612...v1.2.0.2670 diff --git a/frontend/i18n/zh-CN/content/releases/server/v1.3.1.2748.md b/frontend/i18n/zh-CN/content/releases/server/v1.3.1.2748.md new file mode 100644 index 00000000000..5bc26c0583d --- /dev/null +++ b/frontend/i18n/zh-CN/content/releases/server/v1.3.1.2748.md @@ -0,0 +1,82 @@ +--- +tag: v1.3.1.2748 +publishedAt: "2024-08-18T09:47:11Z" +htmlUrl: https://github.com/openmultiplayer/open.mp/releases/tag/v1.3.1.2748 +highlights: + - RakNet 网络库的重大稳定性与性能提升 + - 核心同步路径上远程过程调用 (RPC) 的排序和可靠性改进 + - 对对话框、菜单和网络数据进行了更全面的验证检查 + - 新增了用于启动器和 Discord 状态的服务器徽标支持 +assets: + - label: Windows + url: https://github.com/openmultiplayer/open.mp/releases/download/v1.3.1.2748/open.mp-win-x86.zip + size: "29.8 MB" + - label: Linux + url: https://github.com/openmultiplayer/open.mp/releases/download/v1.3.1.2748/open.mp-linux-x86.tar.gz + size: "23.7 MB" + - label: Linux (DynSSL) + url: https://github.com/openmultiplayer/open.mp/releases/download/v1.3.1.2748/open.mp-linux-x86-dynssl.tar.gz + size: "20.1 MB" +--- + +## 变更内容 + +- 修复了在使用格式字符串时,偶尔不显示字符串的问题。 +- 移除了在加载或卸载侧脚本(filterscript)时不必要的 `OnPlayerConnect` 和 `OnPlayerDisconnect` 回调,取而代之的是引入了 `OnScript(Un)LoadForPlayer` 回调。 +- 修复了当加载多个脚本时,崩溃检测 (crashdetect) 无法找到文件名和行号的问题。 +- 修复了许多远程过程调用 (RPC) 的排序通道和可靠性设置。 +- 提升了网络线程 (RakNet) 的性能。 +- 修复了大量 RakNet 崩溃问题,并实现了更安全的内存管理。 +- 修复了多个连接问题,并改进了内部玩家池的清理机制。 +- 修复了 `GetGameText` 函数。 +- 新增了内容分发网络 (CDN) URL 有效性检查。 +- 在 RakNet 中实现了新的 `InternalPacketPool`。 +- 为对话框响应添加了更多的数据有效性检查。 +- 为菜单行添加了有效性检查。 +- 实现了人类可读的 HTTP 错误信息。 +- 停止广播观战者的同步数据。 +- 修复了当用户 Windows 系统设置为带有非 ASCII 字符名称的语言时,open.mp Windows 版本无法加载的问题。 +- 从运行时警告中移除了大量 Pawn 原生函数的弃用通知。 +- 为玩家的生命值和护甲设置了默认值。 +- 提升了响应“分数和 ping 查询”远程过程调用 (RPC) 的性能(用于计分板)。 +- 添加了服务器徽标功能,可在启动器和 Discord 状态中使用。 +- 修复了我们自项目开始以来就一直存在的臭名昭著的 RakNet 崩溃问题。 + +## 按合并的拉取请求整理的更新日志 + +- fix atcprintf failure message not showing fmt string by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/860 +- change invalid weapon slot to -1 by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/862 +- Call OnScript(Un)LoadForPlayer on script (un)load by @Andosius in https://github.com/openmultiplayer/open.mp/pull/878 +- Revert "Revert `OnPlayerConnect` vandalism." by @Hual in https://github.com/openmultiplayer/open.mp/pull/887 +- Handle queries when logging is enabled by @ksenonadv in https://github.com/openmultiplayer/open.mp/pull/889 +- Revert "Support LFS" by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/890 +- Fix OnPlayerConnect regression after gmx. by @ksenonadv in https://github.com/openmultiplayer/open.mp/pull/891 +- RakNet crash fixes, performance improvements, fix ordering channels for some RPCs by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/883 +- Fixed: several connection logic issues by @uifdev in https://github.com/openmultiplayer/open.mp/pull/906 +- Fix GetGameText native giving incorrect/corrupt values by @Sreyas-Sreelal in https://github.com/openmultiplayer/open.mp/pull/915 +- Fix test component by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/913 +- sync raknet, fix InternalPacketPool::ClearPool crash by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/911 +- Validate CDN URL by @myudev in https://github.com/openmultiplayer/open.mp/pull/919 +- improved dialog response checking by @atomlin-git in https://github.com/openmultiplayer/open.mp/pull/902 +- added check for possible menu row values by @atomlin-git in https://github.com/openmultiplayer/open.mp/pull/922 +- Add server logo feature, human readable httplib errors, and bunch of fixes by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/928 +- Remove conan from SDK, Disable unicode component by default, Bump version by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/933 +- SDK and Network as submodules by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/937 +- Stop broadcasting spectators sync data. by @ksenonadv in https://github.com/openmultiplayer/open.mp/pull/939 +- Fix locale switch for names with non-ascii characters by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/945 +- Remove runtime pawn native deprecations for mixed spellings by @NexiusTailer in https://github.com/openmultiplayer/open.mp/pull/952 +- Tiny correction in TestComponent by @NexiusTailer in https://github.com/openmultiplayer/open.mp/pull/956 +- Network fixes by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/957 +- Update broken plugins list by @NexiusTailer in https://github.com/openmultiplayer/open.mp/pull/961 +- default values for hp and armor in Player::reset and constructor by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/960 +- cache generated BS for a short period of time for scoreboard rpc by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/962 + +## 新贡献者 + +- @Andosius 在 https://github.com/openmultiplayer/open.mp/pull/878 首次贡献 +- @uifdev 在 https://github.com/openmultiplayer/open.mp/pull/906 首次贡献 +- @Sreyas-Sreelal 在 https://github.com/openmultiplayer/open.mp/pull/915 首次贡献 +- @myudev 在 https://github.com/openmultiplayer/open.mp/pull/919 首次贡献 +- @atomlin-git 在 https://github.com/openmultiplayer/open.mp/pull/902 首次贡献 + +**完整更新日志**:https://github.com/openmultiplayer/open.mp/compare/v1.2.0.2670...v1.3.1.2748 diff --git a/frontend/i18n/zh-CN/content/releases/server/v1.4.0.2779.md b/frontend/i18n/zh-CN/content/releases/server/v1.4.0.2779.md new file mode 100644 index 00000000000..79076f32b74 --- /dev/null +++ b/frontend/i18n/zh-CN/content/releases/server/v1.4.0.2779.md @@ -0,0 +1,65 @@ +--- +tag: v1.4.0.2779 +publishedAt: "2025-01-12T19:56:45Z" +htmlUrl: https://github.com/openmultiplayer/open.mp/releases/tag/v1.4.0.2779 +highlights: + - 为受支持的客户端提供的可选 open.mp 协议加密 + - 递归加载组件,并改进了 Linux 链接器的行为 + - 修复了车辆和物体相关的多处崩溃与同步问题 + - 新增用于检测 open.mp 客户端的原生函数 `IsPlayerUsingOmp` +assets: + - label: Windows + url: https://github.com/openmultiplayer/open.mp/releases/download/v1.4.0.2779/open.mp-win-x86.zip + size: "29.3 MB" + - label: Linux + url: https://github.com/openmultiplayer/open.mp/releases/download/v1.4.0.2779/open.mp-linux-x86.tar.gz + size: "23.7 MB" + - label: Linux (DynSSL) + url: https://github.com/openmultiplayer/open.mp/releases/download/v1.4.0.2779/open.mp-linux-x86-dynssl.tar.gz + size: "20.1 MB" +--- + +## 变更内容 + +- 实现了用于 open.mp 启动器的加密协议,需先在 `config.json` 中启用(`network.use_omp_encryption`)。 +- 修复了在移动客户端上使用 `SetPlayerSkin` 的一个小问题。 +- 新增了相机模式的有效性检查。 +- 修复了 Windows 系统中 `GetTickCount` 的返回值。 +- 修复了在某些事件和 Pawn 回调中销毁车辆时导致的崩溃。 +- 禁用了 AMX 运行时的动态 DLL 加载功能,尤其适用于从 CompuPhase 网站安装了默认 Pawn 的用户。 +- 修复了 `GetVehicleLandingGearState` 返回值反转的问题。 +- 修复了玩家离开服务器后,其信息仍会随机保留在启动器玩家列表中的问题。 +- 为拖车和拖车同步添加了更多的有效性检查。 +- 支持递归加载文件夹中的组件。 +- 在 Linux 系统上,优先加载以 `$` 开头的组件,并使用 `RTLD_GLOBAL` 标志加载它们。 +- 修复了与移动物体相关的崩溃问题。 +- 修复了玩家车辆数据在 `OnPlayerDeath` 事件被调用前被重置的问题。 +- 新增了通过原生函数 `IsPlayerUsingOmp` 检测玩家是否使用 open.mp 客户端的功能。 + +## 按合并的拉取请求整理的更新日志 + +- Fix SetPlayerSkin (add custom skin without DL client) for mobile clients by @f0Re3t in https://github.com/openmultiplayer/open.mp/pull/978 +- Validate camera modes better by @NexiusTailer in https://github.com/openmultiplayer/open.mp/pull/975 +- fix vehicle release in events called in driver sync by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/983 +- GetTickCount on Windows to return tick count of server instead of system by @Hual in https://github.com/openmultiplayer/open.mp/pull/987 +- Disable dynamic DLL loading for AMX runtime by @Hual in https://github.com/openmultiplayer/open.mp/pull/988 +- Main script config fixes by @Hual in https://github.com/openmultiplayer/open.mp/pull/989 +- Fix inverted GetVehicleLandingGearState value by @Hual in https://github.com/openmultiplayer/open.mp/pull/990 +- Fix issues with reallocating bitstreams in sendRPC/sendPacket by @Hual in https://github.com/openmultiplayer/open.mp/pull/997 +- More validity checks for vehicles (mainly trailers) by @NexiusTailer in https://github.com/openmultiplayer/open.mp/pull/985 +- Fix player teleport natives and query player list by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/1003 +- Recursively load components by @myudev in https://github.com/openmultiplayer/open.mp/pull/920 +- Fix moving player objects crash due to out-of-order destruction by @Hual in https://github.com/openmultiplayer/open.mp/pull/1016 +- load comps starting with `$` sooner and with RTLD_GLOBAL on linux by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/1020 +- call state change event after death event, to prevent unwanted cleanups by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/1035 +- omp user detection & server to client encryption for omp users by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/1026 +- remove rivershell from main repository and move it to a separate one by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/1038 +- revert state change, dont handle in vehicle's event, use death event ... by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/1037 +- all my homies hate linux (not the kernel btw, the ecosystem btw) (btw) by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/1040 +- bump version by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/1041 + +## 新贡献者 + +- @f0Re3t 在 https://github.com/openmultiplayer/open.mp/pull/978 首次贡献 + +**完整更新日志**:https://github.com/openmultiplayer/open.mp/compare/v1.3.1.2744...v1.4.0.2779 diff --git a/frontend/i18n/zh-CN/content/releases/server/v1.5.8.3079.md b/frontend/i18n/zh-CN/content/releases/server/v1.5.8.3079.md new file mode 100644 index 00000000000..3fe6e81c5af --- /dev/null +++ b/frontend/i18n/zh-CN/content/releases/server/v1.5.8.3079.md @@ -0,0 +1,118 @@ +--- +tag: v1.5.8.3079 +publishedAt: "2025-12-17T10:12:28Z" +htmlUrl: https://github.com/openmultiplayer/open.mp/releases/tag/v1.5.8.3079 +highlights: + - 内置的、完全可由服务器控制的NPC(非玩家角色)功能 + - 新增C API / C API SDK,并增强了Pawn与SDK之间的互操作性 + - 通过更强的同步验证检查,实现了显著的网络性能提升 + - 升级至OpenSSL 3.0.13 +assets: + - label: Windows + url: https://github.com/openmultiplayer/open.mp/releases/download/v1.5.8.3079/open.mp-win-x86.zip + size: "34.9 MB" + - label: Linux + url: https://github.com/openmultiplayer/open.mp/releases/download/v1.5.8.3079/open.mp-linux-x86.tar.gz + size: "30.5 MB" + - label: Linux (DynSSL) + url: https://github.com/openmultiplayer/open.mp/releases/download/v1.5.8.3079/open.mp-linux-x86-dynssl.tar.gz + size: "25.5 MB" +--- + +## 变更内容 + +### 核心功能 + +- 引入了**作为内置服务器功能的完全可控NPC**,无需外部NPC插件,从而实现更深层的服务器端AI和自动化。 +- 新增了**C API和C API SDK**,允许开发者将open.mp直接与原生代码和外部工具集成。 +- 新增了**从open.mp C++ SDK调用Pawn原生函数**的能力,显著提升了脚本与原生模块之间的互操作性。 + +### 网络与性能 + +- 实现了显著的**网络性能提升**,带来了更快的同步和更流畅的游戏体验。 +- 添加了多项**同步验证检查**,以防止无效数据、欺骗性的状态和畸形的网络数据包。 +- 现在会根据客户端版本的最大允许值来**验证MTU(最大传输单元)**,防止配置错误和系统不稳定。 + +### 平台与兼容性 + +- 将**OpenSSL从1.1.1升级至3.0.13**,正式弃用了对旧版Linux发行版的支持,确保了对现代系统的妥善支持。 +- 为`config.json`添加了**环境变量支持**,使容器化部署、CI/CD流程和生产环境部署更加灵活方便。 + +### NPC与游戏性改进 + +- NPC的ID分配现在采用**从高到低**的顺序,防止冲突并提高可预测性。 +- 弃用了`ConnectNPC`函数,推荐使用新的内置NPC系统。 +- 强制火车在创建时使用**4个连续的ID**,修复了长期存在的游戏不一致性问题。 +- 修复了火车乘客的同步问题。 + +### 稳定性与错误修复 + +- 修复了一个关于重生数据的棘手问题。 +- 修复了与踢出玩家相关的延迟问题。 +- 修复了在服务器重启期间检查列表中与游戏区域相关的崩溃问题。 +- 修复了玩家在观战后状态被随机设置为`None`的问题。 +- 修复了Linux服务器关闭时`stdin`被锁定的问题。 +- 修复了`chatlogging`配置变量不影响死亡信息的问题。 +- 移除了旧的**Fixes**组件,因其不稳定、冗余且功能已被新系统取代。 +- 针对Pawn原生函数进行了多次小修复,提高了正确性和可用性。 + +### 文档与社区 + +- 新的和更新的**NPC脚本API(Pawn原生函数)** 已在官方文档中提供:https://open.mp/docs +- 加入社区并在Discord上获取支持:https://discord.gg/samp +- 通过OpenCollective支持开发:https://opencollective.com/openmultiplayer +- 官方网站:https://open.mp/ + +## 按合并的拉取请求整理的更新日志 + +- Fix for non-bullet guns returned as 0 in weapon data by @NexiusTailer in https://github.com/openmultiplayer/open.mp/pull/1046 +- Update gitignore for CLion && macOS by @povargek in https://github.com/openmultiplayer/open.mp/pull/1049 +- fix ci by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/1054 +- Fix apple silicon build by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/1062 +- Fixes for a couple of issues by @NexiusTailer in https://github.com/openmultiplayer/open.mp/pull/999 +- Fixed: legacy config variable 'chatlogging' does not control death logging by @uifdev in https://github.com/openmultiplayer/open.mp/pull/1057 +- Pack Vehicle and StreamInVehicle more tightly by @PTemuri in https://github.com/openmultiplayer/open.mp/pull/1091 +- Fixed: train passenger sync by @uifdev in https://github.com/openmultiplayer/open.mp/pull/1100 +- Fixed `logging.log_connection_messages` option check by @Northn in https://github.com/openmultiplayer/open.mp/pull/1094 +- Fixed "reverse search for NPC id in player pool" by @NoPressF in https://github.com/openmultiplayer/open.mp/pull/1088 +- Return string length for some natives by @NexiusTailer in https://github.com/openmultiplayer/open.mp/pull/1098 +- Check provided mtu value against max allowed per client version by @ksenonadv in https://github.com/openmultiplayer/open.mp/pull/1111 +- Reverse search for NPC id in player pool by @ksenonadv in https://github.com/openmultiplayer/open.mp/pull/1075 +- add NPC_HasPathPointInRadius by @NoPressF in https://github.com/openmultiplayer/open.mp/pull/1115 +- One big beautiful pull request by @NexiusTailer in https://github.com/openmultiplayer/open.mp/pull/1113 +- Create FUNDING.yml by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/1121 +- Store natives globally & ability to call them from using SDK by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/1128 +- fix sdtin lock from getline when shutting down by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/1131 +- NPC Component by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/916 +- Update FCNPC deprecation message by @NexiusTailer in https://github.com/openmultiplayer/open.mp/pull/1132 +- add capi component and submodule by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/1125 +- Some fixes and changes by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/1133 +- upgrade openssl version from 1.1.1 to 3.0.13 by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/1096 +- Some NPC fixes and changes by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/1135 +- Add trams where they are missed by @NexiusTailer in https://github.com/openmultiplayer/open.mp/pull/1140 +- Force train to be 4 consecutive ids by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/1139 +- Fix event handling by @0x617374726F in https://github.com/openmultiplayer/open.mp/pull/1144 +- Use entry create for dialog data creation by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/1145 +- Add environment variable support in config.json by @itsneufox in https://github.com/openmultiplayer/open.mp/pull/1142 +- network, npcs, and docker script changes by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/1148 +- fix TextDraw_SetProportional by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/1149 +- fix slot reserving for players outside of raknet by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/1150 +- Fix Kick Issue by @Tiaansu in https://github.com/openmultiplayer/open.mp/pull/1151 +- fix: clear checkingList when component is reseted by @nidi21 in https://github.com/openmultiplayer/open.mp/pull/1152 +- bump version by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/1153 +- update sdk module to the right ref by @AmyrAhmady in https://github.com/openmultiplayer/open.mp/pull/1154 +- Couple of fixes for NPC component by @NexiusTailer in https://github.com/openmultiplayer/open.mp/pull/1156 +- Fix for random occurrence of player state none by @NexiusTailer in https://github.com/openmultiplayer/open.mp/pull/1146 + +## 新贡献者 + +- @povargek 在 https://github.com/openmultiplayer/open.mp/pull/1049 首次贡献 +- @PTemuri 在 https://github.com/openmultiplayer/open.mp/pull/1091 首次贡献 +- @Northn 在 https://github.com/openmultiplayer/open.mp/pull/1094 首次贡献 +- @NoPressF 在 https://github.com/openmultiplayer/open.mp/pull/1088 首次贡献 +- @0x617374726F 在 https://github.com/openmultiplayer/open.mp/pull/1144 首次贡献 +- @itsneufox 在 https://github.com/openmultiplayer/open.mp/pull/1142 首次贡献 +- @Tiaansu 在 https://github.com/openmultiplayer/open.mp/pull/1151 首次贡献 +- @nidi21 在 https://github.com/openmultiplayer/open.mp/pull/1152 首次贡献 + +**完整更新日志**:https://github.com/openmultiplayer/open.mp/compare/v1.4.0.2779...v1.5.8.3079 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/changelog.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/changelog.md index d9e516b8afd..4923918aa40 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/changelog.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/changelog.md @@ -4,7 +4,67 @@ sidebar_label: 更新日志 description: open.mp开发进度与更新日志。 --- -## **[v1.4.0.2779](https://github.com/openmultiplayer/open.mp/releases/tag/v1.4.0.2779) (最新版)** +## **[v1.5.8.3079](https://github.com/openmultiplayer/open.mp/releases/tag/v1.5.8.3079) (最新版)** + +我们怀着激动的心情宣布,我们的最新服务器版本现已发布! + +本次更新带来了若干重要修复,并引入了一项备受期待的新功能:**完全可控的 NPC**! + +完整更新日志请查阅[此处](https://github.com/openmultiplayer/open.mp/releases/tag/v1.5.8.3079)。 + +**主要特性:** + +- 引入完全可控的 NPC 作为内置服务器功能,无需再依赖外部 NPC 插件,并支持更深度的服务器端 AI 与自动化控制。 +- 新增 C API 与 C API SDK,允许开发者将 open.mp 直接集成到原生代码及外部工具链中。 +- 新增从 open.mp C++ SDK 调用 Pawn 原生函数的能力,显著增强了脚本与原生模块之间的互操作性。 + +**网络与性能:** + +- 实现了显著的网络性能优化,带来更快的同步速度与更流畅的游戏响应。 +- 新增多重同步验证检查,有效防止无效数据、伪装状态及异常数据包。 +- MTU 值现会根据各客户端版本允许的最大值进行验证,避免配置错误与系统不稳定。 + +**平台与兼容性:** + +- 将 OpenSSL 从 1.1.1 升级至 3.0.13,正式终止对旧版 Linux 发行版的支持,确保对现代系统的完整兼容。 +- 为 config.json 新增环境变量支持,使容器化部署、CI/CD 流程及生产环境配置更加简便灵活。 + +**NPC 与游戏性改进:** + +- NPC ID 分配机制调整为从高到低分配,避免冲突并提高可预测性。 +- 弃用 ConnectNPC,全面转向新的内置 NPC 系统。 +- 强制列车创建时始终使用连续 4 个 ID,修复了长期存在的逻辑不一致问题。 +- 修复列车乘客同步问题。 + +**稳定性与错误修复:** + +- 修复了生成数据相关的遗留问题。 +- 修复踢出玩家时的延迟问题。 +- 修复服务器重启时因检查列表中的帮派区域导致的崩溃。 +- 修复玩家观战后状态偶发性重置为“无”的问题。 +- 修复 Linux 服务器关闭时 stdin 锁定的问题。 +- 修复聊天日志不记录死亡信息的问题。 +- 因稳定性不足、功能冗余且已被新系统取代,移除了传统的 Fixes 组件。 +- 针对 Pawn 原生函数进行了大量细节修正,提升了正确性与易用性。 + +**文档与社区:** + +- 官方[文档](https://open.mp/zh-CN/docs)已提供全新及更新的 NPC 脚本 API(Pawn 原生函数)说明。 +- 欢迎加入 [Discord](https://discord.gg/samp) 社区获取支持与交流。 +- 可通过 [OpenCollective](https://opencollective.com/openmultiplayer) 支持项目开发。 + +此次发布为今年余下阶段的发展定下基调,并为 2026 年的新篇章奠定基础。 +我们将进入一个聚焦于深度工具链开发、更强原生集成与更具雄心的版本迭代阶段。 +期待与社区一同构建下一个里程碑。 + +
+ +
+ +## **[v1.4.0.2779](https://github.com/openmultiplayer/open.mp/releases/tag/v1.4.0.2779)** + +
+点击展开 我们很高兴宣布最新服务器版本的发布! @@ -35,6 +95,8 @@ description: open.mp开发进度与更新日志。 - 修复移动物体相关的崩溃问题 - 修正 OnPlayerDeath 回调前玩家车辆数据重置问题 +
+

diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md index b047ffcc6fc..aa2a91beba9 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/AddMenuItem.md @@ -41,7 +41,7 @@ public OnGameModeInit() - 传入无效菜单 ID 会导致崩溃 - 每个菜单最多容纳 12 个项目(第 13 个项目会显示在列名的右侧,第 14 个及后续项目不可见) - 仅支持 2 列(0 和 1) -- 单个菜单项最多支持 8 个颜色代码(如~r~、~g~等),最大显示长度为 31 个字符 +- 单个菜单项最多支持 8 个颜色代码(如`~r~`,`~g~`等),最大显示长度为 31 个字符 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ClearAnimations.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ClearAnimations.md index a9346d389b8..2a64596d3a1 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ClearAnimations.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/ClearAnimations.md @@ -23,7 +23,7 @@ tags: ["玩家", "动画"] ```c public OnPlayerCommandText(playerid, cmdtext[]) { - if (!strcmp(cmdtext, "/清除动画", true)) + if (!strcmp(cmdtext, "/animclear", true)) { ClearAnimations(playerid); return 1; diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/Create3DTextLabel.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/Create3DTextLabel.md index 9a01848a104..48d8c48f517 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/Create3DTextLabel.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/Create3DTextLabel.md @@ -60,7 +60,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) :::tip - 在观察模式下有效显示距离会明显缩小 -- 使用~r~~g~等颜色代码实现多色文本效果 +- 使用`~r~,~g~`等颜色代码实现多色文本效果 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerTextDraw.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerTextDraw.md index c279690cb67..cbe77233816 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerTextDraw.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/CreatePlayerTextDraw.md @@ -50,7 +50,7 @@ public OnPlayerConnect(playerid) 已知限制: -- 键盘按键映射代码(如 ~k~~VEHICLE_ENTER_EXIT~)在超过 255 个字符后将失效 +- 键盘按键映射代码(如 `~k~~VEHICLE_ENTER_EXIT~`)在超过 255 个字符后将失效 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/DisableInteriorEnterExits.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/DisableInteriorEnterExits.md index fbd764dbbb4..43d3f666bcd 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/DisableInteriorEnterExits.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/DisableInteriorEnterExits.md @@ -2,7 +2,7 @@ title: DisableInteriorEnterExits sidebar_label: DisableInteriorEnterExits description: 禁用游戏内所有室内出入口(门前的黄色箭头)。 -tags: ["室内"] +tags: ["室内场景"] --- ## 描述 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GameTextForPlayer.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GameTextForPlayer.md index 24ae1041947..5f6fdbcda75 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GameTextForPlayer.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GameTextForPlayer.md @@ -45,7 +45,7 @@ public OnPlayerDeath(playerid, killerid, WEAPON:reason) :::warning -注意:游戏文本中波浪号(`~`)的数量为奇数可能导致客户端崩溃。颜色代码(如~r~)在超过 255 字符后使用会引发崩溃。 +注意:游戏文本中波浪号(`~`)的数量为奇数可能导致客户端崩溃。颜色代码(如`~r~`)在超过 255 字符后使用会引发崩溃。 字符串末尾的空格会导致失效。例如:`"爆头 "` 会失败,应改为 `"爆头"` 或 `"爆头_"`(使用下划线替代空格)。 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetVehicleGearState.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetVehicleGearState.md index 37d323adbca..013869b2028 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetVehicleGearState.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetVehicleGearState.md @@ -1,15 +1,15 @@ --- title: NPC_GetVehicleGearState sidebar_label: NPC_GetVehicleGearState -description: 获取 NPC 飞行器的起落架状态。 -tags: ["npc", "车辆", “飞机”, “起落架”] +description: 获取 NPC 飞机的起落架状态。 +tags: ["npc", "车辆", "飞机", "起落架"] --- ## 描述 -获取 NPC 飞行器的起落架状态。 +获取 NPC 飞机的起落架状态。 | 参数 | 说明 | | ----- | --------- | @@ -17,7 +17,7 @@ tags: ["npc", "车辆", “飞机”, “起落架”] ## 返回值 -返回 NPC 飞行器的起落架状态(LANDING_GEAR_STATE_DOWN 或 LANDING_GEAR_STATE_UP)。 +返回 NPC 飞机的起落架状态(LANDING_GEAR_STATE_DOWN 或 LANDING_GEAR_STATE_UP)。 ## 示例 @@ -51,14 +51,14 @@ public OnPlayerCommandText(playerid, cmdtext[]) ## 注意事项 -- 仅在 NPC 驾驶飞行器时有效 +- 仅在 NPC 驾驶飞机时有效 - 返回由 NPC_SetVehicleGearState 设置的当前起落架状态 - 使用与[车辆起落架状态](../resources/landinggearstate)相同的常量:LANDING_GEAR_STATE_DOWN 和 LANDING_GEAR_STATE_UP - 这是 GetPlayerLandingGearState 的 NPC 等效函数 ## 相关函数 -- [NPC_SetVehicleGearState](NPC_SetVehicleGearState): 设置飞行器起落架状态 +- [NPC_SetVehicleGearState](NPC_SetVehicleGearState): 设置飞机起落架状态 - [GetPlayerLandingGearState](GetPlayerLandingGearState): 获取玩家起落架状态 - [GetVehicleLandingGearState](GetVehicleLandingGearState): 获取车辆起落架状态 - [NPC_GetVehicle](NPC_GetVehicle): 获取 NPC 当前车辆 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetAmmo.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetAmmo.md index 321e97e6d46..62d2f7d1c88 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetAmmo.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetAmmo.md @@ -2,7 +2,7 @@ title: NPC_SetAmmo sidebar_label: NPC_SetAmmo description: 设置 NPC 当前武器的弹药数量。 -tags: ["npc", "武器", "子弹", "弹药"] +tags: ["npc", "武器", "子弹"] --- diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetVehicleGearState.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetVehicleGearState.md index fd05f8bb1eb..e5c0eb66736 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetVehicleGearState.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetVehicleGearState.md @@ -2,7 +2,7 @@ title: NPC_SetVehicleGearState sidebar_label: NPC_SetVehicleGearState description: 设置 NPC 驾驶飞机时的起落架状态。 -tags: ["npc", "车辆", “飞机”, “起落架”] +tags: ["npc", "车辆", "飞机", "起落架"] --- diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetVehicleHydraThrusters.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetVehicleHydraThrusters.md index 1617f42906e..e6d5c29d0ca 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetVehicleHydraThrusters.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_SetVehicleHydraThrusters.md @@ -2,7 +2,7 @@ title: NPC_SetVehicleHydraThrusters sidebar_label: NPC_SetVehicleHydraThrusters description: 设置 NPC 驾驶的九头蛇战机推进器方向。 -tags: ["npc", "车辆", "九头蛇战机", “飞机”] +tags: ["npc", "车辆", "九头蛇战机", "飞机"] --- diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PutPlayerInVehicle.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PutPlayerInVehicle.md index 58713e4e295..41572e5f5b8 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PutPlayerInVehicle.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/PutPlayerInVehicle.md @@ -24,43 +24,11 @@ tags: ["玩家", "车辆"] ## 示例 ```c -// 全局数组用于追踪每位玩家所属的车辆 -// 使用 INVALID_VEHICLE_ID 表示玩家当前无车辆 -static s_PlayerVehicle[MAX_PLAYERS] = { INVALID_VEHICLE_ID, ... }; - -public OnPlayerSpawn(playerid) +public OnPlayerEnterVehicle(playerid, vehicleid, ispassanger) { - // 检查玩家是否已有有效车辆 - if (!IsValidVehicle(s_PlayerVehicle[playerid])) - { - // 若没有则创建新车辆并存储ID - s_PlayerVehicle[playerid] = CreateVehicle(411, 0.0, 0.0, 3.5, 0.0, -1, -1, -1); - } - - // 标记需要在车辆加载完成后放置玩家 - // 避免客户端车辆模型尚未加载完成的情况 - SetPVarInt(playerid, "PutPlayerInVehicle", 1); - + PutPlayerInVehicle(playerid, vehicleid, 0); return 1; } - -public OnVehicleStreamIn(vehicleid, forplayerid) -{ - // 当车辆完成流加载时触发此回调 - // 检查是否为该玩家的车辆且需要放置 - if (vehicleid == s_PlayerVehicle[forplayerid] && GetPVarInt(forplayerid, "PutPlayerInVehicle")) - { - // 将玩家放置至车辆 - PutPlayerInVehicle(forplayerid, vehicleid, 0); - - // 清除标记防止重复放置 - // 例如玩家离开后车辆再次流加载的情况 - DeletePVar(forplayerid, "PutPlayerInVehicle"); - } - - return 1; -} - ``` | 座位 ID | 对应位置 | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawCreate.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawCreate.md index 8721112d37f..02d2e9cd61e 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawCreate.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TextDrawCreate.md @@ -56,7 +56,7 @@ public OnPlayerConnect(playerid) :::warning -键盘按键映射代码(如~k~~VEHICLE_ENTER_EXIT~)在第 255 个字符后失效 +键盘按键映射代码(如`~k~~VEHICLE_ENTER_EXIT~`)在第 255 个字符后失效 ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TogglePlayerGhostMode.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TogglePlayerGhostMode.md index 01a42ecf035..3ee3edd7bbd 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TogglePlayerGhostMode.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TogglePlayerGhostMode.md @@ -25,7 +25,7 @@ tags: ["玩家"] ```c public OnPlayerCommandText(playerid, cmdtext[]) { - if (!strcmp(cmdtext, "/幽灵模式", true)) + if (!strcmp(cmdtext, "/ghostmode", true)) { TogglePlayerGhostMode(playerid, true); SendClientMessage(playerid, -1, "服务器:你已启用幽灵模式!"); diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TogglePlayerWidescreen.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TogglePlayerWidescreen.md index 6e819a57205..91ecd2ab9b4 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TogglePlayerWidescreen.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/TogglePlayerWidescreen.md @@ -27,7 +27,7 @@ tags: ["玩家"] ```c public OnPlayerCommandText(playerid, cmdtext[]) { - if (!strcmp(cmdtext, "/宽屏模式", true)) + if (!strcmp(cmdtext, "/widescreen", true)) { TogglePlayerWidescreen(playerid, true); SendClientMessage(playerid, -1, "服务器:你已启用宽屏显示!"); diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/floatcos.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/floatcos.md index ce479b44df7..81ba5f2a73b 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/floatcos.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/floatcos.md @@ -2,7 +2,7 @@ title: floatcos sidebar_label: floatcos description: 获取指定角度的余弦值 -tags: ["数学", "浮点"] +tags: ["数学", "浮点数"] --- diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/floattan.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/floattan.md index e554b090b39..b016f5d5a04 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/floattan.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/floattan.md @@ -2,7 +2,7 @@ title: floattan sidebar_label: floattan description: 获取指定角度的正切值 -tags: ["数学", "浮点"] +tags: ["数学", "浮点数"] --- diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/gametextstyles.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/gametextstyles.md index 6a59b4ab034..3f29b059994 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/gametextstyles.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/gametextstyles.md @@ -10,7 +10,7 @@ description: 文本绘图与游戏文本的样式说明 ## 文本颜色 -通过颜色代码可以实现文本分段着色。使用格式为:\~颜色代码\~文本内容\~颜色代码\~(例如:\~y\~黄色文本\~y\~) +可对文本的特定部分进行不同颜色的绘制。为此,只需使用下列色彩标记,并将特定颜色绘制的文本部分包裹其中(例如 `~y~我以黄色绘制!~y~`)。 | 代码 | 颜色示例 | 说明 | | -------------------------------- | --------------------------------------------------------------- | ---------------------------- | diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/limits.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/limits.md index c93b4bac452..66e5a8001d3 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/limits.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/limits.md @@ -68,7 +68,7 @@ tags: [] **注意事项:** 1. 虽然 0.3 版本中车辆模型数量无限制,但使用大量车辆模型会影响客户端性能 -2. 尽管文本绘图字符串限制为 1024 字符,若在 255 字符后使用颜色代码(如~r~)可能导致客户端崩溃 +2. 尽管文本绘图字符串限制为 1024 字符,若在 255 字符后使用颜色代码(如`~r~`)可能导致客户端崩溃 3. 理论上可为单个玩家同时显示所有文本绘图,但不建议这样做 4. 可通过[流加载插件](https://github.com/samp-incognito/samp-streamer-plugin)突破这些限制,该插件通过仅在玩家附近创建实体等方式工作 5. 受客户端限制,实际最多仅能显示 51 个角色 diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/server/config.json.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/server/config.json.md index df92fed9728..b38be043222 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/server/config.json.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/server/config.json.md @@ -181,7 +181,7 @@ omp-server --default-config | game.chat_radius | float | 200.0 | ❌ | ❌ | 设置聊天的半径限制。只有距离玩家一定距离内的玩家才能在聊天中看到他们的消息。同时改变玩家在地图上看到其他玩家的距离。 | | game.death_drop_amount | int | 0 | ❌ | ❌ | | | game.gravity | float | 0.008 | ❌ | ✅ | 服务器使用的全局重力。 | -| game.group_player_objects | bool | false | ❌ | ❌ | 在 SA:MP 中,每个玩家对象和全局对象共享一个 ID 池。如果一个 ID 被"分配"给玩家,每个玩家都可以拥有一个具有该 ID 的唯一对象,但如果你创建了最大数量的全局对象,那么你就无法再创建任何每个玩家对象。
如果启用了玩家对象分组,服务器将尝试查找另一个玩家已使用的玩家对象插槽。 | +| game.group_player_objects | bool | false | ❌ | ❌ | 在 SA:MP 中,每个玩家物体和全局物体共享一个 ID 池。如果一个 ID 被"分配"给玩家,每个玩家都可以拥有一个具有该 ID 的唯一物体,但如果你创建了最大数量的全局物体,那么你就无法再创建任何每个玩家物体。
如果启用了玩家物体分组,服务器将尝试查找另一个玩家已使用的玩家物体插槽。 | | game.lag_compensation_mode | int | 1 | ✅ | ✅ | **0**:完全禁用延迟补偿。

**1**:完全启用延迟补偿。

**2**:仅启用位置延迟补偿。这意味着玩家旋转将不会进行延迟补偿。 | | game.map | string | | ❌ | ✅ | 服务器浏览器中显示的地图名称。可以是任何内容,例如 My Stunt Map。 | | game.mode | string | | ❌ | ❌ | 服务器浏览器中显示的模式。使用 [SetGameModeText](../scripting/functions/SetGameModeText) 具有相同的效果,并覆盖 config.json 中使用的值。如果你有多个需要不同游戏模式文本的游戏模式,请使用此函数。 |