Skip to content

rob-the-bot/OpenPAL

 
 

Repository files navigation

仙剑开源版

Windows Linux macOS Android PSVita

云对雨,雪对风,仙剑对妖弓。

《仙剑奇侠传三》和《仙剑奇侠传四》开源实现。 仙剑三剧情开发已完成。 仙剑四开源版仍处于早期开发阶段,存在很多未实现的功能及 Bug,暂无完善的游戏体验。

📢 声明

  • 开源版不附带任何游戏数据,因此您必须拥有《仙剑奇侠传三》的正版拷贝或者《仙剑奇侠传三》的正版拷贝才可以正常运行。
  • 仙剑开源版并非软星公司或大宇集团的官方作品。

🏡 社区

欢迎加入 QQ 群 636662894

运行

仙剑三

Modify openpal3.toml to include the correct game path

# PAL3.exe 所在的目录
# The folder where PAL3.exe is
asset_path = "E:\\CubeLibrary\\apps\\1000039"

之后运行 openpal3.exe 即可。如果运行时提示 OpenAL 出错,请下载并安装 OpenAL

仙剑四

Modify the hard-coded string in openpal4/application.rs.

Alternatively one can repack the the content of gamedata folder of PAL4, use the repacker tool provided. Note repacking defaults to resize the image assets, see comparison images below. Repacking might be desired in some platforms to reduce the total number of opened file descriptors (for example PS Vita), or just to save computing resources. Repacking can be done by (example on Windows)

target\release\repacker.exe --pal4 "<parent_folder>\Chinese Paladin 4\gamedata" "C:\PAL4_test\pal4.ypk"

Original PAL4

Repacked PAL4

操作

  • 空格键:对话框下一句
  • A/D键:调整视角
  • Esc键:跳过过场动画
  • F键:互动
  • 方向键:跑
  • 1/2/3/4:存档至第1、2、3、4号存档位

Building

目前OpenPAL支持 Windows, Linux, PS Vita, macOS and Android作为目标平台。 See the build files under workflows.

Toolchain and dependencies

构建步骤

cd openpal3
cargo build --release

构建 Android 平台安装包需要先安装cargo-apk,并设置好 NDK 开发环境

cd openpal3 && cargo apk build --release --lib

For building instructions

常见问题

MacOS

由于 nightly 工具链的一个bug,构建时可用下面命令规避链接错误的问题:

MACOSX_DEPLOYMENT_TARGET=11.0 cargo build --release

PS Vita

Requires VitaSDK, see ci-psvita.yml.

Contributing

非常感谢一同参与 OpenPAL3 的开发!请参看 CONTRIBUTING 来了解参与项目的要求与步骤。

Miscellaneous

About

Open-source implementation of various Chinese RPG games

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 90.9%
  • C 5.1%
  • C++ 2.4%
  • Python 1.4%
  • Other 0.2%