mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
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
This commit is contained in:
@@ -301,7 +301,10 @@ function siteconfig()
|
||||
continue 2;
|
||||
|
||||
// @eval .. some dafault values are supplied as bitmask or the likes
|
||||
if (DB::Aowow()->query('UPDATE ?_config SET `value` = ? WHERE `key` = ?', @eval('return ('.trim(explode('default:', $info[0])[1]).');'), strtolower($conf['key'])))
|
||||
$val = trim(explode('default:', $info[0])[1]);
|
||||
if (!($conf['flags'] & CON_FLAG_TYPE_STRING))
|
||||
$val = @eval('return ('.$val.');');
|
||||
if (DB::Aowow()->query('UPDATE ?_config SET `value` = ? WHERE `key` = ?', $val, strtolower($conf['key'])))
|
||||
{
|
||||
CLISetup::log("default value restored", CLISetup::LOG_OK);
|
||||
sleep(1);
|
||||
|
||||
@@ -249,7 +249,7 @@ class DBC
|
||||
private $tableName = '';
|
||||
|
||||
private $dataBuffer = [];
|
||||
private $bufferSize = 1000;
|
||||
private $bufferSize = 500;
|
||||
|
||||
private $fileRefs = [];
|
||||
|
||||
|
||||
@@ -93,14 +93,14 @@ if (!CLI)
|
||||
|
||||
foreach (CLISetup::$localeIds as $lId)
|
||||
{
|
||||
set_time_limit(120);
|
||||
|
||||
User::useLocale($lId);
|
||||
Lang::load(Util::$localeStrings[$lId]);
|
||||
|
||||
$enchantsOut = [];
|
||||
foreach ($enchantSpells as $esId => $es)
|
||||
{
|
||||
set_time_limit(5);
|
||||
|
||||
$eId = $es['effect1MiscValue'];
|
||||
if (!$enchantments->getEntry($eId))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user