Indiculous Posted February 27, 2014 Report Share Posted February 27, 2014 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- You maybe asking your self Server Side? Whats the difference? Well adding your buildings server side not only makes your mission file smaller but prevents players from stealing your custom buildings you made! 1)To do so all you must do is open your dayz_server.pbo 2)Make a folder called Buildings 3) inside your Buildings folder add your buildings into there. 4) Open your init folder inside the the dayz_server and inside server_fucntions 5) Next Go to the VERY Bottom and add this [] execVM "\z\addons\dayz_server\buildings\filenamehere.sqf"; Each time just add another under it for each file you add just change the name. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Indiculous and Rythron 2 Link to comment Share on other sites More sharing options...
Rythron Posted February 27, 2014 Report Share Posted February 27, 2014 Trying it now .. Cleans up stuff :) :) could this also be possible with .ogg files? Link to comment Share on other sites More sharing options...
Indiculous Posted February 27, 2014 Author Report Share Posted February 27, 2014 um i have not tried with ogg files but i all i can do is try right? Link to comment Share on other sites More sharing options...
Rythron Posted February 27, 2014 Report Share Posted February 27, 2014 um i have not tried with ogg files but i all i can do is try right? Lol me too ;) Link to comment Share on other sites More sharing options...
Indiculous Posted February 27, 2014 Author Report Share Posted February 27, 2014 Good luck man ;) Link to comment Share on other sites More sharing options...
Deepsniper Posted February 27, 2014 Report Share Posted February 27, 2014 If these files are server side do you think if you added in ai to them that you could turn them into traders from the mod. sqf? Link to comment Share on other sites More sharing options...
Indiculous Posted February 27, 2014 Author Report Share Posted February 27, 2014 This should help ya bud! https://docs.google.com/document/d/17qGy-LI4WVudJQb1vRCZobTgTEFgZwoJybEA9oUiZuQ/edit?pli=1 Link to comment Share on other sites More sharing options...
Rythron Posted February 27, 2014 Report Share Posted February 27, 2014 class CfgSounds { sounds[] = {drink_water,playerSnoring,hero,danceMusic}; class drink_water { name="drink_water"; sound[]={\z\addons\dayz_server\sounds\drink_water.ogg,0.9,1}; titles[] = {}; }; nope no luck !! any ideas? Link to comment Share on other sites More sharing options...
Deepsniper Posted February 27, 2014 Report Share Posted February 27, 2014 Yeah i saw that. Im just wondering if i need to put it in the epoch mission or can it be in the added mission. Itll make it 1 less file to mod... Im going to test it myself as soon as i can but im curious if anyone has tried it. Link to comment Share on other sites More sharing options...
Indiculous Posted February 27, 2014 Author Report Share Posted February 27, 2014 Make sure that class CfgSounds { sounds[] = {drink_water,playerSnoring,hero,danceMusic}; class drink_water { name="drink_water"; sound[]={\z\addons\dayz_server\sounds\drink_water.ogg,0.9,1}; titles[] = {}; }; is in you description.ext? Link to comment Share on other sites More sharing options...
Indiculous Posted February 27, 2014 Author Report Share Posted February 27, 2014 UPDATE make a file called customSounds.hpp and inside it paste class CfgSounds { sounds[] = {drink_water,playerSnoring,hero,danceMusic}; class drink_water { name="drink_water"; sound[]={\z\addons\dayz_server\sounds\drink_water.ogg,0.9,1}; titles[] = {}; }; and then in the description.ext add this at the bottom //customsounds #include "customSounds.hpp" Link to comment Share on other sites More sharing options...
Rythron Posted February 28, 2014 Report Share Posted February 28, 2014 UPDATE make a file called customSounds.hpp and inside it paste class CfgSounds { sounds[] = {drink_water,playerSnoring,hero,danceMusic}; class drink_water { name="drink_water"; sound[]={\z\addons\dayz_server\sounds\drink_water.ogg,0.9,1}; titles[] = {}; }; and then in the description.ext add this at the bottom //customsounds #include "customSounds.hpp" Link to comment Share on other sites More sharing options...
Indiculous Posted February 28, 2014 Author Report Share Posted February 28, 2014 Anyluck? Link to comment Share on other sites More sharing options...
Rythron Posted February 28, 2014 Report Share Posted February 28, 2014 Anyluck? Link to comment Share on other sites More sharing options...
Indiculous Posted February 28, 2014 Author Report Share Posted February 28, 2014 I don't know man i guess just keep the ogg files inside your mission file ispan55 and Rythron 2 Link to comment Share on other sites More sharing options...
Rythron Posted February 28, 2014 Report Share Posted February 28, 2014 no other solution yet .. Okay thx :D Link to comment Share on other sites More sharing options...
Kind-Sir Posted February 28, 2014 Report Share Posted February 28, 2014 Gotta have the sound files in the mission, as the clients need 'em too.The clients will not get any access to the dayz_server files.The way the buildings load in through the dayz_server files are that they are stored in their own variable and spawned on each client through the server.With sound files, you have to have the sound file local (on the player's computer) in order to play it.If the file size bothers you, you may have luck compressing it down.Although, you may also have luck looking into https://community.bistudio.com/wiki/Multiplayer_Custom_Sounds_TutorialIf clients can have sound files (50KB or less) shared between server and other clients, you might be able to set up a sound folder in your instance folder and see if it loads from there. Might work if you have a headless client, bonus for AI, too. Link to comment Share on other sites More sharing options...
Guest Posted February 28, 2014 Report Share Posted February 28, 2014 moving sounds or textures server side wont work because clients can only use them if they have those files on their machine (thaty why it works in the mission file because everyone is downloading them) buildings work because its basically scripts and commands :) Link to comment Share on other sites More sharing options...
MIckeyMouse Posted March 5, 2014 Report Share Posted March 5, 2014 (edited) Hey guys a little help if you can. I have followed the instructions as above. however my buildings do not appear on the map. My question is, does it follow the same rules as per client side download. eg. 1st line of the client side building .sqf file would start off with ' if (isServer) then { _vehicle_3 = objNull; if (true) then { _this = createVehicle ["MAP_asf2_0_2000", [1139.8907, 2393.6802, 9.5367432e-007], [], 0, "CAN_COLLIDE"]; _vehicle_3 = _this; _this setDir -26.330427; _this setPos [1139.8907, 2393.6802, 9.5367432e-007]; whereas the new file starts off like this. activateAddons [ "map_eu", "aif_arma1buildings", "pook_h13", "mbg_killhouses", "mbg_buildings_3", "mbg_african_buildings" ]; activateAddons ["map_eu", "aif_arma1buildings", "pook_h13", "mbg_killhouses", "mbg_buildings_3", "mbg_african_buildings"]; initAmbientLife; _this = createCenter west; _center_0 = _this; _group_0 = createGroup _center_0; _unit_0 = objNull; if (true) then { _this = _group_0 createUnit ["BAF_Soldier_AR_MTP", [5179.8975, 2337.6011, -9.8732548], [], 0, "CAN_COLLIDE"]; _unit_0 = _this; _this setDir -582.72571; _this setUnitAbility 0.60000002; if (true) then {_group_0 selectLeader _this;}; if (true) then {selectPlayer _this;}; if (true) then {setPlayable _this;}; }; _vehicle_8 = objNull; if (true) then { _this = createVehicle ["MAP_runway_main", [5030.1729, 2319.3989, 4.4675632], [], 0, "CAN_COLLIDE"]; _vehicle_8 = _this; _this setDir -59.957626; _this setPos [5030.1729, 2319.3989, 4.4675632]; }; Do I change the blue text in 2nd.sqf to resemble the first? or change it to something else or add to it ? any help would be appreciated. EDit: Ok sorted this out changes to first .sqf and silly me forgot to remove the last 3 lines as well. duh''' Edited March 5, 2014 by MIckeyMouse 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