Jump to content

Desire

Member
  • Posts

    93
  • Joined

  • Last visited

Posts posted by Desire

  1.  

    Dont do #restart as it only restarts the mission and not the server, Do #shutdown and then for job id="9" make it call a .bat file which is provided to start the server and what you are probably already using.

    Example:

    <job id="4">
                    <time>08:00:00</time>
                    <delay>000000</delay>
                    <day>1,2,3,4,5,6,7</day>
                    <loop>0</loop>
                    <cmd>#shutdown</cmd>
                    <cmdtype>0</cmdtype>                   
            </job>
    		
    		<job id="5">
                    <time>08:00:00</time>
                    <delay>000000</delay>
                    <day>1,2,3,4,5,6,7</day>
                    <loop>0</loop>
                    <cmd>C:\Program Files (x86)\Steam\SteamApps\common\Arma 2 Operation Arrowhead\AStartNapf.bat</cmd>
                    <cmdtype>1</cmdtype>                   
            </job>
    

    Do you know where I would be able to locate a bat file on a vilayer server?

  2. I use BEC. For some reason, this isn't restarting the server after 2 hours!
     
    Code: 
    <?xml version="1.0"?>
    
    <Scheduler>
    
        <!-- See: http://ibattle.org/install-and-configure/setting-up-the-scheduler -->
    
        <!-- Restart Messages -->
        <job id="0">
            <time>010000</time>
            <delay>000000</delay>
            <day>1,2,3,4,5,6,7</day> 
            <loop>0</loop> 
            <cmd>say -1 Server Restart in 1 hour</cmd>    
            <cmdtype>0</cmdtype>            
        </job> 
    
        <job id="1">
            <time>013000</time>
            <delay>000000</delay>
            <day>1,2,3,4,5,6,7</day> 
            <loop>0</loop> 
            <cmd>say -1 Server Restart in 30 minutes</cmd>    
            <cmdtype>0</cmdtype>            
        </job> 
        <job id="2">
            <time>015000</time>
            <delay>000000</delay>
            <day>1,2,3,4,5,6,7</day>
            <loop>0</loop> 
            <cmd>say -1 Server Restart in 10 minutes</cmd>    
            <cmdtype>0</cmdtype>            
        </job>
        
        <job id="3">
            <time>015500</time>
            <delay>000000</delay>
            <day>1,2,3,4,5,6,7</day> 
            <loop>0</loop> 
            <cmd>say -1 Server Restart in 5 minutes</cmd>    
            <cmdtype>0</cmdtype>            
        </job> 
       
        <job id="4">
            <time>015900</time>
            <delay>000000</delay>
            <day>1,2,3,4,5,6,7</day> 
            <loop>0</loop> 
            <cmd>say -1 Server Restart in 60 seconds, logout to avoid gear loss</cmd>    
            <cmdtype>0</cmdtype>            
        </job>  
    
        <job id="5">
            <time>015930</time>
            <delay>000000</delay>
            <day>1,2,3,4,5,6,7</day> 
            <loop>0</loop> 
            <cmd>say -1 Server Restart in 30 seconds</cmd>    
            <cmdtype>0</cmdtype>            
        </job> 
     
        <job id="6">
            <time>015950</time>
            <delay>000000</delay>
            <day>1,2,3,4,5,6,7</day> 
            <loop>0</loop> 
            <cmd>say -1 Server Restart in 10 seconds</cmd>    
            <cmdtype>0</cmdtype>            
        </job> 
    
     <!-- run every 1h with a 5min delay on startup -->
        <job id="7">
            <time>0120000</time>
            <delay>000500</delay>
            <day>1,2,3,4,5,6,7</day>
            <loop>1</loop> 
            <cmd>say -1 ServerIP: 216.231.138.224:2302 | Website: http://www.plasmagaminggm.enjin.com | Tell your friends! </cmd>    
            <cmdtype>0</cmdtype>            
        </job>
    
    <!-- RESTART SERVER -->
        <job id="8">
            <time>020000</time>
            <delay>000000</delay>
            <day>1,2,3,4,5,6,7</day>
            <loop>0</loop> 
            <cmd>#restart</cmd>    
            <cmdtype>1</cmdtype>            
        </job>  
    
    
    </Scheduler>
    

    Please help <3

     

  3. In my HiveExt.ini, I have this 

    [Time]
    ;Possible values: Local, Custom, Static
    Type = Static
    ;If using Custom type, offset from UTC in hours (can be negative as well)
    ;Offset = 0
    ;If using Static type (Hour value always the same on every server start), the value (0-24) to set the Hour to
    ;Hour = 11
    

    but it's still night when the server is started.. 

  4. Yes. Most of changes will only appear after server restart. If editing players, they need to relog for changes to kick in. Stuff like item quantity for traders happens instantly.

    thanks, I got everything working and found out I could do more then just add items to traders :)

  5.  

    You need to create your own *.sql file.

    Name it: custom_stuff_for_traders.sql and after you've added what you want to it, run it on an sql client you use.

    So it should look like this:

     

    custom_stuff_for_traders.sql

    INSERT INTO `traders_data` (`item`,`qty`,`buy`,`sell`,`order`,`tid`,`afile`) VALUES
    ('["DDOPP_X26",3]', 1000, '[2,"ItemGoldBar",1]', '[1,"ItemGoldBar",1]',0, 002, 'trade_weapons'),
    ('["DDOPP_X26_b",3]', 1000, '[2,"ItemGoldBar",1]', '[1,"ItemGoldBar",1]',0, 002, 'trade_weapons'),
    ('["DDOPP_X3",3]', 1000, '[2,"ItemGoldBar",1]', '[1,"ItemGoldBar",1]',0, 002, 'trade_weapons'),
    ('["DDOPP_X3_b",3]', 1000, '[2,"ItemGoldBar",1]', '[1,"ItemGoldBar",1]',0, 002, 'trade_weapons'),
    ('["RH_deagle",3]', 1000, '[2,"ItemGoldBar",1]', '[1,"ItemGoldBar",1]',0, 002, 'trade_weapons'),
    ('["RH_Deagleg",3]', 1000, '[2,"ItemGoldBar",1]', '[1,"ItemGoldBar",1]',0, 002, 'trade_weapons'),
    ('["RH_Deagles",3]', 1000, '[2,"ItemGoldBar",1]', '[1,"ItemGoldBar",1]',0, 002, 'trade_weapons');
    

    What would a sql client be? I'm kinda confused about this whole thing, it's kinda weird.. What do you mean run it?

  6. So, I added this DZE_GodModeBase = true; to my init.sqf and now when I get on, i'm not able to remove anything. I thought this was a god mode on the base, but when I created the base, I don't have the option to remove? any ideas?

  7. i'm assuming that the map markers will be for the new area you made for the server.

     

    one way is to find a building you placed that's centrally placed (or close to) in the new area then find that object in the SQF file and the coords will look either like -

    [14676.693, 16651.602, -0.00017356873]
    

    or -

    [14676.693, 16651.602]
    

    So, if they look like the first set you need to swap the middle number and the most right number around so it would look like -

    [14676.693, -0.00017356873, 16651.602]
    

    And if they look like the second set you just need to add a 0 in the middle of them so it would look like -

    [14676.693, 0, 16651.602]
    

    And there is the coordinates you need :)

    Thank you! it worked like a charm!

  8.  

    open the SQF file for that map edit you made and find all the buildings that aren;t spawning loot and change their prefix from

    MAP_
    

    to

    LAND_
    

    Thank you! Last question, how would I get coordinates like this 10948.426,-10.727827,654.90265  So that I can add custom map markers?

  9. here is a tiny cut-out of something i made for my server - it only includes the starting code, 1 object and the end code. but that's all the example you need. this is the mission.sqf file saved in user missions.

    activateAddons [ 
      "map_eu"
    ];
    
    activateAddons ["map_eu"];
    initAmbientLife;
    
    _this = createCenter west;
    _center_0 = _this;
    
    _group_0 = createGroup _center_0;
    
    _unit_0 = objNull;
    if (true) then
    {
      _this = _group_0 createUnit ["BAF_Soldier_AA_W", [14675.053, 16635.396], [], 0, "CAN_COLLIDE"];
      _unit_0 = _this;
      _this setUnitAbility 0.60000002;
      if (true) then {_group_0 selectLeader _this;};
      if (true) then {selectPlayer _this;};
      if (true) then {setPlayable _this;};
    };
    
    _vehicle_23 = objNull;
    if (true) then
    {
      _this = createVehicle ["MAP_Mil_Barracks_i", [14676.693, 16651.602, -0.00017356873], [], 0, "CAN_COLLIDE"];
      _vehicle_23 = _this;
      _this setPos [14676.693, 16651.602, -0.00017356873];
    };
    
    processInitCommands;
    runInitScript;
    finishMissionInit;
    
    

    you need to delete all code that comes above the first '_vehicle_XX' line. then delete the last 3 lines.

    save it, put it somewhere on your server files, not your mission file. Example would be "\z\addons\dayz_server\MapAdditions\example.sqf";

     

    now open up your 'server_functions.sqf' file and at the very bottom put

    [] ExecVM "\z\addons\dayz_server\MapAdditions\example.sqf";
    

    save all the work, start up your server and it will be on your map waiting for you :)

    Yeah, Thanks man :) I figured out that I left some code that prevented it from loading.. It works now though. is there a reason why items aren't spawning in the new buildings I placed?

  10. For the past 2-3 hours, I have been editing my map. I finally got it done and did the steps that I was told to do. It still doesn't work. 

     

    Here is where my maps folder is located : http://gyazo.com/39f2ffe239be4f938b0eb3708a78d471

     

    Inside my maps folder is my Outpost.sqf folder, which includes all of this.. : http://pastebin.com/jNNpBwJi

     

    and inside my server_functions is this

    server_setLocalObjVars = {
    	private ["_obj","_holder","_weapons","_magazines","_backpacks","_player","_objectID","_objectUID"];
    
    	_obj = _this select 0;
    	_holder = _this select 1;
    	_player = _this select 2;
    
    	_objectID 	= _obj getVariable["ObjectID","0"];
    	_objectUID	= _obj getVariable["ObjectUID","0"];
    
    	_weapons = 		getWeaponCargo _obj;
    	_magazines = 	getMagazineCargo _obj;
    	_backpacks = 	getBackpackCargo _obj;
    	
    	deleteVehicle _obj;
    
    	_holder setVariable ["WeaponCargo", _weapons];
    	_holder setVariable ["MagazineCargo", _magazines];
    	_holder setVariable ["BackpackCargo", _backpacks];
    	
    	diag_log format["SAFE LOCKED: ID:%1 UID:%2 BY %3(%4)", _objectID, _objectUID, (name _player), (getPlayerUID _player)];
    };
     // Map Custom
     execVM "\z\addons\dayz_server\Maps\Outpost.sqf";
    

    What did I do wrong? Please help!

×
×
  • Create New...