Commit Graph
191 Commits
Author SHA1 Message Date
Karrz1 ff699fb5cf Sync with WoW Forever 0.1.34: Blizzlike core
Brings forever up to date with our 0.1.34 code for the WoW Forever client 1.60.1.70862.
Blizzlike only: fixes from real game data (packet captures, live hotfixes, player caches, Wowhead and Questie data,
VMaNGOS for the vanilla world) and server fixes. No custom items or custom content; every rate and option defaults
to Blizzard's behaviour.

What is new since 2ae1313e, in short:
- Clients 70790, 70840 and 70862: message numbers, mail, guild window, charters, contact list, add-on whispers.
- Crash and exploit fixes: guild ranks, loot of emptied veins, quest lookups, taxi mask, battleground templates,
  vendor free buys, item sell price, auction house, falling out of the world, bnetserver request limit.
- Classes, talents, pets and buffs from the live game data and Blizzard's hotfixes of November.
- Quests, NPCs, spawns, trainers, loot, fishing, events, Merchant's Favor crates and writs, sealed crate turn-ins.
- Dungeon and raid scripts (Molten Core, Blackwing Lair, Zul'Gurub, Ahn'Qiraj, Shadowfang Keep, Deadmines ...).
- Pathing fixes that help pets and NPCs.
- Russian creature names, quest titles and quest texts.
- README: Blizzlike stance, branches, repack.
2026-11-09 17:27:57 +00:00
Advocaite 2ae1313e9f Support site: Breaking News box on the login and character screens
With Forever Launcher 2.5.2 the client's Breaking News download comes to this site instead of
Blizzard's: plain http on news_http_port (default 80, 0 = off), path /service/... It answers with
breaking_news.html (sent as is) or breaking_news.txt (paragraphs) next to the script; no file or an
empty one = no box. See breaking_news.html.example for what the game's SimpleHTML box renders.
Also logs failed TLS handshakes on the main port (they were dropped silently).
2026-11-08 01:19:17 +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
Advocaite 855d360ddc Classic 1.60: in-game Shop, character boost, realm transfers, Hall of Thanes dungeon
Shop (legacy BattlePay Store):
- Store window: products, groups and purchases from world.shop_* tables, shop points in
  auth (account balance + log), purchase/confirm flow, items and gold mailed, services
  (rename, customize, race/faction change), professions, level, titles, reputation
- Gold Market: premium accounts list gold for points (gold taken at listing), anonymous
  listings in the Store, fee from Classic.Shop.GoldMarketFee
- Realm transfers: Store "Realm Transfer" and the Hardcore Character Transfer token;
  player dump queued in auth.character_transfer, loaded by the target realm (every 60 s
  and at startup) with verification; rules in auth.character_transfer_rule (nobody moves
  onto hardcore, hardcore characters leave only once dead)
- Character boost: character screen boost button with account boost tokens; level 60,
  per-class green "of the X" set (suffix bonus lists), bags and Classic.Shop.BoostGold
  (default 250) by mail; CharacterServiceInfo 120 hotfixed so any spec can be picked
- GM commands: .shop reload/points/balance/boost/goldlist/goldcancel
- Character services: rename/customize/faction packets carry the surname, own name no
  longer counts as taken, Skyborne language, cache updated after commit
- Guild roster: 70291+ member has a u64 after RaceID (client assert on hardcore login)
- Support site: player shop page (points, gold market, transfers) and GM shop panel
  (products, gold market, transfer rules, accounts, settings), DB connection pool

Hall of Thanes dungeon (map 3065) from the official sniff:
- Instance: map 3065, normal 5-player; portal at the bottom of Old Ironforge (custom area
  triggers 302 in / 303 out, radius 2.5 from the sniff), graveyard 852, mmaps for 3065
  generated (4 tiles in classic_data/mmaps, the repack needs them)
- Instance script with the encounter tracker: Faldrim Anvilmar 3493, Infurnus/Magmatus 3495,
  Plunder 3494, Durgen Dirgehammer 3496 (ENCOUNTER_START/END, kill credit); doors from the
  sniff: Faldrim opens portcullises 642024/642025, Plunder opens Iron Door 645389, the
  Ancient Switch opens 645391/645392 with its instance message
- Spawns (guids 21400000+): 138 creatures, 161 gameobjects, 9 patrols, random movement,
  linked packs; outside portal, meeting stone and quest givers; 16 creature and 104
  gameobject templates, 8 equipment sets
- Quests 96393, 96394, 96395, 96403, 98423 (givers, enders, Treaty to Magni)
- Loot: Wowhead Forever drops for all 11 mob types (973 rows) merged with sniffed loot,
  boss blues one per kill, heirloom chests, sniffed gold; zone item list checked, all 235
  items already known to the client
- AI: 29 SmartAI rows for 13 creatures, boss spells and yells with sound from the sniff;
  repeat timers estimated (each boss died in 11-21 s, every spell seen once); Plunder
  Charge and the second Durgen shout are on Wowhead but were not cast, left out
2026-10-13 00:30:07 +08:00
Advocaite db49246a4c Discord bot: always relay the in-game Discord channel
Configs made before 2026-10-07 have no Discord entry in chat.channels, so /6 chat never reached Discord. New option chat.game_channel (default Discord) is relayed regardless of that list.
2026-10-09 15:46:29 +08:00
Advocaite 3f77d65e99 Classic 1.60: Battle.net friends, authenticator, social window, Discord two-way chat
Battle.net (bnetserver + worldserver tunnelled services)
- Authenticator: TOTP secret per Battle.net account, login asks for the code
  (client AUTHENTICATOR state), secured accounts get the +4 backpack slots
- BattleTag column, sent at login and in presence
- Friends v2: subscribe, invitations, accept/ignore/revoke, remove, notes;
  friends kept in auth (battlenet_friends, battlenet_friend_invitations)
- Presence v2: own and friends' presence (character, race, class, level,
  zone, faction group), status and broadcast passed through, appear offline
- Whisper v2 between friends on the same realm
- Unasked friends/block list Subscribe results and connection status as the
  official server sends them

Social window and Group Finder
- Social window side tabs: mirror vars (socialUIEnabledClient etc.), character
  name friends kept (legacyFriendSystemEnabledClient)
- Recent Allies: party, raid, trade, whisper and fought-together interactions,
  online state and zone; RolodexType hotfix gives grouping a reason text
- Group browser member roles, level and class; listing name/comment/play style
- Party invite reads the Classic target realm address instead of proposed roles

Character select and misc
- Character list as regionwide entries: money and professions in the tooltip
- Official feature flags and game rules (Classic.OfficialFeatureFlags)

Discord
- In-game Discord channel relayed both ways (.discord say, /join and /leave)
- Bot: faction counts, uptime, show/announce switches, [A]/[H] tags, LFG posts
  with roles, tidy status channel

Support site
- Account page: Battle.net account, game accounts, characters, authenticator
  setup with QR code
2026-10-07 04:39:01 +08:00
Advocaite 185934abc8 Discord bot: keep the setup error on screen for 30 s
Started by the launcher's Start all before discord_bot.json exists (a fresh
repack), the bot exited at once and its minimized window closed before the
reason could be read.
2026-10-06 08:46:49 +08:00
Advocaite 2523786aad Discord bot: server status, realm chat relay and /register
contrib/discord_bot/forever_bot.py posts realm, login, website and database
up/down changes plus a live status board, relays each realm's General / Trade /
LookingForGroup chat from its Chat.log, and creates accounts with /register
through Remote Access. README.md is the setup guide; the launcher starts and
stops it from the local server tab.
2026-10-06 08:31:28 +08:00
Advocaite ca174df038 Support site: relative cert paths, RA login from the launcher's console account (repack) 2026-10-03 07:01:27 +08:00
Advocaite 36a1675d52 Classic 1.60: in-game Help window opens our support site, armory, 2026-10-03 content fixes
Support window and website:
- CMSG_GENERATE_SSO_TOKEN (Classic 0x44013A) answered with SMSG_GENERATE_SSO_TOKEN_RESPONSE; a token is also stored when the Help
  window opens (CMSG_GM_TICKET_GET_SYSTEM_STATUS) so the site knows the account and character (auth.battlenet_sso_tokens)
- contrib/support_site: support pages (unstuck, bug reports, tickets, FAQ, staff view) and a public armory with item tooltips and
  rate limits; the launcher points the client's Help URL at it
- .armory export: items and race/class/skill/achievement names for the armory (world.armory_item, armory_name, armory_icon)
- .unstuck from the console no longer crashes on a player in combat or in flight

Other 2026-10-03 work: stealth bandits, energizing vortex, Skycutter announcements, Tauren plainsrunning, orchard bandits,
free character bank tab, trainer/vendor gossip options, auction house, taxi, gameobject level field, animation state id.
2026-10-03 06:56:11 +08:00
FlyingRatBull 33ca02d7ff Misc: Allow directories with spaces in extractor.sh (#31648)
(cherry picked from commit 607108db282a2d538ad59a67586b2b074fd9ec70)
2026-06-30 15:07:26 +02:00
Shauren 33d8ff9a19 Misc/Extractor: Update extractor.bat - vmaps are not optional anymore 2026-05-31 22:09:25 +02:00
RainbowBridgeSoftware 723c24d7ca Misc/Extractor: Minor changes to windows extractor script (#29909)
Merges stderr with stdout
The results are redirected ">" into the log file.

(cherry picked from commit d8d863ab62438085b6a31918f4dc16848c04ff63)
2026-05-31 22:08:04 +02:00
RainbowBridgeSoftware c5987914a6 Misc/Extractor: Minor changes to windows extractor script (#29902)
* Extract all with logs & some cosmetics

Added an option to output extraction results to the console and log files.
Also added a pause of 5 seconds between actions, and some cosmetic changes.

(cherry picked from commit 2ae8c0d32da8a5cb167de82e93c993a4f7145418)
2026-05-31 22:05:42 +02:00
Shauren 52cb4cf9f1 CI/Circle: Switch images from debian 12 to debian 13 2025-09-05 22:57:41 +02:00
Shauren 3f717efffa CI/Circle: Switch images from ubuntu 22.04 to debian 12 (#31002) 2025-05-26 23:10:32 +02:00
Shauren ec8360c747 Contrib/Scripts: Make check_codestyle script usable on sources checked out on windows 2023-09-22 21:11:58 +02:00
Shauren 907d9f1a79 Docker: Fixed files being missing from circleci built images 2023-05-20 13:57:57 +02:00
Shauren 68d079e4a3 Contrib: Adjust protobuf generator for latest include cleaned up output 2023-01-13 18:25:52 +01:00
Shauren 0a1b40241a Build: Update required compilers to current debian stable and VS 2022
GCC: 10
Clang: 11
MSVC: 2022
2023-01-01 00:26:53 +01:00
Aokromes d39923e4f9 Update extractor.bat 2022-10-09 21:09:02 +02:00
funjoker 678f7a4615 Docker: Update contrib Dockerfile 2022-09-14 12:18:18 +02:00
Giacomo Pozzoni 51f0294c18 Core/DBLayer: Add QueueSize() method (#26733)
* Core/DBLayer: Add QueueSize() method

Add QueueSize() method to database objects (Login, Character and World) that returns how many tasks are queued.
Include the queue size of the 3 databases in ".server debug" command

* Make the code less threadsafe

* Send data to InfluxDB

* Update grafana dashboard

(cherry picked from commit 96dc110f4a353871ac74c82ff4b1bcc4c34156f3)
2022-03-11 19:32:22 +01:00
Giacomo Pozzoni 83ca66cd40 CI/CircleCI: Switch to Ubuntu 21.04 (#26476)
(cherry picked from commit 5991dcb12b638a0ef483fddeeda3e5744012dda6)
2022-03-09 12:22:32 +01:00
Giacomo Pozzoni 72bb73b246 Push docker images to DockerHub (#26177)
* CI/CircleCI: Push docker images to DockerHub

Push docker image to DockerHub is DOCKERHUB_PUSH_IMAGES environmental variable is set to "TRUE".

* Build in Release only if pushing the images to dockerhub

* Move branch from repository name to tag name

* Update docker readme

Co-authored-by: Trond B. Krokli <[email protected]>
(cherry picked from commit 84ad438d15cffd7dca0e67d540cd41946b946bed)
2022-03-06 23:59:14 +01:00
Trond B. Krokli d67788a44d Docker/Readme: codestyle cleanup (9af6bf1 follow-up) (#25864)
* Docker/Readme: codestyle cleanup

Changes proposed:
- Simplify MD back tick usage in stand-alone horizontal strings.
- Sentence grammar improvements/adjustments (might->may etc.)
- Punctuation: Add a period dot at the end of proper sentences.
- Punctuation: Add Oxford commas for natural readability.
- Punctuation: Add colon at the end of sentence introducing command examples.
- Reduce indentation level for bullet point annotation from second level to first level.
- Spell Linux with a capital L (proper noun, from "Linus + UNIX").
- UNIX is a proper noun with all its letters in uppercase.
- Remove a stray double quote character from the start of a command.
- Replace HTML entity &#46; with its ASCII representation, a period dot.

Whitespace changes:
- add editorial blank line below H1 (page title) and H2 headings
- add editorial blank line below MD code block fences (codestyle)

* Lowercase 'pch' job name

- "PCH" -> pch

* Revert HTML entity change in README dot md

- Revert README.md to its original `README&#46;md` spelling to avoid coding issues.

* Update contrib/Docker/README.md

Co-authored-by: Trond B. Krokli <[email protected]>

Co-authored-by: Giacomo Pozzoni <[email protected]>
(cherry picked from commit 3a61fe3c31b3fc61d3b881196319ccd96d69c7e4)
2022-03-06 00:26:01 +01:00
Giacomo Pozzoni c2068bd423 CI/CircleCI: Expose binaries built on Circle CI as docker images in the Circle CI artifacts (#25832)
Co-authored-by: Shauren <[email protected]>
(cherry picked from commit 9af6bf15aa2fe836c3ebba306eaaa8971f00fac4)
2022-03-06 00:24:04 +01:00
jackpoz f32a7ed27d CI/Circle CI: Add codestyle check
Don't leave 2 blank lines, 1 is enough.

(cherry picked from commit ed975ef4c0e614addc069785f23c1b7f522f3b8e)
2022-03-05 21:13:38 +01:00
Shauren a7c56710f5 Contrib: Adjust protobuf generator to comply with codestyle checks on ci 2022-03-05 21:11:50 +01:00
Shauren a5c95bd01e Misc: support enum class in enumutils_describe.py 2022-02-05 20:55:14 +01:00
Treeston 4d62cc70d6 Scripts/Commands: Convert argument parsing of .npc commands
(And I snuck some chat command cleanup in there, more de-cluttering!)

(cherry picked from commit 88d446dadf65bf47c72d3042834281233b1174ac)
2022-02-05 00:43:55 +01:00
Treeston 03b5c17863 Common/Utilities: Move EnumUtils' implementation struct from Trinity::Impl to Trinity::Impl::EnumUtilsImpl. This avoids confusing name clashes for other implementations in sub-namespaces of Trinity::Impl.
(cherry picked from commit 91744de3162bab23d7c5a0dd65fc8b4249eb803a)
2022-02-04 00:27:12 +01:00
Peter Keresztes Schmidt 3c82863c52 Core/ChatCommands: Check whether a passed numeric enum value is valid (#25285)
(cherry picked from commit 4286e7aa02e777268b25d8a5bcc1ee87f7b16c4d)
2022-02-03 00:18:48 +01:00
jackpoz e2fb15fd22 Core/Metric: Include Creatures and Gameobjects panels in the Performance Profiling dashboard
(cherry picked from commit df8d50c06a6776312d5bd912dd6a5273a190a1e4)
2022-01-26 14:07:16 +01:00
jackpoz f220e46c50 Core/Metric: Add new metric in World::UpdateSessions()
Add new metric about how long adding sessions took

(cherry picked from commit 5cd93df9eec1d1b310916fefecc9282e02e9cf2d)
2022-01-24 13:12:21 +01:00
Giacomo Pozzoni 8350985975 Core/Metric: Log detailed metrics about each opcode handler (#25153)
* Core/Metric: Log detailed metrics about each opcode handler

* Add new panel to Performance profiling dashboard and use fill(0) instead of fill(none)

* Add new settings Metric.Threshold.* to be able to specify the minimum threshold for the specified metrics

* Update dashboard

* Change thresholds to be required to send the metrics. A TC_METRIC_DETAILED_TIMER metric with an expected threshold not configured will be ignored

* Use typedef Milliseconds

* Refresh realms on load

(cherry picked from commit 8a2c79c850199a73fd431d04f83d6aa89733060d)
2022-01-24 13:02:38 +01:00
jackpoz 7a532595da Core/Metric: Fix setting in Performance profiling dashboard
(cherry picked from commit f9972f2473ae2615a17ad340601a40f9723c02f4)
2022-01-24 12:45:04 +01:00
Giacomo Pozzoni 21e9fac8bd Core/Metric: Add new cmake option WITH_DETAILED_METRICS to enable more metrics (#25136)
* Core/Metric: Add new cmake option WITH_DETAILED_METRICS to enable more metrics

Add more detailed metrics in World::UpdateSessions().

* Attempt using C++17 features

* Fix cmake typo

Co-authored-by: NoName <[email protected]>

* Fix build with WITHOUT_METRICS

* Update Performance profiling dashboard with Update sessions panel

* Add panel to show sessions with update time above 100 ms

* Move legends on the right and add max update time diff in the legend of sessions

Co-authored-by: NoName <[email protected]>
(cherry picked from commit 36ef487a90d0d14c4da8ce7e19b5916b8b15056c)
2022-01-24 12:21:36 +01:00
Giacomo Pozzoni e8583d04f6 Core/Metric: Add more metrics about World::Update() loop (#25098)
* Core/Metric: Add more metrics about World::Update() loop

* Add new Performance profiling grafana dashboard

* Add new cmake setting WITHOUT_METRICS that disables all metrics

As new metrics are added, someone might want to disable them if unused.

* Add more metrics about World::Update() loop

* Remove old performance profiling features

Remove "server set difftime" command, "-RecordUpdateTimeDiffInterval" and "MinRecordUpdateTimeDiff" worldserver config settings and their related code.
The whole UpdateTime class could be removed too.

* Update and rename 2020_07_99_99_world.sql to 2020_07_24_00_world.sql

(cherry picked from commit 3c0ac7302f902d1811d2c215217a3d701f8b5b19)
2022-01-23 22:45:25 +01:00
Giacomo Pozzoni 8834c5c724 Core/Metric: Log Map::Update() times (#25067)
* Core/Metric: Log Map::Update() times

* Add more performant version to reduce allocations when metrics are disabled

* Linux build fix

* Add metric stopwatch version that doesnt let users forget to _END it

* Fix linux build

* Code cleanup

* Add Map updates panel to General dashboard

* Add "Recent events" panel to General dashboard

* Apply latest codestyle changes

Co-authored-by: Shauren <[email protected]>
(cherry picked from commit 5eb742ee6a892b684b0c4cbde9f02f838b8300e5)
2022-01-23 21:36:28 +01:00
Giacomo Pozzoni 07f42907c6 Log number of Creatures and GameObject per map (#24809)
* Shared/Metric: Allow to specify tags in metrics

* Core/Metric: Log number of Creatures and GameObject per map

* Apply feedback

* Codestyle changes

* Codestyle changes

* Remove whitespace

* Update Grafana dashboards to v7.0.3

* Fix missing filter on realm

* Include Creatures and Gameobjects in Maps dashboard

* Show instances with a different color

(cherry picked from commit 4e1dbd1cf808c9cf1f310b6d498f7e304dfb4147)
2022-01-06 23:15:07 +01:00
Shauren 3a2eb806f8 Misc: Made gdb crash reporting script more automation friendly
* Don't block on successful exit
* Generate timestamped filenames to avoid overwriting old logs

(cherry picked from commit 58d3f17430bb0ab64c9da157bdbc842098d96370)
2022-01-02 16:32:47 +01:00
Shauren fbedd77fe5 Misc: Improve gdb script output
* Switch disassembly to intel syntax
* Remove terminal colors
* Remove terminal line wrapping and pagination
* Start versioning the script

(cherry picked from commit 0d0d005a2e705b875bf4b13cee910521e37b45bc)
2022-01-01 20:12:36 +01:00
jackpoz d0e1794d99 CI/Circle CI: Show codestyle instructions
Show a short comment about how to fix the codestyle errors

(cherry picked from commit dcd2ffdaf4c358dbbab7915ab744871e5a7cc4ad)
2022-01-01 01:07:15 +01:00
jackpoz da25846615 CI/Circle CI: Add codestyle check
Tabs are not allowed, use 4 spaces instead

(cherry picked from commit 5f29577f63da506d8099c9a09b1565e4f5d9eeaf)
2022-01-01 01:00:44 +01:00
jackpoz 4df9ab2a3f CI/Circle CI: Add codestyle check
Whitespace at the end of lines is not allowed

(cherry picked from commit 0017c7a0829d12529aac690470bddfa6b5e6bc71)
2022-01-01 00:52:28 +01:00
jackpoz 363db46c43 CI/Circle CI: Add support to multiline regex
(cherry picked from commit 4f88be63e7551288f37e51928614cf14d99b444f)
2021-12-31 21:58:08 +01:00
jackpoz e485932c45 CI/Circle CI: Add codestyle check
ObjectGuid::GetCounter() should not be called in logs, use ObjectGuid::ToString().c_str() instead
(cherry picked from commit af1260c40e333e0d2d506128099f8263f5f2304f)
2021-12-31 21:56:38 +01:00
jackpoz 8878ba2dca CI/Circle CI: Enforce codestyle checks
(cherry picked from commit 32c9f1c7a228db33110ab0ab5975ba37cba85106)
2021-12-31 21:56:38 +01:00
Teppic1 69b2937b8c Add bash script for extracting client files (#24215)
* Add bash script for extracting client files

Simple bash script to automate extracting/copying client files on a Linux system.

It follows the instructions on the wiki but additionally copies camera files if found. It includes a few simple checks.

* Update extractor.sh

Client and server directories are now requested unless already set as environment variables.

* Fix client check

* Update contrib/extractor.sh

Clearer error

Co-Authored-By: Trond B. Krokli <[email protected]>

Co-authored-by: Trond B. Krokli <[email protected]>
(cherry picked from commit 1d78fb2cd45c43d9132019dfb4bea35cc5efc3bd)
2021-12-22 22:46:49 +01:00