Jump to content

shootingblanks

Member
  • Posts

    12
  • Joined

  • Last visited

Posts posted by shootingblanks

  1. I had this pop up when installing a mod (forget which 1). Deleting the " };" from line 107 stopped the error for me. Im not a scripter but it's worth a shot.

    i had not seen this post before i posted mine. this is easy to check using notepad++ because if you click,on one } it will highlight the matching brace. so just check them and make sure the correct brace is highlighted

  2. You are not using a server host, but are on your own PC?  If so then you need a BATCH file to stop the server, stop BEC, start the server, start BEC.  The BEC scheduler.xml will execute the batch file at 4 hours.

    Here are a few links to posts that go over this already

    http://opendayz.net/threads/server-launch-bat-file-and-restart-system-tutorial.11006/

    http://opendayz.net/threads/bec-problems.21396/#post-115402

    and of course this has already been asked on this website  

     

    This is the batch file to stop and start the server and BEC .. 

    @echo off
    echo.
    echo KILL arma2oaserver.exe
    taskkill /im arma2oaserver.exe
    echo.
    echo Kill Bec.exe
    taskkill /im bec.exe
    
    timeout 10
    
    echo.
    echo Starting Dayz Server
    :: start the server..
    cd c:\arma2oaserver
    start "" "@START_SERVER.bat"
    echo.
    echo Starting Bec
    timeout 10
    :: start bec
    
    cd c:\arma2oaserver\bec
    start "" "bec.exe" -f Config.cfg
    echo.
    echo Server Started 
    
    
    @exit
    

    You are going to enable BEC and the scheduler.xml .. directions are at ibattle.org

    You will want a job that looks SIMILIAR to this, .. this is for an old version of BEC so dont copy exactly

    <job id="4">
            <time>073000</time>
            <delay>000000</delay>
            <day>1,2,3,4,5,6,7</day>
            <loop>0</loop> 
            <cmd>c:\arma2oaserver\restart.bat</cmd>   
            <cmdtype>1</cmdtype>
        </job>
    
  3. the undefined variable _previous is because the line it is set to a value is in error

    _previous = str(_object getVariable["lastInventory",[]]);
     
    So it is getting the "lastinventory" variable from the object and should be inserting an empty array [] if that variable does not exist.  So _previous SHOULD either be inventory or [] .    To see what is happening with that value, insert this line of code and then run the server and see what your arma2oaserver.rpt log says ... 
    diag_log format["----------- _PREVIOUS = %1 -----------------",_previous];
    
    right below where _previous is defined .. so on line 13
     
    
    _object_inventory = {
    	private["_inventory","_previous","_key"];
    		_inventory = [
    			getWeaponCargo _object,
    			getMagazineCargo _object,
    			getBackpackCargo _object
    			/*ZSC*/
    			, _object getVariable["bankMoney",0]
    			/*ZSC*/
    		];
    		_previous = str(_object getVariable["lastInventory",[]]);
    
    		if (str(_inventory) != _previous) then {
    			_object setVariable["lastInventory",_inventory];
    			if (_objectID == "0") then {
    				_key = format["CHILD:309:%1:%2:",_uid,_inventory];
    			} else {
    				_key = format["CHILD:303:%1:%2:",_objectID,_inventory];
    			};
    			//diag_log ("HIVE: WRITE: "+ str(_key));
    			_key call server_hiveWrite;
    		};
    };
    
  4. this person dropped off the site in October so apparently never finished it.   I DO have a finished launcher which will automatically start arma2 and join the server ... but the servers IP is hard coded into the program.   Soon .. someday soon .. I will work on allowing multiple servers enabled by a config file so its configurable by the server owner before distributing the package.

     

    NTX3ok2.png

×
×
  • Create New...