Is there anyone that has this working that might be able to walk me through this?
Here's what I've done so far:
1. Uploaded all files to our Apache server that were in the htdocs folder.
2. Manually created my MySQL datbase and then imported the vmliveview.db.manual.setup.sql file, which created 8 tables.
3. Configured the inc.mysqli.conn.php file as such:
Code:
<?php
$pageNameIO = "inc.mysqli.conn.php";
// -- connect to mysql server
$dbHost='localhost';
$dbReader='datbase_user';
$dbReaderPass='database_password';
$dbName='database_name';
$dbPort='3306';
$mySQLiConn = @new mysqli( $dbHost, $dbReader, $dbReaderPass, $dbName, $dbPort);
$mySQLiConnError = "";
if($mySQLiConn->connect_error){
$mySQLiConnError = "<div class='break6'></div>\n" .
"<div class='red'>Database connection error.</div>\n" .
"<div class='break6'></div>\n" .
"<a href='" . $siteURL . "/monitor.php'>Try again</a>\n";
writeErrorLog($pageNameIO, "Connect to SQL Server", "Error No: (" . $mySQLiConn->connect_errno . ") Error Msg: (" . $mySQLiConn->connect_error . ")");
}else{
if(!$mySQLiConn->set_charset($dbCharSet)){
writeErrorLog($pageNameIO, "Set connection character set", "Error Msg: (" . $mySQLiConn->error . ")");
}
}
?>
4. Edited the rFactorSL.exe.xml file as such:
Code:
<?xml version="1.0" encoding="windows-1252"?>
<rFactorSL>
<Common>
<EventName>Your Event Name</EventName>
<CycleTimeout>269</CycleTimeout>
<Chill>0</Chill>
</Common>
<CurrentScoringSource>
<xmlURL>C:\rFactor\vmliveview\VMHotlaps\CurrentScoring.xml</xmlURL>
</CurrentScoringSource>
<MySQL>
<sqlHost>localhost</sqlHost>
<sqlPort>3306</sqlPort>
<dbName>database_name</dbName>
<dbWriter>database_user</dbWriter>
<dbWriterPass>database_password</dbWriterPass>
<sslMode>None</sslMode>
</MySQL>
<DedicatedServer>
<connPrefix>rfactor</connPrefix>
<connAddress>209.xxx.xx.xx</connAddress> ([I]not sure i need this as everything is on the dedicated server[/I])
<connPort>30000</connPort>
</DedicatedServer>
<Hotlaps>
<LogAI>0</LogAI>
</Hotlaps>
</rFactorSL>
5. I've copied the files from the rfactorSL folder to the server and placed them under a directory I named vmliveview as seen in the screenshot below:
6. Dropped VMHotlaps.dll into the rFactor2 Plugins directory.
7. I then start the rFactorSL.exe application and click "Start" on it.
8. Then I start the rFactor2 dedicated server.
At this point nothing seems to happen. rFactorSL.exe just says:
SQL Connection State: Closed and nothing appears to happen.
Do I need to have files in very specific directories? What really has me baffled is how rFactorSL.exe knows when or where the rFactor2 dedicated server is?
Anyway, I'm a bit lost since there's no documentation and was wondering if someone who has this working could have a look at my setup and tell me where I've gone wrong.
Thanks.