Jump to content

Search the Community

Showing results for tags 'batch'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements
  • DayZ
    • Discussion
    • Public Servers
    • DayZ SA Resources
    • Q&A Section
  • ArmA 3
    • Epoch Survival
    • Community Projects
    • Q&A Section
    • Terrain Discussion
    • Resources
  • Arma 3 Resources
  • ArmA 2
    • General Discussion.
    • Q&A Section
    • Resources
    • Legacy Resources
    • A2: Community Projects
    • A2 Community Servers
  • Space Engineers
    • General Discussion.
    • Public Servers
  • Other Games
    • Discussion
  • Off Topic
    • Off Topic

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 6 results

  1. Script from And I just made it 1 .bat file easy to use all you need to do is edit the Config settings section and the command line. Make a new .bat file on your desktop of your windows vps or dedi Paste this in it If you run multiple servers create a file for each server on your desktop all you have to do is change the command lines and the config settings to suit each server on each file. This script will re-run everything from this label :arma2oaserver every time the server cmd box is closed so yes if bec shuts down the server after x amount of hrs the script will backup your sql will re-start Bec & the Server If your server cmd box closes for some unknown reason this will terminate connection with Bec and so Bec shuts down but dont worry the script will backup your database then restart bec and your server (dont believe me try it run this script then close your server cmd box while this script is running and watch the magic lol)
  2. Sourceforge: https://sourceforge.net/projects/skbtforarma/ [RELEASE] Arma 2/3 Server Keepalive Batch Tool 1.2.2 I wrote this for our old A2 Epoch server in hopes of making a very simple and light-weight easy to use keepalive/restarter, it was very useful, thought I'd share with the public. This tool has developed on these forums considerably and now has many many more features that make administering and controlling your server much easier. Keepalive Status Window Keepalive GUI Keepalive GUI Configuration Properties Feature Archive: -Gui- ADDED IN 1.2.2: Higher core support for setting affinities (up to 100 cores O.O) ADDED IN 1.2.2: New status icons in config window for batch/server status ADDED IN 1.2.2: Added a new control bar in config window, to control keepalive/server -Core- ADDED IN 1.2.2: Added an exit batch check and new file to set this flag externally to close the keepalive. Auto start Database/Arma server and BEC if any one of them fails Logs events in real-time with a console display Easy configuration for any arma server (arma/arma 2/arma 3) Ability to Auto restart using BEC Scheduler (check readme for details) Ability to manually restart from an external program (eg, Web Service on same machine) Keepalive for the Keepalive (if batch crashes or something, it will keep running regardless) Auto log file rotation *added in 0.8.0 Auto Database Backup *added in 0.8.0 Ability to use 7zip to archive logs and/or database file *added in 0.8.0 Keep Arma Server Monitor active (Optional) (addon for arma 2/3) *added in 0.8.0 Keep Teamspeak Server Active (Optional) *added in 0.8.0 Database Interval, Minutes between DB Backups *added in 0.9.0 Ability to keep ASM server monitor alive. *added in 0.9.0 Ability to keep Teamspeak server alive. *added in 0.9.0 Log backup and db backup locations configurable *added in 0.9.0 Lets arma close nicely using #shutdown on automatic restarts (BEC Scheduler required) *added in 0.9.0 Manual Action Timeout configurable. (How long will it take you to upload new pbos?) *added in 0.9.0 Configuration settings for ASM logging capabilities. Check batch settings. *fixed in 0.9.1 Ability to configure another process to keep alive (such as a HC client or another server using a renamed exe file). *NEW IN 0.9.2 Project on Sourceforge and GitHub. *NEW IN 0.9.4 Crash Detection! Will force close any crashed processes! *NEW IN 0.9.4 Affinity and Priority settings! *NEW IN 0.9.4 Sleek GUI for managing and installing SKBT for multiple server on the same machine/network!*ADDED IN 1.0.0 Keepalive instance shortcuts to start menu and desktop. ADDED IN 1.0.1 Usage of parenthesis and spaces in path names fully! ADDED IN 1.0.3 Allow bec_flag_dsc parameter, (fix BEC auto closing due to no update signal). ADDED IN 1.0.3 Ability to change log detail level. Added in 1.1.0 Can forcefully delay between ONLY restart events 3 batch files in custom folder to aid in hooking code before certain events, more info inside those files (Check readme or more info) Tooltips to all configuration options Custom process tab! Keep any process you wish alive with your server (up to 100 extra processes!). ADDED IN 1.2.0 Heartbeat for external programs to know if the Keepalive is active. ADDED IN 1.2.0 Downloads: NOTE*: Please use the sourceforge/Github repositories to download. [LATEST RELEASE] DOWNLOAD 1.2.2 - GUI Installer tinyupload.com DOWNLOAD 1.2.2 - No Gui (Manual Install) tinyupload.com Mirrors on SourceForge / GitHub Development Snapshots available as standard. [OLDER RELEASES] For older releases please use the github/sourceforce release lists. *Latest Release: Please be advised the download links in this post are not the latest. SKBT was updated after the latest official release but do not fear! You do not need to build it! To download the latest binary of SKBT click here (sourceforge/skbtforarma/Master/Bin/Release/skbtInstaller_win32.exe) Check the commit logs on SF/GH for updates and changes. edit- Updated to 1.2.2.1 (Only on repo)
  3. I put together some code for a simple Redis backup for command I use it myself in a windows task simple to use for new server owners who like to use batch files. I know there's programs for this but I like to use batch files if done right uses less resources on server. Make a batch file (Backup.bat) or use in own restart batch if have one. @echo off color 0A echo Running Redis Database Backup.. echo. echo. IF Not EXIST C:\Database\dump.rdb GOTO DoNothing if not exist "C:\Database\backup" mkdir C:\Database\backup :: above checks for folders and file :: :: DO NOT EDIT for /F "tokens=2-4 delims=/ " %%i in ('date /t') do set yyyymmdd=%%k%%i%%j echo Date: %yyyymmdd% for /F "tokens=1-2 delims=: " %%l in ('time /t') do set hhmm=%%l%%m echo Time: %hhmm% :: END NO EDIT :: copy C:\Database\dump.rdb C:\Database\backup\dump.rdb :: REN C:\Database\backup\dump.rdb dump_%yyyymmdd%_%hhmm%.rdb echo. echo Backup was successfully completed! timeout 10 :: :: You can add database startup here if you want :: START redis-server.exe redis.conf :: echo Database started successfully! ::timout 10 exit This code will save DBdump.rdb and move to backup and rename it this example: dump_20150207_0201.rdb NOTE: I have my redis in c:\database you can edit this in batch code
  4. Hey guys Finally went back and cleaned up my batch rebuild script. It's sitting at 100 actual lines and pretty basic. Just to be clear this script is intended for people doing script development on the local host. This is not for admins of 'normal' servers -- I know there is a better scheduled batch script somewhere in this forums (I think it's under Arma2Epoch sub-forum). The script below does the following: Log the launch with a single line, to a log file. Delete existing server & client side PBOs. Repack server & client side PBOs from development sources. Kill arma3 dedicated server process in-between tasks 1 & 2, so that files won't be in use. Confirm redis database is running (if not, it will launch it). Finally launches arma3 dedicated server processes to enjoy the new PBOs. I am sure most scripters already has something similar (possibly better) in place. I'm sharing this below as it might help complete beginners to get started quickly. Would be good to improve if anybody has any suggestions... Cheers
  5. Hi guys Kumari here I am the developer of for the aCw community many of you may not have heard of us because we are No-CD.Now we do use a legit copy of the game for hosting but I digress.I have made this quite interesting I think batch file that I call the All-In-One It takes several functions from all over different forums and combines them in to one batch file.Well a batch file and a vb script but this is still mostly all in one really.Now what this dose is you run it from the BEC or any other program you use for restarts ect. I have tried my best to make this as user friendly as possible so its really simple to use.I probly will redo this tho to have all config in one section now this has not been used yet but has been tested a lot so you can consider this a 1.0 beta if you will if you guys find this useful I will improve it add more to it ect. Once this file is activated by the BEC what it dose is it will start by shutting down the server and the BEC now the BEC normally shuts its self down but in the event that it dose not this will do that for you. Then it dose a check to see if you have debug set to 1 this will tell you step by step what its doing and allow you to walk thew it to find errors.Then it shuts down the server and BEC.The BEC almost allays shuts its self down but in the event it dose not this will make sure its down so that way you don't end up with two BECs running at once.Then you come to the clean up this uses the log rotation but may change there are configs for this and I will show you soon.What it dose it makes a back up of the ArmA II logs and removes the original to keep it clean and running smooth it allso backs up and removes infiSTAR anti-hack logs don't worry if you don't have this because the batch also looks to see if you have it installed of you dont it just continues on to the next part.Now here comes the fun part the vb script if you want this you can use it if not you can remove it.What this dose it takes the Hiveext.ini and randomizes day/night.I implemented this because we have players from all over any they say "Every time I play its night" now this was because I use local time so that it marches that of real life I could have set it to be day all the time but what fun is that so this is ware the vb caomes in.Next it will boot up the server and BEC the cool thing it dose this all in a few seconds.Now I will show the code and how to configure this now like I said I make make this more simple to config at a later date. All-In-One.bat :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :::::::::::::: DayZ all-in-one batch by Kumari Ashamaki :::::::::::::::::::::::: ::::::::::::::::: Rotate logs by r4z0r49 and Sykotix ::::::::::::::::::::::::::: ::::::::::::::::::: Rotate infiSTAR logs by Kumari ::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: @Echo OFF TITLE DayZ all-in-one batch by Kumari Ashamaki :: Debug Mode Settings set debug=0 if %debug% == 1 ( echo Booting in debug mode. ) :: Welcome Text if %debug% == 1 ( echo To use this for restarts this batch shuld be called from BEC or echo whatever program you use for restarts. echo If you use something else for restarts just comment out or remove echo The taskkill for BEC and the server EXEs. echo leaveing the code wont hurt but you will see "task missing" errors pause ) :: Shuts down the server and BEC if %debug% == 1 ( echo Shuttingdown The Instence ) taskkill /f /im ACWEPRESCHER.exe timeout /t 1 > nul if %debug% == 1 ( echo Shuttingdown The BEC pause ) taskkill /im BEC_Chernarus.exe timeout /t 1 > nul :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::: LOG ROTATION START ::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Info and starting messages for debug :: Back up logs and remove them :: Message if %debug% == 1 ( echo Starting Rotation pause ) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::::::::::::: CONFIG ::::::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Message if %debug% == 1 ( echo loading configs pause ) :: Set The path to your server. set arma2srvpath=C:\ACWEPRESCHER :: Set the Instence name EX instance_11_chernarus or dzcfg or what ever you call it set srvname=instance_11_chernarus :: Delete Original log files after they have been backed up? This keeps your server from being boged down with old logs. set deloriglogs=1 :: Set path to infiSTAR Dlls if you do not have infiSTAR comment this out do not remove it set infiSTARDllPath=C:\ACWEPRESCHER :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::::: ADVANCED CONFIG CONFIG ::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Message if %debug% == 1 ( echo loading advanced configs pause ) :: Setting Server Profile to Use IF "%1"=="" ( set servername=%srvname% ) else ( set servername=%1 ) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::: END OF CONFIG RUNNING SCRIPTS :::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Messages if %debug% == 1 ( echo Running scripts pause ) 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% :: Message if %debug% == 1 ( echo Createing Directories pause ) :: Make the Rotated Log Directorys if exist "%arma2srvpath%\%servername%\ServerManagement\RotatedLogs" goto maketsdir mkdir "%arma2srvpath%\%servername%\ServerManagement\RotatedLogs" :maketsdir if exist "%arma2srvpath%\%servername%\ServerManagement\RotatedLogs\%dtStamp%" goto makebedir mkdir "%arma2srvpath%\%servername%\ServerManagement\RotatedLogs\%dtStamp%" :makebedir if exist "%arma2srvpath%\%servername%\ServerManagement\RotatedLogs\%dtStamp%\BattlEye" goto makebedir mkdir "%arma2srvpath%\%servername%\ServerManagement\RotatedLogs\%dtStamp%\BattlEye" :: Checks for infiSTAR Log DLLs :makebedir IF EXIST "%arma2srvpath%\AdminLog.dll" ( echo infiSTAR Log Dlls found if exist "%arma2srvpath%\%servername%\ServerManagement\RotatedLogs\%dtStamp%\infiSTAR_Logs" goto rotatelogs mkdir "%arma2srvpath%\%servername%\ServerManagement\RotatedLogs\%dtStamp%\infiSTAR_Logs" ) ELSE ( echo infiSTAR log Dlls not found! ) :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%\ACWEPRESCHER.RPT" "%arma2srvpath%\%servername%\ServerManagement\RotatedLogs\%dtStamp%\ACWEPRESCHER.RPT" copy "%arma2srvpath%\%servername%\ACWEPRESCHER.mdmp" "%arma2srvpath%\%servername%\ServerManagement\RotatedLogs\%dtStamp%\ACWEPRESCHER.mdmp" copy "%arma2srvpath%\%servername%\ACWEPRESCHER.bidmp" "%arma2srvpath%\%servername%\ServerManagement\RotatedLogs\%dtStamp%\ACWEPRESCHER.bidmp" copy "%arma2srvpath%\%servername%\server_log.txt" "%arma2srvpath%\%servername%\ServerManagement\RotatedLogs\%dtStamp%\server_log.txt" copy "%arma2srvpath%\%servername%\HiveExt.log" "%arma2srvpath%\%servername%\ServerManagement\RotatedLogs\%dtStamp%\HiveExt.log" copy "%arma2srvpath%\%servername%\BattlEye\scripts.log" "%arma2srvpath%\%servername%\ServerManagement\RotatedLogs\%dtStamp%\BattlEye\scripts.log" copy "%arma2srvpath%\%servername%\BattlEye\createvehicle.log" "%arma2srvpath%\%servername%\ServerManagement\RotatedLogs\%dtStamp%\BattlEye\createvehicle.log" copy "%arma2srvpath%\%servername%\BattlEye\mpeventhandler.log" "%arma2srvpath%\%servername%\ServerManagement\RotatedLogs\%dtStamp%\BattlEye\mpeventhandler.log" copy "%arma2srvpath%\%servername%\BattlEye\publicvariable.log" "%arma2srvpath%\%servername%\ServerManagement\RotatedLogs\%dtStamp%\BattlEye\publicvariable.log" copy "%arma2srvpath%\%servername%\BattlEye\publicvariableval.log" "%arma2srvpath%\%servername%\ServerManagement\RotatedLogs\%dtStamp%\BattlEye\publicvariableval.log" copy "%arma2srvpath%\%servername%\BattlEye\remoteexec.log" "%arma2srvpath%\%servername%\ServerManagement\RotatedLogs\%dtStamp%\BattlEye\remoteexec.log" copy "%arma2srvpath%\%servername%\BattlEye\setdamage.log" "%arma2srvpath%\%servername%\ServerManagement\RotatedLogs\%dtStamp%\BattlEye\setdamage.log" copy "%arma2srvpath%\%servername%\BattlEye\setpos.log" "%arma2srvpath%\%servername%\ServerManagement\RotatedLogs\%dtStamp%\BattlEye\setpos.log" copy "%arma2srvpath%\%servername%\BattlEye\setvariable.log" "%arma2srvpath%\%servername%\ServerManagement\RotatedLogs\%dtStamp%\BattlEye\setvariable.log" copy "%arma2srvpath%\%servername%\BattlEye\addmagazinecargo.log" "%arma2srvpath%\%servername%\ServerManagement\RotatedLogs\%dtStamp%\BattlEye\addmagazinecargo.log" :: infiSTAR Copy logs IF EXIST "%arma2srvpath%\SurveillanceLog.txt" ( echo infiSTAR Logs found! copy "%infiSTARDllPath%\AdminLog.txt" "%arma2srvpath%\%servername%\ServerManagement\RotatedLogs\%dtStamp%\infiSTAR_Logs\AdminLog.txt" copy "%infiSTARDllPath%\HackLog.txt" "%arma2srvpath%\%servername%\ServerManagement\RotatedLogs\%dtStamp%\infiSTAR_Logs\HackLog.txt" copy "%infiSTARDllPath%\ban.txt" "%arma2srvpath%\%servername%\ServerManagement\RotatedLogs\%dtStamp%\infiSTAR_Logs\ban.txt" copy "%infiSTARDllPath%\SurveillanceLog.txt" "%arma2srvpath%\%servername%\ServerManagement\RotatedLogs\%dtStamp%\infiSTAR_Logs\SurveillanceLog.txt" copy "%infiSTARDllPath%\logUnlockLock.txt" "%arma2srvpath%\%servername%\ServerManagement\RotatedLogs\%dtStamp%\infiSTAR_Logs\logUnlockLock.txt" copy "%infiSTARDllPath%\SafeZone.txt" "%arma2srvpath%\%servername%\ServerManagement\RotatedLogs\%dtStamp%\infiSTAR_Logs\SafeZone.txt" ) ELSE ( echo infiSTAR logs not found! ) echo (%date%) (%time%) Logs are backed up now... echo (%date%) (%time%) Removing original log files. del /Q /F "%arma2srvpath%\%servername%\ACWEPRESCHER.RPT" del /Q /F "%arma2srvpath%\%servername%\ACWEPRESCHER.mdmp" del /Q /F "%arma2srvpath%\%servername%\ACWEPRESCHER.bidmp" del /Q /F "%arma2srvpath%\%servername%\server_log.txt" del /Q /F "%arma2srvpath%\%servername%\HiveExt.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" :: infiSTAR Remove Logs IF EXIST "%infiSTARDllPath%\SurveillanceLog.txt" ( echo Removeing infiSTAR logs! del /Q /F "%infiSTARDllPath%\infiSTAR_Logs\AdminLog.txt" del /Q /F "%infiSTARDllPath%\infiSTAR_Logs\HackLog.txt" del /Q /F "%infiSTARDllPath%\infiSTAR_Logs\ban.txt" del /Q /F "%infiSTARDllPath%\infiSTAR_Logs\SurveillanceLog.txt" del /Q /F "%infiSTARDllPath%\infiSTAR_Logs\logUnlockLock.txt" del /Q /F "%infiSTARDllPath%\infiSTAR_Logs\SafeZone.txt" ) ELSE ( echo No infiSTAR logs to remove! ) if %debug% == 1 ( echo Logs rotated? pause ) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::::::: LOG ROTATION END ::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Randomize day/night if %debug% == 1 ( echo Randomizing day/night pause ) pushd %~dp0 start /b "" cscript TimeChange.vbs timeout /t 1 > nul :: Start server if %debug% == 1 ( echo Starting server. pause ) cd "C:\ACWEPRESCHER" start /high .\Expansion\beta\ACWEPRESCHER.exe -port=2302 "-config=instance_11_Chernarus\config.cfg" "-cfg=instance_11_Chernarus\basic.cfg" "-profiles=instance_11_Chernarus" -name=instance_11_Chernarus "[email protected]_Epoch;@DayZ_Epoch_Server;" "-world=Chernarus" "-noPause" "-noSound" "-cpuCount=4" "-maxMem=4096" "-bandwidthAlg=2" "-exThreads=7" "-noCB" :: Start BEC if %debug% == 1 ( echo Starting BEC pause ) cd "C:\ACWEPRESCHER\instance_11_Chernarus\ServerManagement\Bec" start /MIN C:\ACWEPRESCHER\instance_11_Chernarus\ServerManagement\Bec\BEC_Chernarus.exe -f Config.cfg :: Check if is in debug mode if %debug% == 1 ( echo you are in debug mode this stops the code before exit echo and waits so that you can see whats happening. pause ) Exit :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::: Credits ::::::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::: Script :::::::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::: Kumari Ashamaki ::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::: Rotate Logs ::::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::: r4z0r49 ::::::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::: Sykotix ::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::::::::: antiHACK Logs :::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::: infiSTAR.de ::::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: TimeChange.vbs 'All-In-One time change by Geryon Option Explicit 'Create an instance of the FileSystemObject object Dim objFSO Dim objTextStream Dim objString Dim objNum Set objFSO = CreateObject("Scripting.FileSystemObject") Set objTextStream = objFSO.OpenTextFile("C:\ACWEPRESCHER\instance_11_Chernarus\HiveExt.ini", 1) objString = objTextStream.ReadAll objTextStream.Close Randomize objNum = Int(3 * Rnd + 1) 'Don't repeat night time if objNum = 1 and instr(objString, "Hour = 22") = 0 then objString = Replace(objString,"Hour = 12", "Hour = 22") wscript.echo "Night Time!" else objString = Replace(objString,"Hour = 22", "Hour = 12") wscript.echo "Day Time!" end if Set objTextStream = objFSO.OpenTextFile("C:\ACWEPRESCHER\instance_11_Chernarus\HiveExt.ini", 2) objTextStream.WriteLine objString objTextStream.Close Now this is just to show what I am using I will also attach the files that are ready to be configed Now how do we make all this work for us? Lets start with the shutdown as you can see I use custom names because we run two servers on one system so I only want this to run on on server at a time you can do the same if you have two in one server. Now for the log rotation. Here you need to set your server path server insistence if you want the original logs removed and if you have infiSTAR ware your Dlls are located now I use default for this because I can never get the AHconfig to use the path I give it to the Dlls. Now unlike the original code you can see I have the logs back up to ServerManagement\RotatedLogs you can change this if you like but I like it that way to be neat. now this next bit will look for the infiSTAR Dlls. Then it dose the rotation. Next it dose the Day/Night now for this to work you need to right click the vb and edit it and give it the path to your hive ini and set under time Type static and the hour to 12 or 22 I tried to make this work in a way that you don't need to change that and the code dose it on its own but failed this may be fixed if I can figure it out now it needs to look like this. [Time] ;Possible values: Local, Custom, Static ;You cannot use Static on OFFICIAL Hive, it will just revert to Local Type = Static ;If using Custom type, offset from UTC in hours (can be negative as well) ;Offset = -8 ;If using Static type (Hour value always the same on every server start), the value (0-24) to set the Hour to Hour = 22 Now back to the batch file It will then run your server and BEC this works the same what way ever batch you are useing you need to set your port config path ect.Thats really basic stuff so I am not going over that. Then it will start BEC same rules apply. and thats about it really I have as you can see given credit ware do ect "I hope" and added lots of comments to help out the Epoch community has helped me alot and I hope you guys will accept this as a thank you I wanted to give back to those who have helped me rather you know it or not.I really dont even know if this will be any good to you geniuses lol but maybe it will I have packed them in a .Zip you may need 7z or win rar but I dont know.Bat_Files.ZIP HAVE FUN!!
  6. Hey guys, Hopefully you can help me out. I have a server hosted through HFB and everything works fine, But i want to have the server night time on every 3rd restart. I use the control panel tool to schedule restarts, is it possible to have BEC restart the server with .bat files if hosted? or only if you are dedicated? The reason i ask is because i don't know the command path to kill the server or restart it. If it is possible how would i go about setting up a night cycle using batch files? I appreciate any help you guys can provide.
×
×
  • Create New...