0.3.0 • Published 9 years ago
ocmapgen-client v0.3.0
ocmapgen
Rust bindings for the OpenClonk dynamic map generator based on mape.

Compiling
In addition to the tools required to build OpenClonk, get Rust via rustup. From OpenClonk's dependencies, only the zlib library and glew headers are necessary.
Run (on Linux, but may work similarly on Windows as well I guess):
git clone --recursive https://github.com/lluchs/ocmapgen
cd ocmapgen/ocmapgen-bin
cargo build --releaseThe binary can then be copied from target/release/ocmapgen.
To cross-compile to Windows from Arch Linux, I installed mingw-w64-{gcc,cmake,zlib,glew} and run:
CMAKE_TOOLCHAIN_FILE=/usr/share/mingw/toolchain-x86_64-w64-mingw32.cmake cargo build --release --target x86_64-pc-windows-gnuCommand-Line Usage
Put ocmapgen into the OC game file directory (“planet”), then run
./ocmapgen Map.c Map.pngSelect output image size with --width and --height.
0.3.0
9 years ago