Commit Graph

81 Commits

Author SHA1 Message Date
Sarjuuk
db1d3ccace Core/Cleanup
* try to give included files a logical structure
 * move objects from Util and Game to their own files
 * make non-essential files auto-loaded
2025-04-01 22:33:36 +02:00
Sarjuuk
3a6c86092b Core/Compat
* create namespace Aowow to avoid naming conflicts
 * inclues/libs/ is outside of the Aowow namespace
2025-04-01 22:32:37 +02:00
Sarjuuk
398b93e9a7 Locale
* detatch from User and Util and move to its own enum class
 * added definitions for all locales the 12340 client could in theory have
 * this is incompatble with the Intl extension
 * version bump and php requirement bump
2025-02-27 16:25:23 +01:00
Sarjuuk
075e15ba0c Setup/Fixup
* even more forgotten renames in help text
 * see 07e001ee9c
2024-08-24 15:11:31 +02:00
Sarjuuk
d2e109d818 SpellDetailPage
* attempted cleanup in effect generation and template
 * display summon properties
 * display unit of effect value
 * fix spell effect layout, typos, missing tools, ...
2024-08-19 21:35:36 +02:00
Sarjuuk
07e001ee9c Setup/Fixup
* fixed help text referencing renamed parameter
2024-07-31 00:50:46 +02:00
Sarjuuk
4d306e64fb CLI/Config
* fixed skipping the value in oneline mode being interpreted as empty string
 * fixed entering infinite loop in oneline mode, when passed value was invalid
 * fixed displaying config hint, when passed value was valid
2024-07-01 19:05:33 +02:00
Sarjuuk
22b0f8c1c1 Setup/Update
* setup step names are allowed to have dashes and underscores
2024-06-26 16:52:45 +02:00
Sarjuuk
bf184e7555 Core/Setup
* rewritten to be able to dynamicly load it's components
   - CLISetup -> checks for UtilityScripts (config, setup, dbc reader, etc.) -> checks for SetupScripts (individual sql/file generators)
   - each step may now have a help prompt attached. If none are provided, the containing script may provide it's help.
   - all Scripts are self contained modules. No more editing of 3+ files if some component is added/removed
 * removed intermediaries FileGen & SqlGen
 * functional changes
   - allow providing CLI arguments to siteconfig and account UtilityScript and skip the interactive prompts
   - set slot for consumable enchantment items so they are filtrable
   - zones dataset is now localized and generated from GlobalStrings.lua and DungeonMap.dbc. Related data dumps removed.
   - 'aowow' and 'prQueue' executables now have shebangs

    WARNING - command line options have been renamed!
2024-06-20 18:10:12 +02:00
Sarjuuk
e164023b8a Setup/DBC
* move dbc structures to separate files and allow loading a specific build
 * handle localized single string fields
 * add cli option for output table name
 * add cli option for wowbuild
2024-06-17 19:59:51 +02:00
Sarjuuk
06ffba0239 CLI/readline
* do not reuse prompt variable for use input
2024-06-17 19:59:51 +02:00
Sarjuuk
0117916da9 CLI
* make tables more legible
2024-06-17 18:13:03 +02:00
Sarjuuk
c2bbfe17a6 Setup/DataStores
* do not rely on temporary converted dbc tables during runtime
 * create permanent tables instead
2024-06-17 18:12:59 +02:00
Sarjuuk
ce0e57e390 Setup/Fixup
* run TDB checks agains word db as they are supposed to.
 * fixes #423
2024-06-10 21:07:57 +02:00
Sarjuuk
33ee358e0c Setup/DBconfig
* test for known world db formats and throw appropriate errors
 * test for imported aowow db and throw error if missing
 * make DB connection reloadable
2024-06-09 15:02:31 +02:00
Sarjuuk
69fe0b5c7d Cfg/Fixup
* also trigger first time load as soon as db is set up
2024-06-04 23:15:18 +02:00
Sarjuuk
f77d676a19 Core/Config
* convert configuration from list of constants to object
 * fixes config changes not applying on cli whithout closing and reopening again
 * config variables are no longer embedded in localization text
2024-05-30 20:50:44 +02:00
Sarjuuk
f422c4ecfb Setup/Spawns
* implement SpawnedByDefault from TC
 * maybe fix a longstanding issue where multiple parent areas per instanced map lead to wrong spawn points
    map  should be                  can also be
    36   The Deadmines              The Great Sea, Unused Ironcladcove
    109  The Temple of Atal'Hakkar  Sunken Temple
    540  The Shattered Halls        Hellfire Citadel
    560  Old Hillsbrad Foothills    Hyjal Past
    631  Icecrown Citadel           The Frost Queen's Lair, Putricide's Laboratory of Alchemical Horrors and Fun, The Crimson Hall, The Frozen Throne, The Sanctum of Blood
2024-05-28 21:58:44 +02:00
Sarjuuk
f6565ea924 DB/Structure
* fix data types and data length and add default values where necessary
 * data should no longer get truncated
 * misc fixes
2024-05-22 20:35:02 +02:00
Sarjuuk
a97cede1e0 Profiler/Realms
* generally allow all realm types
 * filter visibility/access by userGroup
2024-05-16 22:33:01 +02:00
Sarjuuk
b2690aea08 Setup/Update
* underscores are valid chars for script names
2024-05-15 00:08:45 +02:00
Sarjuuk
c87178c791 PHP/Compat
* spreading a nested array prevents it from being passed as reference
 * this worked previously under php v7.2
2024-05-11 00:32:01 +02:00
Sarjuuk
5f4c62644d DB/Errors
* improve db error handling
 * web view should always result in an user friendly error if the db connection is missing or erronous
 * cli use should never fatal if the db connection is erronous. How are you going to fix it, d'uh.
 * if some CLISetup script requires a db connection check it individually
2024-05-03 20:58:30 +02:00
Sarjuuk
9831038729 Misc/Fixups
* remove w from umask for generated files
 * fixed warning in setup dbconfig
 * added lost Markup.js generation to initial setup
2024-02-28 19:05:17 +01:00
Sarjuuk
a39881e73f Misc/Fixup
* fixed borked Lang::load in setup after d0d2451ff51157728e622142c3be7ae0ba7dcebe
2024-02-25 21:17:33 +01:00
Sarjuuk
9b16f2d84a Localization/WoW strings
* generalize WoW UI escape sequence handling
 * implement use of declinated words from dbc for locale 8 (ruRU)
2024-01-08 00:05:24 +01:00
Sarjuuk
40014755e2 Setup/Log
* allow overwriting generic/fine log output
 * fix some errors
 * can't catch notices generated by mysqli_connect
 * removed some unnessecary ORDER from querys
2023-04-25 23:26:25 +02:00
Sarjuuk
e109a6deed Siteconfig/Email
* make hardcoded email configurable
2022-03-22 14:59:45 +01:00
Sarjuuk
366f68f24f Setup/Misc
* squash some more php warnings during setup
 * automaticly sync if required by updates
2022-02-28 21:01:07 +01:00
Sarjuuk
6819c1b1f2 Misc
* fixed misc php8 errors that went unnoticed as php7 warnings before
 * added lost areatrigger generator to Setup script
 * updated readme with working TCDB info and php 8.0 support
2021-10-24 19:47:45 +02:00
Sarjuuk
6b49aa6069 Setup/Misc
* fix some outdated array indizes during setup
 * fix indexing when connecting to DB for first time
 * add initial loading of config strings during setup
2021-10-24 17:12:05 +02:00
Sarjuuk
fbc5d43aab Setup/Maintenance
* toggle maintenance mode in a more reasonable manner (i.e. not when displaying help test)
 * move connectivity tests to class DB
 * restore generate everything functionality when running --sql and --build with an empty parameter set
2021-02-20 20:35:53 +01:00
Sarjuuk
43778b01e7 Setup/DB
* connect to db after successful setup so siteconfig doesn't fail
2021-02-18 22:31:30 +01:00
Giacomo Pozzoni
392b5bbdda CLI/Typos (#272)
* fixed typos in log
2021-02-15 19:48:35 +01:00
Sarjuuk
59f58f8506 Setup
* automatically set and unset maintenance mode when data is being edited (either sql or files)
 * added more verbose help prompts. They should now always appear when -h is used.
 * added --setup as more intuitive command for --firstrun. --firstrun is now considered deprecated and will be removed in due time.
 * unfuck order of indizes in --siteconfig
 * fixed some typos
 * convert echo use to CLI::write
 * move scattered command line argument checks to CLISetup
2020-12-30 00:29:30 +01:00
Sarjuuk
3e24814518 README/Conf
* check for presence of lib GMP when trying to enable TC auth
 * also added missing requirement to README (thx @jackpoz for reminding me)
2020-08-03 22:11:05 +02:00
Sarjuuk
4bd32207db Setup/Updates
* skip unexpected characters in update fields of aowow_dbversion
2020-07-20 21:14:06 +02:00
Sarjuuk
844a4c0e52 Setup/Fixups
* added lost changes from
   321f28d35c and
   62acd541b2 to setup
2020-06-25 19:27:33 +02:00
Sarjuuk
184e5e5c8d Setup/DB
* fixed input prompt broken after iputting aowow's info
2020-06-01 12:24:54 +02:00
Sarjuuk
fd04e9f977 Implemented new type: mail
* display and link clientside mails to other types and events
 * fixed favorites menu for new types
 * fixed sorting column triggered spells in enchantment listview
 * some misc cleanups
2020-02-14 00:36:41 +01:00
Sarjuuk
d9cd24026c PHP/Core
* enforced v7.1 compliance, preparations for v7.2
 * removed deprecated usage of each()
 * prefer array deconstruction via [] instead of calling list()
 * try to catch failed session_start()
 * prefer ... - Token instead of calling func_get_args() func_num_args()
 * enforce return types in AjaxHandler
 * revision push
2018-11-29 00:45:19 +01:00
Sarjuuk
22d02378ef Config/Profiler
* update config to enable/disable profiler in general, instead of just the queue
 * regenerate affected files on config change
2018-03-27 12:41:32 +02:00
Sarjuuk
b0a5f477c1 Profiler/CLI
* move command line related functions to its own class
2018-03-22 16:32:29 +01:00
Sarjuuk
79d9225c02 Setup/Firstrun:
* try to resolve bad inputs for *_host and force_ssl, when they result in redirects (301, 302)
2017-09-03 15:50:54 +02:00
Sarjuuk
7b7ec2d0aa Admin/siteconfig
* also rebuild js-locales when updating available locales
 * somewhat unhappy with the access to generated files. need to find a better solution.
2017-05-09 19:11:47 +02:00
Sarjuuk
9c6a789d2b Admin/config
* added onUpdate handler to rebuild affected files
2017-05-07 18:40:45 +02:00
Sarjuuk
dde09a8a02 WIN/Misc
* windows compatibility changes
   - prevent crash on very large querys by reducing query size
   - set memory limit to something less than 2GB. Old value caused memory_limit to be set to something miniscule. (with the changes to DBC extraction this should now be feasable)
   - be a tad more lenient with time when generating enchant-datasets
2017-04-10 22:06:44 +02:00
Sarjuuk
fa9d518980 Setup/DB
* table prefix for aowow is now fixed to 'aowow_'
 * no more input required
2017-04-09 22:04:40 +02:00
Sarjuuk
a937fb7ac6 Setup/Sounds
* updated sql update for changed generator
Setup/Updates
 * do not throw an invalid scripts supplied - error if no actual scripts where suppied
   (in case of update it is skipped, in every other case it generates everything anyway)
2017-03-22 15:19:10 +01:00
Sarjuuk
efe7b468c9 Setup/Firstrun
* forgot to add sounds generator to firstrun script
2017-03-22 12:58:40 +01:00