Commit Graph
47012 Commits
Author SHA1 Message Date
Karrz1 69f6f6249c Bots: hired bots (sellsword brokers) in the bot module, as their own part (Hire/)
Ubuntu x64 / build (clang-17, clang++-17, <nil>, 1) (push) Waiting to run
Ubuntu x64 / build (clang-17, clang++-17, ccache, 0) (push) Waiting to run
Ubuntu x64 / build (gcc-13, g++-13, <nil>, 1) (push) Waiting to run
macOS arm64 / build (push) Waiting to run
Windows x64 / build (push) Waiting to run
The hire brokers were in the world database without their code, so for a server built from this source the
Sellsword Captains, Veteran Recruiters and Black Market Brokers did nothing. Here is the code, as it runs in the
WoW Forever Bots repack, built so it can be left out or replaced:

- Hire/: the brokers' gossip (npc_fb_hire_broker), the contracts (HireMgr), the rules (HirePolicy.h: prices,
  grades, upkeep, who must hire) and HireModule.cpp, which registers them. Hire/README.md explains the grades,
  the Playerbot.Hire.* settings, the commands and how another hire module plugs in.
- HireHooks.h/.cpp and HireTypes.h: the one door between the bot module and hired bots. `.bot add`, `.bot call`,
  `.bot delete`, the Group Finder, companion upkeep, gear and the add-on ask Fleet::Hiring(); without a hire
  module the answer is "no hired bots" and companions are free as before.
- CMake option PLAYERBOT_V2_HIRE (default on). Off: `.bot hire` and the brokers say there are no hired bots.
- `.bot hire [on|off]`, the ForeverBots add-on's hired-bots-only view (ForeverBots_Hire.lua, /fb hire), the
  Playerbot.Hire.* settings in playerbot.conf.dist (Mode 0 = off by default).
- SQL: the 39 brokers and their gossip menu (world, same files as the repack), the contracts table
  (sql/playerbot_v2/0037_hired_bots.sql, applied by the module at start).
- tests/game/ClassicHirePolicy.cpp pins the rules.
2026-11-24 11:30:11 +00:00
Karrz1 0e233adfd9 PlayerbotV2: migration 0063 column comments without a semicolon
Ubuntu x64 / build (clang-17, clang++-17, <nil>, 1) (push) Canceled after 0s
Ubuntu x64 / build (clang-17, clang++-17, ccache, 0) (push) Canceled after 0s
Ubuntu x64 / build (gcc-13, g++-13, <nil>, 1) (push) Canceled after 0s
macOS arm64 / build (push) Canceled after 0s
Windows x64 / build (push) Canceled after 0s
The migration runner splits statements on every ';' outside a whole-line comment, so the 'ChrRaces id; 0 = any race' column comments cut the first CREATE TABLE in two and MySQL error 1064 stopped the worldserver at start (PR #394).
2026-11-24 11:11:13 +00:00
Karrz1 fb929dccd5 Merge PR 397: bot channel posts name the mobs actually nearby
Ubuntu x64 / build (clang-17, clang++-17, <nil>, 1) (push) Canceled after 0s
Ubuntu x64 / build (clang-17, clang++-17, ccache, 0) (push) Canceled after 0s
Ubuntu x64 / build (gcc-13, g++-13, <nil>, 1) (push) Canceled after 0s
macOS arm64 / build (push) Canceled after 0s
Windows x64 / build (push) Canceled after 0s
Brings in Zapgun's local fauna line for bot channel posts (PR #397).
2026-11-24 00:51:23 +00:00
Karrz1 34b29ca490 Merge PR 394: race/sex RPG first names and surnames for bot characters
Brings in Zapgun's RPG names for bots, with the migrations as 0063/0064 (PR #394).
2026-11-24 00:51:19 +00:00
Karrz1 4345001212 PlayerbotV2: rpg names migrations as 0063/0064
Bot migrations are numbered in one sequence and 0062 is the last one in use, so 9001/9002 become 0063/0064 (file names, headers and schema_version rows). The conf and the missing-tables warning now point at those migrations instead of a local sql-changes folder.
2026-11-23 23:18:32 +00:00
Zapgun b157c7f919 PlayerbotV2: ground bot channel posts in the mobs actually nearby
Adds LocalFauna(): resolves the bot snapshot's nearby enemies through
their creature templates and returns the distinct creature names it
can see (players and critters skipped, capped at 160 chars).

The channel-post detail now ends with "The creatures around you
here: <names>." so the model's "dry joke about the mobs here" speaks
of real ones — without this it joked about creatures its zone does
not have, the same failure VanillaLevelPlaces fixed for zone names.
2026-11-23 22:17:28 +00:00
Zapgun 1f86c6ef66 PlayerbotV2: race/sex RPG first names + reusable surnames for bot chars
BotNamePool gains three first-name tiers: curated per-race/sex names from
the new playerbots_race_names table (consumed on spawn, released on bot
delete, orphans reclaimed by ReconcileOnBoot), then the generic
playerbots_names pool, then the existing syllable fallback. CharacterCache
collision checks self-heal taken rows.

BotComposition Pick carries a surname; name hints with a space split into
first name + surname (a hinted surname is never re-rolled).
BotCharacterFactory writes characters.surname in the same transaction as
the INSERT and mirrors it into the character cache, capped at 48 UTF-8
chars like the player path.

Surnames come from playerbots_surnames (whole names) or
playerbots_surname_parts (prefix/suffix compounds that reject degenerate
pairs), chosen by Playerbot.Names.SurnameCompoundChance; whole vs compound
is gated by Playerbot.Names.Surnames.

SQL: 9001 creates the three tables on the shared db (plain `race` column
so Skyborne ids 95/96 fit); 9002 seeds 995 first names, 404 surnames and
551 parts for all races incl. Skyborne. The 9000-series keeps the
community migrations clear of upstream numbering.

Also adds ".playerbot selftest botnames <race> <sex> [n]" to sample the
pool without spawning, and guards "selftest namegen" with IsValidRace /
IsValidGender before calling GetNameGenEntry (sex 3 crashed the client).
2026-11-23 22:13:07 +00:00
Karrz1 7509ecbfcc 0.1.39.1: put back the dungeon door, lever and event scripts
Ubuntu x64 / build (clang-17, clang++-17, <nil>, 1) (push) Canceled after 0s
Ubuntu x64 / build (clang-17, clang++-17, ccache, 0) (push) Canceled after 0s
Ubuntu x64 / build (gcc-13, g++-13, <nil>, 1) (push) Canceled after 0s
macOS arm64 / build (push) Canceled after 0s
Windows x64 / build (push) Canceled after 0s
2026_11_05_99 (the 11-05 Forever quest restore) deleted the rows of the
classic script files that write through a world. prefix, so every install
since 0.1.30 lost them: Blackrock Depths, Scarlet Monastery, Deadmines,
Shadowfang Keep and Scholomance doors and levers (the Shadowforge Lock no
longer turns the big door), the Emberseer doors, the UBRS, Scholomance and
Uldaman event scripts and the EventAI of 60 creatures including Rajaxx.

2026_11_11_29: a server's own .tele entries on ids 2342-2399 move to free
ids, so the Forever dungeon files no longer stop the worldserver with
"Duplicate entry '2356' for key 'game_tele.PRIMARY'".
2026_11_22_47: the gameobject door lists set the door state (they never
moved a door that sat in its spawn state).
2026_11_22_48: puts back the 353 smart_scripts rows, the lever AINames, the
Stratholme service entrance script, Rajaxx's AIName and quest 5525's
SmartQuest.

SQL only, no code change.
2026-11-22 14:48:49 +00:00
Karrz1 ad481fc75a README: built on TrinityCore, links point to ForeverCore 2026-11-22 01:58:19 +00:00
Karrz1 b441bf74e0 0.1.39: bots and core since 0.1.38 (Naxxramas fights, hunter companions get their pet, dungeon runs, bug fixes) 2026-11-21 17:45:23 +00:00
Karrz1 3dbefce057 Merge forever into forever-bots: core hooks, kick request getter, new client build docs 2026-11-20 08:12:29 +00:00
Karrz1 d02645dd21 Merge pull request #374 from Karrz1/hook-after-reload
Scripts: hook after a .reload command
2026-11-20 07:56:06 +00:00
Karrz1 0c7c82fee3 Merge pull request #373 from Karrz1/hook-world-thread-check
World: check for code running on the world thread
2026-11-20 07:55:59 +00:00
Karrz1 f04796f52d Merge pull request #372 from Karrz1/hook-instance-boss-states
Instances: public list of a map's boss states
2026-11-20 07:55:52 +00:00
Karrz1 d6bc65272c Merge pull request #370 from pjerra/core/kick-requested-getter
WorldSession: add IsKickRequested() for sessionless bot sessions
2026-11-20 07:28:35 +00:00
Karrz1 864dd9f1b7 Merge pull request #369 from pjerra/doc/new-client-build
Docs: how to add a new client build (70959 as the worked example)
2026-11-20 07:27:58 +00:00
pjerra 6e2cc26478 WorldSession: make forceExit a std::atomic<bool>
KickPlayer stores it from map-update, world, ban and GM-command paths while
UpdateSessions and IsKickRequested read it, so a plain bool is a data race.
Every access now uses std::memory_order_relaxed explicitly.
2026-11-20 02:37:14 +01:00
pjerra 1d62511b75 WorldSession: add IsKickRequested() for sessionless callers 2026-11-20 00:39:03 +01:00
Karrz1 a66b6b80ef NOTICE: our bot module work is GPL-2.0-or-later; list agatho and ike3 parts 2026-11-19 22:12:00 +00:00
Karrz1 2eced52e48 Scripts: hook after a .reload command
OnConfigLoad(true) fires part way through a config reload and nothing
fires after a table reload, so a module (bots) keeps stale copies of
config values or reloaded tables until restart. WorldScript::OnAfterReload
now runs once a .reload command (in game, console or remote) finished
without error, with the full command path such as "reload config" or
"reload creature_template". Nothing listens to it in the core, so no
behaviour change.
2026-11-19 22:11:58 +00:00
Karrz1 e871b44915 World: check for code running on the world thread
Modules that start their own work (bots) need to know whether they may
touch world-thread-only state now or must queue it for the next world
tick. The world thread id is recorded at startup and on each world tick
and compared against the caller. No behaviour change.
2026-11-19 22:11:57 +00:00
Karrz1 062057117e Instances: public list of a map's boss states
GetBossState(id) needs the caller to already know every boss id. Code
outside the instance script (bot modules planning a run) wants all of
them at once, in boss id order. Read only copy of existing data, no
behaviour change.
2026-11-19 22:11:57 +00:00
pjerra 9b83ba57dc Docs: how to add a new client build, with 70959 as the worked example 2026-11-19 22:57:58 +01:00
Karrz1 25fc7ca3a6 0.1.38: core fixes since 0.1.37.6 (spells, talents, auction house prices, Scourge Invasion, world data, client 70959 hotfixes) 2026-11-18 21:11:41 +00:00
Karrz1 8e679df0e1 0.1.38: bots and core since 0.1.37.6 (Naxxramas: Patchwerk, Grobbulus, Gothik, Maexxna, Sapphiron; raid healers and tanks; bug fixes) 2026-11-18 21:11:41 +00:00
Karrz1 55abf2778d Skinning loot for ten starting-zone beasts (contributed by Jay Oliver, PR #349) 2026-11-18 17:28:58 +00:00
Karrz1 af09b9af9b Skinning loot for ten starting-zone beasts (contributed by Jay Oliver, PR #349) 2026-11-18 17:28:58 +00:00
bozmund 882ea2c1be Handle right-click cosmetic appearance unlocks 2026-11-18 17:28:58 +00:00
Karrz1 f4e2da674b Merge PR #348 from bozmund: right-click cosmetic appearance unlocks 2026-11-18 17:28:57 +00:00
Karrz1 4d331615c3 Hotfixes: Blizzard's live pushes of client 70959
The item, spell and quest rows Blizzard pushed with client 1.60.1.70959
(hotfix ids 2100000-2100999), as shipped in WoW Forever 0.1.37.6.
2026-11-18 13:21:37 +00:00
Karrz1 c03419870f Hotfixes: Blizzard's live pushes of client 70959
The item, spell and quest rows Blizzard pushed with client 1.60.1.70959
(hotfix ids 2100000-2100999), as shipped in WoW Forever 0.1.37.6.
2026-11-18 13:21:37 +00:00
Karrz1 8787ad720a Accept client 1.60.1.70959: auth build_info row
Blizzard's Battle.net update of 17 November (client 1.60.1.70959). The realm stays on
gamebuild 70707; this row lets bnetserver and worldserver accept the new client
next to the older builds.
2026-11-18 13:19:45 +00:00
Karrz1 c6cc5d65dd Accept client 1.60.1.70959: auth build_info row
Blizzard's Battle.net update of 17 November (client 1.60.1.70959). The realm stays on
gamebuild 70707; this row lets bnetserver and worldserver accept the new client
next to the older builds.
2026-11-18 13:19:45 +00:00
bozmund e1334a0587 Handle right-click cosmetic appearance unlocks 2026-11-18 10:48:22 +01:00
Karrz1 9e7e4694f5 Bots: SIN's trade fix in the public tree too (the old .bot trade command row goes, the trade frames stay allowed) 2026-11-16 22:18:38 +00:00
Karrz1 db8b0d73e8 ForeverBots: the Combat nameplates entry in the minimap menu 2026-11-16 22:17:54 +00:00
Karrz1 234aaf60bb Forever Combat Nameplates: the realm's answer counts whatever shape the sender's realm part has (Name-Realm or Name Realm) 2026-11-16 22:04:37 +00:00
Karrz1 6517af05aa SIN's fixes: clean the rows of our replaced 0.1.37 files before his SQL runs (updated installs) 2026-11-16 21:57:23 +00:00
Karrz1 9d64732bd9 Client data extraction: automatic worker count (cores - 2, at most one per 2.5 GB RAM), below normal priority, tile progress for mmaps, exit 0 at the end (GitHub #13) 2026-11-16 21:37:06 +00:00
Karrz1 4d5a9f00db ForeverBots: say "the bot window opens when combat ends" once per fight
hf-01372 (Karrz): pressing the window key or the minimap button again
and again in a fight printed the line eight times. The wait is now said
once per fight for each wish (open or close), like the tab wait already
was; the flag clears when combat ends. Opening and closing work as
before.
2026-11-16 21:18:24 +00:00
Karrz1 f477d6cd81 Config: pathfinding and Hardcore keys read once at start, no console flood
A worldserver.conf from before 0.1.37 has no Pathfinding.PetLiquidCost,
and the pet path filter read it with sConfigMgr on every path of every
player's pet, so each read printed "Missing name ... in config file"
and the console filled with it (0.1.37.1). The other pathfinding keys
(PreferRoads, RoadCost, RoadCostMounted, SlopeCoefficient) were read
the same way on every path of every unit, and Classic.Hardcore on every
resurrection, and Classic.Hardcore was not in worldserver.conf.dist at
all.

All six are World config values now: read once at start (and on
.reload config, except Classic.Hardcore), with at most one warning
each, and the hot paths read the stored value. Classic.Hardcore gets
its entry in worldserver.conf.dist.
2026-11-16 20:59:51 +00:00
Karrz1 1fd207f31a Westfall: Testing the Wells kit works at the real wells, map markers for Alba's quests
Replaces 0151 for 0.1.37.2, on top of the existing Testing the Wells
script (one version only). The wells move to the quest data points
through the Westfall map fit on 44 spawns (the first version fitted on
two NPCs and its Jansen Stead well was 35 yards off, outside its 25
yard reach); the reach is 35 yards. A player who already has that
farm's sample gets no second one and no error. Testing the Wells and
Murloc Gills get their quest map areas (new world SQL _16_16; the
spell script name and the caster target stay as they are).
2026-11-16 20:58:52 +00:00
Karrz1 cfb785f621 SQL comments: Karrz, not a first name 2026-11-16 20:52:59 +00:00
Karrz1 7474e32921 Quests: SIN's Banner of the Fallen quest rows
SIN's Banner of the Fallen rows from his Quest and World Fixes for
0.1.36, unchanged. The quest already exists on our data, so his quest,
addon, level, giver and ender inserts change nothing; his kill objective
99086585 (Headsplitter) is added.

Code by SIN (1amcoff1n). His statements unchanged.
2026-11-16 20:52:49 +00:00
Karrz1 b845b6b48b Quests: SIN's Rethban Caverns objective delete
The extra catch-all exploration objective of quest 1699 goes, as SIN
wrote it in his Quest and World Fixes for 0.1.36 (quest 1699 already
completes from area trigger 482).

Code by SIN (1amcoff1n). His statement unchanged.
2026-11-16 20:52:49 +00:00
Karrz1 ceeed3aec4 Teldrassil: SIN's Lynessa Duskblossom spawn fix
chris picked SIN's version. Her three-spot pool comes back as it was in
0.1.35 (our 0.1.36 file had deleted two spots, moved the third into the
den and dropped the pool), then SIN's apply.sql runs unchanged and moves
spot 27574402 onto the floor he picked in game.

Code by SIN (1amcoff1n), Ban'ethil Barrow Den spawn fix for 0.1.35.
2026-11-16 20:52:49 +00:00
Karrz1 76c955c1c9 SQL comment: Karrz, not a first name 2026-11-16 20:48:31 +00:00
Karrz1 72a4681929 Bots: quest items from personal-loot chests count as chest sources
Most quest chests of the current client give their item as personal
loot (chest data 30). The objective locator only read the legacy loot
id, so bots never found those chests for item objectives.
2026-11-16 20:48:21 +00:00
Karrz1 9cb71c6f9e Russian text for Forever NPC lines and gossip (GitHub #12)
A Russian client saw Tirisfal NPCs speak English ("Get away from me,
monster!", the paladin trainer's greeting, the Scarlet Convert's "No! No,
no, no!"). The Forever broadcast texts from the beta sniffs had no ruRU
row, and many creature lines and gossip options carry no broadcast text
and had no ruRU locale row either.

Fill the gaps from the Azeroth project (Sakhwoow/WoWForever, GPL-2,
branch forever 637626e): their ruRU sniffs and translations, taken only
where their English matches ours word for word and we had no Russian.
337 broadcast texts, 1214 creature lines, 717 gossip options. Gaps only,
safe to run again.
2026-11-16 20:48:21 +00:00
Karrz1 1207bfcca8 Stonetalon: Gerenzo's Orders attackers come in waves, not standing ready
Seven base-data spawns stood stacked on the spot the event's waves come
from, so the attackers were there before the quest was taken. The
event script summons the waves itself; VMaNGOS has no spawns there.
2026-11-16 20:48:21 +00:00