Arma2NETMySQL Plugin: Example Mission - ReadMe
Contents
Introduction
Links:
This is an example Arma2 mission for the Arma2NETMySQLPlugin.
It allows you to gear up and save your entire loadout in a database. Loadouts are specific to your player so you can
have as many as you want.
Requirements
- Arma2NETMySQLPlugin installed and working (see the readme for this program for requirements and setup instructions)
- Arma2 Mods: ACE (optional) and CBA (required)
Setup
- First read the instructions and setup Arma2NETMySQLPlugin.
- Decide if you will be using MySQL or SQLite for your database. If you don't know anything about databases, I would pick SQLite as it's easier to setup.
- For SQLite:
- Go into /sql/sqlite/ and find "weapons.sqlite". This is an empty copy of the SQLite database.
- Copy that file to the SQLite folder for the Arma2NETMySQL plugin. See the instructions for Arma2NETMySQL for details.
- For MySQL:
- Login to your MySQL server
- Edit the /sql/mysql/weapons.sql file. At the top, change the password from "123" to something more secure.
- Import the /sql/mysql/weapons.sql file into your database. This will setup the database structure. You will probably need
to login as the root user to have the appropriate permissions to run the SQL file. This will setup a user "arma" and a
database "weapons" as well as the appropriate permissions to lock down the "arma" user. I would not recommend setting up
the Databases.txt file to use the root user. This is a big security risk.
- Edit the Databases.txt file and provide the appropriate connection line to either SQLite or MySQL.
- Rename this folder "Arma2NetMySQLPlugin-example.utes" or use the provided PBO if you have a compiled version.
- Copy this mission into your mission directory for Arma2. It's probably something like:
C:\Username\My Documents\ArmA 2 Other Profiles\YourNameHere\mpmissions
or...
C:\Username\My Documents\ArmA 2\...
If you're running a dedicated server, put it in the MPMissions folder in your root Arma2 directory.
- Then launch the beta with ACE (optional), CBA, and Arma2NET mods:
-mod=expansion\beta;expansion\beta\expansion;@CBA;@ACE;@ACEX;@CBA_OA;@CBA_A2;@Arma2NET
- The example mission is on the Utes map.
- Run the mission and walk up to the box in front of you. Using the scrollwheel, select the
loadout system. This opens up the dialog which you can then interact with. You have the following
options.
- Create a new loadout.
- After providing a name in the textbox, the gear that you currently have will be saved to
the database. Loadout names must be unique.
- Update an existing loadout.
- Select a loadout name from the list, then hit this button. The selected loadout will be
replaced with the gear that you currently have selected. Be careful, there's no way to undo this!
- Delete a loadout.
- Selecting a loadout name from the list and hitting this button will delete it. Careful, there's no
undo!
- Select a loadout.
- Selecting a loadout name from the list and hitting this button will replace all gear that you have
with the selected loadout.
Known Issues
The mission needs testing.
Troubleshooting
See the Arma2NETMySQLPlugin readme for troubleshooting instructions related to the plugin.
If you found a bug in the mission, please create an issue ticket here:
Github page.
There is also a thread
on the BIS forums setup for theArma2NETMySQLPlugin so if you're stuck, you can ask there.
The forums are preferred over emailing me because then the question/answer is available to
future people who have similar problems. If you post any questions anywhere, please post ALL
log files, otherwise we will have problems helping you.
Changelog
License
This mission is licensed under the GPL version 3.
Thanks To
- Thanks to Scott_NZ for Arma2NET
- Thank you to Hatchet, Robalo, Buehgler and all the guys over at AlphaSquad.
- Thanks to JMan at Kellys Heroes.
- Thanks to all the testers.
- Thanks to Riouken for providing the excellent GUI system and overall awesomeness with scripting.
- Bohemia Interactive for creating an awesome game and staying true to the community.