FMScoutFramework is a C#.NET/Mono Framework that enables you to create your own assistant tools / editors for Football Manager. It supports FM2014, FM2015 and FM2016
Clone the project in your favourite github client You will need MonoDevelop or Xamarin if you develop your application for all platforms (Windows, OS X, Linux) or Microsoft Visual Studio if you develop just for windows. The client requirements will be the Mono framework for apps developed in Xamarin / MonoDevelop, or the .NET Framework for Visual Studio apps.
References
Edit References
Projects
tab and tick the checkbox next to FMScoutFramework
OK
FMScoutFramework
ProjectOptions
Compiler
from the MenuDefine Symbols
entry, enter MAC
for OS X, LINUX
for Linux or WINDOWS
for windows.References
Add Reference
Projects
tab, under Solution
and tick the checkbox next to FMScoutFramework
OK
FMScoutFramework
ProjectProperties
Build
from the menu on the leftConditional Compilation Symbols
textbox, enter WINDOWS;
The following code is an example for a simple Windows Forms application and another for Mono First, include the necessary framework headers:
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using FMScoutFramework.Core;
using FMScoutFramework.Core.Entities.InGame;
In your class, create a new public variable:
public FMCore fmCore = new FMCore (FMScoutFramework.Core.Entities.DatabaseModeEnum.Realtime);
First, create a new method that will be asynchronously called by the framework when loading is finished:
public void GameLoaded() {
Debug.WriteLine("Loading Finished");
}
Then, in your action callback method (from a button, or a menu for example) use the following code:
fmcore.GameLoaded += new Action(GameLoaded);
new Action(() => fmCore.LoadData()).BeginInvoke((s) => { }, null);
That's it! You can now query the data, with simple Linq queries! Amazing, eh? Here's an example, to look for "Bar":
var clubs = (from c in fmCore.Clubs
where c.Name.Contains ("Bar")
select c).Take (100).ToList ();
We need more devs and support! Imagine all the tools you could create for FM2014/FM2015/FM2016 if everything was already implemented!
FMScoutFramework is released under the GNU General Public License v2.0 Please read the LICENSE file for a full version of the License