Jump to content

kingpapawawa

Member
  • Posts

    328
  • Joined

  • Last visited

  • Days Won

    6

Posts posted by kingpapawawa


  1. As far as the buildings are concerned, disabling the kick will allow people to spawn buildings and the worst is someone hacks and spawns 1000 hospitals all over and you roll back the database?  If you set it to log you can see who is spawning what.

    Most people getting good fps are running their own server. If anyone is using a 3rd party service like GTX/Survival/etc and getting good FPS i haven't heard.   Below are my FPS on 2 of the 3 maps I run (plus a test server). all on one dedicated server that costs me about 100/mo

    CHERNO 
    22:13:56 "SERVER FPS: 13  PLAYERS: 12"
    22:19:56 "SERVER FPS: 11  PLAYERS: 13"
    22:25:56 "SERVER FPS: 10  PLAYERS: 14"
    22:31:57 "SERVER FPS: 11  PLAYERS: 13"
    4,800 rows in DB

    NAPF 
    16:34:25 "SERVER FPS: 17  PLAYERS: 14"
    16:40:26 "SERVER FPS: 19  PLAYERS: 14"
    16:46:26 "SERVER FPS: 20  PLAYERS: 14"
    16:52:26 "SERVER FPS: 16  PLAYERS: 14"

    3,700 rows in DB

    Dedicated server at ohv.com i7 6700

    Edit; was busy tonight - don't know what i'll do if it gets busier, send them to salival's server probably...
     0:22:10 "SERVER FPS: 8  PLAYERS: 21"

  2. 7 hours ago, juandayz said:

    @kingpapawawa maybe this old post can help you.

    This is incomplete, the batch file calls 11 different scripts and only one is included.  But the issue is resolved with the information i provided in the first post.
    SET GLOBAL event_scheduler="ON"; ///doing this turns the event scheduler on but restarting the server turns it back off.

    Editing my.ini to include "event_scheduler=on" turns it on every time mysqld starts.

     

     

  3. 21:40:06 "Checking vaults..."
    21:40:06 Error in expression <= _allvaults select _i;
    _curvaultcode = _curvault getVariable "CharacterID";
    if >
    21:40:06   Error position: <_curvault getVariable "CharacterID";
    if >
    21:40:06   Error Undefined variable in expression: _curvault
    21:40:06 File z\addons\dayz_server\modules\0000safe.sqf, line 16
    21:40:06 "Total open vaults on server: 0"

    Heres the code below that I am running -0 there are 0000'd vaults on the server.

    // Abandoned player safe mission by Cramps (zfclan.org/forum)
    // Needs an SQL event set up to turn abandoned vault codes to 0000
    
    private ["_rndvault","_curvaultcode","_curvault","_vaultarray","_numvaults","_allvaults","_spawnChance", "_spawnMarker", "_spawnRadius", "_markerRadius", "_item", "_debug", "_start_time", "_loot", "_loot_amount", "_loot_box", "_wait_time", "_spawnRoll", "_position", "_event_marker"];
    
    // First chack if there is a vault available, no point running if not
    
    diag_log ("Checking vaults...");
    
    _allvaults = (allmissionobjects "VaultStorageLocked");
    _numvaults = (count _allvaults);
    _vaultarray = [];
    
    for "_i" from 0 to _numvaults do {
    	_curvault = _allvaults select _i;
    	_curvaultcode = _curvault getVariable "CharacterID";
    	if (_curvaultcode == "0000" ) then {
    		_vaultarray = _vaultarray + [_curvault];
    		};
    };
    
    _numvaults = (count _vaultarray);
    diag_log ("Total open vaults on server: " + str(_numvaults));
    
    // Exit if no safes
    if (_numvaults == 0) exitWith {};
    
    _rndvault = _vaultarray select (floor (random (count _vaultarray)));
    _position = getPos _rndvault;
    diag_log ("Location of randomly picked 0000 vault = " + str(_position));
    
    // Main epoch mission stuff
    
    _spawnChance =  0.50; // Percentage chance of event happening
    _markerRadius = 150; // Radius the loot can spawn and used for the marker
    _wait_time = 900; 
    _start_time = time;
    _debug = true; // Ignores the random chance and runs every time.
    
    if (isNil "EPOCH_EVENT_RUNNING") then {
    EPOCH_EVENT_RUNNING = false;
    };
     
    // Check for another event running
    if (EPOCH_EVENT_RUNNING) exitWith {
    diag_log("Event already running");
    };
     
    // Random chance of event happening
    _spawnRoll = random 1;
    if (_spawnRoll > _spawnChance and !_debug) exitWith {};
    
    // Draw markers & tell players
     
    _event_marker = createMarker [ format ["loot_event_marker_%1", _start_time], _position];
    _event_marker setMarkerShape "ELLIPSE";
    _event_marker setMarkerColor "ColorKhaki";
    _event_marker setMarkerSize [(_markerRadius + 100), (_markerRadius + 100)];
    
    _event_marker2 = createMarker [ format ["loot_event_marker_%2", _start_time], _position];
    _event_marker2 setMarkerShape "ICON";
    _event_marker2 setMarkerType "mil_dot";
    _event_marker2 setMarkerColor "ColorBlack";
    _event_marker2 setMarkerText "Abandoned Safe PVP ZONE!!";
    
    if (_debug) then {
    _debug_marker = createMarker [ format ["loot_event_debug_marker_%1", _start_time], _position];
    _debug_marker setMarkerShape "ICON";
    _debug_marker setMarkerType "mil_dot";
    _debug_marker setMarkerColor "ColorBlack";
    _debug_marker setMarkerAlpha 1;
    };
    
    [nil,nil,"per",rTITLETEXT,"It's rumored there is a survivor safe lost with 0000 as it's code. Go find it!","PLAIN DOWN"] call RE;
    
    diag_log(format["Loot event setup, waiting for %1 seconds", _wait_time]);
    
    // Wait
    sleep _wait_time;
     
    // Clean up
    EPOCH_EVENT_RUNNING = false;
    deleteMarker _event_marker;
    deleteMarker _event_marker2;

     

×
×
  • Create New...