OpenSource - zEngine 的重新實現,由遊戲「Gothic」和「Gothic II」使用。
該項目已重新啟動。這是新的儲存庫:https://github.com/REGoth-project/REGoth-bs
不要忘記查看 REGoth-Wiki 以獲取有關該項目的更多資訊!
可以在此處找到顯示引擎目前狀態的清單。
版本 0.4(Windows) :https://github.com/REGoth-project/REGoth/releases/tag/0.4
版本 0.4(Android) :https://github.com/REGoth-project/REGoth/releases/tag/0.4-android
自動夜間建置:https://github.com/degenerate1123/REGoth/releases
確保使用--recursive標誌複製此儲存庫:
git clone --recursive [email protected]:degenerated1123/REGoth.gitgit clone --recursive https://github.com/degenerated1123/REGoth.git要更新儲存庫,您需要確保也更新子模組。您可以執行以下操作,而不是簡單地拉取儲存庫:
git pull --recurse-submodules注意:如果您缺少軟體包或在平台上建置時遇到問題,您可以查看此 wiki 頁面,其中可能包含更詳細的說明。如果您在那裡找不到您的平台,我懇請您為該維基頁面添加一些供其他人使用的說明!
您將需要 CMake(3.1 或更高版本)和支援 C++14 的編譯器。目前支援/測試的是:
您還需要在電腦上安裝libsndfile的副本。
libsndfile和libxinerama在大多數 *nix 系統上,可以使用套件管理器獲取此信息,例如在 Debian/Ubuntu 上:
$ sudo apt install libsndfile1-dev libasound2-dev
$ sudo apt install libxinerama-dev或在 macOS 上
$ brew install libsndfile # Needs Homebrewlibsndfile需要單獨編譯。在系統上的某個位置建立目錄來儲存編譯後的文件,然後執行
mkdir build-libsndfile
cd build-libsndfile
cmake -D CMAKE_INSTALL_PREFIX=compiled/files/folder path/to/REGoth/lib/libdmusic/utils/dls2sf/lib/libsndfile
cmake --build . --target install --config Release
然後:
cd path/to/REGoth
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release .. # On *nix systems this is sufficient
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=compiled/files/folder .. # On Windows如果 CMake 抱怨某些資料夾缺少 CMakeLists.txt,您很可能忘記使用
--recursive-flag 進行複製!簡單地執行git submodule update --init --recursive,它應該可以工作。
然後,根據您的作業系統進行選擇:
make -j4啟動 Visual Studio 2017,您可以使用整合的 cmake 功能開啟複製的資料夾。
查看如何建立 wiki 頁面以獲取有關此內容的詳細資訊。
對於先前版本的 Visual Studio,開啟產生的REGoth.sln並照常建置。
或者,您可以在建置資料夾內執行此命令:
cmake --build . --config release編譯後的檔案位於build/bin目錄。
確保將content/shaders資料夾複製到已編譯的REGoth -Executable 的工作目錄中。然後,使用以下標誌執行程式:
REGoth -g " path/to/gothic1or2 " -w startworld.zen其中path/to/gothic1or2指向 Gothic I 或 II 安裝的根目錄, startworld.zen是在 games data/目錄中的.vdf文件中找到的 Zen 文件之一。例如:哥德 II 的newworld.zen或addonworld.zen 。
建議從命令列運行它,以查看程式的偵錯輸出。
此外,若要取得可能的命令列表,請執行REGoth --help 。
tp [<teleporter:default=player>] <target> :將 NPC teleporter (= 玩家,如果沒有給出)傳送到 NPC targetgoto waypoint <waypoint> :將玩家傳送到waypointkill [<npc>] :殺死npc或附近的 NPC(如果沒有給)knockout [<npc>] :如果沒有給出,則擊倒npc或附近的 NPCsave <slotindex> :將遊戲儲存到給定的插槽load <slotindex> :從給定的插槽載入遊戲switchlevel <zenfile> : 切換到目前會話中的其他級別usemana <amount> : 使用法力hurtself <amount> :傷害自己set clock <hour> [<min:default=0>] :將一天中的時間設定為hour : mincontrol <npc> : 控制npc如果您想提供協助但不知道從哪裡開始,我建議您閱讀 wiki 頁面,其中包含有關引擎佈局的資訊以及缺少哪些功能的清單(不過還沒有!)。
哥德式 1 - 主世界: REGoth -g "path/to/gothic1" -w world.zen
哥德式 1 - Oldmine: REGoth -g "path/to/gothic1" -w oldmine.zen
哥德式 1 - Freemine: REGoth -g "path/to/gothic1" -w freemine.zen
哥德式 1 - 獸人墓地: REGoth -g "path/to/gothic1" -w orcgraveyard.zen
哥德式 1 - 沉睡者神殿: REGoth -g "path/to/gothic1" -w orctempel.zen
哥德 2 - 主世界: REGoth -g "path/to/gothic2" -w newworld.zen
哥德式 2 - 礦坑谷: REGoth -g "path/to/gothic2" -w oldworld.zen
哥德式 2 - Addonworld: REGoth -g "path/to/gothic2" -w addonworld.zen
哥德式 2 - Dragonisland: REGoth -g "path/to/gothic2" -w dragonisland.zen