From efe7b468c91efaa338a6e7bda81554ed5e72f1d5 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Wed, 22 Mar 2017 12:58:40 +0100 Subject: [PATCH] Setup/Firstrun * forgot to add sounds generator to firstrun script --- setup/tools/clisetup/firstrun.func.php | 2 ++ setup/tools/filegen/soundfiles.func.php | 1 + setup/tools/sqlgen/sounds.func.php | 3 ++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/setup/tools/clisetup/firstrun.func.php b/setup/tools/clisetup/firstrun.func.php index 14a563ac..6a18bc78 100644 --- a/setup/tools/clisetup/firstrun.func.php +++ b/setup/tools/clisetup/firstrun.func.php @@ -74,6 +74,8 @@ function firstrun() ['SqlGen::generate', 'itemset', null, null, null], ['SqlGen::generate', 'item_stats', null, null, null], ['SqlGen::generate', 'source', null, null, null], + ['SqlGen::generate', 'sounds', null, null, null], + ['FileGen::generate', 'soundfiles', null, null, null], ['FileGen::generate', 'searchplugin', null, null, null], ['FileGen::generate', 'power', null, null, null], ['FileGen::generate', 'searchboxScript', null, null, null], diff --git a/setup/tools/filegen/soundfiles.func.php b/setup/tools/filegen/soundfiles.func.php index 621b985c..06ae33d2 100644 --- a/setup/tools/filegen/soundfiles.func.php +++ b/setup/tools/filegen/soundfiles.func.php @@ -22,6 +22,7 @@ if (!CLI) { $i = 0; CLISetup::log(' - '.$itr.'/'.$nFiles.' ('.(intVal(100 * $itr / $nFiles).'%) done')); + DB::Aowow()->selectCell('SELECT 1'); // keep mysql busy or it may go away } if (stristr($filePath, '.wav')) // expected file.wav.ogg diff --git a/setup/tools/sqlgen/sounds.func.php b/setup/tools/sqlgen/sounds.func.php index bba88142..24175e32 100644 --- a/setup/tools/sqlgen/sounds.func.php +++ b/setup/tools/sqlgen/sounds.func.php @@ -48,7 +48,8 @@ function sounds(/*array $ids = [] */) CLISetup::log(' - sounds main data'); - // file extraction and conversion in build step. data here is purely structural + // file extraction and conversion manually + // moving files in build step. data here is purely structural // reality check ... thats probably gigabytes worth of sound.. only growing in size with every locale added on top (RedRocketSite didn't do it. Should i then?) // .wav => audio/ogg; codecs="vorbis"