-
Notifications
You must be signed in to change notification settings - Fork 4
Setup (Local)
Everything you need to know to have CoopR Mod locally running and ready for development.
The first thing you need is to setup a mandatory directory structure and download all addons CoopR is depending on. All you need to know is written down in the following steps. If you need help or having questions just hit our #mod-development
discord channel: https://discord.gg/jyGYZU
First of all you need to checkout the mods source files in order to do changes on it at all. Important to note is that the official repository is locked and therefore you only can contribute through your forked version. So please first fork CoopR-Mod and then continue. Now you should clone your forked version of CoopR-Mod. Here is an example for the command line way: git clone git@github.com:<your_username>/CoopR-Mod.git 'C:\Program Files (x86)\Steam\steamapps\common\Arma 3\x\coopr'
. Please be aware that your path to ArmA 3 might differ. Change it accordingly.
As for the current state it is needed to have a running MySQL server and extDB3 mod active. This isn't very complicated to get done. First you can just download extDB3 via Steam Workshop. To run a MySQL server locally you can just use XAMPP which gives you a running MySQL server in a few clicks. Simply follow these steps:
- Install XAMPP
- Start XAMPP and run a MySQL server with the User Interface (Guide to use XAMPP and MySQL)
- Create a database called
coopr_local
and a user with logincoopr
and passwordcoopr
that has access to the DB. - Download extDB3
- Open the mod folder of extDB3 and open the
extdb3_conf.ini
and add the following:
[Database] // << important it is called "Database" and not a custom name
IP = 127.0.0.1
Port = 3306
Username = coopr
Password = coopr
Database = coopr_local
- That's it. Starting CoopR Mod later on should not through an error and creating a character should work.
Alternatively you can watch the video guide for this step
To develop with the unpacked mod sources you have to do several steps. For this mod these steps are the following:
- Create a folder path matching the path structure defined in $PBOPREFIX$ in your Arma3 root directory. This might look like this in the end:
C:\Program Files (x86)\Steam\steamapps\common\Arma 3\x\coopr
. If you executed the git command mentioned in 1.1 Get Mod Source then this already happened. However rechecking the whole is never a bad idea. - Please also download @CBA_A3 because CoopR-Mod does depend on this addon. Get it here: Steam Workshop
-
Now visit the mods source location
C:\Program Files (x86)\Steam\steamapps\common\Arma 3\x\coopr
. This should not be empty. -
Check the deploy_local.cmd script (Windows) if the
modpath
variable in the script is matching the path you have defined for your Arma 3 installation. Please do not commit these changes ;) -
Start using build_deploy_local.cmd (Windows) to build the mod and deploy it directly to your mod folder. Just run it from your CMD while within the root of the mod folder. The output of the build and deploy script should look like this: build_deploy_local.cmd output
-
Now let's see if ArmA 3 is starting with CoopR-Mod enabled. Use the your favorite launcher and load @CoopR as Mod and @CBA_A3 as well. Start ArmA 3 and check if the mod loaded successfully by looking at the bottom of the main menu screen. There should be an icon that shows "CoopR Mod" when hovering over it.
-
You should the be ready to use CoopR-Mod. Check the repository for the
demo_missions
folder. There are two missions. One with the future Altis server mission and one for development purposes. Use theDEV
mission to implement new features. It needs the least amount of mods to run. So now copy this mission to yourmpmissions
so you can select it. -
Before running this mission you need some additional addons. Here is a screenshot of the actual mod list you need to run the
CoopR_dev.VR
mission.
Red: Mandatory
Blue: Recommended
The Idea | Feature Roadmap | Concepts | How to setup a mission | How to play | Development & Contribution | Technical Documentation