Jump to content

Custom Buildings


Recommended Posts

Hopefully someone could get me straightened out. I want to explore the possibility of having custom buildings stored in the dayz_server files and not from the dayz_mission files to lighten the load of an ever increading mission file people have to download. I remember reading that it could be done awhile ago and now can find nothing about the subject. If I understand correctly, a a custom building addition currently stored in a folder named "buildings" in my mission folder is called using

[] ExecVM "Buildings\GuccisCustomStuff.sqf";	

Now if I wanted to change it to call from the server files would I just change that to something like

[] ExecVM "\z\addons\Buildings\GuccisCustomStuff.sqf";	

and create a folder called "buildings" in the root of my dayz_server folder?

Link to comment
Share on other sites

I Think

"\z\addons\dayz_Epoch_server\Buildings\GuccisCustomStuff.sqf"; 

It's better cause he going check in Dayz_Epoch_server.

 

But i don't know if it's working :)

Why you don't use it in your Mission File ?

Link to comment
Share on other sites

Hey Nox, I think he is trying to avoid bloating the mission file that players have to download, and so speed up load times?

 

I Think

"\z\addons\dayz_Epoch_server\Buildings\GuccisCustomStuff.sqf"; 

It's better cause he going check in Dayz_Epoch_server.

 

But i don't know if it's working :)

Why you don't use it in your Mission File ?

Link to comment
Share on other sites

  • 2 weeks later...

Extract your dayz_server.pbo

 

Open your server_functions.sqf file, (Located in your init folder)

 

find

 

 

server_deaths =             compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_playerDeaths.sqf";

 

add after that

 

 

//addons

[] execVM "\z\addons\dayz_server\YOURCUSTOMFOLDER\YOURFILE.sqf";

 

repack ur server.pbo & upload :D

Link to comment
Share on other sites

dont know about the performance, all i know is that if u implement buildings through  the database

 

(create a table called vehicles) then there is no decreased performance issue although there could/will be problems with double spawning buildings

 

thats why most people want to implement it through the mission or server pbo

Link to comment
Share on other sites

Gotcha. Just wondering since my mission file is approaching 4mb. Trying to migrate as much as I can to the server so the size doesn't get out of control if I add more stuff....not that it takes very long nowadays to download even a 20mb mission file  :)

Link to comment
Share on other sites

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
  • Advertisement
  • Discord

×
×
  • Create New...