#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
Story and world
- Scripted Zephras story chain: Talaanis crystal scene, Valennia muster, the Ayessa spire battle (Lorthuna, Rohash, storms, rift, portal back to Valanaar), Rohashi winds launch, secluded house, injured cave druids
- Phases and quest chain fixes (Prepare for Battle, Confront Lorthuna, The Fate of Zephras), Al'Aketh hill fight, peacekeeper/Ayessa factions
- Talk-to quest objectives credit on gossip and questgiver hello
- Phase shift flags are 1 byte (client crash accepting Prepare for Battle)
- Reputation: Classic standing packet (change field), no reputation for the other side's faction
- Wisps fly (Floating), inns rested (6 missing vanilla taverns, server side inn triggers on Zephras)
- Teleports for every new Forever map
Database updater
- Applies SQL over its own multi statement connection (the mysql client silently stopped reading files)
- Reapplies every later custom file once an earlier one is reapplied
- No apostrophes in SQL comments; reapplied the fixes the sniff import had undone
Professions and items
- Skinning loot for Zephras beasts, skill-ups for herbalism, mining and skinning (no parent skill line, no content tuning)
- Vanilla chests (herbs, veins, treasure) consumed on loot (ChestFlags)
- Profession books 247840/247841/247846, gathering extras (Pristine Leather, Frilled Lichen, Pyrite, seeds)
- Companion pets: journal packet (Classic int64), creatures and models for the new Forever pets
- .legacy points command to test the Legacy trees
Combat
- Player, pet and trap spells use flat base points (Scorch), vanilla 14 AP per DPS
- Spell crits 150%, no extra spell crit against lower level targets
- Fix a handful of 1/256 bugs with most significant byte zero in BigNumber
- Get rid of (most of) the C-style arrays in authserver
- CryptoRandom as a unified source for cryptographic randomness
- Bring our other crypto APIs into 2020
- BigNumber usability improvements
- Authserver is now actually readable as a result of all of the above
(cherry picked from commit 210176fd915cf4ba16f428d3c1a249a71f4aa7a7)
Improve English text in strings and comments in UpdateFetcher.cpp
- replace incorrect text with the intended words in some output strings
- corrections in the comments to point out the intention of the code
* Current method causes issues under CentOS 6 and could possibly
lead to cutted buffer content when reading in textmode.
* Closes#16209
(cherry picked from commit ae1a5c6c2b82918850cb7b851e2f7dff33a40c57)