The online racing simulator
Searching in All forums
(38 results)
1
wonderous
Demo licensed
Quote from revolucio :Hi!

I have a new problem, now with .NET 2.0 installed.

When LFSLapper are running 5 or 10 minutes, shows this error.

Make sure your dedi server is running on the same insim port as Lapper.
Also make sure you run the Lapper properly, you need a shortcut and in the target box it should be:

"X:\LFSLapperX.XX\bin\LFSLapper.exe" "X:\LFSLapperX.XX\bin\LFSLapper.cfg"
Last edited by wonderous, .
wonderous
Demo licensed
Help, I still dont know what's wrong with my cfg file!

Everything works except for the ! commands..

p.s. PB.txt and DriftPB.txt are still growing
Last edited by wonderous, . Reason : p.s.
wonderous
Demo licensed
Glad that someone has the same prob
wonderous
Demo licensed
I searched the file thoroughly, I dont seem to find an error.. If there's an error in the cfg file it Lapper wouldn't even run.. and since everything else is working fine I would assume the error has to be somewhere around the AutoMsgPrivate section but comparing it to the original cfg file there's no difference?
LFS bugs
wonderous
Demo licensed
I'm running a LFSlapper server, everything works fine (like drift scores, automsgs) but AutoMsgPrivate commands dont work, Lapper does not process ! commands.. They used to work but now they dont.

The PB.txt and DriftPB.txt files are still growing.

My logerr.txt is attached, I wonder what's the matter..

logerr.zip
LFS error
wonderous
Demo licensed
logger.txt attached..

I have another prob.. I used to have a PB.txt file of about 100KB now it's reduced to 30KB? I have two servers, and I began the second server much later. Surprisingly the second server's PB.txt file is larger. It's kinda weird. It only kept the newer PBs and remove the older ones(I only see july PBs, from march to june has disappeared)?

And I get the warning for both server's lappers:
Quote :6 (MSO) Warning: Player not found

wonderous
Demo licensed
it's in zip file.
wonderous
Demo licensed
Quote from NeoArnold :if you displays the headers of the table, the cgi is running !! now you need to check your options in the line of http. i mean, some names of the cars are change for a shorts names, maybe that is the problem, this is an example:

http://69.65.126.177/cgi-bin/W ... to=100&pbfile=fox.txt
check the source of the webstats.html example in the folder of the new 1.3 version

Yes I have edited the html file it's works, displaying the pbs perfectly (using the same pb.txt and driftpb.txt) on my webhost(i'm paying for this)

#edit made a mistake
but now i've set up my own winxp home server. With the same pb files and using the WebStats.cgi in the WebStats>bin>Windows directory which came with the zip file I only get the table headers and when i check the source its:
Quote :<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml&q ... gt;<title>LFSLapper WebStats</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body bgcolor="gray">
<table border="1">
<tr>
<th>Position</th>
<th>Lap time</th>
<th>Nickname</th>
<th>1st split</th>
<th>2nd split</th>
<th>3rd split</th>
<th>Date</th>
</tr> //<--pbs should go here, but the function didn't seem to run?
</table>
</body></html>

dont know what's going on, maybe the cgi has a prob reading the pb.txt on winxp i suspect it might be the headers of the file or could be memory problems, would really appreciate it if someone could help
Last edited by wonderous, .
wonderous
Demo licensed
hey monkster it's me again, I have a minor prob with webstats 1.3 that you just released
i'm running my own winxp home server, and i have configured apache to run ExecCGI. The cgi runs, but it doesn't display any pbs, but only the headers of the table. It's weird, coz with the same files it displays the pbs nicely on my webserver at bluehost.com
is it the binary or ascii thing again?? I figured that when i save the pb.txt file (just opening and saving, no changes made) the cgi would give the error "could not open" is this some windows-linux memory issue again?? When I run the cgi with the unsaved file it only displays the headers, and the footers. The stuff in between is missing what's happening? I checked the logs and found no errors, that means the cgi ran fine but why did it skip the displaypb function it sorta went through the main function and that's it
Last edited by wonderous, .
wonderous
Demo licensed
i also had the same problem I wanted to tell my racers the time every ten minutes. But somehow it doesn't work when using \ in front of the :
wonderous
Demo licensed
great, thanks so much for the webstats i've been waiting for it!
I isn't working
wonderous
Demo licensed
That file isn't working. I think it should come along with several other files to work I think this is one of the files in the package this file came from.. let's all just wait for another official release of webstats, forget about it in the meantime
Great work! Lapper rox!
wonderous
Demo licensed
Hey lapper is working well!

TO Burbulis
Quote :
Im changing password in cfg file. When im starting lfs server, im giving a command: /insim=29999. When it says: InSim failure; could not initiliaze InSim.

I'm not sure on this one, coz it should get any error message..
Are you running a dedicated server or just a normal one?
If you're running dedicated then you just need to change the insim in your setup.cfg file
// optional: InSim port
/insim=29999
Just run the server, the insim will be initialised automatically. Then run lapper and the connection will be established.

Quote :
When im starting "NETstartdefault", it says : "could not find file .... /bin/your_file.flt."

I got these error so many times i'm so familiar with them.
Open your LFSLapper.cfg file
locate these statements and put a # sign at the front each of them:

RefreshQualUser = true
QualUsers = &./your_file.flt

that should clean up the problem! good luck!
Error message
wonderous
Demo licensed
I get this error message when building.
http://www.theohbrothers.com/myservers/lfs/Untitled-7.gif


I have netframework 2.0 installed in my pc.. previous lappers all work great except for this one..so wut can be the problem

and o yes, where's the link for the php version of webstats? is it still compatible with this version of lapper?

and one more question..due to the new insim version the car codes have changed right? so how do I make changes to my old pb.txt file some of the output is "XR GT TURBO" and "XRT"... if I use an editor and replace all "XR GT TURBO" with "XRT" will I have duplicated PBs?
I attached my PB files here:
PB and DriftPB.zip
Last edited by wonderous, .
wonderous
Demo licensed
Dude, probably the mono isn't working? have you tried running WinMSBuild.bat file(requires Net framework 2.0)?
http://www.microsoft.com/downl ... 5e04f5&displaylang=en
to download .NET framework 2.0, it's a lil large and requires a genuine windows cdkey to download.. after installing reboot and you're ready to use WinMSBuild.bat i'm sure if you follow these instructions closely you wont see "crashing" or "blue screen" or "error report" kinda stuff.


First configure the LFSLapper.cfg in the cfg directory(like changing the password, once your done run WinMSBuild.bat you should see:

some warnings, ignore them, close window. Now LFSLapper.exe file has been compiled and is now ready in the bin directory , i suggest you create a LFSLapper shortcut. right-click and drag LFSLapper.exe onto the desktop and select create shortcut. Then right click the shortcut and select properties, in the target box paste the following line *not forgetting the double-quotes*(if you've already done this move on)
Quote :"C:\.....\bin\LFSLapper.exe" "C:\.....\cfg\LFSLapper.cfg"

replace the .... with the location of LFSLapper directory

Once youre done with the shortcut first run LFS, start your server, start the game and type /insim 29999 (or 29339) **lfs can only communicate with programs with one port you either choose 29999 or 29339(default is 29999) not both**. if you select other ports you have to modify the port number the LFSLapper.cfg (default is 29999)and recompile with WinMSBuild.bat
Now run the shortcut and you'll see:

minimise this window. If you see warnings like "the PB.txt or DriftPB.txt file is not yet created" dont worry about it. it will be automatically created later on. Once this is done, make sure you pit in the game, and exit the pits. Then the mod will run.

In the future if you make any modifications to LFSLapper.cfg just run the build file then run the shortcut,and pit in the game, it's as simple as this
Good luck installing, feel free to ask if you have other problems.
wonderous
Demo licensed
Actually, monk, have you ever thought of changing the program from c++ to php? I think lots of us would prefer that, because we dont have to deal with any incompatiblility issues (like whether it's linux or windows cgi) php runs on almost every server so I would really like this to be programmed in php actually aha But then many will come to you telling you they get errors and such only to find they screwed up the source when modifying it (That means you'll be bombarded with more noob probs haha)


oh yeah forgot to thank you for so much hard work you put in this mod.. really enjoy LFSLapper
Last edited by wonderous, .
wonderous
Demo licensed
I guess it's the preference of the developer.. php is not compiled file it's like c++ or java or any other language that you code in.. it is only compiled when the file is ran on the server and because of that it runs slower than compiled files like exe or cgis, that's a flaw of php, also, because you dont use a compiler to check for errors in the code you have to check to make sure the script has no coding errors and that can be tough especially when the code is subject to frequent modifications
wonderous
Demo licensed
Here's my cpp file attached:

Thank you very much, i really appreciate your help.. i'm off to bed now I'll reply tomorrow, as soon as i can
Last edited by wonderous, .
It Worked!
wonderous
Demo licensed
HEY I USED THAT FILE YOU UPLOADED IT RUNS! But it now gives me the error message "Could not open PB.txt" I've uploaded PB.txt and DriftPB.txt in the cgi-bin how come it's says it can't open it? unless it does not have the permission to do so? where is it trying to locate the file from

well, i edited the output file even more this time, compiled the cpp with MS Visual Studio into an exe, ran the exe and
here's the hotlapping output(this time with "Content-type: text/html" on the first line)

And this is the output for drifting:

both of them output the way i want them to be, extremely neat, so after reading the output i certain there're no bugs in the cpp file,
here's the cpp file:
main.txt
Had to upload in txt, change the file extension to cpp and that's it!
Thanks a lot for compiling this for me.

Hey just wanted to inform you that i added you to MSN, foxtrot_envoy@hotmail that's my email, so we can get this done faster, i'm on almost 24hrs a day(although i might not be at the computer)
when i need you to compile another edited version then i'll ask you on MSN isn't that much more convenient haha
Last edited by wonderous, . Reason : added you to msn
wonderous
Demo licensed
ran the WebStats.cgi this is what it returned

Quote :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- Creator: Wonderous //-->
<head>
<title>LFSLapper WebStats</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="misc/WebStats.css">
</head>
<body style="background-color: transparent">
<div id="Layer 1" style="position: absolute; left:0px; top: 0px;">
<p>Could not open file PB.txt</p>
<b><font color="white">· LFSLapper output information </font> <font color="yellow">is powered by</font> <font color="00FFFF">WebStats v1.2 !</font> Script developer: <a href="http://monkster.hoopto.org/~janez" target="_blank">Janez Cufer</a><br></body></html>

image:


Copy and paste that into a txt file and change the extension into html, I did that I saw it's all perfect right? Actually one thing i dont understand, this is a linux cgi right? how come my windows system was able to run it then?

erm, edited the post.. this is actually how it looks like when the PB.txt file is in the same folder, the output is perfect, so I'm assuming there's no error with the code?
Quote :

Last edited by wonderous, . Reason : added image
wonderous
Demo licensed
Both both the original unmodified version and the one i compiled gave me the same error message, i'm quite certain that I modified the code correctly, and didn't miss out any ';' or forget to type \ before a " for the html output.. cuz before this i told you i used microsoft visual studio 2005 to compile it into an .exe file(compilers would have detected coding probs so they are very unlikely) and i ran the compiled .exe file and press pause/break button it did print the scores(the PB.txt file was in the same folder) I read the html code it was perfect.. so most likely there's no prob with my modified version of main.cpp. i think is the problem lies with the g++ compilation.. did i install g++ correctly on my windows system?

Did some research and eliminated causes of probs...
- I used the unmodified html and LINUX cgi that came in the package, but I still get the same error as when i used the modified html and cgi file
- I uploaded WebStats.cgi in ASCII mode, (uploading in binary can cause that error)
- ensured the file permissions 755 (the support told me to set it to 755 in order or it to work)
- My own coding errors would have been detected by the compiler
- I ensured there are no broken links
- my webhost couldn't have blocked it for security reasons or else why did it state it supported cgis?

Likely problems
- g++ software not installed correctly in windows(it's not updated version, about 2 years old) ---> most probable

How about you help me compile it? but the prob is when you're uploading to this forum will it be in binary..

Notes
-My webhost: Bluehost http://www.bluehost.com/
-The site I'm testing on http://wonderous.theohbrothers.com/ (Best viewed with MSIE 6 or 7) click on home wait when it loads at the top click "View live for speed server status" then a page will load showing the server status then again at the top click "View LFSLapper Stats" and it'll bring you to a page (Webstats.html modified that looks quite different from yours, but I'm using the unmodified WebStats.cgi now)
then click the button and it returns a weird error.. see for yourself
Last edited by wonderous, . Reason : need to do some editing add some links
wonderous
Demo licensed
I've installed g++ on my system, it's a rather old version and doesn't support the mkdir -p ./bin/Linux well, so i didn't make use of the makefile, i just ran g++ main.cpp -o Webstats.cgi and I got a 963KB file.

I noticed this file is huge when compared to the procompiled linux cgi file(56.2KB), is there something wrong with the compilation? and by running that command in the cmd prompt (I'm a windows user) does it create a windows or a linux? I'm still getting errors on my website, same 500 server error .....
Last edited by wonderous, .
Small prob
wonderous
Demo licensed
Lets say a host starts an online game. It creates a hostxxxxx.txt file right?
But when the host leaves the game the hostxxxxx.txt file disappears. When this happens the output file "server.php" displays the error msg

Quote :<b>Warning</b>: fopen(......../host63392.txt) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in <b>.../server.php</b> on line <b>165</b><br />

It writes this error (which is generated by the server)at the top of the output file, and it spoils the look of the output file,
this happens because of this line
Quote :$datei[$c] = fopen($filepath[$c], r);

Opening the file directly in this manner will return errors if the file is not present.
is there a way to modify the script such that is does not "open" the file but checks if it's there in the first place then outputs "Server is 'Online' or 'Offline' " instead of the php error message like the one mentioned above it really spoils the look of the output file
A question about Webstats
wonderous
Demo licensed
Hi, anyone knows how to build a linux C++ cgi ?
The precompiled cgi (both for windows and linux) came with Webstats. But i didnt' like the design of the output page so i made some changes to the source file. Now how do I compile the source into a linux cgi?

The readme file doesnt touch deeply into building the cgi

Quote :+========================================+
| Compiling from source (advanced users) |
+========================================+
Linux:
------
makefile is provided for linux users (g++ and make required). Type "make" in console.
Windows:
--------
sln and vcproj are provided for Windows users (MS Visual Studio required). Open solution and build.
Other OSes and/or C++ compilers
-------------------------------
Use your favourite C++ compiler (must have STL support) and compile main.cpp to WebStats.cgi

All it says is build the solution either by typing "make" for linux users, or build by opening thevcproj with MS Visual Studio (I currently have MS visual studio 2005 installed, but I dont know how to build it into a linux cgi. I read some tutorials online but they only teach me how to build windows cgis, but I need is not a windows but a linux cgi can someone teach me how to do this? I really hope to get this done as soon as possible. Any help would be greatly appreciated
Last edited by wonderous, .
wonderous
Demo licensed
YOS I DID WHAT DAVO SAID, i used Fling FTP http://www.nchsoftware.com/ftp/index.html
the software detects changes within a folder and uploads when a change is detected, in this case it's host63392.txt, and now with it running in the background i wont need to worry anymore i dont need to host the file on my computer anymore cuz my isp is giving me headaches,
well i just modified the lfs S2 server script to access the path in my website and it works! now all is fine the problem is solved thanks all for sharing, greatly appreciate!

Two days of hard work
Wonderous
1
FGED GREDG RDFGDR GSFDG