Buck0 Posted March 20, 2014 Report Share Posted March 20, 2014 can i do something like this? init.sqf _nil = [] execVM "\z\addons\dayz_server\custom\mapadditions.sqf"; then have mapadditions.sqf call ALL server map additions? mapadditions,sqf _nil = [] execVM "\z\addons\dayz_server\custom\aicamp.sqf"; _nil = [] execVM "\z\addons\dayz_server\custom\aicamp.sqf"; _nil = [] execVM "\z\addons\dayz_server\custom\aicamp.sqf"; ect ect Link to comment Share on other sites More sharing options...
0 Achmed Posted March 20, 2014 Report Share Posted March 20, 2014 you would need to call it from the server_functions.sqf file server side but yes it will work [] execVM "\z\addons\dayz_server\custom\aicamp.sqf"; is what i put at the end of the file Link to comment Share on other sites More sharing options...
0 Buck0 Posted March 20, 2014 Author Report Share Posted March 20, 2014 then i dont need to call it from init at all right? Link to comment Share on other sites More sharing options...
0 fr1nk Posted March 20, 2014 Report Share Posted March 20, 2014 That's right. Link to comment Share on other sites More sharing options...
0 Buck0 Posted March 20, 2014 Author Report Share Posted March 20, 2014 tyvm :) /closethread Link to comment Share on other sites More sharing options...
0 Buck0 Posted March 20, 2014 Author Report Share Posted March 20, 2014 problem, now spawning double buildings stacked on eachother only being called in server_functions.sqf Link to comment Share on other sites More sharing options...
0 fr1nk Posted March 20, 2014 Report Share Posted March 20, 2014 What entries did you add and where? Link to comment Share on other sites More sharing options...
0 Buck0 Posted March 20, 2014 Author Report Share Posted March 20, 2014 [] execVM "\z\addons\dayz_server\custom\1.sqf"; [] execVM "\z\addons\dayz_server\custom\2.sqf"; [] execVM "\z\addons\dayz_server\custom\3.sqf"; [] execVM "\z\addons\dayz_server\custom\4.sqf"; [] execVM "\z\addons\dayz_server\custom\5.sqf"; all different and all at the end of server_functions.sqf was reading somewhere that said they should be called like call compile preProcessFileLineNumbers "z\addons\dayz_server\custom\1.sqf"; Link to comment Share on other sites More sharing options...
0 fr1nk Posted March 20, 2014 Report Share Posted March 20, 2014 [] execVM "\z\addons\dayz_server\custom\1.sqf"; [] execVM "\z\addons\dayz_server\custom\2.sqf"; [] execVM "\z\addons\dayz_server\custom\3.sqf"; [] execVM "\z\addons\dayz_server\custom\4.sqf"; [] execVM "\z\addons\dayz_server\custom\5.sqf"; all different and all at the end of server_functions.sqf was reading somewhere that said they should be called like call compile preProcessFileLineNumbers "z\addons\dayz_server\custom\1.sqf"; Weird, that's how I do it and haven't come across extra spawning. Can't comment about the bolded method since I've never tried that. Link to comment Share on other sites More sharing options...
0 Achmed Posted March 20, 2014 Report Share Posted March 20, 2014 same here, never had a problem doing it the way i said Link to comment Share on other sites More sharing options...
0 Buck0 Posted March 20, 2014 Author Report Share Posted March 20, 2014 odd, ill try again in the morning when im less tired lol Link to comment Share on other sites More sharing options...
0 Buck0 Posted March 31, 2014 Author Report Share Posted March 31, 2014 alright, so ive finally gotten round to trying again, seems to be double stacking any thoughts as to why this might be happening? Link to comment Share on other sites More sharing options...
0 Achmed Posted March 31, 2014 Report Share Posted March 31, 2014 post your init.sqf and server_functions.sqf files (upload to paste bin) will make it easier to work out the problem Link to comment Share on other sites More sharing options...
0 Friendly Posted March 31, 2014 Report Share Posted March 31, 2014 A better way to do it is to add the direction from the server_functions.sqf to a folder in the dayz_server.pbo that way it is all in one pbo. For example I want to add Map.sqf then I would make a folder in server.pbo called Buildings and in server_functions.sqf I would add the following. call compile preProcessFileLineNumbers "z\addons\dayz_server\Buildings\map.sqf"; to the very bottom of server_functions.sqf Link to comment Share on other sites More sharing options...
0 STENCHOVDETH Posted March 31, 2014 Report Share Posted March 31, 2014 Hey Buck0, Is it all buildings in the file or just one or two? Have you checked the files in original files for duplication of vehicles? This has happened to me in the past when I have downloaded non-original content in the past only to find vehicle duplication in the .sqf or .sqm that has been downloaded. STENCH ;) Link to comment Share on other sites More sharing options...
0 Buck0 Posted March 31, 2014 Author Report Share Posted March 31, 2014 all the files have been designed by myself, when i call them thru init.sqf there is not problem they spawn as normal, i ran a test and deleted one from init, added it to server_functions spawned double Link to comment Share on other sites More sharing options...
0 Friendly Posted March 31, 2014 Report Share Posted March 31, 2014 all the files have been designed by myself, when i call them thru init.sqf there is not problem they spawn as normal, i ran a test and deleted one from init, added it to server_functions spawned double You made sure to also repack and upload both the files after saving I assume aswell. Link to comment Share on other sites More sharing options...
0 Buck0 Posted March 31, 2014 Author Report Share Posted March 31, 2014 .... i mean really? Link to comment Share on other sites More sharing options...
Question
Buck0
can i do something like this?
init.sqf
_nil = [] execVM "\z\addons\dayz_server\custom\mapadditions.sqf";
then have mapadditions.sqf call ALL server map additions?
mapadditions,sqf
_nil = [] execVM "\z\addons\dayz_server\custom\aicamp.sqf";
_nil = [] execVM "\z\addons\dayz_server\custom\aicamp.sqf";
_nil = [] execVM "\z\addons\dayz_server\custom\aicamp.sqf";
ect
ect
Link to comment
Share on other sites
17 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