Commit Graph
3 Commits
Author SHA1 Message Date
Advocaite 367827e51e Database: Forever database release forever-tdb-2026-10-14 as the base files (#55)
worldserver's auto-setup now imports TDB_full_world_forever_2026_10_14.sql
and TDB_full_hotfixes_forever_2026_10_14.sql (release forever-tdb-2026-10-14)
instead of TrinityCore's TDB 1210.26091, so a new server no longer runs the
whole retail -> Forever conversion (all TrinityCore updates, the 65 MB world
baselines and every sql/custom file) on its first start.

The release is world + hotfixes built from source at forever f2b20d1863
(TDB 1210.26091 + all sql/updates + sql/custom) on Linux, plus the
website's generated armory tables. A new setup from the two files imports
them and applies nothing (verified, every table equal to the source build).

- revision_data.h.in.cmake: the new base file names
- DBUpdater: the "file is missing" message points at our releases
- README / doc/LinuxServerSetup.md: setup with the release, and how the
  release is made
2026-10-14 11:05:05 +08:00
Advocaite f2b20d1863 DB updater: accept Windows and Linux hashes, never re-run the baselines (#54)
#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.
2026-10-14 10:01:10 +08:00
Advocaite 691c2362c7 Hosting: Linux server setup, Windows/Linux SQL hash fix, remote hosting docs (#52)
- 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
2026-10-14 00:47:23 +08:00