clemontine36 Posted June 2, 2014 Report Share Posted June 2, 2014 http://opendayz.net/threads/custom-buildings-spawning-twice.19920/#post-102981 Any help? Link to comment Share on other sites More sharing options...
0 axeman Posted June 2, 2014 Report Share Posted June 2, 2014 Is the server and client running the same spawn code? Link to comment Share on other sites More sharing options...
0 clemontine36 Posted June 2, 2014 Author Report Share Posted June 2, 2014 Just through the mission PBO as i didnt want a massive mission file(Its already 2500kb), the buildings have worked perfectly for months, and now two of them spawn on top of eachother every single time! Mission PBO: https://www.dropbox.com/s/pu1fzwo6dyd7atz/DayZ_Epoch_11.Chernarus.rar Link to comment Share on other sites More sharing options...
0 clemontine36 Posted June 2, 2014 Author Report Share Posted June 2, 2014 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! Link to comment Share on other sites More sharing options...
0 clemontine36 Posted June 3, 2014 Author Report Share Posted June 3, 2014 Ok apparently not, now only one file of the 6 spawn in if i call them via init instead. Readded them into server pbo and commented them out of init. Still two of them spawning! Link to comment Share on other sites More sharing options...
0 Brockie Posted June 4, 2014 Report Share Posted June 4, 2014 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 Link to comment Share on other sites More sharing options...
0 clemontine36 Posted June 4, 2014 Author Report Share Posted June 4, 2014 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? Link to comment Share on other sites More sharing options...
0 Brockie Posted June 4, 2014 Report Share Posted June 4, 2014 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 Link to comment Share on other sites More sharing options...
0 clemontine36 Posted June 4, 2014 Author Report Share Posted June 4, 2014 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 Link to comment Share on other sites More sharing options...
0 axeman Posted June 4, 2014 Report Share Posted June 4, 2014 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.. Link to comment Share on other sites More sharing options...
0 axeman Posted June 4, 2014 Report Share Posted June 4, 2014 Learn the difference between server and client and all will be well :) Link to comment Share on other sites More sharing options...
0 Fully Posted June 5, 2014 Report Share Posted June 5, 2014 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 =) Link to comment Share on other sites More sharing options...
0 axeman Posted June 5, 2014 Report Share Posted June 5, 2014 Personally, I prefer to call them from init.sqf in the mission folder. Link to comment Share on other sites More sharing options...
0 clemontine36 Posted June 5, 2014 Author Report Share Posted June 5, 2014 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 Link to comment Share on other sites More sharing options...
0 Fully Posted June 6, 2014 Report Share Posted June 6, 2014 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"; Link to comment Share on other sites More sharing options...
0 ZeroK00L Posted June 9, 2014 Report Share Posted June 9, 2014 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 Link to comment Share on other sites More sharing options...
0 clemontine36 Posted June 19, 2014 Author Report Share Posted June 19, 2014 Sorry forgot to reply, called from init and put in server PBO, no double spawning, thanks alot guys:) Link to comment Share on other sites More sharing options...
0 TheVampire Posted June 19, 2014 Report Share Posted June 19, 2014 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. Link to comment Share on other sites More sharing options...
0 clemontine36 Posted June 19, 2014 Author Report Share Posted June 19, 2014 Thanks Vampire:D But i already fixed this a while ago, i used if (isServer) then { But had to call them from init to fix it, sorry for my ignorance! Link to comment Share on other sites More sharing options...
0 clemontine36 Posted June 21, 2014 Author Report Share Posted June 21, 2014 Vampire, dont suppose you could help me with my other post? Link to comment Share on other sites More sharing options...
Question
clemontine36
http://opendayz.net/threads/custom-buildings-spawning-twice.19920/#post-102981
Any help?
Link to comment
Share on other sites
19 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now