43 lines
2.2 KiB
Markdown
43 lines
2.2 KiB
Markdown
# Rusty Path of Building
|
|
|
|
Rusty Path of Building is a cross-platform runtime environment for [Path of Building](https://github.com/PathOfBuildingCommunity/PathOfBuilding) and [Path of Building 2](https://github.com/PathOfBuildingCommunity/PathOfBuilding-PoE2). Like [SimpleGraphic](https://github.com/PathOfBuildingCommunity/PathOfBuilding-SimpleGraphic), PoB's official runtime environment, it implements the API functions required by PoB's Lua code, handles window management and input, and renders the UI.
|
|
|
|
The primary goal of this project is to provide native Linux support for Path of Building. It is written in Rust with cross-platform compatibility in mind and also runs on Windows, though testing there has been minimal.
|
|
|
|
## Usage
|
|
|
|
```bash
|
|
rusty-path-of-building [poe1|poe2]
|
|
```
|
|
|
|
## Installation
|
|
|
|
[](https://repology.org/project/rusty-path-of-building/versions)
|
|
|
|
### Flathub
|
|
|
|
[](https://flathub.org/en/apps/community.pathofbuilding.PathOfBuilding)
|
|
|
|
### Building from source
|
|
|
|
`LuaJIT` needs to be installed on your system for the `mlua` crate to compile.
|
|
|
|
```bash
|
|
cargo build --release
|
|
```
|
|
|
|
## Runtime Dependencies
|
|
|
|
Path of Building's Lua code requires the following C libraries:
|
|
|
|
- [Lua-cURLv3](https://github.com/Lua-cURL/Lua-cURLv3)
|
|
- [luautf8](https://github.com/starwing/luautf8)
|
|
- [luasocket](https://github.com/lunarmodules/luasocket)
|
|
- `lzip` - The source is included in this repo under `lua/libs/lzip` and requires [zlib](https://www.zlib.net/) to compile. Build it with `make LUA_IMPL=luajit`.
|
|
|
|
Please refer to the [Lua documentation](https://www.lua.org/manual/5.1/manual.html#pdf-package.cpath) to see how it locates libraries.
|
|
|
|
## Known Issues
|
|
|
|
- If automatic updates fail, navigate to `~/.local/share/RustyPathOfBuilding{1,2}/` and delete both the `rpob.version` file and the `Update` directory. This will force a complete re-download of PoB's latest assets and Lua code on the next startup. (Note: Third-party backends, like this project, face challenges supporting PoB's update mechanism. To make it work, fragile workarounds had to be implemented that can break unexpectedly)
|