Jump to content

[RELEASE] Server Keepalive Batch Tool


uniflare

Recommended Posts

Im sure you can find an alternative download. If not jusr create a blank file with that name. Or use the installer and change the executable path for bec to any other exe file - just remember to disable the keepalive for the bec process.

Thanks and good luck.

Link to comment
Share on other sites

  On 3/7/2015 at 2:02 AM, Karla said:

Have this now "microsoft was unexpected at this time" how did you fix that..., thanks btw for the bec.exe thingie

Your very welcome,

 

AFAIK this issue is caused by a bug in certain Windows SDK's due to environment paths having parenthesis or double quotes in them.

 

Symptoms:

Batch windows terminate with "/Microsoft was unexpected at this time";

 

Cause:

Windows SDK Bug; On 64bit systems some environment variables may contains parenthesis - ( and ) or double quotes - ". This causes a bug in one of the preloaded batch files on windows sdk's.

 

Solution:

http://www.blinnov.com/en/2010/06/04/microsoft-was-unexpected-at-this-time/

 

Good luck ;)

 

Alternatively, use paths that do not contain spaces/parenthesis.

Link to comment
Share on other sites

  On 3/7/2015 at 4:06 AM, uniflare said:

Your very welcome,

 

AFAIK this issue is caused by a bug in certain Windows SDK's due to environment paths having parenthesis or double quotes in them.

 

Symptoms:

Batch windows terminate with "/Microsoft was unexpected at this time";

 

Cause:

Windows SDK Bug; On 64bit systems some environment variables may contains parenthesis - ( and ) or double quotes - ". This causes a bug in one of the preloaded batch files on windows sdk's.

 

Solution:

http://www.blinnov.com/en/2010/06/04/microsoft-was-unexpected-at-this-time/

 

Good luck ;)

 

Alternatively, use paths that do not contain spaces/parenthesis.

Diddn't quite understand, what paths are using spaces o.o ?

And could you explain "server command line" and what to actually use in startup.cmd ? :D i have been using TADST before.

http://imgur.com/ghMb1Uu,GCrP8zB

Link to comment
Share on other sites

It was a guess as that is usually the main reason for your error.

 

the server command line is the startup command for arma. Generally, you do not need to alter this.

 

If you are still getting the error please PM me your batchrun.log and settings file. thanks.

Link to comment
Share on other sites

Updated to 1.0.3

 

As promised here is an update, sorry to say a few bugs slipped the net when committing the GUI installer for release. Please dont edit configs while the console is running..

FIXED IN 1.0.3: Less processor intensive. (was loading settings 12 times/sec ...)
FIXED IN 1.0.3: Bug where the path to the database EXE was used as backup target instead of dump file.
FIXED IN 1.0.3: Usage of parenthesis and spaces in path names fully! (hopefully).
FIXED IN 1.0.3: Arma Launch parameters weren't quoted correctly.
FIXED IN 1.0.3: A few more bugs related to config settings.
ADDED IN 1.0.3: New config setting: bec_flag_dsc , if 1 will launch BEC with the --dsc option (fix BEC auto closing due to no update signal)
ADDED IN 1.0.3: Prevent database backup if database dump file not found.

 

Any bugs, problems, issues throw me a pm as usual.

Link to comment
Share on other sites

  On 3/9/2015 at 8:55 AM, Karla said:

Thanks alot for all your help and work !, but since BEC doesnt work anymore what should i use to send out warnings for server restart ?

 

BEC should be working still. I have no issues with it. What problems are you having?

 

Maca is also making an alternative for BEC, which i can't find the topic for anymore, ill post it as soon as i find it.

Link to comment
Share on other sites

  On 3/9/2015 at 9:04 AM, Zupa said:

BEC should be working still. I have no issues with it. What problems are you having?

 

Maca is also making an alternative for BEC, which i can't find the topic for anymore, ill post it as soon as i find it.

Like i dont even have bec.exe, for this batch tool i just made a blank .exe file, but i actually need to use bec to manage server restart messages, i have not been using bec before, and i diddnt download it before the thing was terminated and now i cant seem to find any download link

Link to comment
Share on other sites

Search forums.. someone prominent has a helpful signature...

btw. Latest bec is 1.608. Youmay need to use the DSC switch (on by defaultin new skbt).

You also needto do as described in bec thread and block and/or redirect using hosts file.

Good luck

Link to comment
Share on other sites

  • 2 weeks later...

Hi,

I tried do get this to work, but it won´t...

Before I try this tool, I use a little simple batch and all worked fine.

  Reveal hidden contents

 

 

So if I try the Keep-Alive-Batch there are two problems.

 

First: How / where could I set a timeout for BEC? For now it starts 2 times, cause server is not ready initialised and so BEC can't find the server

 

Second: With my old little simple Batch the server starts without any problems, with the keep-alive there is a mass message and it seems, the server couldn't find the AiA TP, in the RPT it spams this message:

  Reveal hidden contents

Copied the batch_settings.cmd to C: - Folder and copied the batch_lib Folder to the Server Root-Folder.

And here is what I changed in the batch_settings.cmd

  Reveal hidden contents

 

So, maybe someone can figure out what I'm doing wrong, I could not.

Link to comment
Share on other sites

Hi chiller, Sorry to hear its not working for you at the moment. If you can use PM for further communication regarding this problem would be appreciated (less bloat on thread).

 

Edited - Unnecessary

  Reveal hidden contents

Can you;

1. Send me your batch.log file and arma 3 folder structure (screenshot is fine).

2. Can you confirm when you say BEC starts twice, does it end up with 2 windows of BEC? or you mean it tries to start twice? (try set bec_flag_dsc=1)

 

The RPT log spam is not that Arma can't find the mods, it is rather the mods cannot find their config files. which leads me to believe either working directory error (bug in KA) or some other misconfiguration resulting in a similar effect. Since it works with a simple batch start file I can only assume there is something wrong with the working directory.

 

Anyhow I would like to work with you on this, I dont have a fresh install of epoch and would like to stamp out this (if it is) bug asap.

Please let me know via PM.

 

Thanks Chiller I hope I can help you!

And thanks for trying out this tool.

 

(Have you tried the GUI Installer?)

 

Update:

It seems there is indeed a very small bug (1 single space character) in the BATCH_SETTINGS default config file for the NON GUI version (this bug is NOT in the GUI version AFAIK.)

 

You can either update to the Hotfix 1.0.3.1 NonGui. OR: Remove the single space character from the start of the modline variable. eg,

set mod_string= -mod=@Epoch;@EpochHive

should be:

set mod_string=-mod=@Epoch;@EpochHive

Hope this helps and sorry for the inconvenience.

Also, try the GUI installer, would love some feedback for it :).

 

Any more problems don't hesitate to contact me!

Thanks!

Link to comment
Share on other sites

  • 2 weeks later...

I'm having a problem with the GUI version, it's registering as an autoevent restart and I have set auto_timeout_length=60 in the config batch but the server is still restarting in 5 seconds which is stopping my 

IF EXIST "D:\A3-140-Test\Arma3\ToLive\epoch.Panthera3.pbo" (
   MOVE /Y "D:\A3-140-Test\Arma3\ToLive\epoch.Panthera3.pbo" "D:\A3-140-Test\Arma3\MPMissions"
)
IF EXIST "D:\A3-140-Test\Arma3\ToLive\@EpochHive" (
    rmdir /s /q "D:\A3-140-Test\Arma3\@EpochHive"
	MOVE /Y "D:\A3-140-Test\Arma3\ToLive\@EpochHive" "D:\A3-140-Test\Arma3"
)

code from running. Any help would be appreciated, other than that it works great.

Link to comment
Share on other sites

Hi there TheHound!

 

Thanks for the feedback! I have just pushed snapshot to the sourceforge/github repos for the NonGui version with some new configs and new event hook features. Check the repo/skbtforarma/master/NonGui/Readme.txt for more info. (Can download tarball snapshots here).

 

Will be merging new features to GUI application within 48 hours. (If you dont like the sound of the NonGui version for now :P).

 

Regards

Link to comment
Share on other sites

Hi Uniflare

 

Maybe I missed it somewhere in this thread, is there a way to re-compile a pbo before the server starts? I have it in a batch file to do it currently but I have to do it manually, could I do it through the keepalive tool? Or is there a way i can call that bat file to run before the server starts?

Link to comment
Share on other sites

Yes I have added events to the NON GUI version. the GUI version will be updated within approx 35 hours ish. If you cant wait for the GUI version to be updated you can simply use the NON GUI version for now (Requires manual editing of the config file, check readme for install instructions).

 

The events are batch files that are called before or after something happens. currently there are 3 events you can use.

Simply put your call to your custom batch file inside one of those events (BeforeServerStart perhaps) and voila.

 

Again, this is not released officially yet so the only way to get this update right now is through downloading a snapshot (as stated above) and only using the NON Gui code as the rest has not changed yet.

 

Hope this clears things up a bit.

Regards

Link to comment
Share on other sites

Updated to 1.1.0

 

Managed to get this one out earlier than expected. This resolves the ASM start bug, some GUI bugs, adds new event hooking to run code between restarts, and some other config settings you can see in the README.

FIXED IN 1.1.0: Fixed ASM not starting unless keepalive_hc was 1, typo
ADDED IN 1.1.0: Added new config variable "skbt_debug". Change log detail level
ADDED IN 1.1.0: Added new config "auto_restart_delay". Forcefully delays between ONLY restart events
ADDED IN 1.1.0: Added 3 batch files in custom folder to aid in hooking code before certain events, more info inside those files (Check readme or more info)
ADDED IN 1.1.0: Added tooltips to all configuration options.
FIXED IN 1.1.0: Fixed settings save dialog bugs (Would ask to remove old file even when its the same file) (Fixed cancel)
ADDED IN 1.1.0: Added backwards compatibility for batch settings.

KNOWN ISSUE IN 1.1.0: Some paths aren't collapsed to shorter variables in the batch settings. Not a priority/problem.

 

Any bugs, problems, issues throw me a pm as usual.

 

Dont forget to tell me if it actually works for you or not, it's the only way I know.

Thanks

Link to comment
Share on other sites

  • 1 month later...

Hi Metalfoundry,

 

Thanks for bringing this to my attention, can you confirm how many physical and virtual cores you have? Im thinking you have maybe more virtual cores than the installer is currently capable of controlling.

 

If this is the case then I can make a quick fix and push tonight to github/sourceforge. Let me know in PM how many virtual cores you have in total.

 

Thanks

Link to comment
Share on other sites

Updated to 1.1.0.2 Hotfix 2

 

Fixes some crashes.

FIXED IN 1.1.0.2: Fixed exception when chaning db file location on first install.
ADDED IN 1.1.0.2: Patched application crash when number of virtual machine cores are greater than 8.
 

As always any feedback is highly appreciated.

 

Thanks!

 

Note: The temporary fix for virtual core count exceeding 8 will be properly address within the week. This will mean changing the way cores are selected in the configuration window. Stay Tuned!

Link to comment
Share on other sites

  • 2 weeks later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...