#52 hashed SQL files with CRLF turned into LF, which fixed Windows-made
databases on Linux but broke databases built on Linux the same way: they
stored the raw hash, so the world baselines looked changed and baseline_01
was re-run. Its first 135 statements reset creature, gameobject, the loot
tables, npc_vendor, creature_trainer, pools and more to the baseline rows,
then player_classlevelstats failed (8 values, the table has 9 columns now)
and the server stopped on every start.
- Either hash (CRLF->LF or raw bytes) means "already applied": the file is
only re-hashed to the CRLF->LF hash, never run. Renames are matched on
both hashes. Works for Windows-made, Linux-made and moved databases.
- The world baselines are never applied again: they are a dump of the
world at their place in the update order and are not safe to re-run on
a finished database. A changed baseline is logged as an error and
re-hashed; the "earlier custom file was applied again" cascade skips
them too.
Tested on Linux with worldserver -u: raw (Linux) hashes stored -> re-hash
only; changed baseline -> error + re-hash, not run; changed custom file ->
re-applied; table checksums unchanged throughout.
A Linux world database already damaged by #52 is best rebuilt (it holds
no player data): DROP DATABASE world and let worldserver set it up again.
- DB updater: SQL files are hashed with CRLF turned into LF on every
platform. Text mode did that only on Windows, so files with CRLF bytes
in their git copy (the world baselines: line breaks inside text strings)
hashed differently on Linux, and a database made on Windows (dev, repack,
release dump) re-ran the 65 MB baseline there and failed halfway. The
hash is the one Windows has always stored, so no existing database sees
a change. No SQL file contains 0x1A, so text mode's Ctrl+Z stop never
applied either.
- contrib/linux/configure_server.sh: writes bnetserver.conf and
worldserver.conf for a public server from the .dist files (bind 0.0.0.0,
Classic client keys incl. Network.EnterEncryptedModeRegionGroup, which
the .dist lacks, DB warnings to file only)
- doc/LinuxServerSetup.md: setup of a clean Ubuntu 24.04 server (4 GB
droplet, 48 min build, no GCC errors), tested by logging in from a home
PC, with every problem found on the way
- README: "Hosting for other players" checklist (BindIP, realm address,
hosts entry on the server too, per-player CA trust, ports), the repack's
host-for-others.bat, and the dead ServerGuide.md link replaced