This guide is for people who are running into the ‘DB driver “ghmattimysql” not initialized yet’ error, This is NOT a complete guide on setting up vRP2
I am posting this guide because I spent the better part of a morning figuring this out, and there is seemingly no good information available on this topic yet. The solution is actually pretty simple.
Following these steps will get your server up and running with:
vRP2 version: DOWNLOAD
vRP-dv-drivers version: DOWNLOAD
GHMattiMySQL version: DOWNLOAD
1. Make sure to have set up your database and database user(s) correctly. Without the database it will NOT be able to connect.
2. Download vRP, vRP-db-driver and GHMattiMySQL from the links listed above. the vRP resource can be placed wherever you like, as long as it’s somewhere in your resources folder. from the vRP-db-drivers resource you only need the vrp_ghmattimysql folder NOT the vrp_ghattismysql-js folder. I would place it in the same location as the vRP resource. MAKE SURE to place the GHMattiMySQL resource in the ROOT for your resources folder otherwise it will not work.
your file structure would look something like this:
server-data
+-- server.cfg
+-- resources
+-- GHMattiMySQL
+-- [scripts]
+--vrp
+--vrp_ghattismysql
+--SOMEOTHERSCRIPTS...
+--SOMEOTHERSCRIPTS...
+-- [SOMEOTHERFOLDER]
3. I don’t know how much the order of the startup of the resources matters, but what works for me and what I recommend you to do is use this order (this works both in server.cfg, and in a seperate resources.cfg file if you have one):
ensure GHMattiMySQL
ensure vrp
ensure vrp_ghattismysql
4. You want to go into the GHMattiMySQL resource folder, and edit the settings.xml file to reflect your database settings.
5. You’re all done, no really… That’s all you need to do to make it work… It’s a bit of a mess with 10 different versions of all of the resources, but the links above should provide a working combination.
Gl, and have fun with developing your vRP server
CONFIRMED WORKING as of June 6th, 2020