We're still finalising the license under which this code can be modified and redistributed. Until the new license is published, you can modify this work under the original license within this repository, further to the conditions stated here: https://community.sogpf.com/d/198-modifying-mike-force.
We're in the process of updating our build tools for Mike Force. They're in their final review phase, but we didn't want to prematurely push out buggy build tools.
For now, the old tools should still work on Windows - see setup_dev_environment.py and build.py.
Report issues using the "Issues" section above. Please be sure to follow the template, and include as much detail as possible to help us figure out the best solution!
Mike Force is hosted on the Steam Workshop. It's strongly advised to use Steam Workshop to manage the gamemode, and regularly check for updates, in case you're missing out on fixes or features!
The gamemode is a self-contained mission file. Simply download the mission from Steam Workshop into your server's mpmissions folder, and select it from the in-game mission list.
You will need to install Python via the Microsoft Store. Open the windows start menu, search for Microsoft Store and open it. Then search for Python, any version 3 of Python will work. Install it.
You will need to download the code for both BN versions of Mike-Force and the Paradigm library.
For compositions devs, open each of the above links in an internet browser,
then click on the Code dropdown (top right of each page) and select download as Zip.
Extract the Zip files out into a suitable location on your computer,
e.g. a new BN-MIKE-FORCE folder in your Documents folder.
You should now have two folders in your BN-MIKE-FORCE folder, namely Mike-Force and Paradigm.
For mission scripting devs, you should be do the above using git clone.
- In the
BN-MIKE-FORCE\Mike-Forcefolder, copy theuser_paths_example.pyand save it as a new file nameduser_paths.pyin the same folder. - Open the file up with Notepad or similar.
- Delete out the text between the double quotes for both
PARADIGM_PATHandMISSIONS_PATHi.e.r"everything between the quotes here" - In Windows File Explorer, open up the
BN-MIKE-FORCE\Paradigmfolder. Double click in the address bar and copy the full location of the folder (Ctrl + C). - Paste (Ctrl + V) this between the quotes on the same line as
PARADIGM_PATH. It should look like this
PARADIGM_PATH = r"C:\Users\dijksterhuis\BN-MIKE-FORCE\Paradigm`
- In Windows File Explorer, open up your default Arma profile's directory. Double click in the address bar and copy the full location of the folder (Ctrl + C).
- Paste (Ctrl + V) this between the quotes on the same line as
MISSIONS_PATH. Make sure it ends with\MP_Missions. It should look like this
MISSIONS_PATH = r"C:\Users\dijksterhuis\Documents\Arma 3\MPMissions`
- Save the
user_paths.pyfile. - Bring up the Windows start menu and search for
Command Prompt. Right click on it andRun as Administrator. - In Windows File Explorer, open up the
BN-MIKE-FORCE\Mike-Forcefolder. Double click in the address bar and copy the full location of the folder (Ctrl + C). - Back in the Command Prompt, type
cdthen press the spacebar then use Ctrl + V to paste in the Mike Force folder location. Press Enter. - Now type the following and hit Enter. This will automatically build your Python mission.
python setup_dev_environment.py
- You should see some text saying different folders have been created and if nothing went wrong it should be asking you to
press any key to exit. - Press any key on your keyboard and close the Command Prompt.
- Start Arma3.
- Switch to your default game profile (or the profile where your linked
MPMissionsfolder is under) - Go to
Multiplayer>Host Server> Click onHost Server(bottom right) - You should see the multiplayer missions menu screen. Select a Map (Altis, CamLaoNam, KheSan or Bra).
- The
Mike Force (v1.00.0+)should be highlighted in green. You can now enter the 3D editor or play as a non whitelisted unit (bottom right of the screen).
When playing the BN mike force mission locally you will get errors popping up on your screen regarding the whitelist and curator players. This happens because you do not have a copy of the whitelisting database running locally and is perfectly normal. However, it does mean you cannot test anything regarding whitelisted units.
Clone repo to local location of your choice and then symlink the vn_mf.cam_lao_nam folder into your Arma 3 missions folder.
Something like this:
C:\Users\USERNAME\Documents\Arma 3\missionsWindows symlinks are handled with the mklink command.
mklink /j "C:\Users\USERNAME\Documents\Arma 3\missions\vn_mf.cam_lao_nam" SGD_mikeforce\HAM\vn_mf.cam_lao_namnote Use the standard windows commandline for this, bash on windows makes a mess of the paths.
The SGD_Paradigm folder is also required to by symlinked in to be the vn_mf.cam_lao_nam\paradigm folder.
mklink /j "C:\Users\USERNAME\Documents\Arma 3\missions\vn_mf.cam_lao_nam\paradigm" SGD_paradigmStarted a simple documentation generator : https://github.com/ryantownshend/sqf_tools
The file mikeforce_api.html is a super crude parse of the header comments from within the project.
This can be fleshed out as we go, but it does provide a single place to view all the function file headers.