Searching in All forums
(116 results)
jscorrea
S2 licensed
This works with GTR rigth?

Please atach the code here...

Tks
jscorrea
S2 licensed
Great project from Mindaugas,

Works fine here!

Regards,
JS
jscorrea
S2 licensed
In the LFS final, real tracks and real cars will be added for the community...

Like Rfactor for ie.

Regards,
JS
jscorrea
S2 licensed
gadada,

Great idea for this interface.
Please what is a link for the complete system for rfactor?

Thanks,
JS
jscorrea
S2 licensed
Take a look

http://www.simprojects.nl/transducers.htm

mini shaker with your pedals!



Regards,
JS
jscorrea
S2 licensed
This is a simulator Live fo Speed NOT Need for Speed
jscorrea
S2 licensed
Congrats to all, in my site the setups module is functional with "see setup".

"See setup" is a printable view of the setup.

Regards,
JS
jscorrea
S2 licensed
Ok!

Im using a function posted by me above and the gear ratios dont show the rigth values.

The type WORD 2byte represents the gears.
This "WORD" is hexadecimal value of 16bits.

In my case im using the following line:


<?php 
$a
["gr1"] = $gear[hexdec(bin2hex(fread($rs,2)))];//gear ratio 1
?>

$gear is a array to return the corrected value (0 to 65536 => 0 to 7.5).

This is a code:


<?php 
//gears
$gear = array();
for (
$i 0.5$i 7.5$i += 0.0001068115234375) {
   
array_push($gear$i);
}
?>

Is very strange the values returned is totally different of the set!

Any sugestion?

Regards,
JS
jscorrea
S2 licensed
Colcob

How i use your function?

For ie:

$setData = ReadSetData ("file.set");

$RFTP = $setData[RFtyrePressure];

?


JS
jscorrea
S2 licensed
Vic, in this line:

online status (0 = offline, 1 = spectating, 2 = pits, 3 = in-race)

For me appear blank when the racer is offline.

JS
jscorrea
S2 licensed
Nice ColCob!
jscorrea
S2 licensed
Hello this is the code in php(not finished yet)


<?php 
  
function data($file)
 {
 
$rs fopen($file,"rb");
 if(
fread($rs6) == "SRSETT")
 
$traction = array("0" => "TC Off / Sym""1" => "TC Off / Asym""2" => "Tc On / Sym""3" => "Tc On / Asym");
 
$tyrebrand = array("0" => "Cromo Plain""1" => "Cromo""2" => "Torro""3" => "Michelin""4" => "Evostar");
 
$cendifftype = array("0" => "Open""1" => "Viscous");
 
$difftype = array("0" => "Open""1" => "Locked""2" =>"Viscous""3" => "Clutch Park");
 
$camb = array("45" => "0.0""0" => "-4.5""90" => "4.5");
 {
 
$rs fopen($file,"rb");
  
//General
 
$a["type"] = fread($rs,6);//SRSETT
 
fread($rs,1);//0
 
$a["version"] = hexdec(bin2hex(fread($rs,1)));//250
 
$a["revision"] = hexdec(bin2hex(fread($rs,1)));//2
 
fread($rs,3);//0
 
$tc hexdec(bin2hex(fread($rs,1)));
 
$a["tc"] = $traction[$tc];//traction control
 
fread($rs,2);//0
 //Misc1
 
$tb hexdec(bin2hex(fread($rs,1)));
 
$a["tb"] = $tyrebrand[$tb];//tire brand
 
$a["bst"] = (hexdec(bin2hex(fread($rs,4))))/32.0425;//brake strength (Nm)
 
$a["rwa"] = hexdec(bin2hex(fread($rs,1)));//rear wing angle
 
$a["fwa"] = hexdec(bin2hex(fread($rs,1)));//front wing angle
 
fread($rs,2);//0
 
$a["msl"] = hexdec(bin2hex(fread($rs,1)));//max steering lock
 
$a["ps"] =  hexdec(bin2hex(fread($rs,1)));//parallel steering
 
$a["bb"] = hexdec(bin2hex(fread($rs,1)));//brake balance
 
$a["ebr"] = hexdec(bin2hex(fread($rs,1)));//engine brake reduction
 //Centre Diff
 
$cdt hexdec(bin2hex(fread($rs,1)));
 
$a["cdt"] = $cendifftype[$cdt];//centre diff type
 
$a["cdvt"] = hexdec(bin2hex(fread($rs,1)));//centre diff viscous torque
 
fread($rs,1);//0
 
$a["cdts"] = hexdec(bin2hex(fread($rs,1)));//centre diff torque split
 //Drivetrain
 
$a["gr7"] = hexdec(bin2hex(fread($rs,2)));//gear ratio 7
 
$a["grf"] = hexdec(bin2hex(fread($rs,2)));//gear ratio final
 
$a["gr1"] = hexdec(bin2hex(fread($rs,2)));//gear ratio 1
 
$a["gr2"] = hexdec(bin2hex(fread($rs,2)));//gear ratio 2
 
$a["gr3"] = hexdec(bin2hex(fread($rs,2)));//gear ratio 3
 
$a["gr4"] = hexdec(bin2hex(fread($rs,2)));//gear ratio 4
 
$a["gr5"] = hexdec(bin2hex(fread($rs,2)));//gear ratio 5
 
$a["gr6"] = hexdec(bin2hex(fread($rs,2)));//gear ratio 6
 //Misc 2
 
$a["pass"] = hexdec(bin2hex(fread($rs,1)));//passengers
 
$a["carconfig"] = hexdec(bin2hex(fread($rs,1)));//car config (roof on LX4/6 qnd UF1)
 
$a["tcs"] = (hexdec(bin2hex(fread($rs,1))))/10;//traction control slip
 
$a["tces"] = hexdec(bin2hex(fread($rs,1)));//traction control engage speed
 //Steering rear
 
$a["rst"] = hexdec(bin2hex(fread($rs,4)));//rear spring travel (NOT motion range)
 
$a["rss"] = hexdec(bin2hex(fread($rs,4)));//rear spring stiffness (N/mm)
 
$a["rcbd"] = hexdec(bin2hex(fread($rs,4)));//rear compression/bump damping (N/mm)
 
$a["rrd"] = hexdec(bin2hex(fread($rs,4)));//rear rebound damping( N/mm)
 
$a["rarbs"] = hexdec(bin2hex(fread($rs,4)));//rear anti-roll bar stiffness(N/mm)
 
fread($rs,4);//0
 
$a["rtoe"] = hexdec(bin2hex(fread($rs,1)));//rear toe
 
$a["rcaster"] = hexdec(bin2hex(fread($rs,1)));//rear caster
 
$a["rtyretype"] = hexdec(bin2hex(fread($rs,1)));//rear tyre type
 
fread($rs,1);//0
 
$a["lrca"] = hexdec(bin2hex(fread($rs,1)));//lr camber adjust
 
$a["rrca"] = hexdec(bin2hex(fread($rs,1)));//rr camber adjust
 
fread($rs,2);//0
 
$rdthexdec(bin2hex(fread($rs,1)));
 
$a["rdt"] = $difftype[$rdt];//rear diff type
 
$a["rvt"] = hexdec(bin2hex(fread($rs,1)));//rear viscous torque
 
$a["rpl"] = hexdec(bin2hex(fread($rs,1)));//rear power locking
 
$a["rcl"] = hexdec(bin2hex(fread($rs,1)));//rear coast locking
 
$a["lrtp"] = hexdec(bin2hex(fread($rs,2)));//lr tyre pressure
 
$a["rrtp"] = hexdec(bin2hex(fread($rs,2)));//rr tyre pressure
 //Steering Front
 
$a["fst"] = hexdec(bin2hex(fread($rs,4)));//front spring travel(NOT motion range)
 
$a["fss"] = hexdec(bin2hex(fread($rs,4)));//front spring stiffness(N/mm)
 
$a["fbc"] = hexdec(bin2hex(fread($rs,4)));//front bump/compression dampin (N/mm)
 
$a["frd"] = hexdec(bin2hex(fread($rs,4)));//front resbound damping
 
$a["farbs"] = hexdec(bin2hex(fread($rs,4)));//front anti-roll bar stiffness
 
fread($rs,4);//0
 
$a["fti"] = hexdec(bin2hex(fread($rs,1)));//front toe in
 
$a["fc"] = (hexdec(bin2hex(fread($rs,1))))/10;//front caster
 
$a["ftt"] = hexdec(bin2hex(fread($rs,1)));//front tyre type
 
fread($rs,1);//0
 
$a["lfca"] = hexdec(bin2hex(fread($rs,1)));//lf camber adjust
 
$a["rfca"] = hexdec(bin2hex(fread($rs,1)));//rf camber adjust
 
fread($rs,2);//0
 
$fdt hexdec(bin2hex(fread($rs,1)));
 
$a["fdt"] = $difftype[$fdt];//front diff type
 
$a["fvt"] = hexdec(bin2hex(fread($rs,1)));//front viscous torque
 
$a["fpl"] = hexdec(bin2hex(fread($rs,1)));//front power locking
 
$a["fcl"] = hexdec(bin2hex(fread($rs,1)));//front coast locking
 
$a["lftp"] = hexdec(bin2hex(fread($rs,2)));//lr tyre pressure
 
$a["rftp"] = hexdec(bin2hex(fread($rs,2)));//rf tyre pressure
 
}
 return 
$a;
 }

?>

JS
jscorrea
S2 licensed
How to get all information data of the hosts?

In the partial code below shows me only racers and hosts.


<?php 
// parse the data 
while ($x $len) { 
    
$hostname ""
    
$nr_racers 0

    for (
$y=0$y<32$y++) $hostname .= $hostlist[$x++]; 
    
$hostname trim_c_string ($hostname); 

    
$x += 20// skip some host-data 

    
$nr_racers ord ($hostlist[$x++]); 
    for (
$w=0$w<$nr_racers$w++) { 
        
$username ""
        for (
$y=0$y<24$y++) $username .= $hostlist[$x++]; 
        
$users[trim_c_string ($username)] = $hostname
    } 

?>

JS
jscorrea
S2 licensed
Hi,

Look this:


<?php 
    
include "LFSWorldSDK.php";
    
$LFSWorld = new LFSWorldSDK;
        
$user 'jscorrea';
    
$stats $LFSWorld->get_stats($user);
    echo 
$stats[distance] == "" "no user" :"ok";
    echo 
$stats[online] == 0"OFFLINE" "ONLINE";
?>

This is the right way to show if the user exists?

In my case i have user im my database and the code below dont work:


<?php 
    
include "LFSWorldSDK.php";
    
$LFSWorld = new LFSWorldSDK;
        
$user $a["uname"];
    
$stats $LFSWorld->get_stats($user);
    echo 
$stats[distance] == "" "no user" :"ok";
    echo 
$stats[online] == 0"OFFLINE" "ONLINE";
?>

$a["uname"] return in my site a username.

The error is:

LFSWorld error: $str

Regards.
JS
jscorrea
S2 licensed
This a great idea!

But is possible to generate a video streamming like *wmv streamming?

This is a real TV streamming for all people...

JS
jscorrea
S2 licensed
The masterserver is in the house of the devs....
jscorrea
S2 licensed
Vagner,

Wheel turn compensation é :

Demultiplicação de giro do volante, seria um fator de giro, 1.0 seria igual e assim vai. Não seria frenagem.

Abraços,
JS
jscorrea
S2 licensed
Hello,

When you press on in the pedal the POT turn its totality?

JS
jscorrea
S2 licensed
Muito bom Vagner!!
Parabéns!!
jscorrea
S2 licensed
In my case is a DIY H-SHIFTER with two rumble motors (like PSX pad).
I have the original driver and works fine!
But in LFS one or other device works...
The only effect needed is a vibration in the SHIFTER like a real car.

How Force Dynamics get the information to works(for i.e.)?

In my case is a similar, the diference is some effects necessary to add a feeling of vibration of motor in my shifter..

The FF Shifter is other thing i read the tread (using wingmam force,..).

REGDS
JS
Last edited by jscorrea, .
Two FFB devices together?
jscorrea
S2 licensed
Hello,

it is possible to have two devices functioning together in LFS?

I have a rumble DIY H-Shifter with two motors and Logitech MOMO Force.

Regards,
JS
Last edited by jscorrea, .
jscorrea
S2 licensed
Im located the error, is a function of your CMS:

$gBitSmarty

JS
jscorrea
S2 licensed
Nice release

But a error:

Fatal error: Call to a member function on a non-object in /home/jscorrea/public_html/lfsbr/server_monitor/mod_lfs_monitor.php on line 68

??
jscorrea
S2 licensed
"Last night there was a power cut.."

Don't you have a nobreak?
jscorrea
S2 licensed
I hope too, Vagner!
Nice job!
FGED GREDG RDFGDR GSFDG