Thanks a lot for your kindly reply.Since we are planning to record every single lap that every player did in our server and no matter what time they did,so we have to find some other way to do that.
I was trying to use KingTracker's database within my website so I wrote a simple php based script which it didn't get the things right and I don't understand why.
My script checks the LAPS table of KingTracker's database every 30 secs.If there is new lap-time record in it ,my script will read it and translate to my database's format and put it into my website's database.
The core-code was as followed:
$sql="select maxID from max_lap_id where host_id=$hostID"; $maxID=getsql($sql,0);//The max_lap_id table was set up by me in order to record the max lap ID that have been put into my database
$sql="select * from laps where track='$track' and id>$maxID order by id ";//make sure don't record the same lap-data again. $ok=mysql_query($sql); $idLog=''; if (mysql_num_rows($ok)>0){ while ($row=mysql_fetch_array($ok)) {
$player_id=$row["player_id"]; $sql2="select UName from players where id=$player_id"; $plyName=getsql($sql2,0); $car=$row["car"]; //$timestamp=time(); $maxID_new=$LapId=$row['id']; $idLog=$maxID_new."\r\n".$idLog; $LapTime=$row["time"]/1000; $sectors=$row["sectors"]; $timestamp=strtotime($row["added"])+8*3600; $var=json_decode($sectors,true); $st0=$var["1"]; $st1=$var["2"]; $SectorTime0=getSeconds($st0); $SectorTime1=getSeconds($st1); $LapCount=0; $data=$data."$LapId,1,$plyName,$car,4,5,6,7,8,$LapCount,$SectorTime0,$SectorTime1,$LapTime,$SectorTime0,$SectorTime1,$LapTime,$timestamp\n"; //I will post this $data to my website's receiver. $sql3="update max_lap_id set maxID=$maxID_new where host_id=$hostID";//update the max-lap-id mysql_query($sql3);
}
Well, if I set the max-lap-id to zero or something much more smaller than the LAPS table actually recorded,and the script will do it all right which will transfer all data into my website correctly in the very first time .but if the script keep running,all data transfer to my website were wrong.
So I wonder that will KingTracker update the certain LAPS record after insert it into LAPS table?If the answer is yes,could you tell me when KingTracker will update it ?
Ok,I am with kagurazakayukari,so I will describe some technical details about our host here.
Our host was running in a Windows Server 2003 system.I have already set up a web-service of php,ngnix and mysql.so I cant use your Bat script came with the windows' version because it seems that it will set up another web-service which might crashed the web-service I already set.
First of all,thank you for update the app so quickly .Second ,I still encountered a minor-bug which I already found a unusual way to solve it out.
My solution of this bug was add one line before line 266 of kingtracker\vendor\zendframework\zend-db\src\Adapter\Driver\Pdo\Connection.php,which was "$username='my db username';$password='my db password';"
PS:I did edit the file "kingtracker\config\autoload\global.php" with correct db username and password.
Why cant I get any response from my lfs after I input those commands into LFS like "!tr,!host"?
I have already get the web-site and the monitor running in my server which running the lfs-dedicated host.
I am using version 0.5.0. There are some msg showing up , like "[2016-11-01 02:48:20] - Packet received: ISP_MSO" , in the monitor window after I typed something in the game.so I assume that the monitor was connected to my host correctly.
But still,there was nothing in my game's screen.
And PS, I already made myself as an admin through the web UI.
I am working on some PHP scripts which can enable ppl to check my server's status from a web browser.
As the title of this thread said, I cant find a way to get the cars-list which was allowed in my server.I have checked out all of the INSIM packet and nothing found.
So if anyone who know how to do this ,pls tell me.thanks a lot
Hope u guys can understand what i said easily..because English is not my native language.
the patch W sounds are pretty nice for current LFS sound engine.
but i do feel the off power volume in some of the cars is too high. maybe this volume should be lower and thus add more 'contrast' to the engine sound. i mean in some cars the noise with full throttle can be much louder and maybe this effect can be created by increase the volume difference by lowering off power volume
also i think the gearwhine in the open wheelers is a bit too high, and the cars sound like some kind of jet plane. is that realistic?
Pls upload it to somewhere else www.liveforspeed.net. and post the link to here.becuz I(I think that there is a lot of ppl like me) can't download it from there.