metaforce/README.md

108 lines
3.8 KiB
Markdown
Raw Normal View History

2016-03-04 16:08:46 -08:00
## URDE
2019-08-22 18:42:47 -07:00
**Status:** In-Game with 0-00 (v1.088) only
**Official Discord Channel:** https://discord.gg/AMBVFuf
2016-12-21 17:42:10 -08:00
2020-04-14 13:14:02 -07:00
![URDE screenshot](assets/urde-screen1.png)
2016-01-05 11:17:34 -08:00
### Download
2020-04-11 00:45:45 -07:00
Precompiled builds of the command-line extraction utility (`hecl`) with embedded dataspec libraries are available at https://releases.axiodl.com. This will give you intermediate dumps of original formats as *blender* and *yaml* representations.
2016-03-08 00:23:22 -08:00
Everything else is much too experimental to make portable/stable release builds (for now)
2016-01-05 11:17:34 -08:00
2015-09-12 14:47:31 -07:00
### Platform Support
* Windows 7+ (64-bit support only)
* macOS 10.11+
2016-03-07 23:54:44 -08:00
* Linux
2016-03-08 00:08:52 -08:00
* Arch is known to function with [`glx` vendor setup instructions](https://wiki.archlinux.org/index.php/Category:Graphics) *(main development/testing OS)*
2016-03-08 00:23:22 -08:00
* **[WIP]** Vulkan loader detection is also integrated into the cmake for Linux
2015-09-12 14:47:31 -07:00
* **[Coming Soon]** FreeBSD
2016-03-08 00:08:52 -08:00
* Much multimedia functionality is in place, but not fully tested
### Usage
2020-04-11 00:45:45 -07:00
* Extract ISO: `hecl extract [path].iso -o mp1`
* `mp1` can be substituted with the directory name of your choice
* Repackage game for URDE: `cd mp1; hecl package`
* Run URDE: `urde mp1/out`
#### URDE options (non-exhaustive)
* `-l`: Enable console logging
* `--warp [worldid] [areaid]`: Warp to a specific world/area. Example: `--warp 2 2`
* `+developer=1`: Enable developer console
2015-10-11 17:04:11 -07:00
### Build Prerequisites:
* [CMake 3.13+](https://cmake.org)
* For Windows: Install `CMake Tools` in Visual Studio
2015-10-11 17:04:11 -07:00
* [Python 3+](https://python.org)
* For Windows: [Microsoft Store](https://go.microsoft.com/fwlink?linkID=2082640)
* Verify it's added to `%PATH%` by typing `python` in `cmd`.
2016-03-11 16:50:32 -08:00
* LLVM development package *(headers and libs)*
* [Specialized Windows Package](https://axiodl.com/files/LLVM-9.0.1-win64.exe)
* [Specialized macOS Package](https://axiodl.com/files/LLVM-9.0.1-Darwin.tar.xz)
2020-04-11 00:45:45 -07:00
* **[Windows]** [Visual Studio 2019 Community](https://www.visualstudio.com/en-us/products/visual-studio-community-vs.aspx)
* Select `C++ Development` and verify the following packages are included:
* `Windows 10 SDK`
* `CMake Tools`
* `C++ Clang Compiler`
* `C++ Clang-cl`
* **[macOS]** [Xcode Tools](https://developer.apple.com/xcode/download/)
2017-11-13 19:36:36 -08:00
* **[Linux]** recent development packages of `udev`, `x11`, `xcb`, `xinput`, `glx`, `asound`
2016-03-04 20:48:14 -08:00
2016-03-12 23:13:47 -08:00
### Prep Directions
2016-03-04 20:48:14 -08:00
```sh
2020-04-11 00:45:45 -07:00
git clone --recursive https://github.com/AxioDL/urde.git
2016-03-04 20:48:14 -08:00
mkdir urde-build
2016-08-21 21:13:38 -07:00
cd urde-build
2016-03-12 23:13:47 -08:00
```
### Build Directions
2016-03-12 23:13:47 -08:00
#### ninja
2016-03-12 23:13:47 -08:00
```sh
cmake -DCMAKE_BUILD_TYPE=Debug -G Ninja ../urde
ninja
2016-03-04 20:48:14 -08:00
```
#### CMake options
- Build release optimized (better runtime performance): `-DCMAKE_BUILD_TYPE=Release`
2020-04-11 00:45:45 -07:00
- Use clang+lld (faster linking): `-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++`
- Optimize for current CPU (resulting binaries are not portable): `-DURDE_VECTOR_ISA=native`
#### CLion
2016-03-26 23:41:02 -07:00
*(main development / debugging IDE)*
2016-03-12 23:13:47 -08:00
Open the repository's `CMakeLists.txt`.
Configure CMake options via `File` > `Settings` > `Build, Execution, Deployment` > `CMake`.
It's recommended to create a new `Toolchain` with `clang`/`clang++` and configure the CMake profiles to use it.
#### Qt Creator
2016-03-12 23:19:12 -08:00
Open the repository's `CMakeLists.txt` via File > Open File or Project.
2016-03-12 23:13:47 -08:00
Configure the desired CMake targets to build in the *Projects* area of the IDE.
Build / Debug / Run on Windows, macOS and Linux in a unified way.
2016-03-12 23:13:47 -08:00
2016-03-04 20:48:14 -08:00
#### Visual Studio
Verify all required VS packages are installed from the above **Build Prerequisites** section.
Open the `urde` directory in Visual Studio (automatically imports CMake configuration).
2016-03-04 21:11:00 -08:00
Follow [these instructions to use clang-cl](https://docs.microsoft.com/en-us/cpp/build/clang-support-cmake?view=vs-2019).
The build will **not** work with the normal VS compiler!
2016-03-04 21:11:00 -08:00
#### Xcode
```sh
2016-03-12 23:13:47 -08:00
cmake -G Xcode -DCMAKE_BUILD_TYPE=Debug -DLLVM_ROOT_DIR=<path-to-llvm-dev-package> ../urde
2016-03-04 21:11:00 -08:00
```
Then open `urde.xcodeproj`