neiljb Posted August 25, 2013 Report Share Posted August 25, 2013 I am trying to add my server scripts to the server pbo rather than having a huge mission file. Do I call the scripts from the server_functions.sqf in the same way I would the init.sqf? Should I add my scripts folder to the init folder inside the dayz_server.pbo, then call it by adding something like [] execVM "scripts\scriptname.sqf"; to the bottom of the server_functions.sqf? Link to comment Share on other sites More sharing options...
axeman Posted August 25, 2013 Report Share Posted August 25, 2013 Yup. Use a similar path to the other server pbo stuff. Starts with z\addons\dayz_server\<folder name here>\scriptname.sqf. Be sure to ensure the prefix is correct when packaging your server .pbo, is the biggest issue, can usually tell by missing file errors in . rpt file. Link to comment Share on other sites More sharing options...
axeman Posted August 25, 2013 Report Share Posted August 25, 2013 Add them to the init.sqf :) Link to comment Share on other sites More sharing options...
neiljb Posted August 25, 2013 Author Report Share Posted August 25, 2013 Ahh cool, so you still call the scripts in the server pbo from the init.sqf? When you say the prefix do you mean the path to the script in the init.sqf? Or Is it something to do with the server pbo file? Link to comment Share on other sites More sharing options...
neiljb Posted August 25, 2013 Author Report Share Posted August 25, 2013 Also if I call a buildings script from the init.sqf would it run server or client side (with a view to the fact AI will ignore buildings that are spawned client side and I do run AI)? Link to comment Share on other sites More sharing options...
DeliciousAce Posted March 9, 2014 Report Share Posted March 9, 2014 Hey Epoch community,yes is an old post but I have to know something :DBecause we have a very large mission file to download, we wanted to fill our addons and scripts all in the dayz_server.pbo. can we move all in the Server.pbo or are there limits?Bring that perhaps LOSS performance when the server.pbo needs to load everything?If so, it should then be divided between mission.pbo and server.pbo?And what should be in any case in the server.pbo and what is not? We have already cleanedup the mission folder from unnecessary, everything else is used. Thanks in advance! Ace Link to comment Share on other sites More sharing options...
hambeast Posted March 12, 2014 Report Share Posted March 12, 2014 Hey Epoch community, yes is an old post but I have to know something :D Because we have a very large mission file to download, we wanted to fill our addons and scripts all in the dayz_server.pbo. can we move all in the Server.pbo or are there limits? Bring that perhaps LOSS performance when the server.pbo needs to load everything? If so, it should then be divided between mission.pbo and server.pbo? And what should be in any case in the server.pbo and what is not? We have already cleanedup the mission folder from unnecessary, everything else is used. Thanks in advance! Ace from what I understand moving things server side will make the server work harder. It seems that a new trend forming is headless clients to handle ai. People are moving scripts clientside to headless clients in order to offload the server. If I am getting your question right, you want to increase performance. This may be something you want to look into. As far as the limitations, I am not certain of that. Link to comment Share on other sites More sharing options...
Sp4rkY Posted March 13, 2014 Report Share Posted March 13, 2014 Yup. Use a similar path to the other server pbo stuff. Starts with z\addons\dayz_server\<folder name here>\scriptname.sqf. Be sure to ensure the prefix is correct when packaging your server .pbo, is the biggest issue, can usually tell by missing file errors in . rpt file. This way i tried many times, but with no success... Either i receive a "script not found" message or the script doesnt work... Furtherways i think there are many scripts which are only able to run in mission file, not in the server.pbo. Link to comment Share on other sites More sharing options...
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