The online racing simulator
Searching in All forums
(90 results)
D34N0
S3 licensed
Quote from Ian.H :Deano..

I was asked to have a quick look at this with possibility of using it on our team site, but after spending 2 mins looking at 3 files, I thought I'd drop a post here to let you know that it's insecure.

The 'addmember.tib.php' for example is open to SQL injection attacks as you don't validate the form data for anything but an empty string.

Not slating your work, but thought you and anyone else running it should be aware. Unfortunately I don't have time to go through it all or work with it, but hope this small snippet of info will help you go through the other scripts and double check for things



Regards,

Ian

Hi Ian

Thanks for that. Please excuse me if this seems a silly question as my knowledge of programming php is self taught.
I'm not sure how that would work as the file can only be opened via the include statement, the form is opened by an user that is specified with admin access set in the users table as is the same for other trigger files.

Regards
Dean
D34N0
S3 licensed
Quote from RSchumacher :Are you still working on that Dean? Because my team and I think many others are really interested in that

It is currently at BETA 0.91 and has been attached to the First post. If anyone wishes to test and let me know of any issues it would be appreciated.

Many Thanks
Dean
Last edited by D34N0, .
D34N0
S3 licensed
Quote from regispicanco :SUGESTION!

Please, create CATEGORIES for the Setups. So you can have setups for:
- Hotlap
- Long Races
- Shor Races
- Drift
- Drag Racing
- etc....

Good Luck!

That may be included in a later version as would involve adding categories to the database and amending all the code and triggers to take these into consideration. In the mean time you could add in the comments Hotlap etc... and do a search to find all sets with hotlap etc.. in.

Dean
D34N0
S3 licensed
I think I should clear things up this is a website application to be used by Teams or a group of individuals to store the setups they wish to share between themselves.

It will also display Setup Station members online status, when searching for a car and track combination it will display there PB, HL and the WR using LFSW Pubstats, also it will hold car & track Fuel data that the members enter.

It is NOT meant to be a competitor to the Team Inferno website as there setups are available to everyone.

THIS APPLICATION CAN BE USED WITH OTHER RACING SIMS AS WELL.

Regards
Dean

EDIT: Anyone wishing to do Translations please use the form in the first post. Thanks
Last edited by D34N0, .
D34N0
S3 licensed
Quote from szyszek :Quick question: What makes it better than Inferno?

I don't mean to sound negative, but I know LOTS of peopel are already using that, it may be hard to get them to switch.

I'm not trying to get people to switch from Team Inferno. That site is great and holds the WR setups that the holders wish to share.

If you download a set from Team Inferno it may not suit your driving style so you either modify it or get one from someone else. This is a repository for a team or group of individuals to share their setups between themselves. The sets may not be WR Hotlap setups but race setups.

Dean

EDIT: You beat me to It Fordie
D34N0
S3 licensed
Quote from eRaptor :That's a good ideia, but just a question:

- Is this for allowing people to search for a set? Or is it only for the racers to keep their sets in there (and for private use)?

It is for a team or group of individuals wishing to keep, search, add, delete setups between themselves. The admin of a setup station would allow access to individuals who would then logon to the station.

Hope that answers your question.

Dean
Team LFS Setup Station
D34N0
S3 licensed
I am in the process of creating a setup station for LFS setups that teams can use and have available on their own web space. It will have a user login interface, basic general & admin groups and functionality to add, rename, delete setups etc...

Many Thanks
Dean

Current Available Translations :English, German, Dutch, Danish, Swedish, Croation, Icelandic

EDIT 22/08/06 - Beta Version Updated to v0.970a See Change Log File
If updating from a version prior to 0.953 you will need to run the file trackupdate.sql file in the install folder. All previous Versions need to run the file usersupdate.sql in the install folder (Remember to create a backup first)

EDIT 28/11/07 - It has been found if the PHP version on the web server is upgraded the setup station will not function properly. I have attached a patch for this. You will need to extract the file into the includes folder of the setup station on the web server.


EDIT 16/01/08 - I have attached a file containing the required files to upgrade the setup station to Patch Y specifications. View the file in readme folder first. "Always make a backup of your files before upgrading"
Last edited by D34N0, .
D34N0
S3 licensed
If the update is done an hour later every day then the update that falls at Midnight is on Friday/Saturday morning. Is this there intension to release the new patch

Conspiray Theory 1
D34N0
S3 licensed
Have you noticed the times of the last updates
Day2=15:00
Day3=16:00
Day4=16:50
Day5=18:00???

I've got to go and pick the Mrs up from work thought would see update b4 but oh well
Last edited by D34N0, .
D34N0
S3 licensed
Nice One and Thanks

I have quickly tested it and it made the WR GhostCar. Now all I have to do is try and get the car to handle well enough to get close to the time
D34N0
S3 licensed
I try to drive them :rally_dri but it feels like rallyX sometimes

I was on a server last night friving the LX4 at Fern Bay Gold it was [dSRC] Battle Grounds #3

Great fun Guys
Friday Afternoon Funny
D34N0
S3 licensed
Here is something to brighten up a dull Friday afternoon
http://www.mad129.plus.com/fun/mylove.wmv

:smileyrai
D34N0
S3 licensed
Tweaker - Thanks for that but that was the converter I used. and have also read that thread

GP4Flo - Thanks.. The person doing the renders uses Rhino professionally so he knows how to work with wire models and rendering

What I beleive is that converter converts the lighting info listed on the LFS in the CMX Format section and that is stopping Rhino applying different lighting effects.

Is there a way to get the converter not to convert the lighting info.?
Last edited by D34N0, .
CMX files
D34N0
S3 licensed
What applications can open the cmx files?

The reason is a friend is trying to use Rhino (www.rhino3d.com) to do some renders but is unable to open the files. I have used the cmx to 3ds converter and rhino is able to open the .3ds files but when he sets any of the lighting info it renders a blank screen. I noticed in the file format on the LFS site it includes lighting info. So I assume the converter converts this too.

Does any one have the mesh models without any of lighting info or know how to get them.

Regards
Dean
D34N0
S3 licensed
Here is a set for you..
Struggling for MRT Set
D34N0
S3 licensed
Hi

I am struggling to get a stable set for the MRT at Aston Cadet Reverese (AS1r)

Is anyone willing to share a set.

Many Thanks
Dean

EDIT: I now have a set..
Last edited by D34N0, .
D34N0
S3 licensed
Happy Birthday Scawen

Live Long and Prosper
D34N0
S3 licensed
Thanks KeyGetys Great tool...

Works a treat... Hopefully can get some more consistant laps with this
D34N0
S3 licensed
Thank you Scawen.
D34N0
S3 licensed
:iagree:

I've been playing LFS for 18 months and still leaning but thats a good thing.. Practice is the main thing and lots of it, but when you find that sweet lap it's a great feeling. The best way is to start with the slower cars and get a feel for the handling then work your way up the cars.. That way you will appreciate how to handle and drive the faster cars.

But most of all Enjoy the racing, stay clean, have fun and you will get a sense of satisfaction from the game.

Have Fun
Dean
D34N0
S3 licensed
Quote from smith :D34N0, quick googling reveals many people with win9x encountering this error. I'll try to find more information and fix it, but you really should upgrade to something newer
edit: looks like this problem is specific to win98se only... win98 and winme should work.

Thanks, I know I should upgrade but this is just an old box at work I use for running stats, I'll look into possibility of putting Win2000 on it

Dean
D34N0
S3 licensed
Hi Smith,

I have a problem running version 1.3 and 1.299 on my Microsnot Windows 98 machine, it is fully patched and /insim 65000 has been run in LFS p9.

When starting stats.exe "InsimInit 64999" appears in the lfs window then the following is displayed in the command window.

LFS stats! v1.3 (c) 2004-2005 Alexander 'smith' Rudakov ([email protected])
Connecting [127.0.0.1 65000 64999 ]
Error connecting to LFS: Sockets error 126

Dean
D34N0
S3 licensed
Quote from Sven Menkhoff :This Script is great.
But i have a lil Problem with it.
I only wanna use the upper part of it, cause the lower part is too wide for our Page.
How can i remove the lower part?

greez S.Menkhoff

Please explain what you mean by upper an lower parts..
The script just creates a table so there is no upper and lower part.. There are 2 options at the bottom to display either a expandable or fixed table? (as listed below), to comment out either of the rows as described in the comments place // at the start of the line you do not want

//*************************************************
// Comment and Uncomment the type of table you want
//*************************************************
display_expandable_table($TeamMembers, $LfsUsers, $InGameName);
display_fixed_table($TeamMembers, $LfsUsers, $InGameName);

Regards
Dean
D34N0
S3 licensed
The code has once again been updated.

1) Fixed an error in the Host Name Colour conversion that caused text following the table to be the incorrect colour. Thanks to Tristancliffe for spotting that one.

2) Added second array to contain the In Game Name or name you wish to show in the table in the letter case you type, but must be in the same sequence as the Team Members array. Thanks to Tristancliffe for that idea.

3) Added a link to refresh the screen if hosts file not found. Thanks to Tristancliffe for the code

Dean


<?php 

//******************************************
// 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("lfs name","lfs name","lfs name","lfs name","lfs name");
$InGameName = array("lfs name","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$i1) == "^"){
     
$CharPos strpos($HostName"^"$i);
     
$ColNum substr($HostNamestrpos($HostName"^"$i) + 1,1);
     
$ColourString get_colour(substr($HostNamestrpos($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>";

?>

Note : 4/11/05 18:18GMT For those who have already downloaded this code today there was a small error inside one of the functions, you may need to download it again. Inside one of the functions [$i] was missing from $InGameName when writing the data into the table. Corrected in the above code. Sorry
Last edited by D34N0, .
D34N0
S3 licensed
I have updated the code to show the server name in the correct colours (except white which is set to dark grey as it shows better on a white background ).

The team Members are now entered into an array at the beginning of the code, use lowercase in the array as this helps to minimise the chances of mistyping the name. If you want to use the name in the correct case you will need to remove strtolower used in the display table functions. At the end are two lines that allow you to display the online status in an expandable table with columns Name and Server or a fixed table showing all team members with the columns Name, Status and Server. Comment out the one you do not want to use.

Hope this will be of use.

Dean

Note : The code has been updated and is in the message below
Last edited by D34N0, .
FGED GREDG RDFGDR GSFDG