• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

openblack/openblack: openblack is an open-source game engine that supports playi ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

openblack/openblack

开源软件地址:

https://github.com/openblack/openblack

开源编程语言:

C++ 89.9%

开源软件介绍:

openblack

VCPKG CI System Deps CI GitHub Stars Discord chat License

openblack is an open source reimplementation of Black & White (2001) written in modern C++ and modern rendering engines (OpenGL, Vulkan).

You still need to have the original game assets in order to use this. See further below for an explanation on how to extract them.


Building

Clone the code using: git clone --recursive https://github.com/openblack/openblack.git

Configuration for using vcpkg (Recommended for new users)

The simplest way to obtain all the required dependencies is through vcpkg which is included with a manifest file.

The easiest way to get started on any platform is to allow CMake and vcpkg to handle all dependencies and configuration for you. To do so, you will be selecting the "ninja-multi-vcpkg" - Ninja Multi-Config (vcpkg) preset. Other presets are available for more advanced users.

Visual Studio Code

Visual Studio 2019 / 2022

Clion

XCode

  • Install XCode
  • Install the homebrew depenedencies using homebrew: brew install cmake ninja pkg-config
  • Run sudo xcode-select --reset after installing cmake
  • You need to configure using the cmake preset xcode-vcpkg using cmake in either the GUI or using the command line argument --preset xcode-vcpkg

Android Studio

  • Install Android Studio
  • Install a recent SDK and an NDK of at least 23
  • Open openblack from the android directory
  • Set the SDK and NDK in the project settings
  • Do gradle configure which will run cmake configuration and compile the vcpkg dependencies
  • Build the project for either a virtual device or a connected device
  • Currently requires user to upload game assets to /data/local/tmp/bw and chmod -R a+wrx /data/local/tmp/bw with adb

Command Line

  • Your usual build tool-chain.
    • Ubuntu / Debian: # apt install build-essential cmake ninja-build
    • Arch Linux / Manjaro: # pacman -S base-devel cmake ninja
  • You can generate the cmake build preset using cmake --preset and you can list the presets using cmake --list-presets

Configuration for using System Dependencies (Recommended for packagers)

If you don't want to use vcpkg; CMake will use system libraries, or manually specified package directories.

CMake will find the required libraries as long as they provide a proper config file.

Arch Linux

Install openblack-git from the AUR which builds and installs directly for all Arch Linux derived distros such as Manjaro. This will require pacman to install all required dependencies.

The prefix to use is "linux-system-deps" - Linux (System Deps)

Contributing

Contributions are always welcome, whether it's modifying source code to add new features or bug fixes, documenting new file formats or simply editing some grammar.

You can also join the Discord for development discussion if you are unsure of anything.

Extracting asset files from original game

As mentioned before, the original game assets are required in order to run openblack. Since these data are copyrighted, we won't provide them, so please don't ask. Here is a guide for extracting them from the original game.

Prerequisites

You will need the following:

  • The original installer (usually on a CD)
  • Official patch 1.10
  • Official patch 1.2
  • Not needed (but will not compromise the extraction): Unofficial patch 1.42

Patches can be found on fan sites such as Black & White REALM

Installation

On Windows

  1. Install the game from the installer, remember the installation directory (C:\\Program Files (x86)\\Lionhead Studios\\Black & White\\ is the default)
  2. Install the official patch 1.10 (in the same directory)
  3. Install the official patch 1.2 (in the same directory)

On Linux and macOS

If you run on Linux or macOS, you can install the game with Wine (App Page on WineHQ).

  1. Install wine
  2. Run wine Setup.exe from the directory containing the installer, don't change the install path
  3. Run wine Black_White_Patch_v1.100.exe from the directory containing the first patch (adapt the command in case the filename isn't exactly that)
  4. Run wine black_white_patch_v1_20.exe from the directory containing the second patch (adapt too)
  5. In case you would like to install the unofficial patch, it requires .NET 2.0, that can be installed with winetricks dotnet20sp2 (you should install winetricks first)

All the files should be installed in the following directory: ~/.wine/drive_c/Program Files (x86)/Lionhead Studios Ltd/Black & White

Getting the assets

The folders you're interested in are the Data and Scripts folders in the installation directory. You can use them from there or make a copy to the location of your choice.

Using them in place

If you want to use them from there, remember the installation directory chosen in the installation step, unless you changed it, it should be either:

  • eitherC:\\Program Files (x86)\\Lionhead Studios\\Black & White\\
  • or ~/.wine/drive_c/Program Files (x86)/Lionhead Studios Ltd/Black & White

This is the path you will give to openblack (using the -g flag).

If you prefer to copy the data (e.g. if you want to uninstall the original game), just copy the Data and Scripts folders to the desired new location, and give the path to this location to openblack (using the -g flag).

License

openblack is released as open source software under the GPL v3 license, see the license file in the project root for the full license text.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap