/**
* ExileServer_world_loadAllClans
*
* Exile Mod
* exile.majormittens.co.uk
* © 2015 Exile Mod Team
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
*/
private["_continueLoading","_page","_pageSize","_clanIDs","_numberOfClans","_i"];
"Loading families from database..." call ExileServer_util_log;
_continueLoading = true;
_page = 0;
_pageSize = 100;
while {_continueLoading} do
{
_clanIDs = format ["loadClansIdPage:%1:%2", _page * _pageSize, _pageSize] call ExileServer_system_database_query_selectFull;
_numberOfClans = count _clanIDs;
if (_numberOfClans > 0) then
{
for "_i" from 0 to _numberOfClans - 1 do
{
((_clanIDs select _i) select 0) call ExileServer_system_clan_database_load;
};
};
_page = _page + 1;
if (_numberOfClans < 100) then
{
_continueLoading = false;
};
};
"Done loading families!" call ExileServer_util_log;
true
/**
* ExileServer_system_database_query_selectFull
*
* Exile Mod
* exile.majormittens.co.uk
* © 2015 Exile Mod Team
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
*/
private["_parameters","_query","_result"];
_parameters = _this;
_query = [0, ExileServerDatabaseSessionId, _parameters] joinString ":";
_result = call compile ("extDB2" callExtension _query);
switch (_result select 0) do
{
case 0:
{
(format["Database Error: %1", (_result select 1)]) call ExileServer_util_log;
};
case 2:
{
_result = (_result select 1) call ExileServer_system_database_handleBig;
};
};
_result select 1
Those 2 files it says theres an error within.