LeaveItToBeevers

Exile DB Issues

1 post in this topic

In the @ExileServer\addons\exile_server.pbo this section of code:
 

Spoiler

try 
{
    _result = "extDB2" callExtension "9:VERSION";
    if (_result isEqualTo "") then
    {
        throw "Unable to locate extDB2 extension!";
    };
    if (parseNumber _result < 69) then
    {
        throw "Update extDB2 to version 69 or later";
    };
    format ["Installed extDB2 version: %1", _result] call ExileServer_util_log;
    _result = call compile ("extDB2" callExtension "9:LOCK_STATUS") select 0;
    if (_result isEqualTo 1) then
    {
        _error_locked = true;
        throw "Error extDB2 is already setup & locked !!!";
    };
    _result = call compile ("extDB2" callExtension "9:ADD_DATABASE:exile");
    if (_result select 0 isEqualTo 0) then
    {
        throw format ["Could not add database: %1", _result]; 
    };
    "Connected to database!" call ExileServer_util_log;
    ExileServerDatabaseSessionId = str(round(random(999999)));
    _result = call compile ("extDB2" callExtension format["9:ADD_DATABASE_PROTOCOL:exile:SQL_CUSTOM_V2:%1:exile", ExileServerDatabaseSessionId]);
    if ((_result select 0) isEqualTo 0) then
    {
        throw format ["Failed to initialize database protocol: %1", _result]; 
    };
    ExileServerStartTime = (call compile ("extDB2" callExtension "9:LOCAL_TIME")) select 1;
    "Database protocol initialized!" call ExileServer_util_log;
    "extDB2" callExtension "9:ADD_PROTOCOL:LOG:TRADING:Exile_TradingLog";
    "extDB2" callExtension "9:ADD_PROTOCOL:LOG:DEATH:Exile_DeathLog";
    "extDB2" callExtension "9:ADD_PROTOCOL:LOG:TERRITORY:Exile_TerritoryLog";
    "extDB2" callExtension "9:LOCK";
    _isConnected = true;
}

    _result = call compile ("extDB2" callExtension "9:ADD_DATABASE:exile");
this line and this line
    _result = call compile ("extDB2" callExtension format["9:ADD_DATABASE_PROTOCOL:exile:SQL_CUSTOM_V2:%1:exile", ExileServerDatabaseSessionId]);
does it need to be set to the name of the database like the folder its in.
I know most put it as exile if they are on their own dedicated host but what if you are using a hosting company does that need to change? 
such as
    _result = call compile ("extDB2" callExtension "9:ADD_DATABASE: nixxxxxxx_x_DB ");
If I am using Nitrado. 

 

EDIT: After lots of trial and error this actually did if it! Please close this thread!

Edited by LeaveItToBeevers
Fixed

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.