Jump to content
  • 0
clemontine36

Custom buildings spawning twice!?

Question

19 answers to this question

Recommended Posts

  • 0

Well thanks alot axeman, your question reminded me i could call the buildings via mission file instead of server pbo, so i commented out them in the server file, and added them into the init. Now they only spawn once!

Thanks:D Been stuck on this for a couple of weeks now!

Share this post


Link to post
Share on other sites
  • 0

all buildings should be added server side and should be as easy as execVM.  Sharing your mission file doesn't help because they are all server side anyway.  So keep them server side, eliminate any trace of them in the mission pbo and call them at the bottom of server_functions.sqf

Share this post


Link to post
Share on other sites
  • 0

if you keep all your map addons in one folder it should be easy as pie to add them,  get one to work essentially you get them all to work... i can't really imagine what the problem is, maybe post some files like server_functions.sqf.   dont forget to repack a new  pbo after you change something in the dayz_server

Share this post


Link to post
Share on other sites
  • 0

It is easily doable to put your sqf files in the server pbo and call them from init. Have never understood the reasons for putting custom code in server functions, really is not the place for it..

Share this post


Link to post
Share on other sites
  • 0

Should this be called from the server_monitor.sqf?

Under this

 

 

// Custom Configs

call compile preProcessFileLineNumbers "\z\addons\dayz_server\mapaddons\NEAF.sqf";
call compile preProcessFileLineNumbers "\z\addons\dayz_server\mapaddons\Skalisty.sqf";
call compile preProcessFileLineNumbers "\z\addons\dayz_server\mapaddons\Cherno.sqf";
call compile preProcessFileLineNumbers "\z\addons\dayz_server\mapaddons\Airfield.sqf";
[] ExecVM "\z\addons\dayz_server\WAI\init.sqf";

This is how I call my custom buildings =)
 

Share this post


Link to post
Share on other sites
  • 0

Personally, I prefer to call them from init.sqf in the mission folder.

But can you call them from there even if they are in the Server PBO? What would the file location look like if you had them in a folder called buildings, in the server pbo?

thanks

Share this post


Link to post
Share on other sites
  • 0

But can you call them from there even if they are in the Server PBO? What would the file location look like if you had them in a folder called buildings, in the server pbo?

thanks

call compile preProcessFileLineNumbers "\z\addons\dayz_server\buildings\clemontine36buildings.sqf";

Share this post


Link to post
Share on other sites
  • 0

Buildings double spawn when in the server PBO and its a common problem! Id rarther keep them in their, but not if they are going to double spawn, is there no way to edit anything so that they dont double spawn?

 

Can you post the SQF that is spawning the double building? Also, keep them server side. Much cleaner way to do it especially if you have alot of map addons!

 

Zero

Share this post


Link to post
Share on other sites
  • 0

Jesus, i know egzactly how to do it, ive done it and one time the buildings started double spawning, which is a COMMON problem and the only fix ive found is putting them in via the mission file

 

You are having both the server and client spawn the buildings. The server spawns them onto the map, and the client is rendering them a second time locally, causing the double spawn effect.

 

Make sure only the server is spawning them, and you'll be fine. This can be done with the

if (isServer) then {

or

if (!isServer) exitWith {};

Whichever you prefer.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...