The online racing simulator
Searching in All forums
(52 results)
Pinto_PT
S2 licensed
I saw it yesterday

Nice work
Pinto_PT
S2 licensed
Congratulations, Scawen and Geraldine.

Pinto_PT
S2 licensed
Quote from Dygear :Look what I made ...

http://thenz.org/images/F1/LFS-F1-THEME.png

See what you can do with some time and some progamming know how.
It gets all of that from parsing csv files and rsv files. Pretty sweet huh?

Is it possible for you to share the code?
I think a lot of people, including me would be very happy.

If not
Pinto_PT
S2 licensed
Quote from Cue-Ball :That really wouldn't make any sense. The movie player plays movies directly off the CD. So it doesn't know about movies that are on your hard drive. And if you had movies on the hard drive, why would you ever insert the LFS CD to play them? It's faster and easier just to double-click them and play them with the media player of your choice.

I think you didn't understood my point, we can open the ISO image with a program like UltraIso and add or remove content from the ISO image.
So I want to just add some more videos of my choice to the ISO, it would be great the "built in" addon player of the lfs cd to play them.

I guess I'll stick with having lfs vids on a separate cd and when I want to show them to my friends, play them in their media player.

Hope now it gets clear my question

Pinto_PT
S2 licensed
Maybe in the next iso you could enhance the "movie player" so that we can add to the movies folder as many vids as we want and the player recognize them.
Not only the "default" ones or if you like add a browse to movies directory instead.

Just my 2cents

Keep the good work
Pinto_PT
S2 licensed
Quote from the_angry_angel :Its possible that your host has disabled some settings which allow file_get_contents to open a socket to an externel website. Try putting the following into a file, and see if you can find "allow_url_fopen". If its set to false then you've got a fundamental problem and need to take it up with your host.
<?php phpinfo(); ?>


This is what it says
Quote :allow_url_fopen | on | on

So I guess its ON

http://pitstop.mobstop.com/php.php

Php newbie
Pinto_PT
S2 licensed
How is it possible to achieve something like this but for PB's ?

http://www.lfsforum.net/attach ... tid=3462&d=1132355773

And with the scripts for online/offline all I can get is: Couldn't get hostlist. Click to retry...

I'm using this script

<?
//******************************************
// Add Team Member names to$TeamMembers
// LFS User Name and in lowercase
// Lowercase used to reduce typos
// in the username
//
// Also add the team Members In Game
// Name in $InGameName (any case will do)
// MUST be in the same order as $TeamMembers
//******************************************
$TeamMembers = array("pinto_pt","lfs name","lfs name","lfs name","lfs name");
$InGameName = array("pinto_pt","lfs name","lfs name","lfs name","lfs name");
//**********************************

// function to safely trim null-terminated strings
// could just use trim () in this example though
function trim_c_string ($string) {
$new = "";
$len = strlen ($string);
for ($x=0; $x<$len; $x++) {
if ($string[$x] != "\0") $new .= $string[$x];
else break;
}
return $new;
}

// Function to remove the colour code data from a string
function remove_colour_codes($String){
$ColCodes = array("^0","^1","^2","^3","^4","^5","^6","^7","^8","^9");
$NewString = str_replace($ColCodes, "",$String);
return $NewString;
}

// Function used by format_host_colours function to display correct colour value in html format
function get_colour($ColourNum){
switch ($ColourNum) {
case "0";
$ColourName = "#000000"; //Black
break;
case "1";
$ColourName = "#FF0000"; //Red
break;
case "2";
$ColourName = "#00FF00"; //Pastel Green
break;
case "3";
$ColourName = "#FFFF00"; //Yellow
break;
case "4";
$ColourName = "#0000FF"; //Light Blue
break;
case "5";
$ColourName = "#FF0080"; //Light Purple
break;
case "6";
$ColourName = "#00FFFF"; //Turquoise
break;
case "7";
// Remove comment marks on next line if not a white background
//$ColourName = "#FFFFFF"; //White
// Add Comment marks to next line if not a white background
$ColourName = "#808080"; //Dark Grey
break;
case "8";
$ColourName = "#00FF00"; //Pastel Green
break;
}
return $ColourName;
}

// Function to replace the ^x codes in the Host name to show correct colours on the screen
function format_host_colours($HostName){
for($i = 0; $i < strlen($HostName); $i++){
if(substr($HostName, $i, 1) == "^"){
$CharPos = strpos($HostName, "^", $i);
$ColNum = substr($HostName, strpos($HostName, "^", $i) + 1,1);
$ColourString = get_colour(substr($HostName, strpos($HostName, "^", $i) + 1,1));
if($i == "0"){
// If ^ found at the start of the host string remove the ^[num]
$TmpString = substr($HostName,$i+2);
// Add the html font code to the start of the string and append the
// variable $TmpString with the ^[num] removed
$HostName = "<font color='$ColourString'>".$TmpString;
}
else{
// Get the left part of the string to the next ^[num]
$LTmpString = substr($HostName,0,$i);
// Get the right part of the string after the ^[num]
$RTmpString = substr($HostName,$i+2);
// Add the html close font and add the new html colour to the end of the
// Left part of the string then add the right part of the string
$HostName = $LTmpString."</font><font color='$ColourString'>".$RTmpString;
}
}
}
// Close any html font tag left open in the above
$HostName = $HostName."</font>";
Return $HostName;
}

// Function to display Team Members online in a dynamic table
function display_expandable_table($TeamMembers, $LfsUsers, $InGameName){
// Set the variable to count the members online
$MembersOnline = 0;
// Count the number of members
$TotalMembers = count($TeamMembers);
// Create Header row for the table
echo "<tr bgcolor='#CCCCCC' align='center'><th>Team Racer</th><th>On Server</th></tr>";
// search through the file for Team Members and add a row to the
// table showing the name and server they are on
foreach ($LfsUsers as $LfsUser => $LfsHost) {
for($i = 0; $i < $TotalMembers; $i++){
if(strtolower($LfsUser) == $TeamMembers[$i]){
$LfsUser = remove_colour_codes($LfsUser);
$LfsHost = format_host_colours($LfsHost);
echo "<tr bgcolor='#FFFFFF'>";
echo "<td>$InGameName[$i]</td>";
echo"<td>$LfsHost</td></tr>";
$MembersOnline =+ 1;
}
}
}
// Display this row only if no members are online
if($MembersOnline == 0){
echo "<tr bgcolor='#FFFFFF' align='center'><td>No Members</td><td>Are Online</td></tr>";
}
}

// Function to display all Team Member Status
function display_fixed_table($TeamMembers, $LfsUsers, $InGameName){
/// Count the number of members
$TotalMembers = count($TeamMembers);
// Create Header row for the table
echo "<tr bgcolor='#CCCCCC' align='center'><th>Team Racer</th><th>Status</th><th>On Server</th></tr>";
for($i = 0; $i < $TotalMembers; $i++){
echo "<tr bgcolor='#FFFFFF'>";
foreach ($LfsUsers as $LfsUser => $LfsHost) {
if(strtolower($LfsUser) == $TeamMembers[$i]){
$LfsHost = format_host_colours($LfsHost);
echo "<td>$InGameName[$i]</td>";
echo "<td>Online</td>";
echo"<td>$LfsHost</td></tr>";
$Found = "True";
break;
}
else{
$Found = "False";
}
}
if($Found == "False"){
echo "<td>$InGameName[$i]</td>";
echo "<td>Offline</td>";
echo"<td>&nbsp</td></tr>";
}
}
}

// init some vars
$LfsUsers = array ();
$x = 0;
$LfsHostList = "";
// get the hostlist
$LfsHostList = file_get_contents ("http://lfsworld.net/pubstat/get_stat2.php?action=hosts");
$len = strlen ($LfsHostList);
// Thanks to Tristiancliffe for this line. It is a refresh link
if ($len < 52) exit ("<a href='javascript:document.location.reload();'>Couldn't get hostlist. Click to retry...</a>");

// parse the data
while ($x < $len) {
$LfsHostName = "";
$nr_racers = 0;
for ($y=0; $y<32; $y++) $LfsHostName .= $LfsHostList[$x++];
$LfsHostName = trim_c_string ($LfsHostName);
$x += 20; // skip some host-data
$nr_racers = ord ($LfsHostList[$x++]);
for ($w=0; $w<$nr_racers; $w++) {
$LfsUserName = "";
for ($y=0; $y<24; $y++) $LfsUserName .= $LfsHostList[$x++];
$LfsUsers[trim_c_string ($LfsUserName)] = $LfsHostName;
}
}

// Create table to hold data
echo "<center><br>";
echo "<table border='1' bordercolor='C0C0C0' cellpadding='4' cellspacing='0' style='border-collapse: collapse' style='font-family: Verdana; font-size: 10pt'>";

//*************************************************
// Comment and Uncomment the type of table you want
//*************************************************
display_expandable_table($TeamMembers, $LfsUsers, $InGameName);
display_fixed_table($TeamMembers, $LfsUsers, $InGameName);
/* Close the table */
echo "</table></center><br>";
?>

Pinto_PT
S2 licensed
Quote from Eldanor :I'm working on something like that. I will post the tracks when they're done.

About the names, well this has been said before and the conclussion was that names should come naturally (if they ever do) but no forced names.

Really nice
Pinto_PT
S2 licensed
I think I found the track maps you where talking, but it was on this forum

http://www.lfsforum.net/showth ... 1&highlight=track+map

Pinto_PT
S2 licensed
Quote from mrodgers :The corner/chicane naming has been discussed before and someone had done some track layout pics as well. But I think they are over at the LFS section of RSC. Head over there and look around, there were some pretty nice track layout graphics done.

I'll look there and see if I find something, thanks for the tip.

I just don't remember the last time I saw LFS forums at RSC

[Req]Making high-res track layouts
Pinto_PT
S2 licensed
Is anyone capable of doing high-res track layouts suitable for printing, etc...
The current layouts are too small and it would be nice to add notes for certain tracks/cars on a bigger layout printed.


Instead of this image, have a better detailed track and bigger.

I know this may sound a little too illepall....



PS: Maybe in the future we could give names to curves and chicanes like in real tracks
Pinto_PT
S2 licensed
Nice tool, would it be too much to ask to add the output as a csv file?
Pinto_PT
S2 licensed
Quote from tristancliffe :Like this?

How did you took take screenshot so high?

Pinto_PT
S2 licensed
Quote from the_angry_angel :The only major bits that should be really altered are removing the interface - hmm, daemon goodnes - and swapping out the sockets layer, assuming no VC++ specific objects have been used..

So why not make a petition/poll to ask users opinion, maybe whe can convince Scawen that we are very very hungry for a native linux dedicated host!



How many of us would like to put it runnig on our paid webhosts, like me!
Last edited by Pinto_PT, .
Pinto_PT
S2 licensed
Quote from kalle :Someone wanted the sprint race replay

It was I, thanks!

Pinto_PT
S2 licensed
No password for me either .

See you soon....

:eclipsee_
Pinto_PT
S2 licensed
Quote from smith :I think I got it finally, test it please: http://lfsclub.mediagate.ru/temp/statstest2.exe
At least it gives correct position to time-penalised player with my test replay.

Problem solved

(removed)

Great job for solving it so fast, now we all can do the dance!!

:banana:
Last edited by Pinto_PT, .
Pinto_PT
S2 licensed
Quote from smith :No, it's my prob, and it will be solved.

try how this one works: http://lfsclub.mediagate.ru/temp/statstest.exe

P.S. sorry, don't have any appropriate replays to test it by myself, and cant be arsed to download your replay with my slow internets

(removed)


I noticed that this statstest.exe had the same timestamp than the previous one you attached on your earlier post, isn't it the same one?

They both have been modified friday, 28 October 2005, 19:04:47

The result is obvous the same, the problem is not solved, the player is last on race stats output.



If you want, lets keep on trying if it's not insim fault.
The replay compressed with winrar it's 7,26MB in size, if you want i can put it on my webspace.
Last edited by Pinto_PT, .
Pinto_PT
S2 licensed
The output was exactly the same, as you can see in the generated race stats.

(removed)



Is it a insim problem ,that cannot handle this?
Last edited by Pinto_PT, .
Pinto_PT
S2 licensed
Will do it right now.
Pinto_PT
S2 licensed
Quote from smith :Ahh, I think I understand where my problem is - I equated all racers which got any type of penalty to disqualified ones. It's not good for sure, and will be corrected.

Nice

And a very big thank you for developing Lfs Stats!

Pinto_PT
S2 licensed
Quote from smith :Yep, he was penalised for something, thus he is moved down the grid. Looks like penalty info for the player was received in race finish packet, but of course it can be some bug too.

Can you watch the replay and tell me if he's got any penalty throughout the race progress and whether he completed this penalty?

I saw the replay, and indeed he got a 30s penalty when entering pits on lap 33 (35 laps race), he went out of pits and on his 34th lap even before he completed his 30s stop and go penalty the first racers finished.

He entered pits to complete his stop and go, but after stopping the car on pits, i think he didn't stopped for 30secs because i saw on screen 30secs time penalty when he got out.

Then he crossed the finish line also when we was on pits, then all other racers started to complete their race.

If you want i can send you the replay, just PM me for that.

Hope you understood all I said
Last edited by Pinto_PT, .
Pinto_PT
S2 licensed
Was the time of races 20:00 CET in season 1?
Who lives in England and Portugal do the races at 19:00, this is not compatible if you work or if you have school until late hours.

Best regards.
Pinto_PT
S2 licensed
Smith, a bug report, look at this output:

(removed)

The last driver did not finish at 19th position, in game it shows 13th place as it's on lfs world

(removed)

That 30s penalty there is making the diference for lfs stats i think.
Last edited by Pinto_PT, .
FGED GREDG RDFGDR GSFDG