-
Posts
12 -
Joined
-
Last visited
Content Type
Profiles
Forums
Articles
Posts posted by midgetgrimm
-
-
Is there a way you can take out the restart time on the bar??
Yes, remove the text and remove the variable that defines it
EPOCH_playerCrypto
gives me a value of 'any' when i have krypto on my player.
Anyone else experiencing this?
((uiNamespace getVariable "osefStatusBar")displayCtrl 1000)ctrlSetText format["DAMAGE: %1 | STAMINA: %2 | HUNGER: %3 | THIRST: %4 | KRYPTO: %5 | ", damage player, EPOCH_playerStamina, EPOCH_playerHunger, EPOCH_playerThirst, EPOCH_playerCrypto];
Weird, share your whole file... but that should be fine. How does it look in your debug menu? Does it display or is it the same?
The OP's version is retarded and broken, good luck
- celticwarrior06 and Xeygwyn
- 2
-
Just tried both and the damage is bah on both sadly OPs to many numbers and on Zupa its like
0.100
0.200
0.300
0.400
0.500
dead
Any way to just Make Health a % like 100% = Full Health 0% = dead.
if so that be great i think that would be the way to go with it
round((1 - (damage player)) * 100)
-
Thank a bunch guys!
Also FYI, I searched this forum by the word control, and that thread never came up... -_-
-
So I'm trying to find a list of controls that the players uses, and the different variations, like 'I' gets used in many different ways it would be nice to know. I just learned of the in-game volume control that is built in.
I think it would be nice to know what different actions are truly available via which keybind/stroke
-
You can simply use the internal sound volume system we added
CTRL and - or +
Where is there a list of all of these awesome little commands? I'm still browsing trying to find a post about it
-
Hello, here are my files on how I run my start/restart and how I monitor the server. There are better ways to do it, but this has worked for me for the last year. I had also shared this on the ALRPG forums, you might have seen it there as i see some familiar names here. Anyways, I use a folder called arma3serverconfig, not the one that EPOCH recommends, but all the same applies, its all about directory paths anyways
In the folder where your battle and BEC are you'll want to create a few files. The first being
restartserver.bat
@echo off taskkill /f /fi "status eq not responding" /im arma3server.exe taskkill /f /im arma3server.exe timeout 1 taskkill /f /fi "status eq not responding" /im arma3.exe taskkill /f /im arma3.exe timeout 1 taskkill /im Bec.exe taskkill /f /im cmd.exe /fi "windowtitle eq servermonitor.bat" timeout 2 echo Kill all instances for safety timeout 6 ::CHANGE THE DIRECTORY BELOW TO THE PROPER LOCATION set becpath="C:\arma3serverconfig\Bec\" cd /d %becpath% start "" /min "Bec.exe" -f Config.cfg timeout 1 echo Battleye has started.. timeout 1 echo Starting ARMA 3 Server... ::CHANGE THE DIRECTORY BELOW TO THE PROPER LOCATION cd C:\Games\ArmA3\A3Master timeout 1 start "arma3" /min /high "arma3server.exe" -port=2322 "-config=C:\arma3serverconfig\config.cfg" "-cfg=C:\arma3serverconfig\basic.cfg" "-profiles=C:\arma3serverconfig" -name=SC "-mod=@Epoch;@EpochHive;@AllInArmaTerrainPackLite;" -world=empty -nosplash -noSound -noPause -enableHT -malloc=system timeout 5 echo ARMA 3 Server has started ::CHANGE THE DIRECTORY BELOW TO THE PROPER LOCATION set ServerMonitorPath="C:\arma3serverconfig\" cd /d %ServerMonitorPath% start "" "servermonitor.bat" echo Server Monitor has started. Have Fun timeout 3 exit
Make sure you change your directory locations, then we need 3 more files
servermonitor.bat
::Made by eRazeri - edited by [midgetgrimm] @echo off title servermonitor.bat :start C:\Windows\System32\tasklist /FI "IMAGENAME eq arma3server.exe" 2>NUL | C:\Windows\System32\find /I /N "arma3server.exe">NUL if "%ERRORLEVEL%"=="0" goto loop echo Server is not running, will be started now :: SET DIRECTORY TO PROPER LOCATION start "" /min /wait "C:\arma3serverconfig\restartserver.bat" timeout 30 echo Server started succesfully goto started :loop cls echo Server is already running, running monitoring loop :started :: THESE ARE WERFAULT AND TASK KILLS taskkill /f /im WerFault.exe /fi "WINDOWTITLE eq Arma 3" C:\Windows\System32\timeout /t 80 C:\Windows\System32\tasklist /FI "IMAGENAME eq arma3server.exe" 2>NUL | C:\Windows\System32\find /I /N "arma3server.exe">NUL if "%ERRORLEVEL%"=="0" goto loop goto start
Again make sure to chagne your file locations and all that noise... 2 more to go
next is stopserver.bat
@echo off taskkill /f /fi "status eq not responding" /im arma3server.exe taskkill /f /im arma3server.exe timeout 1 taskkill /f /fi "status eq not responding" /im arma3server.exe taskkill /f /im arma3server.exe timeout 1 taskkill /im Bec.exe timeout 3 exit
Now this we need to call via BEC through the scheduler, so make sure you add a task in the scheduler.xml, like this, make sure you set correct filepath and how many hours until it runs
<job id='8'> <day>1,2,3,4,5,6,7</day> <start>040000</start> <runtime>040000</runtime> <loop>0</loop> <cmd>C:\arma3serverconfig\stopserver.bat</cmd> </job>
Now for the last is the log rotator. you can use the one Epoch kindly provides are use this
rotate_logs.bat - I didn't write this one, but make sure you change and edit the file directory.
@echo off :: Based off of Server Launch Script by r4z0r49 :: Script Modified and fixed by Sykotix - http://dayz.sykotix.com :: :: Usage: dayzsrv-log-rotater.bat servername :: Example 1 - Will update using default profile: dayzsrv-log-rotater.bat :: Example 2 - Will update using profile for US6: dayzsrv-log-rotater.bat US6 :::::::::::::: CONFIG :::::::::::::::::: :: Set your Arma2AO Base installation directory. LEAVE OFF THE ENDING \ set arma2srvpath=D: :: Set your Default server profile name. This is the name of the directory that stores your server.cfg :: This will be used in the case that you don't launch this script without the server param. :: Example: cfgdayz, US6, Chicago13, ect :: DEFAULTPROFILE set srvname=arma3serverconfig :: Delete Original log files after they have been rotated? This keeps your logs more organized and saves space. :: This will not work unless the server is stopped first. This option works best set to 1 when using FireDaemon's Pre/Post Service tab set deloriglogs=1 ::::::::::: ADVANCED CONFIG :::::::::::: :: Don't touch anything below this point unless you know what your doing. :: Setting Server Profile to Use IF "%1"=="" ( set servername=%srvname% ) else ( set servername=%1 ) TITLE DayZ %servername% Server Log Rotater :: Set Debug Mode set debug=0 :: Set Debug Timeout in seconds set dbsecs=10 :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::::::::: STOP EDITING :::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Display Debug output if %debug% == 1 ( echo Server Name = %servername% echo ArmaII Server Path = "%arma2srvpath%" timeout %dbsecs% ) :: Set Time and Date SET HOUR=%time:~0,2% SET dtStamp9=%date:~-4%%date:~4,2%%date:~7,2%_0%time:~1,1%%time:~3,2%_%time:~6,2% SET dtStamp24=%date:~-4%%date:~4,2%%date:~7,2%_%time:~0,2%%time:~3,2%_%time:~6,2% ::Make Date Stamp if "%HOUR:~0,1%" == " " (SET dtStamp=%dtStamp9%) else (SET dtStamp=%dtStamp24%) ECHO Todays Date and time (%date%)(%time%) / %dtStamp% if %debug% == 1 ( timeout %dbsecs% ) echo (%date%) (%time%) Starting Log Rotation. :: Make the Rotated Log Directorys if exist "D:\arma3serverconfig\RotatedLogs" goto maketsdir mkdir "D:\arma3serverconfig\RotatedLogs" :maketsdir if exist "D:\arma3serverconfig\RotatedLogs\%dtStamp%" goto makebedir mkdir "D:\arma3serverconfig\RotatedLogs\%dtStamp%" :makebedir if exist "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye" goto rotatelogs mkdir "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye" :rotatelogs :: Starting Log Rotation. If there are any other logs, just follow the format below, and make sure to NOT touch any of the varibles. copy "%arma2srvpath%\%servername%\arma3server.RPT" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\arma3server.RPT" copy "%arma2srvpath%\%servername%\server_log.txt" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\server_log.txt" copy "%arma2srvpath%\%servername%\BattlEye\attachto.log" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye\attachto.log" copy "%arma2srvpath%\%servername%\BattlEye\addbackpackcargo.log" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye\addbackpackcargo.log" copy "%arma2srvpath%\%servername%\BattlEye\addweaponcargo.log" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye\addweaponcargo.log" copy "%arma2srvpath%\%servername%\BattlEye\deletevehicle.log" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye\deletevehicle.log" copy "%arma2srvpath%\%servername%\BattlEye\remotecontrol.log" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye\remotecontrol.log" copy "%arma2srvpath%\%servername%\BattlEye\selectplayer.log" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye\selectplayer.log" copy "%arma2srvpath%\%servername%\BattlEye\setvariableval.log" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye\setvariableval.log" copy "%arma2srvpath%\%servername%\BattlEye\teamswitch.log" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye\teamswitch.log" copy "%arma2srvpath%\%servername%\BattlEye\waypointcondition.log" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye\waypointcondition.log" copy "%arma2srvpath%\%servername%\BattlEye\waypointstatement.log" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye\waypointstatement.log" copy "%arma2srvpath%\%servername%\BattlEye\scripts.log" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye\scripts.log" copy "%arma2srvpath%\%servername%\BattlEye\createvehicle.log" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye\createvehicle.log" copy "%arma2srvpath%\%servername%\BattlEye\mpeventhandler.log" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye\mpeventhandler.log" copy "%arma2srvpath%\%servername%\BattlEye\publicvariable.log" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye\publicvariable.log" copy "%arma2srvpath%\%servername%\BattlEye\publicvariableval.log" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye\publicvariableval.log" copy "%arma2srvpath%\%servername%\BattlEye\remoteexec.log" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye\remoteexec.log" copy "%arma2srvpath%\%servername%\BattlEye\setdamage.log" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye\setdamage.log" copy "%arma2srvpath%\%servername%\BattlEye\setpos.log" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye\setpos.log" copy "%arma2srvpath%\%servername%\BattlEye\setvariable.log" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye\setvariable.log" copy "%arma2srvpath%\%servername%\BattlEye\addmagazinecargo.log" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye\addmagazinecargo.log" echo (%date%) (%time%) Logs are backed up now... echo (%date%) (%time%) Removing original log files. del /Q /F "%arma2srvpath%\%servername%\arma3server.RPT" del /Q /F "%arma2srvpath%\%servername%\server_log.txt" del /Q /F "%arma2srvpath%\%servername%\BattlEye\attachto.log" del /Q /F "%arma2srvpath%\%servername%\BattlEye\addbackpackcargo.log" del /Q /F "%arma2srvpath%\%servername%\BattlEye\addweaponcargo.log" del /Q /F "%arma2srvpath%\%servername%\BattlEye\deletevehicle.log" del /Q /F "%arma2srvpath%\%servername%\BattlEye\remotecontrol.log" del /Q /F "%arma2srvpath%\%servername%\BattlEye\selectplayer.log" del /Q /F "%arma2srvpath%\%servername%\BattlEye\setvariableval.log" del /Q /F "%arma2srvpath%\%servername%\BattlEye\teamswitch.log" del /Q /F "%arma2srvpath%\%servername%\BattlEye\waypointcondition.log" del /Q /F "%arma2srvpath%\%servername%\BattlEye\waypointstatement.log" del /Q /F "%arma2srvpath%\%servername%\BattlEye\scripts.log" del /Q /F "%arma2srvpath%\%servername%\BattlEye\createvehicle.log" del /Q /F "%arma2srvpath%\%servername%\BattlEye\mpeventhandler.log" del /Q /F "%arma2srvpath%\%servername%\BattlEye\publicvariable.log" del /Q /F "%arma2srvpath%\%servername%\BattlEye\publicvariableval.log" del /Q /F "%arma2srvpath%\%servername%\BattlEye\remoteexec.log" del /Q /F "%arma2srvpath%\%servername%\BattlEye\setdamage.log" del /Q /F "%arma2srvpath%\%servername%\BattlEye\setpos.log" del /Q /F "%arma2srvpath%\%servername%\BattlEye\setvariable.log" del /Q /F "%arma2srvpath%\%servername%\BattlEye\addmagazinecargo.log" if %debug% == 1 ( timeout %dbsecs% ) :: We're done here. exit
This is what I use and it works well. I saw 2 others on here that are nice too, but it's always nice to have options. Cheers
Then just run the restartserver.bat and you should see your logs rotate, then BEC starts, then A3 starts. Once all started that closes and starts the server monitor and just keeps in check until restart. Try to never shut down the database as it takes a few to finish syncing. Thanks, really loving epoch now, can't wait until it gets completely opened up!
-
-
Is there any way to make this show no decimal places? I have taken out restart time and added stamina but it has like 10 decimal places in it and it makes the bar go off center or off screen for some people.
waitUntil {!(isNull (findDisplay 46))};
disableSerialization;
/*
File: fn_statusBar.sqf
Author: Osef (Ported to EpochMod by piX)
Edited by: [piX]
Description: Puts a small bar in the bottom centre of screen to display in-game information
PLEASE KEEP CREDITS - THEY ARE DUE TO THOSE WHO PUT IN THE EFFORT!
*/
_rscLayer = "osefStatusBar" call BIS_fnc_rscLayer;
_rscLayer cutRsc["osefStatusBar","PLAIN"];
systemChat format["statusBar Loading player info...", _rscLayer];
[] spawn {
sleep 5;
_counter = 180;
_timeSinceLastUpdate = 0;
while {true} do
{
sleep 1;
_counter = _counter - 1;
_time = (round(180-(serverTime)/60)); //edit the '240' (60*4=240) to change the countdown timer if your server restarts are shorter or longer than 4 hour intervals
_hours = (floor(_time/60));
_minutes = (_time - (_hours * 60));
switch(_minutes) do
{
case 9: {_minutes = "09"};
case 8: {_minutes = "08"};
case 7: {_minutes = "07"};
case 6: {_minutes = "06"};
case 5: {_minutes = "05"};
case 4: {_minutes = "04"};
case 3: {_minutes = "03"};
case 2: {_minutes = "02"};
case 1: {_minutes = "01"};
case 0: {_minutes = "00"};
};
((uiNamespace getVariable "osefStatusBar")displayCtrl 1000)ctrlSetText format["FPS: %1 | PLAYERS: %2 | DAMAGE: %3 | KRYPTO: %4 | HUNGER: %5 | THIRST: %6 | STAMINA: %7 | GRIDREF: %8", round diag_fps, count playableUnits, damage player, EPOCH_playerCrypto, EPOCH_playerHunger, EPOCH_playerThirst, EPOCH_playerStamina, mapGridPosition player, _counter];
};
};
Yeah just add round in front of it like this
round EPOCH_playerStamina
Mebay a stupid question but what's the right input to get the bar on top of the screen ?
Change the location of the Y, you'll see a y= safezone + safezone - 1; Fiddle around with that.
Also I love how the op explicitly states to leave credits yet completely yanked my name out of it lol
Either way this is a horrible way of doing it
-
nice, im just learning the fine points of the editor now...these inspired me!
-
I was also getting that error, and I found I had added the exception on the kick line.
What I wanted to post and say, was that this mod is great, but it has its issues. For instance right now, it doesn't work, not sure why, just doesn't work. I had crashed my last helo, and never got another option to clear or set a new evac heli. Also while testing, I had crashed one helo, then found another to set as evac, so I did, then I called it.. I died, and came back and the helo was waiting for me, but I could call it again, and again and agian. I had to uninstall due to it not working and I will be updating the antihacks later, and I will try to reinstall as this mod is awesome, but I do believe it has its issues.
This time, when I get the issues, I will record them for you OP
Epoch block all Addactions
in Discussion
Posted
Nope there isn't. We just have to wait to wait for the devs to get off their ass and release something we can actually use. This alpha lockdown shit is for the birds and a main reason there are so few epoch players