-
Posts
133 -
Joined
-
Last visited
Content Type
Profiles
Forums
Articles
Posts posted by Sporny
-
-
no no... i trust in you... ;)
-
Hmm okay... i like the way with Bandits, Soldiers and Survivors :( but okay i will take WAI
-
Anyone get it running? My problem is the server_cleanup.fsm, because i can not find "if ((count units _x==0) ) then {" \n"
I cannot find where to change this line :/
-
Dont work for me :(
-
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?
-
Okay.... if i start the restarter.pl manually, it works.... just when the crontab ist active it restarts in a loop.... i will try to find the answer in the other "automatic restart"-thread ;)
-
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
-
it just restarts in a loop if i run the restarter.pl ;)
In a crontab and if i run it manually...
the server is runnig without any problems... only the restarter.pl doesnt work
-
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);
} -
First: Iam not a total Linux noob!
But: Is there any step by step Linux Server Tutorial? i have got a debian server but with the existing tutorials i have some problems :P
The main Server is installed, but i dont understand how to install the mod and serverfiles!
-
Dont work fine..... after every respawn i got another "earplug" point in the menu....
so 4 death= earplugs 4 times in scroll menu :(
-
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
}; -
-
sorry.... don't know the old way :P
I know the way in the mission.sqm... but not in a sqf, or config.cpp
-
No idea how to add a init to a building?
-
You have null =[] execVM "scripts\briefing.sqf"; in your init.sqf with the right path of your briefing.sqf ?
Open your map and you have 2 new menus on the left side.
-
@computermancer
can you tell me how i can make a submenu on scroll menu?
-
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 :(
-
How can i get a submenu?
Like:
Tools->Earplugs
-
Thanks man! Thats all i need :)
-
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 ;)
-
have you build everything of the base? are you the groupleader? do you have set the jammer?
-
I will post the map briefing script after work (about 5 hours) ;)
-
sms
in Discussion
like nedfox said: AH will block it.
Startloadout "default.sqf"!?
in Epoch Linux Server
Posted
Okay... ive got the coins script so your tutorial is not correct for me (i think)... and the loadout in the writer.pl also dont work..... there is a makarov.... but i start with nothing else as a cola and cooked meet :/