help please

Ole andreas

New Member
I have made a new mission file in the editor you get on arma 2. I saved it, i get 2 files. a .bedi file and a .sqf file. When i am going to upload em to my server it says i need a .pbo file. so im wondering if there is any way i can make them into a .pbo file?
 
hi, yes of course.
just take all in your .sqf and add it in file
for exemple you want to add building custom in your map
so build all in your editor, after save it
look your save.sqf and you can see all you must have to do a custom map
remove :
Code:
activateAddons [
];
 
activateAddons [];
initAmbientLife;
 
_this = createCenter west;
_center_0 = _this;
 
_group_0 = createGroup _center_0;
andthe end of file change
Code:
processInitCommands;
runInitScript;
 
finishMissionInit;
by
Code:
};
save all in a new file and name it like you want
for exemple :
mymap.sqf
create a folder with name you want for exemple : custom
place it in the root of your mission and place your file mymap.sqf in this folder
after in your int.sqf just add
Code:
[] execVM "custom\mymap.sqf";
enjoy ;)
 
hi, yes of course.
just take all in your .sqf and add it in file
for exemple you want to add building custom in your map
so build all in your editor, after save it
look your save.sqf and you can see all you must have to do a custom map
remove :
Code:
activateAddons [
];
 
activateAddons [];
initAmbientLife;
 
_this = createCenter west;
_center_0 = _this;
 
_group_0 = createGroup _center_0;
andthe end of file change
Code:
processInitCommands;
runInitScript;
 
finishMissionInit;
by
Code:
};
save all in a new file and name it like you want
for exemple :
mymap.sqf
create a folder with name you want for exemple : custom
place it in the root of your mission and place your file mymap.sqf in this folder
after in your int.sqf just add
Code:
[] execVM "custom\mymap.sqf";
enjoy ;)



Where in the init.sqf file do i add [] execVM "custom\mymap.sqf"; ?
 
hey,
just extract your dayz_mission.pbo if you are in dayz or mission.pbo with PBO manager for exemple...
 
at the end it's good ;)
with a comment before like :
// this is my map
[]execVM"custom\mymap.sqf";
 
at the end it's good ;)
with a comment before like :
// this is my map
[]execVM"custom\mymap.sqf";


after the // Logo watermark: adding a logo in the bottom left corner of the screen with the server name in it
if (!isNil "dayZ_serverName") then {
[] spawn {
waitUntil {(!isNull Player) and (alive Player) and (player == player)};
waituntil {!(isNull (findDisplay 46))};
5 cutRsc ["wm_disp","PLAIN"];
((uiNamespace getVariable "wm_disp") displayCtrl 1) ctrlSetText dayZ_serverName;

};
};

Like here (right?)
 
It can't find the file since you told it that the file would be in the folder "custom". So either create the custom folder or change your path in init.sqf.
 
It can't find the file since you told it that the file would be in the folder "custom". So either create the custom folder or change your path in init.sqf.


do i have to put the .bedi file in the custom folder? or do i even have to include it?
 
The "\" in
[]execVM"custom\mymap.sqf";
notes a directory change. The line above is looking for your "mymap.sqf" inside a directory(folder) named "custom". Since your "mymap.sqf" is in the root of your misson.pbo then the line should look like this

[]execVM "mymap.sqf";
 
Back
Top