Commit graph

857 commits

Author SHA1 Message Date
Sarjuuk
725686d1cd Setup/Help
* be more clear that connecting to auth and characters db is conditional
 * updated some lost references to renamed databases and config options
2026-04-08 15:47:17 +02:00
Sarjuuk
681d29e5f3 Search/Indexing
* add reversed words and update token processing to allow
   fulltext search to match end of word (e.g. searching 'wind -storm'
   will now find 'whisperwind' or 'windrunner' and ignore 'stormwind')
 * fix search token duplication for spells
2026-03-28 21:13:59 +01:00
Sarjuuk
7906b6c942 Localization/Fixup
* localize "unnamed" text for gameobjects and areatrigger
 * fix empty links in Quest Detail Page for quests with
   external completion event but empty AreaDescription
 * closes #501
2026-03-26 15:22:11 +01:00
Sarjuuk
edfe800348 Sitemap/Fixup
* fix broken link to icons
 * fixes #498
2026-03-16 20:34:14 +01:00
Sarjuuk
7c9131eca8 Misc/Fixup
* fix formated money having trailing whitespaces if copper amount was 0
 * also cleanup
2026-03-12 21:50:38 +01:00
Sarjuuk
0d645334cb Sitemap
* generate and link basic sitemap
2026-03-05 12:31:07 +01:00
Sarjuuk
5a230daad6 Search/Indexing
* move fulltext indizes for tables /w ~10k+ rows to separate tables
   > sounds have ~12k but names are effectively incompatible with FTI
 * normalize searchable strings to catch edgecases
   > preparse spell descriptions + buffs
   > move effect text cols of items to new table
 * also fix extended search of creatures, spells & quests
2026-03-03 21:02:33 +01:00
Sarjuuk
2161a7b846 Search/Fixup
* dashes also split words into multiple tokens, so they are now
   stripped from search entirely (see: 'weather-beaten')
 * only search for the full search input if the tokenizer didn't yield
   any fulltext tokens. This should fix search performance after 00f048d3ae
 * fixes #497
2026-02-27 12:02:38 +01:00
Sarjuuk
254f3f7f1a Filter/Fixup
* fix criterium related world event:none excluding unspawned entities
2026-02-26 16:26:03 +01:00
Sarjuuk
c85675e181 Setup/DBCReader
* port extended client file handling from other branch
 * class DBC -> DBCReader now initializes a DBCFile
   which itself is a BinaryFile
 * update DBCReader to use the new DB wrappers multi-insert feature
2026-02-26 16:26:03 +01:00
Sarjuuk
69df50619a DB/Dependency
* remove unmaintained DbSimple
 * add package db/dibi as substitute db abstraction
2026-02-26 16:26:02 +01:00
Sarjuuk
750e176c33 Stats/Fixup
* fix melee attack power from spells counting towards generic attack power
 * combine melee and ranged attack power from the same spell into
   generic attack power, if amounts are equal
2026-02-24 14:14:09 +01:00
Sarjuuk
6051ef5a4a Misc/Cleanup
* update some unit flags / bytes
2026-02-14 22:36:23 +01:00
Sarjuuk
f6d7ccbb69 Quest/Filter
* update quest flags to current knowledge base
 * implemented filter criterium for pvp-enabling quests
2026-02-13 00:39:28 +01:00
Sarjuuk
68ca4973b1 Items/Filter
* implement 'effect text' filter
 * slight cleanup in itemset setup to match changes for effect text
2026-02-12 21:08:56 +01:00
Sarjuuk
84d2e30940 Filters/Fixup
* implement NPC 'has location' criterium
 * fix NPC 'uses model' criterium using string comparison on int values
2026-02-12 14:47:24 +01:00
Sarjuuk
2216b664fa DBTypes/Filters
* filters should test string input during initialization, so errors
   can be passed on to the PageTemplate.
 * have strings be compared for identity by default and (NOT) LIKE as
   optional operator
 * note: if a string criterium gets processed via callback function
   it will not get prechecked
2026-02-12 14:47:24 +01:00
Sarjuuk
9d187e8d4c StatWeights/Fixup
* move weightable stats from Util to Stat
 * align what stats can be saved in weightscales to match javascript
2026-02-12 00:28:27 +01:00
Sarjuuk
00f048d3ae Search/Fixup
* readd regular indizes for name cols. There are cases where entities
   are named in a way that does not work with FT indizes.
   ex. "XT:9" is two tokens "XT", "9" which are too short to be indexed.
 * additionally to FT search also exact match col to search string.
2026-02-12 00:27:49 +01:00
Sarjuuk
3510c8211c Spells/Scaling
* implement tooltip scaling calculation for spells with attribute
   SPELL_ATTR0_LEVEL_DAMAGE_CALCULATION
 * I don't know why i loaded item scales as spell scales a decade ago.
   Lets hope removing that didn't break stuff.
2026-02-05 21:08:16 +01:00
Sarjuuk
55f599bbb8 Game/WorldPosition
* rework map pos -> zone pos calculation. It was kinda stupid to run a
   query for each individual spawn point. So cache all wma entries per
   map and do the calculation in php.

 * sqlgen 'spawns' is now about twice as fast
2026-02-05 08:19:35 +01:00
Sarjuuk
5258290332 Profiler/Cleanup
* cleanup in sync / queue
2026-02-02 19:21:21 +01:00
Sarjuuk
83ec057dea PageTemplate/Fixup
* fix not setting consentFooter for all cases and occasionally importing its value from cache
2026-02-01 17:30:10 +01:00
Sarjuuk
4f4f68bd66 Profiler/Fixup
* don't increment index for renamed chars again when a known to rename chars stub is synced
2026-01-30 17:33:01 +01:00
Sarjuuk
26292d17c5 Objects/Fixup
* don't show loot charges in infobox if restock cd is set but min/max charges are not
 * fixes #493
2026-01-29 22:11:19 +01:00
Sarjuuk
e675a8f953 PageTemplate/Fixup
* Don't try to be smart with the helper methods as they are used to escape user input.
2026-01-26 20:04:49 +01:00
Sarjuuk
c6d92031c5 Quests/Fixup
* fix converting min/max reputation requirements to TC condition
   on detail page (it still lacks the exact amount)
 * also Game::getReputationLevelForPoints was off by 1
2026-01-25 19:26:47 +01:00
Sarjuuk
4c598972cc Search/Misc
* why loop when regex does trick
 * further unify variable naming and layout
2026-01-19 20:15:11 +01:00
Sarjuuk
09fe715bc1 Spells/Fixup
* add forgotten filter criterium 43 - usableinbgs
 * fixes #484
2026-01-19 19:47:07 +01:00
Sarjuuk
15338dc503 PageTemplate/Fixup
* only need to ask for consent if analytics is enabled
 * fixes #483
2026-01-19 19:47:07 +01:00
Sarjuuk
53374972ef Search/Fixup
* strip leading/trailing dashes from search tokens.
   Casues FT syntax errors when combined with our own modifiers
2026-01-19 19:31:35 +01:00
Sarjuuk
0ea5477d6e Items/Fixup
* fix spell struct to calculate stats from when viewing item XML
2026-01-19 19:31:35 +01:00
Sarjuuk
2e8abf6dff PageText/Misc
* $t is probably the players HK rank. Fill with name for lowest rank.
2026-01-18 14:56:26 +01:00
Sarjuuk
6df9145446 Search/Fixup
* do not use stopwords in fulltext search
   apparentyl there is a bug in innodb where including stopwords in a search causes the lookup to fail entirely.
   e.g. innodb_ft_enable_stopword must be disabled when the index is edited (rows are added/removed)
 * don't create a MATCH AGAINST search from empty search strings after sanitization
 * drop fulltext indizes for locale zhCN
   logographic languages need special treatment, which handling may differ by db provider
 * use LIKE search by default for locale zhCN. Added config option to use fulltext if supported by db.
2026-01-17 23:07:44 +01:00
Sarjuuk
7616ec25fc DB/Search
* add more indizes to large tables for cols used in lookups
 * drop multi-column indizes on spell as they are not utilized by mysql
 * add and use fulltext indizes for names of items, spells, quests, creatures & objects
   could add more, but is it really necessary?
 * limitations
   - still need a solution for race/class/spellFamily masks cols that are used as such
   - fulltext indizes in boolean mode cant partial match the end of a word.
     reverse name cols and search and match back to front like that..? blows up db size even more though
     (+trike* : "stormstrike" => +ekirt* : "ekirtsmrots")
2026-01-16 16:56:24 +01:00
Sarjuuk
a89eef5736 Setup/Fixup
* fix required class/race masks on items and quests
   during import instead of on demand
2026-01-16 08:27:27 +01:00
Sarjuuk
2ef3f575c3 PageTemplate/Misc
* fetch user vars on __wakeup / __construct so the queries get picked up by the DB profiler
 * unset temporary vars before serialization
 * reduce redundancy
2026-01-15 22:43:20 +01:00
Sarjuuk
b4f40b4264 Filter/Fixup
* only criteria should be affected by the match any/none selector
 * multi-selects are never null and shouldn't be tested as such.
2026-01-13 22:19:48 +01:00
Sarjuuk
ce020204cb Events/Fixup
* fix events occupying an additional day in calendar view
   if starting and ending at 0:00
2026-01-11 19:38:57 +01:00
Sarjuuk
face95c1dd PageTemplate/Consent
* fix showing consent overlay when cookie is already set
2026-01-09 17:25:20 +01:00
Sarjuuk
a6438454d6 Misc/Cleanup
* remove namespace includes sneakily auto placed by vscode
2026-01-07 19:42:17 +01:00
Sarjuuk
8417b6854b PageTemplate/Fixup
* fix broken external links from detail pages
 * amends 715c1534eb
 * closes #477
2026-01-02 17:05:58 +01:00
Sarjuuk
715c1534eb Core/Endpoints
* don't use raw input to recreate subcategories for filter urls and
   external links
 * if a page does not expect categories it will now error out if it is
   called with parameters
 * fixed infite redirect loop that could occur if the pageName was an
   invalid string
 * added lost filter string for external page call to NPCs Page
2026-01-01 01:26:35 +01:00
Sarjuuk
23c5c71f4a Misc/Fixup
* fixed crash when bit blob contains trailing whitespace
2025-12-30 20:39:22 +01:00
Sarjuuk
eec21c2763 Quests/Fixup
* rename columns of quests table to avoid name collisions
   and to match the dbc they are referencing
 * fixes #463
2025-12-30 19:16:10 +01:00
Sarjuuk
c44bf4f575 Config/Misc
* hardcode sql limits within their respective components instead of
   having them configurable
 * creating a new DBTypeList defaults it to being unlimited
   * SQL_LIMIT_NONE (0) > removed as it only existed for consistency
   * SQL_LIMIT_DEFAULT (300) > frontend / Listview::DEFAULT_SIZE
   * SQL_LIMIT_SEARCH (500) > Search::DEFAULT_MAX_RESULTS
   * SQL_LIMIT_QUICKSEARCH (10) > Search::SUGGESTIONS_MAX_RESULTS
2025-12-30 03:20:09 +01:00
Sarjuuk
b9d888ab3a Compat/TDB
* update conditions with changes from TC
   > 4fd3669f1b
2025-12-29 20:04:19 +01:00
Sarjuuk
2b3b9de8bc Entity/AI
* store and display StringIds
 * unify storage of AI/Scripts for NPCs and Objects
 * store and display StringIds and AI/Scripts from individual spawns in
   mapper tooltip and infobox
2025-12-29 20:04:19 +01:00
Sarjuuk
9db943e8f4 Compat/TDB
* drop references to script_waypoint and waypoints tables, removed in
   > 91dcae540e
   > f3b691dcb0
 * db requirement bump
2025-12-28 20:18:20 +01:00
Sarjuuk
4e848e29a7 Quests/Fixup
* fix missing objective quantity if required entity is unknwon
 * don't display go/npc objective if go/npc id is 0
2025-12-28 20:18:20 +01:00