Jump to content

xorxand

Member
  • Content Count

    2
  • Joined

  • Last visited

  • Medals

Community Reputation

10 Good

About xorxand

  • Rank
    Newbie
  1. // this is the original script, cleaned up a little if (isServer) then { // SERVER INIT DUWS_host_start = false; publicVariable "DUWS_host_start"; waitUntil {time > 0.1}; getsize_script = [player] execVM "mapsize.sqf"; DUWS_host_start = true; publicVariable "DUWS_host_start"; // init High Command _handle = [] execVM "dialog\hc_init.sqf"; waitUntil {scriptDone getsize_script}; }; }; if (isServer) then { _null = [] execVM "dialog\startup\hq_placement\placement.sqf"; waitUntil {chosen_hq_placement}; // create random HQ if (!hq_manually_placed && !player_is_choosing_hqpos) then { hq_create = [20, 0.015] execVM "initHQ\locatorHQ.sqf"; waitUntil {scriptDone hq_create}; }; }; //These are the changes made to the same section to get dedicated server working. //script changes here are within the 'IF MP' section of init.sqf //*********************************** //XORXAND add '//' to the beginning of line 205,217,224,225 // or remove the section above and replace with... //*********************************** DUWS_host_start = false; publicVariable "DUWS_host_start"; waitUntil {time > 0.1}; getsize_script = [player] execVM "mapsize.sqf"; DUWS_host_start = true; publicVariable "DUWS_host_start"; // init High Command _handle = [] execVM "dialog\hc_init.sqf"; waitUntil {scriptDone getsize_script}; }; //<---this is the end of 'IF MP' section if (!HQ_pos_found_generated) then{ //<-----this question checks to ask the question about HQ placement _null = [] execVM "dialog\startup\hq_placement\placement.sqf"; waitUntil {chosen_hq_placement}; if (!hq_manually_placed && !player_is_choosing_hqpos) then { hq_create = [20, 0.015] execVM "initHQ\locatorHQ.sqf"; waitUntil {scriptDone hq_create}; }; }; PRO's: Dedicated server works CON's: - 1 person must log into the game and set up the parameters - other players are not to join the server until the params are set - other players are to wait a short while in the water before being tele to HQ (just wait it will happen) - 1 person must be logged in to keep the game params running. NOTES: this is but a simple code hack to make this work, please don't ask me to make any additional changes as I am already out of my depth. Do not credit me in any code changes you make here. I am not responsible for you, your game, your computer or the universe and everything contained within it, if this shit goes wrong. Hope this works for you and hope that a real piece of code gets written to keep running a dedicated server version of this mission. ALL HAIL DUWS!!!
  2. Im sure other have had this working. The most crude hack possible but it works. init.sqf // the following lines 205,217,224,225,239 Im no code expert but this works for dedicated server. however each player that joins gets a new base setup. there is obviously work to do here but its a start for me :) next on my list is some code to check if a HQ exists then move players to that point and skip the generate mission section.
×