Jump to content
  • 0

Calling map additions server side


Buck0

Question

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

  • 0

[] 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

  • 0

[] 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

  • 0

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

  • 0

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

  • 0

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

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...