* 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:
Sarjuuk
2017-04-10 22:06:44 +02:00
parent fa9d518980
commit dde09a8a02
4 changed files with 8 additions and 5 deletions

View File

@@ -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);

View File

@@ -249,7 +249,7 @@ class DBC
private $tableName = '';
private $dataBuffer = [];
private $bufferSize = 1000;
private $bufferSize = 500;
private $fileRefs = [];

View File

@@ -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))
{