Jump to content
Sign in to follow this  
Kingsley1997

iniDBI is undefined no matter where I place the compile line

Recommended Posts

I'm building a MP mission using a client/server model (BIS_fnc_MP) and I can get the client to call a function on the server, but I can't get the server to properly execute the function due to iniDBI not being defined.

Note that I am testing this on my own dedicated server. I use TADST to create the server (and yes I am running the @iniDBI mod for sure) and then I join the server on the same machine using the normal Arma 3 through Steam.

Here's my init.sqf

init.sqf

if (isServer || isDedicated) call compile preProcessFile "\iniDBI\init.sqf";
diag_log call iniDB_version; // It will even error here!

#include "fn\definitions.sqf"

enableSaving [false, false];

if (isServer) then {
// Server Init
} else {
waitUntil {!isNull player};
waitUntil {time > 0};

player setVariable["profileName", profileName, true];
player setVariable["hasBeenKilled", false, true];

player spawn fn_loadPlayer;
["Spawned fn_loadPlayer", true] call fn_devLog;
};

Share this post


Link to post
Share on other sites
if (isServer || isDedicated) [color="#FF0000"]then {[/color]
call compile preProcessFile "\iniDBI\init.sqf";

diag_log call iniDB_version;
[color="#FF0000"]}[/color];

Edited by Schatten
updated

Share this post


Link to post
Share on other sites
if (isServer || isDedicated) [color="#FF0000"]then {[/color]call compile preProcessFile "\iniDBI\init.sqf"[color="#FF0000"]}[/color];

Still doesn't work after that, same error :(

---------- Post added at 18:30 ---------- Previous post was at 18:28 ----------

if (isServer || isDedicated) [color="#FF0000"]then {[/color]
call compile preProcessFile "\iniDBI\init.sqf";

diag_log call iniDB_version;
[color="#FF0000"]}[/color];

Oh just noticed you put the diag_log inside the IF, testing now..

---------- Post added at 18:32 ---------- Previous post was at 18:30 ----------

if (isServer || isDedicated) [color="#FF0000"]then {[/color]
call compile preProcessFile "\iniDBI\init.sqf";

diag_log call iniDB_version;
[color="#FF0000"]}[/color];

That gets rid of the error, thank you!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×