本仓库基于社区已有的 Linux 运行经验、安装脚本思路和排障线索整理而来。
在这些前人工作的基础上,当前仓库中的安装与启动脚本由 OpenAI Codex 迭代生成,并在 Ubuntu 24.04 + Wine 9 环境进行了实机验证。
参考链接(信息来源与依赖项目):
- MapleLegends 官网:https://maplelegends.com/
- 社区安装器参考仓库:https://github.com/Yareeeef/MapleLegends-installer
- Wine 项目:https://www.winehq.org/
- Gamescope 项目:https://github.com/ValveSoftware/gamescope
- Ubuntu 24.04 gamescope PPA:https://launchpad.net/~mortigar/+archive/ubuntu/gamescope
- 默认客户端下载地址:
https://maplelegends-mirror.ylivay.dev/installers/MAC11JAN2026.pkg - 你可以通过
--url参数或环境变量ML_CLIENT_URL覆盖默认下载源。 - 默认下载策略来自 scripts/version.yml,支持
direct/gdrive/mega/local四种来源。
执行:
bash scripts/install-client.sh默认会按以下流程执行:
- 安装到
~/Games/MapleLegends。 - 下载客户端包到临时目录。
- 自动解包
.pkg(含 Payload)并提取Game/MapleLegends.exe等文件。 - 初始化 Wine 32-bit 前缀(
~/<install_dir>/.wine)。 - 写入兼容设置:
MapleLegends.exe=win98,ws2_32/ws2help=builtin。 - 写入
Legends.ini默认值:HDClient=1、Windowed=true。 - 生成
run.sh(基础启动)与run-2x.sh(NIS + 自动缩放)。 - 默认创建桌面启动器(指向
run-2x.sh)。
- 自更新(先更新仓库再继续安装):
bash scripts/install-client.sh --update- 下载源配置文件:
scripts/version.ymldownload_from: direct使用direct_urldownload_from: gdrive使用gdoc_fileiddownload_from: mega使用mega_url(通过scripts/megafetch.sh解析并解密)download_from: local使用local_path
- 提供真正的一键安装脚本(下载/解包/Wine 前缀初始化/启动器创建)。
- 固化默认可运行的 winsock 策略(默认
builtin)。 - 增加
gamescope自动适配HDClient的启动脚本。 - 默认启用
NIS + sharpness,并在分辨率不足时自动回退fit。 - 汇总常见错误(
Wah*、黑边、HDClient=2不稳)与处理方法。
- Ubuntu 24.04.x
- Wine 9.x(32-bit 前缀)
- 可选:gamescope(用于窗口放大和锐化)
scripts/install-client.sh:一键安装(下载 + 解包 + 初始化 + 启动器)scripts/ml-run.sh:基础启动脚本(默认 builtin winsock)scripts/ml-run-nis-auto.sh:默认 NIS + 自动适配HDClientscripts/install-launcher.sh:安装/更新桌面启动器scripts/version.yml:下载源配置(direct/gdrive/mega/local)scripts/megafetch.sh:MEGA 下载解析与解密参数提取docs/TROUBLESHOOTING.md:常见问题和修复docs/WORKING-CONFIG.md:已验证可用配置
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install -y wine wine32 xrandr x11-utils opensslUbuntu 24.04 官方源通常没有 gamescope,可用 PPA:
sudo add-apt-repository ppa:mortigar/gamescope
sudo apt update
sudo apt install -y gamescopecd /path/to/maplelegends-linux-wine
bash scripts/install-client.sh安装后启动:
bash "$HOME/Games/MapleLegends/run-2x.sh"--install-dir <dir>:安装目录--update:先自更新仓库再安装--url <url>:自定义下载源--file <path>:从本地安装包安装--source-dir <dir>:从已解包目录安装--force:覆盖已有安装目录ML_SHARPNESS:NIS/FSR 锐化等级(0-20,默认4)ML_FILTER:nis|fsr|nearest|linear|pixel(默认nis)
Super + Y:切换 NISSuper + U:切换 FSRSuper + N:切换 nearestSuper + I:增加锐化Super + O:减少锐化Super + G:切换键盘抓取
- 本仓库不包含 MapleLegends 客户端文件,仅提供 Linux/Wine 运行配置。
- MapleLegends 及相关资源版权归原项目方所有。