Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

 
 

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CrystalOTC

A game client for the CrystalOTC server (protocol 15.30). The src base was taken from Kokekanon's fork of OTClient - Redemption (OTCR) and extended with a set of in-house features:

  • Custom Vulkan renderer - atlas-batched sprite pipeline: one 2D-array atlas, content-hash deduplication, chunked storage for oversized textures, and a MAILBOX-first presentation mode (uncapped FPS without tearing). The client can start in pure-Vulkan mode without ever creating an OpenGL context.
  • Memory-optimized asset lifecycle - lazy module UI construction, batched GL texture deletion, pixel-copy garbage collection with disk reload on first draw, heap trimming after the appearances parse, and live memory diagnostics ([mem] / [boot] / [gc] log lines).
  • Protocol 15.30 support with protobuf appearances and per-version asset directories (data/things/1530/).
  • RmlUi (HTML/CSS) interfaces - .rml + .rcss documents drawn inside OTUI widgets, with Lua data binding and game sprites as images. Works on the OpenGL and ANGLE builds; see docs/RMLUI.md.

Game assets (data/things)

The client assets (sprites/appearances) are not part of this repository - data/things/ is gitignored because of its size. Download the content here:

data/things - Google Drive

Extract it into data/things/ so you end up with:

  • data/things/1530/ - protocol 15.30 assets (protobuf appearances, catalog-content.json, sprite sheets) plus the satellite/ tiles used by the Cyclopedia Map in Surface View.
  • data/things/1530_mapview/ - a second tile set for the Cyclopedia Map's "Map View" toggle (classic minimap palette with building outlines, generated by tools/build_mapview_tiles.py). Both folders are required.

Sounds

data/sounds/catalog-sound.json points at sounds-<hash>.dat, the sound index of the same client version. That file is not in the repository (the *.dat rule of .gitignore keeps it out), so on a fresh clone the client logs Failed to load soundbank and plays no sound effects. Copy it from the client the assets come from into data/sounds/.

Building (Windows)

Requirements: Visual Studio 2022 (v143 toolset), vcpkg with VCPKG_ROOT set. Dependencies are restored automatically from vcpkg.json.

msbuild vc18\otclient.vcxproj /p:Configuration=DirectX /p:Platform=x64

The executable is produced as CrystalOTC.exe in the repository root. One build contains every renderer. Choose it in-game under Options -> Graphics (Graphics engine) or in config.ini, section [graphics]:

renderBackend Renderer
auto (default) DirectX 11, OpenGL if DirectX 11 fails
d3d11 DirectX 11 (ANGLE on Direct3D 11)
opengl OpenGL (ANGLE on the desktop OpenGL driver)
vulkan Vulkan, experimental own renderer; falls back to auto

The old value gl is read as auto. The change takes effect after a client restart, and the log shows [graphics] render backend requested=... active=....

Building (Linux / Docker / Android)

The upstream CMake build is preserved - see CMakeLists.txt, Dockerfile and the scripts in the repository root. The Vulkan renderer is currently Windows-only; other platforms use the OpenGL path.

Credits and license

CrystalOTC is a derivative of OTClient - Redemption by mehah and contributors (the src base came from Kokekanon's OTCR fork), which itself descends from OTClient by edubart and contributors.

Licensed under the MIT License - see LICENSE.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages