xoreos/xoreos

GitHub: xoreos/xoreos

xoreos 是 BioWare Aurora 游戏引擎的开源跨平台重新实现,目标是让多款经典 RPG 游戏脱离原引擎在现代系统上运行。

Stars: 1159 | Forks: 130

# xoreos README xoreos 是 BioWare 的 Aurora 引擎及其衍生引擎的开源实现,采用 [GNU 通用公共许可证第 3 版](https://www.gnu.org/licenses/gpl.html)(或更高版本)授权。其目标是以可移植的方式运行所有使用这些引擎的游戏,从《Neverwinter Nights》到《Dragon Age II》。 ## 游戏 以下游戏是 xoreos 的有效目标: - [Neverwinter Nights](https://en.wikipedia.org/wiki/Neverwinter_Nights) - [Neverwinter Nights 2](https://en.wikipedia.org/wiki/Neverwinter_Nights_2) - [Knights of the Old Republic](https://en.wikipedia.org/wiki/Star_Wars:_Knights_of_the_Old_Republic) - [Knights of the Old Republic II: The Sith Lords](https://en.wikipedia.org/wiki/Star_Wars:_Knights_of_the_Old_Republic_II_The_Sith_Lords) - [Jade Empire](https://en.wikipedia.org/wiki/Jade_Empire) - [Sonic Chronicles: The Dark Brotherhood](https://en.wikipedia.org/wiki/Sonic_Chronicles:_The_Dark_Brotherhood) - [The Witcher](https://en.wikipedia.org/wiki/The_Witcher_%28video_game%29) - [Dragon Age: Origins](https://en.wikipedia.org/wiki/Dragon_Age:_Origins) - [Dragon Age II](https://en.wikipedia.org/wiki/Dragon_Age_II) ## 状态 目前,关于管理资源、读取多种基础文件格式、显示图形和播放声音的“底层”工作已经完成。所有目标游戏都能显示部分游戏内画面,例如区域几何结构和物体,让你可以在“旁观者模式”下自由飞行。部分游戏可以显示不完整的菜单,并且具备类似脚本系统雏形的功能。 不过,目前尚未实现真正意义上的“常规”游戏玩法。 有关各游戏具体状态的更多信息,请访问[我们的 wiki](https://wiki.xoreos.org/index.php?title=Games)。 注意:我们一直在寻找志同道合的人加入我们重新实现这些游戏的工作。如果您愿意提供帮助,请随时联系我们! 此外,请阅读我们的 [CONTRIBUTING.md](CONTRIBUTING.md) 以了解一些规范。非常感谢。 ## CI 状态 - [![Build status (linux autotools gcc)](https://static.pigsec.cn/wp-content/uploads/repos/cas/66/66528c3c47761d91d1530662f2b7e0284afae4ac2051b399056552c45e774134.svg)](https://github.com/xoreos/xoreos/actions/workflows/linux_autotools_gcc.yml/) - [![Build status (linux autotools clang)](https://static.pigsec.cn/wp-content/uploads/repos/cas/4d/4dda4cb66f01e669245b8936c5e6c38941e6e9e668d1a1ccac660f1efe25ae25.svg)](https://github.com/xoreos/xoreos/actions/workflows/linux_autotools_clang.yml/) - [![Build status (linux cmake gcc)](https://static.pigsec.cn/wp-content/uploads/repos/cas/c9/c92202f6e652fc8fb2d8ce8af0c2b8eb1950ac9d09982c227c6ab1169f0aaac1.svg)](https://github.com/xoreos/xoreos/actions/workflows/linux_cmake_gcc.yml/) - [![Build status (linux cmake clang)](https://static.pigsec.cn/wp-content/uploads/repos/cas/94/945b144fb7df545b82700d7023ebf479fc44e4626c732dd40d162e9e42c92518.svg)](https://github.com/xoreos/xoreos/actions/workflows/linux_cmake_clang.yml/) - [![Build status (macos autotools clang)](https://static.pigsec.cn/wp-content/uploads/repos/cas/6c/6c4dbad28c61bf30a49dde8e9de006a2625c066e9478df1a55dbc6984bca5447.svg)](https://github.com/xoreos/xoreos/actions/workflows/macos_autotools_clang.yml/) - [![Build status (macos cmake clang)](https://static.pigsec.cn/wp-content/uploads/repos/cas/53/53fec587d838e8a9b6271d2d76bf90865339de98e04842a839e4172d866f1561.svg)](https://github.com/xoreos/xoreos/actions/workflows/macos_cmake_clang.yml/) - [![Build status (windows cmake msvc)](https://static.pigsec.cn/wp-content/uploads/repos/cas/93/93175cdec906dcb5512f9a03559573637d86b951f354286a81740794ff80a7e0.svg)](https://github.com/xoreos/xoreos/actions/workflows/windows_cmake_msvc.yml/) - [![Coverity Status](https://scan.coverity.com/projects/544/badge.svg)](https://scan.coverity.com/projects/544) ## 获取 xoreos 您可以通过多种方式获取 xoreos: 您可以从我们的[下载页面](https://xoreos.org/downloads/index.html)下载包含最新版本二进制文件的压缩包。这包括适用于 Microsoft Windows、Mac OS X 和 GNU/Linux 的二进制文件,以及适用于各种 GNU/Linux 发行版的软件包。以上内容均提供适用于 32 位和 64 位 x86 架构的版本。 或者,如果您正在运行 Arch Linux,可以直接从 [AUR](https://aur.archlinux.org/packages/xoreos/) 安装 xoreos。 或者,如果您正在运行 Gentoo Linux,可以直接从我们的 [overlay](https://github.com/xoreos/gentoo-overlay) 安装 xoreos。 最后,您可以自行编译 xoreos;可以使用我们[下载页面](https://xoreos.org/downloads/index.html)上提供的发布版源码包,也可以使用全新检出的[代码库](https://github.com/xoreos/xoreos)。有关在各种操作系统上编译 xoreos 的详细说明,请阅读我们 wiki 上的[编译 xoreos](https://wiki.xoreos.org/index.php?title=Compiling_xoreos) 页面。 ## 运行 xoreos 首先,您需要完整安装并(或)将您想用 xoreos 玩的游戏复制到您的硬盘上。具体的操作方法取决于游戏本身、您的操作系统以及您购买游戏的渠道和方式。 xoreos 目前还没有启动器 GUI 或类似工具。您需要从命令行启动它。请使用命令行选项 "--help"(不带引号)运行 xoreos,以获取有关其他命令行选项的帮助文本。 启动位于路径 /path/to/game/ 下的游戏,最快的方法是调用 ``` xoreos -p/path/to/game/ ``` 如果您使用的是 Windows,并且路径类似于 D:\\Path\\To\\Game\\,请调用 ``` xoreos -pD:\\Path\\To\\Game\\ ``` 有关如何运行 xoreos 的更深入文档,请阅读我们 wiki 上的[运行 xoreos](https://wiki.xoreos.org/index.php?title=Running_xoreos) 页面。 ## 配置文件 通常,xoreos 可以通过命令行、配置文件或同时使用两者来读取要运行哪个游戏的配置。此外,当您第一次在命令行中指定新游戏时,xoreos 会在配置文件中添加相关条目(如有必要,会先创建该文件)。 为了准确识别已安装游戏的特定实例,xoreos 采用了“target”的概念。每个 target 在配置文件中都有一个单独的部分,并且其中的每个选项仅适用于该 target。特殊的 target “xoreos” 是一个适用于所有游戏的全局部分,但在游戏 target 中的相同选项会覆盖全局选项。 例如: ``` [xoreos] width=1024 height=768 fullscreen=false [nwn] path=/home/drmccoy/games/nwn/ fullscreen=true volume_music=0.500000 volume_sfx=0.850000 volume_voice=0.850000 ``` 然后,您可以通过以下命令启动 target 为 "nwn" 的游戏 ``` xoreos nwn ``` xoreos 会完成剩下的工作。这将在路径 /home/drmccoy/games/nwn/ 下以 1024x768 的全屏模式启动该游戏。 正如您在音量选项中所看到的,xoreos 还会将您在游戏实际 GUI 中所做的设置保存到配置文件里的该 target 部分。 xoreos 读取配置文件的位置取决于您的操作系统: - 在 GNU/Linux 上,该位置为 $XDG\_CONFIG\_HOME/xoreos/xoreos.conf。 $XDG\_CONFIG\_HOME 默认为 $HOME/.config/ - 在 Mac OS X 上,该位置为 $HOME/Library/Preferences/xoreos/xoreos.conf - 在 Windows 上,xoreos.conf 位于 $APPDATA 或 $USERPROFILE 下的 xoreos 子目录中,具体取决于您的 Windows 版本 有关更详细的示例和更深入的解释,请参阅 doc 目录中的 [xoreos.conf.example](doc/xoreos.conf.example),或我们 wiki 上的[运行 xoreos](https://wiki.xoreos.org/index.php?title=Running_xoreos) 页面。 ## 链接 - [xoreos 官网](https://xoreos.org/) - [xoreos wiki](https://wiki.xoreos.org/) - [截图](https://xoreos.org/screenshots/index.html) - [主源码库](https://github.com/xoreos/xoreos) - [所有 xoreos 代码库](https://github.com/xoreos/) - [Doxygen 文档](https://xoreos.org/doxygen/) ## 联系方式 要联系我们,请发送邮件至[邮件列表](https://xoreos.org/mailman/listinfo/xoreos-devel),或加入我们在 [Libera IRC](https://libera.chat/) 上的 IRC 频道 #xoreos。
标签:Bash脚本, C++, 开源游戏, 数据擦除, 游戏引擎, 角色扮演游戏, 重实现