SQF to Beidi or SQF to SQL?

Joshua Hodges

New Member
I have a bunch of SQF files for my mission.pbo but I am getting to a 3MB file and was going to move the custom buildings portion to the server but I have to have SQL formating. I found the Bliss converter(http://dayz.wofjwof.com/map.php) but I do not have the Beidi files as the person that made them for me no longer is helping with the server. I have over 3500 buildings added and would really appreciate the help. Thanks!!!
 
  1. Download a copy of your dayz_server.pbo
  2. Extract your dayz_server.pbo
  3. make a folder called addons and put all your files in it.
  4. Open your server_functions.sqf file, (Located in your init folder)
  5. Find
    call compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\fa_hiveMaintenance.sqf";​
  6. Add after
    //addons
    [] execVM "\z\addons\dayz_server\addons\yourfilename.sqf";
    [] execVM "\z\addons\dayz_server\addons\yourfilename.sqf";
    [] execVM "\z\addons\dayz_server\addons\yourfilename.sqf";
    [] execVM "\z\addons\dayz_server\addons\yourfilename.sqf";​
  7. Pack your dayz_server.pbo back up.
  8. Upload files and restart server.
 
I do have one more question then ...
If I want to merge sqf files to one file and have the id numbers matching up like so:
_vehicle_1 = objNull;
if (true) then
{
_this = createVehicle ["Land_HBarrier_large", [3268.7246, 14231.601, -0.00082429405], [], 0, "CAN_COLLIDE"];
execVM_1 = _this;
_this setDir -46.819416;
_this setPos [3268.7246, 14231.601, -0.00082429405];
};

_vehicle_1 = objNull;
if (true) then
{
_this = createVehicle ["Land_HBarrier_large", [3271.3066, 14234.447, -3.0517578e-005], [], 0, "CAN_COLLIDE"];
execVM_1 = _this;
_this setDir -43.997215;
_this setPos [3271.3066, 14234.447, -3.0517578e-005];
};

Do I manually have to edit all the IDs to not conflict or is there a way to do this easy?
This has been a huge undertaking as I have a lot of SQF files that I would rather have a few of them instead.
 
if you merged the files then yes you have to change the id.

it is easier just to use all your sqf files then merge them and have one huge file.

also you need to remove all the extra stuff if you have not done so.

remove this

Code:
activateAddons [
];
 
activateAddons [];
initAmbientLife;

and replace with this

Code:
if (isServer) then {

then at the end remove this

Code:
processInitCommands;
runInitScript;
finishMissionInit;

and replace with this

Code:
};

and make sure you do not have this in any of your code.

Code:
_this = createCenter west;
_center_6 = _this;
 
_group_4 = createGroup _center_6;
 
_unit_6 = objNull;
if (true) then
{
  _this = _group_4 createUnit ["Bandit1_DZ", [11451.369, 11311.747], [], 0, "CAN_COLLIDE"];
  _unit_6 = _this;
  _this setUnitAbility 0.60000002;
  if (true) then {_group_4 selectLeader _this;};
  if (true) then {selectPlayer _this;};
};

my server_functions looks like this

Code:
//addons
[] execVM "\z\addons\dayz_server\addons\filkova.sqf";
[] execVM "\z\addons\dayz_server\addons\kbase.sqf";
[] execVM "\z\addons\dayz_server\addons\kcap.sqf";
[] execVM "\z\addons\dayz_server\addons\loco.sqf";
[] execVM "\z\addons\dayz_server\addons\medvezhka.sqf";
[] execVM "\z\addons\dayz_server\addons\neaf.sqf";
[] execVM "\z\addons\dayz_server\addons\pobeda.sqf";
[] execVM "\z\addons\dayz_server\addons\kill_churches.sqf";
[] execVM "\z\addons\dayz_server\addons\new_churches.sqf";
[] execVM "\z\addons\dayz_server\addons\screen.sqf";
[] execVM "\z\addons\dayz_server\addons\effects.sqf";

you see it spreads the load time out instead of loading everything all at once and putting a strain on server load.
 
Loading map files like this will reduce server lag? If so great....otherwise it's just way to have clients have less to download?
 
We noticed a huge jump in frame rates. We were down to 12ish for most players and now up to around 28 for most. I also noticed that the load time takes about 10 seconds longer than it did before on server restart but thats not bad. We have over 3500 new buildings.
 
  1. Download a copy of your dayz_server.pbo
  2. Extract your dayz_server.pbo
  3. make a folder called addons and put all your files in it.
  4. Open your server_functions.sqf file, (Located in your init folder)
  5. Find
    call compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\fa_hiveMaintenance.sqf";​
  6. Add after
    //addons
    [] execVM "\z\addons\dayz_server\addons\yourfilename.sqf";
    [] execVM "\z\addons\dayz_server\addons\yourfilename.sqf";
    [] execVM "\z\addons\dayz_server\addons\yourfilename.sqf";
    [] execVM "\z\addons\dayz_server\addons\yourfilename.sqf";​
  7. Pack your dayz_server.pbo back up.
  8. Upload files and restart server.

I have a server over at dayz.st ....I added my custom file to the server.pbo and added these lines in the same spot as above but it didn't work.

//addons
_nil = [] execVM "custom\NEAF.sqf";
_nil = [] execVM "custom\nwaf.sqf";
_nil = [] execVM "custom\balota.sqf";
_nil = [] execVM "custom\kamenka.sqf";
_nil = [] execVM "custom\Rog.sqf";

Do I need to have the \z\custom\dayz_server\custom\Filename.sqf format?
 
Call them like this
call compile preProcessFileLineNumbers "\z\addons\dayz_server\custom\yourfilename.sqf";
 
Back
Top