Files
Claude bff37f399f DMorph 2.0.0: weapon glows and real skin, face and hair (DmorphHelper)
VanillaHelpers can't change a weapon's enchant glow or your own skin,
face and hair, so DMorph now ships a small optional DLL for that.

- helper/DmorphHelper.dll (C, MinGW, MinHook): adds DmorphHelper_Get/
  SetItemEnchants and DmorphHelper_Get/SetLook. It uses VanillaHelpers'
  own game addresses and only switches on when it finds VanillaHelpers'
  hooks at two of them; otherwise it does nothing.
- tools/install_helper.ps1 puts it in the game folder and dlls.txt
  (after VanillaHelpers.dll, with a backup); -Remove takes it out.
- tools/build_options.ps1 (run by update_from_game.ps1) reads every
  enchant glow and every skin colour, face, hair style, hair colour and
  facial hair from the game's own tables into Data/Glows.lua and
  Data/CharOptions.lua, checking the columns and the files first.
- New Glows tab: pick main hand, off hand or ranged, search, click a
  glow; No glow / My own glow. Also .glow (.enchant).
- Races: with the helper, the first five rows change your model's real
  skin, face and hair one at a time, with your gear showing. A row whose
  value doesn't go with another moves that one to the closest value and
  says so. Each race keeps its own picked look; NPC looks stay as a row.
- Picked glows and looks are put back within a second after the server
  resends the real ones, survive /reload, and are saved in outfits.
- Tests: a fake DmorphHelper and the fake game's tables (344 checks).

Not tried in game yet: the helper has only been built and checked here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017nTJ1LNa66vwpT5UiEtvM8
2026-10-11 08:52:15 +00:00

14 lines
639 B
Bash

#!/bin/sh
# Builds helper/DmorphHelper.dll (32-bit, like WoW 1.12) with MinGW-w64:
# sudo apt-get install gcc-mingw-w64-i686 (Debian/Ubuntu)
# sh helper/build.sh
# MinHook (helper/minhook, BSD 2-clause) is compiled in; the DLL only needs
# KERNEL32.dll and msvcrt.dll, which every Windows has.
set -e
cd "$(dirname "$0")"
i686-w64-mingw32-gcc -std=c11 -O2 -s -shared -Wall -Wextra -Wno-cast-function-type -Wno-unused-parameter \
-Iminhook/include -o DmorphHelper.dll \
DmorphHelper.c minhook/src/buffer.c minhook/src/hook.c minhook/src/trampoline.c minhook/src/hde/hde32.c \
-static-libgcc
echo "built $(pwd)/DmorphHelper.dll"