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:
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?
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..
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)?
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:
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
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
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
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.
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:
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
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)
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.
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
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
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
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?
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
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 .....
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
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
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
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
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
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!