Commit Graph
15 Commits
Author SHA1 Message Date
Advocaite f2eaf97d39 Classic 1.60: camp features give their buffs (Camp Chair, Lodestone, Mana Well, ...)
After a minute sitting by a campfire, every camp feature within 20 yards of the fire now gives its buff (client spell data):
Camp Tent -> Boosted Rest, Camp Chair -> Boosted Critical Chance, Lodestone -> Boosted Attack Power, Mana Well -> Boosted
Mana Regeneration, Sharpening Wheel -> Extra Strength, Incense Candle -> Boosted Intellect, Faction Banner -> Boosted Spirit,
First Aid Kit -> Boosted Stamina, Fish Bowl -> Boosted Stats, Enchanted Lute -> Boosted Stats (armor, stats, resistances).

- Values scale with level in the steps the client tooltips show (e.g. Lodestone 12/20/32/49/67/90 Attack Power).
- The Boosted buffs are hidden auras; the visible buff is Camp Benefits (1229741), whose tooltip lists them (as on the official
  beta, from the sniffs).
- Sitting in a Camp Chair (612275) also starts the campfire rest (classic_go_camp_chair, sql 2026_10_02_08).
- Only Camp Chair, Lodestone and Mana Well exist in the world so far (camping trainer's camp on Zephras Isle); the other features
  need a sniff of placing them.
2026-10-02 21:44:05 +08:00
Advocaite d603dfc0ae Classic 1.60: build the world from SQL alone, no vmangos_world database needed
The vanilla world (converted from VMaNGOS db-13b49dc), Zephras Isle and every Forever change now ship as plain SQL:
sql/custom/world/2026_09_27_00_world_forever_baseline_01.sql and _02.sql (about 65 MB together). They hold the
difference between TDB 1210.26091 + TrinityCore's sql/updates and the current Forever world, and are safe to run again.

- The 9 files that read a vmangos_world database (2026_09_27_01..03, 2026_09_28_00, 2026_09_28_10..13,
  2026_09_28_16) are now empty (DO 0;). Their result is part of the baseline. They keep their names so databases
  that already applied them stay in step.
- 2026_10_01_02_world_death_recap_entries.sql can run again (it failed with "Duplicate entry '8100000'" after the
  baseline).
- 2026_10_01_07_world_zephras_graveyards.sql: .tele Zephras gets a fixed id (2314).
- README: building from source needs only the TDB files and sql/.

Verified: a fresh build from TDB + sql/updates + sql/custom on an empty MySQL without vmangos_world gives the same
world and hotfixes tables as the live development database, row for row.

Existing databases: pull and start worldserver. The first start applies the baseline and takes a few minutes; the end
state is the same. The baseline rewrites whole tables (creature, gameobject, smart_scripts, loot, ...), so changes
made to those tables by hand are replaced. vmangos_world can be dropped afterwards.

Known issue: the database updater sometimes does not apply a file
------------------------------------------------------------------
Sometimes worldserver logs ">> Applying update ..." and records the file in the `updates` table, but nothing from
the file reaches the database. It is rare and could not be reproduced on purpose. Typical symptoms afterwards:
"Table '...' doesn't exist", "Unknown column '...' in 'field list'", "Could not prepare statements of the Hotfix
database", or content that is missing in game.

Fix: with worldserver stopped, apply the file by hand. Every file in sql/custom is safe to run again. Example for the
world database (use auth, characters or hotfixes for files in those folders):

  mysql -u trinity -p -h 127.0.0.1 -P 3306 world < sql/custom/world/<file>.sql

or, to let worldserver apply it again on the next start, remove its record:

  DELETE FROM world.updates WHERE name = '<file>.sql';

A file that never ran shows a very small "speed" (ms) in the `updates` table, although a short file can also be
fast, so check the missing table, column or rows themselves.
2026-10-02 20:24:52 +08:00
Advocaite 1fae4e8313 Classic 1.60: add the Guild Finder tables file (was missing from git) 2026-10-02 17:37:28 +08:00
Advocaite ec138b4e1f Classic 1.60: re-runnable custom SQL, camp Boosted Rest, weapon enchants, sniffed unit flags
- Custom SQL safe to run twice (the updater re-runs files whose content changed): guarded column adds, Guild Finder
  tables no longer dropped
- Camping: the campfire rest gives the Boosted buff of each camp feature nearby; Boosted Rest raises rested experience to
  5% of a level (Camp Tent)
- Classic spell effect 360 (poisons, shaman imbues, Spellstone) handled as a temporary weapon enchant; imbues without an
  item target enchant the main hand weapon, duration from the spell when the enchant has none
- Sniff import: unit flags read correctly (VisibleItem layout), quest NPCs immune with their real reputation factions,
  Camp Tent not selectable
2026-10-02 17:36:48 +08:00
Advocaite b2a6c9ac86 Classic 1.60: Zephras Isle from sniffs, hunter ranged slot and ammo, quest levels, client 70170
- Sniff imports of the new zone (map 2991): creatures, spawns (corpses, summons and hurt mobs filtered), quests with chains
  from the player's turn-ins, POIs, levels, auras, vendors, trainers, gossip, quest texts, loot, page texts, hotfix records
- Creature AI from sniffed casts (Roiling Winds Wind Spike and corpse model, Al'Aketh Shock, ...), Al'Aketh factions
- Creature queries: read the batched entries of a query (names were Unknown)
- Hunters: ranged weapons in the ranged slot, ranged spell item check, ammo (CMSG_SET_AMMO, AmmoID), Blizzard's game rules
  (rule 177 enables the ammo slot), item zone flags, starting action bars
- Vanilla base stats, Classic quest levels in the quest log, quest min/max levels from quest_classic_level
- Fixes: reclaim corpse opcode, Skysight crash (ModCastingSpeedNeg 1.0), gameobject/corpse spell targets need a hit status,
  trap playerCast, Remote Access sessions closed at shutdown
- Skyborne racials, Zephras graveyards, Halaan's Gift gossip, Elemental Convergence trap, campfire Boosted Rest
- Group Finder roles/search, /who, auth for client builds 70124 and 70170
2026-10-02 12:28:59 +08:00
Advocaite abc8f4c57c Classic 1.60: Guild Finder applications, calendar events and dungeon list, Group Finder groundwork, fix create-object and death recap disconnects 2026-10-01 02:37:27 +08:00
Advocaite 220d21f1e8 Classic 1.60: death recap (deathcam replays), client build 70058
Records the last seconds around players; on death announces [Recap #n] and replays it with private actors (mirror images for players) while the viewer's camera follows the victim. Viewers on other continents are taken there and back. .recap <n> / .recap stop, Recap.* config.
2026-09-30 07:55:17 +08:00
Advocaite b7a41b6f32 Classic 1.60: ruleset realms, hardcore, surnames, vanilla graveyards
Ruleset realms (contentSetId, one worldserver per ruleset), ruleset switch fix, hardcore permanent death, surnames, Undead Paladin and new class combos, vanilla graveyards.
2026-09-30 04:20:13 +08:00
Advocaite 9bf9ec9c86 Classic 1.60: professions, Legacy system, rulesets data, create-account, elevator PathProgress 2026-09-30 02:45:37 +08:00
Advocaite 7f7c0ce6f1 Classic 1.60: from-source DB sync files, README build guide, --create-account, elevator PathProgress fix 2026-09-29 16:38:50 +08:00
Advocaite cc4f97708a Classic 1.60: talents, talent reset, trainer prices, dual spec 2026-09-28 23:03:53 +08:00
Advocaite d3a1cbb8db Classic 1.60: add custom SQL, realm 70 auth update, remove debug logging 2026-09-28 21:18:54 +08:00
Advocaite 0e8e6034b1 first push
pushing first release
2026-09-28 18:47:27 +08:00
Advocaite cd640c7067 Classic 1.60.1.70009 (WoW Classic beta) client support
- Bnet/login flow for the Classic client (super districts, last char played, sub-region 70-1-70)
- Classic opcode translation (server + client tables), blocked/changed messages
- Classic packet layouts: char enum/create/name check, feature status, trainer list,
  creature/quest query responses, action buttons, loot
- Update fields: Classic create layouts and changes-mask remaps for Unit/Player/ActivePlayer data
- Skyborne races (95/96), fixed vanilla creature levels, height lookup for recorded spawns
- Custom SQL: auth realm, hotfix layouts, Skyborne, Northshire (VMaNGOS), trainers, vendors, Zephras Isle
2026-09-28 05:23:04 +08:00
Naios 352012e531 Core/Updates: Add an automatic database update system. Automatically detects new and edited sql updates through file lists and hashing. Detects renames, deletes and is able to create and auto import full databases. * cleanups in main.cpp of world & bnetserver * refactoring in DatabaseWorkerPool.h & MySQLConnection.cpp
Make sure you re-run cmake, because boost::iostreams was added as dependency.
Maybe you need to install libboost-iostreams1.55-dev on unix as well.

Import every update manual until (included) those INSERT IGNORE updates for each database.

Thanks DDuarte and Shauren for your amazing ideas, help and advises.

In hope that nobody gets a "Your database structure is not up to date..." anymore ,-)

Signed-off-by: Naios <[email protected]>
Signed-off-by: Nayd <[email protected]>
2015-03-21 14:09:38 +00:00