Jump to content

[Tool][Release] MBCon


Torndeco

Recommended Posts

Just posting this as it is a handy tool and people might not be aware of its existance.
Plus the source code is available aswell :D


------------
 

MBCon - Download

MBCon is a C# (.NET) BattlEye RCON client for ARMA 2/3 servers. It uses a simple plugin system to make it easy to extend. (BattleNET is included at the moment as there is a missing BE command, this will be changed to nuget soon).

Included Plugins
  • Console: Simply outputs stuff to a console window.
  • Logger: Logs various BE events to logs.
  • PlayerCheck: Can be used as a "global" bans list or a whitelister, using a file, http request or mysql database.
  • BEFilterMonitor: Watches bans.txt and filters and reloads them when changed.
  • RestartMessage: A simple plugin to do restart messages.
  • ScheduledTasks: Perform BE commands at certain times.
  • SimpleMessages: Sends messages to server at certain intervals.
  • WebLogger: Sends logs to a URL.
  • WebRcon: A very experimental plugin to allow access to a web-based RCON client.
Basic Usage

Edit the main config.ini, pointing to the active servers be config and start mbcon.exe.

Link to comment
Share on other sites

Windows Server 2012:

Error loading plugin BEFilterMonitor: Die Datei oder Assembly "BEFilterMonitor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" oder eine Abhängigkeit davon wurde nicht gefunden. Der Vorgang wird nicht unterstützt. (Ausnahme von HRESULT: 0x80131515) - System.IO.FileLoadException: Die Datei oder Assembly "BEFilterMonitor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" oder eine Abhängigkeit davon wurde nicht gefunden. Der Vorgang wird nicht unterstützt. (Ausnahme von HRESULT: 0x80131515)
Dateiname: "BEFilterMonitor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" ---> System.NotSupportedException: Es wurde versucht, eine Assembly von einer Netzwerkadresse zu laden, was in früheren Versionen von .NET Framework zum Ausführen der Assembly als Sandkastenassembly geführt hätte. In dieser Version von .NET Framework wird die CAS-Richtlinie standardmäßig nicht aktiviert, dieser Ladevorgang kann daher gefährlich sein. Wenn Sie nicht beabsichtigen, durch diesen Ladevorgang eine Sandkastenassembly zu erstellen, aktivieren Sie den loadFromRemoteSources-Schalter. Weitere Informationen finden Sie unter "http://go.microsoft.com/fwlink/?LinkId=155569".
   bei System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   bei System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   bei System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   bei System.Reflection.Assembly.Load(AssemblyName assemblyRef)
   bei MBCon.classes.PluginManager..ctor(String pluginPath)
Link to comment
Share on other sites

@flow0815

Check that the plugin dll for BEFilterMonitor is not blocked.

Might aswell unblock all the dlls in the plugins directory aswell

 

I could slap myself. Oooooh maaaaan. Thanks. Did not unblock. Still the error messages but now the tool works

Link to comment
Share on other sites

  • 4 weeks later...
  • 4 weeks later...

I cant figure out how to make this work LOL .. Id use BEC but only have A2 version ,, need to schedule restarts with warnings .. Almost no documentation in the files or github.. anyone that can help a brother out .. much love given :) 

Just now building a A3 server.. after 6 months off from running a2 server.. I just couldn't stand it anymore lol  .. I know Im sick ..is there a AA for admin lol

Ive searched all over the net trying to figure this out on my own

 

EDIT - I found BEC on wasteland forum.. will try that since I have carnal knowledge of that one .. would still like to try this out .. if I can get a lil help

Edited by Chainsaw Squirrel
Link to comment
Share on other sites

  • 5 weeks later...
  • 2 years later...

Does this still work? I set it up to restart the server but I get this:

Sending Message: Server will restart in 59 seconds, 999 milliseconds.
Sending Message: Server will restart in 59 seconds, 999 milliseconds.
Sending Message: Server will restart in 59 seconds, 999 milliseconds.
Unhandled Exception: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index -    at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   at RestartMessages.RestartMessages.TaskMonitor()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

Then the server continues to run without restarting.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...