Jump to content

Sporny

Member
  • Posts

    133
  • Joined

  • Last visited

Posts posted by Sporny

  1. Hey guys,

     

    i think the default Loadout is set in cache/players/default.sqf!?

     

    here is mine

    ["PASS",false,"1",[],[["8Rnd_9x18_Makarov","8Rnd_9x18_Makarov","ItemBandage","ItemPainkiller"],["ItemMap","ItemCompass","ItemRadio","Makarov","ItemSodaCoke","FoodbeefCooked"]],["DZ_Patrol_Pack_EP1",[],[]],[0,0,0],"Survivor2_DZ",0.96,0]

     

    but iam starting with:

     

    ItemSodaCoke

    FoodbeefCooked

    ItemGPS

    ItemWatch

     

    any ideas whats wrong?

  2. if i change it to 'epoch' it cant find server binaries.... its because i start the server with this line (in epoch.sh):

     

    ./server -mod="@dayzoverwatch;@dayz_epoch;@dayz_epoch_server;" -config="cfgdayz/server.cfg" -cfg="cfgdayz/basic.cfg" -port=2302 -beta="expansion/beta;expansion/beta/expansion" -noSound -noPause -world=Chernarus -profiles=cfgdayz -name=cfgdayz -cpucount=2 -exThreads=3 -showscripterrors -pid=2302.pid 2>&1 | ./writer.pl
     

  3. I have some Problems with my restarter.pl!

     

    When i run it, its running in a loop.

    Server is online for about 2 minutes, then he restarts again.

     

    I've added my restarter.pl ;)

     

    #!/usr/bin/perl


    #
    # Copyright 2013 by Denis Erygin,
    # [email protected]<script cf-hash='f9e31' type="text/javascript"> /* */</script>
    #

    use warnings;
    use strict;

    use constant PORT      => 2302; # Change it with epoch.sh
    use constant PATH      => '/home/epoch/epochserver/'; # Set your epoch server dir
    use constant PIDFILE   => PATH.PORT.'.pid';
    use constant CACHE_DIR => PATH.'cache/players';

    unless (-f PATH.'server') {
        print STDERR "Can't found server binary!\n";
        exit;
    }

    set_time  ();
    logrotate ();

    if (-f PIDFILE) {
        open  (IN, '<'.PIDFILE) or die "Can't open: $!";
        my $pid = int(<IN>);
        close (IN);

        my $res = `kill -TERM $pid 2>&1`;
        print STDERR $res,"\n" if $res;
       
        unlink (PIDFILE) if (-f PIDFILE);    
        backup_cache();
    }

    print STDERR "Restart Dayz Epoch server...\n";
    chdir (PATH);

    my $cmd = '/usr/bin/screen -h 20000 -fa -d -m -S epoch '.PATH.'epoch.sh';
    my $res = `$cmd`;
    print STDERR $res,"\n" if $res;
    exit;

    #-----------------------------------------------------------------------------------------------
    sub set_time {
        my ($s, $m, $h, $day, $mon, $y) = localtime(time() - 3*3600);
        $y += 1900;
        $mon++;
        
        # Uncomment to disabe night
        #($h, $m) = (17, 0) if ($h > 17 || ($h >= 0 && $h < 4));
        
        my $file = PATH.'cache/set_time.sqf';
        open  (IN, ">$file") or die "Can't find $file";
        # ["PASS", [year, month, day, hour, minute]]
        print IN '["PASS",[2012,6,6,'.$h.','.$m.']]'; # with full moon
        close (IN);
    }

    sub logrotate {
        my $log = PATH.'dump.log';
        if (-f $log) {
            my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size) = stat($log);
        
            if ($size && $size >= 100000000) {
                print STDERR "logrotate $size\n";
            
                my $nlog = $log.'.'.time();
                my $res  = `cp $log $nlog 2>&1`;
                print STDERR $res,"\n" if $res;
            
                $res = `echo '' > $log 2>&1`;
                print STDERR $res,"\n" if $res;
            }
        }
    }

    sub backup_cache {
        return unless (-d CACHE_DIR);
        opendir (DIR, CACHE_DIR) or die $!;

        while (my $file = readdir (DIR)) {
            next unless ($file =~ m/^\d+$/ && $file ne '1');
            my $dir    = CACHE_DIR.'/'.$file;
            my $backup = CACHE_DIR.'/1';
            next unless (-d $dir);
            
            my $res = `mv -f $dir $backup 2>&1`;
            print STDERR $res,"\n" if $res;
        }

        closedir (DIR);
    }

  4. yeah i know..... my Cinder Door is destructible, but when its on a wooden floor or in a arma 3 building, its indesructible!? so whats wrong?

     

    here my code:

     

    //Indestructible Bases by [GZA] David zombieapo.eu
    sleep 80;
    while {true} do {
        _indestructible = (allMissionObjects "Constructions_static_F") + (allMissionObjects "PlotPole_EPOCH");
        {
            if (!((_x isKindof "CinderWallGarage_EPOCH") or (_x isKindof "WoodLargeWallDoorL_EPOCH") or (_x isKindof "WoodLargeWallDoor_EPOCH"))) then {
            _this = _x addEventHandler ["HandleDamage", {false}];    //Remove multiple EHs, having one on each object is enough!
            if(_this > 0)then[{_x removeEventHandler ["HandleDamage", _this]},{_x allowDamage false; _x enableSimulation false}];
            };
        } count _indestructible;
        sleep 300; // run every 5min
    };

  5. The problem of the indestructible Bases is, that you can make all indestructible, or nothing....

     

    on my server you should only be able to destroy doors, but if the door is on a floor, on a foundation or in a arma 3 building, its indestructible too :(

  6. Next base despawned.... incl jammer and lockboxes :(

     

    Our bases are indestructible so it couldnt be a vehicle.... there are despawned bases without any vehicle too....

    With this problem we'll loose our players... and we can shutdown the server in a month :(

  7. Okay here is my briefing menu:

     

    init.sqf

    null =[] execVM "scripts\briefing.sqf";

     

    scripts\briefing.sqf

    if (!hasInterface) exitWith {};

    waitUntil {!isNuLL(uiNameSpace getVariable ["EPOCH_loadingScreen",displayNull])};
    waitUntil {isNuLL(uiNameSpace getVariable ["EPOCH_loadingScreen",displayNull])};

    player createDiarySubject ["menu1","Name on Map"];
    player createDiarySubject ["menu2","Name on Map2"];

    player createDiaryRecord ["menu1",
    ["Name on Map","
    <br/>
    Put your text here
    <br/>
    "]];

    player createDiaryRecord ["menu2",
    ["Name on Map2","
    <br/>
    Put your text here
    <br/>
    "]];

     

    Not on scroll menu but it works :)

     

    have fun ;)

×
×
  • Create New...