Skip to content

Sonereign/l2mapconv-public

 
 

Repository files navigation

l2mapconv

Lineage II geodata builder.

  • Supported clients: C1, HF.
  • Supported geodata formats: L2J.

Features

  • Map and geodata preview.
  • L2J geodata building.

Usage

l2mapconv.exe --preview/build --client-root <path> -- [maps...]

    --preview          Preview maps
    --build            Build maps (see results in the `output` directory)
    --client-root arg  Path to the Lineage II client
    --log-level arg    Log level (0 - none, 1 - fatal, 2 - error, 3 -
                       warn, 4 - info, 5 - debug, 6 - all) (default: 3)
    --help             Print help

Use --log-level 4 option to print building progress.

Project building

Requirements:

  • Clang/GCC
  • CMake
  • Ninja or other build system
  • Git to apply the Recast patch

Windows

git clone --recurse-submodules -j8 [email protected]:madyanov/l2mapconv-public.git
cd l2mapconv-public
cmake -S . -B build -G Ninja -D CMAKE_BUILD_TYPE=Release -D CMAKE_C_COMPILER="C:/Program Files/LLVM/bin/clang.exe" -D CMAKE_CXX_COMPILER="C:/Program Files/LLVM/bin/clang++.exe"
cmake --build build --parallel

macOS/Linux

git clone --recurse-submodules -j8 [email protected]:madyanov/l2mapconv-public.git
cd l2mapconv-public
CC=clang CXX=clang++ cmake -S . -B build -G Ninja -D CMAKE_BUILD_TYPE=Release
cmake --build build --parallel

CMake Options

  • L2MAPCONV_GEODATA_POST_PROCESSING — enable geodata compression and cell alignment. Disable to see actual cell positions during development.
  • L2MAPCONV_LOAD_TERRAIN — disable for faster geodata building during development.
  • L2MAPCONV_LOAD_TEXTURES — loads textures for some static meshes and BSPs in the preview mode. Very unstable.

Dependencies

Credits

About

Lineage II geodata builder

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 95.4%
  • CMake 2.6%
  • GLSL 1.1%
  • Other 0.9%