The online racing simulator
Searching in All forums
(234 results)
MonkOnHotTinRoof
S2 licensed
Quote from Noxi :I installed mono as LFSHost user. Even if I place myself in the /mono-1.1.15/bin dir and run mono from there with the path to LFSLapper, I get the
mono: command not found


By default Debian distro does not include current directory in the path.
So if you run it within mono-1.1.15/bin directory, try with ./mono

Otherwise mono installer should put the path to mono to your .bashrc script. You may have to relogon so it gets executed again.
MonkOnHotTinRoof
S2 licensed
Quote from Noxi :I downloaded and installled mono Linux Installer for x86 (All distributions)
from http://www.mono-project.com/Downloads

but I get "command not found" when trying "mono LFSLapper.exe LFSLapper.cfg"

I use Debian and Im not sure that mono release works with Debian?

Did you install it as root? I think if you install mono as root, the paths are not modified and you have to do it manually. I always install mono as normal user somewhere into my home directory.
I use same mono installer and Debian distro, so there should be no problem with that.
MonkOnHotTinRoof
S2 licensed
Quote from hrtburnout :
I've seen on a lot of servers that when you join, there's a comment added. Like : hosted by liveforspeed.fr or something.

In U patch new command was added:

/welcome=X.txt :set welcome text file

Create text file (X.txt) in LFS root dir, then execute /welcome=X.txt command from LFS server...
However that message may dissappear too quickly for your purposes. Another option is to use InSim applications that are able to show welcoming messages as an ordinary chat text.
MonkOnHotTinRoof
S2 licensed
Quote from giant7 :
I don't know why the connection is refused. The files have all 744 and some folders 777
Is the insim post listed in the processstructure ?

Seems to me LFSLapper is unable to connect to your LFS server.
Did you run LFS host with /insim=29999 ? (Or typed /insim 29999 in its talk window)
MonkOnHotTinRoof
S2 licensed
Quote from Noxi :I now run with your DB.txt but same thing...

edit: I run my server on winxp

And you use FTP to transfer file from Windows to Linux server ? That could be the problem. In Windows files have CRLF on end of each line (MS always has to complicate things illepall), while in Linux only LF. Because FTP transfer is binary (I will change it to ascii in next version) by default, file is not read correctly by WebStats.

You can patch LFSLapper yourself by modifying following line and rebuilding LFSLapper

FtpClient.cs, line 524:


this.BinaryMode = true;

should be:


this.BinaryMode = false;

MonkOnHotTinRoof
S2 licensed
Quote from Noxi :Im having problem with WebStats... I dont get any resaults on the list...

Hmm, everything looks ok, CGI was obviously started cause I can see results page. If there were no files there, it should write error on that page. But it didn't, so PB.txt is present there.

What HTTP server are you running ? On which OS ? I only tested WebStats on Apache (on Linux) so far.

The only way you can change look of that results page is modifying C++ source code and recompiling...
MonkOnHotTinRoof
S2 licensed
Quote from filur :My proxy should in theory support infinite clients, runs fine with both dedilink and racemanager connected, but i can't figure out how to connect back to the incoming port in php (ie. lapper), any of the ones i can sniff out seem to be wrong. Would be spiffy if lapper could send the port it's using in the packet, but i should get i working sooner or later i guess.

No problem, I will fix that in new version, so it will send localy binded port instead of 0.
Only thing to change is in Main.cs, line 702:


byte[] inSimInit = InSim.Encoder.ISI(adminPassword,0,0);

should be replaced by

byte[] inSimInit = InSim.Encoder.ISI(adminPassword,((System.Net.IPEndPoint)uc.Client.LocalEndPoint).Port,0);

If you don't have environment to build it, here is binary, so you can test your app..
Last edited by MonkOnHotTinRoof, . Reason : deleted binary patch
MonkOnHotTinRoof
S2 licensed
Quote from AndroidXP :Hmm, okay, I instantly disliked Java but on the contrary instantly fell in love with C#.

Same here.

Quote from AndroidXP :
(wait, can you even do web stuff with C++ :confused.

Sure you can. CGI for example can be binary executable.
My personal favourite was assembly language. Haven't used it for a long time now though .

@Tanuva: If you don't like MS (hardly anyone does really), you can use Mono or DotGNU.
Last edited by MonkOnHotTinRoof, .
MonkOnHotTinRoof
S2 licensed
It's probably most useful threads like this one that crashed their server .
Woohoo, my 100th post .
MonkOnHotTinRoof
S2 licensed
Quote from MrSilly :How often does the FTP upload?
Is it possible to have it modified to give the top speed?

Ftp uploads files every time they are updated with new PB. Transmission could lag other messages for quite a while, I think. I haven't tested that feature myself tho.

It is easy to change (only one line?) the source and recompile to get speeds instead of drift points, but IMO that isn't very useful. People would just rocket themselves under the sky at certain track parts .
MonkOnHotTinRoof
S2 licensed
Quote from racemania :
sorry if i seem like a noob just dont understand how you guys have put a target line like
"C:\Documents and settings\nick\desktop\LFSLapper\bin\LFSLapper.exe"

Just add ..\cfg\lfslapper.cfg to this target:

Quote :
"C:\Documents and settings\nick\desktop\LFSLapper\bin\LFSLapper.exe" ..\cfg\lfslapper.cfg

The only thing in lfslapper.cfg you have to change is line with Password (change it to match admin password of your server). Open lfslapper.cfg with notepad and search for line Password = Pass

That will work if you are using .NET framework. If you are using Mono, this shortcut will not work (see my previous post how to make target for Mono).

Contact me on MSN or email me if there are still troubles.
MonkOnHotTinRoof
S2 licensed
Quote from racemania :ive tried to do the shortcut thing and it comes up with error so i dont know what to add to it

If you have lfslapper.cfg in cfg directory and lfslapper is unzipped in e:\temp\lfslapper directory, then target looks like this:

Quote :
E:\temp\LFSLapper\bin\LFSLapper.exe ..\cfg\lfslapper.cfg

If you are using Mono instead of .NET framework, your target should look something like this:
Quote :
"C:\Program Files\Mono-1.1.15\bin\mono.exe" LFSLapper.exe ..\cfg\lfslapper.cfg

@filur: Empty command line is reserved for showing additional options, but since quite a few users have problems configuring lfslapper, it might be wise to do that (on other hand, I had installer in old versions, maybe I should resurrect it)
Last edited by MonkOnHotTinRoof, .
MonkOnHotTinRoof
S2 licensed
Quote from gwendoline :
Monk can i post new zip of your mod modify with your agreement ?

Sure, modify freely. Problem is that now we have separate branches, which is kind of difficult to maintain and it could confuse users. If you send sources with all modifications, I can merge all together. And if Gai-Luron is interested, I can give him access to CVS server, so he can work on main branch. Or maybe he can even take over the project, so I have enough time to start another one .
MonkOnHotTinRoof
S2 licensed
Quote from Crash007 :
I've problems with the LFS Lapper. There are some errors when i drive.

Are you running LFSLapper on your computer but LFS server is on another computer (That won't work and it will write up these messages)? Maybe you have more network adapters ? Was there any other message before that one ? Like "You do not have admin rights" ?
Do you see any messages produced by LFSLapper ?
Hard to say what exactly causes this . A friend had this kind of problems, but managed to solve them, don't know what was wrong tho.

Try running in debug mode: LFSLapper.exe LFSLapper.cfg debug
MonkOnHotTinRoof
S2 licensed
Quote from gwendoline :Monk... grettings for your great work but after last update, Aston GP and Aston North unrecognized by lapper...We cannot save PB on this 2 tracks (AS6-AS7).
Because some drift'races are better if made on AU1 or BL3, Is it possible lapper can recognize layouts on AU1 or BL3 too ?

LFSLapper is not limited to tracks. It uses InSim to dynamically create new tables for each track if needed (on finish line). It means that there is nothing for me to add . You said, it stopped saving PBs on 3.0, but it worked in 2.9 ? Can you confirm this ? Are you talking about drifting scores, or lap times ? Or both ? Maybe you have set maximum lap time too low (or minimum drift score too high).
As for layouts, I don't know how does InSim treat them. If they don't differ from normal tracks from InSim point of view, they should already work.
MonkOnHotTinRoof
S2 licensed
Quote from henri150 :
Very good job, i tried it, it worked very well some times, but then it stopped working. I can't understand why...

Length cannot be less than zero.
Parameter name: length


Cause of this message is very probably error in cfg file. It happens when a line in cfg file does not have = symbol present. Which means you did something wrong when creating cfg file or modifying old one. Check your cfg file modifications and make sure all options are single lined. If you can't find error, use old cfg file and modify it step by step to see where the problem occurs.
LFSLapper v3.0
MonkOnHotTinRoof
S2 licensed
Quote :
+-------------------------+
|Changes from v2.9 to v3.0|
+-------------------------+

1.Added support for BF1.

2.Improved drift scoring system + new options.

3.Possibility to specify users that are allowed to execute AutoActions.

Example of Authenticated auto action:


AutoAction = !admin:!adi@username1,username2 | /rcm {Nickname} is authenticated! : /rcm_all

Command above will make big center screen message, if one of users username1 or username2 types !admin or !adi into talk window.

if @ and list of users is not specified, everyone can use command.

Default configuration uses nicknames for authentication. Licensed users should change it to usernames (see lfslapper.cfg).

Drifting points are now calculated as
score = score + angle*speed^2/10000
(in 2.9 it was just score = score + angle)

New car should be supported now.
MonkOnHotTinRoof
S2 licensed
You probably encountered server with LFSLapper installed .
MonkOnHotTinRoof
S2 licensed
Quote from Dygear :I was wondering if any of you knew how I could get LFS Style mouse steer into games such as rFactor, or any game the accepct a steering wheel as input.

I'd like that too. I already tried some time ago using PPJoy app (you can map mouse to virtual joystick ), but rFactor freezed somewhere on the way from menus to racing . I gave up anyway, cause I found some old joystick...
MonkOnHotTinRoof
S2 licensed
Quote from Navid :hello
i have a problem with insim: when i type "/insim port" i cant see any message ever i have something in port.
ie i have s2ghost in port 28888 but when i type "/insim 28888" i cant see any message, do you know why? how can i fix it?
i have (s2demo 0.5 Q)

You have to type "/insim port" BEFORE starting insim app usually...
And you don't see any message after you type that.
MonkOnHotTinRoof
S2 licensed
About drifting scores:
By default you have to maintain at least 50 km/h (anti-cheating measure :razz, or score is reset to 0 (Score counter restarts). Score counter restarts also at finish line (after PB is recorded), but sometimes first lap finish line does not count if you start from pits (there has to be one cheating method available ).
I noticed one guy (out of 50) that had problems with his score being recorded. Weird enough, when he changed his nickname (his original name included tm sign), it was ok. So there might be a problem somewhere about nicknames...
Drifting works only on dedicated servers (for unknown reasons heading value in InSim oscillates heavily on non-dedicated ones (problem has been already mentioned by someone else in another thread).

I also noticed that idling is sometimes detected for players that are already gone (seems that id's are switched from old to new players...), working on it...

Hmm, I didn't change anything about anglevelocityaction, shouldn't be any different than before... I only added another variable (Username) to it.

Thanks for report. I will make more testing before putting official 2.9 on my web page...

Thanks also to people, that are testing on demo server. They made some suggestions about improving drifting scoring and I will try to implement them. Some very good drifters seen there. :wow:

Try running dedicated server and start LFSLapper before anyone (including yourself) connects to host - that solves most of problems. I am testing only on Blackwood Reverse (for all 3 demo cars) - other tracks and cars might require different values than default to prevent cheating...
MonkOnHotTinRoof
S2 licensed
Quote from Dygear :
ISI.Admin = argv[1];
Why does that not work? "incompatible types in assignment of `char*' to `char[16]'" That's ridiculous. Its a freaking char, what does it matter if its 16 or 1600 charters long.

argv[1] is a pointer to array not an array itself. And even if it was you can't just copy from array to array with = operator (unless properly overloaded) in C/C++.
Use strcpy or sth like that...
Bug fix for LFSLapper, running under Mono runtime
MonkOnHotTinRoof
S2 licensed
Quote from FM-Failure :account name variable is only available for the Autoactions, not for AngleVelocityAction nor for any other action.

That is correct. I will try to make this variable available also in other actions.

Here is fix for LFSLapper v2.7 for those that tried running it on Linux (and were not happy about sorting in top list ). Extract this file in LFSLapper/src then run make in LFSLapper dir to build patched binary.
Not needed for people running LFSLapper on .NET.

Oh, and it is possible to use cyrillic and other codepages. You have to use ^C before writing cyrillic, ^E for east european (e.g. ConnectMsg = ^EčćžšđČĆŽŠĐ), etc... When saving cfg file back , you have to save it as unicode text (use notepad) - otherwise you will get ??? in LFS!

Tnx to Piotr Pawłow for finding sorting bug and to nesrulz for reporting ScheduledAction bug (fixed already in v2.7)!
Last edited by MonkOnHotTinRoof, .
MonkOnHotTinRoof
S2 licensed
Quote from Anarchi-H :Actually it is way slower than getting data from lfsworld. Main reason being you have to establish HOST_COUNT+1 sockets and send ((HOST_COUNT/16) + (HOST_COUNT * 2) + 1) packets (Given 300 hosts, that is 620 packets)

You can increase speed significantly by using agressive mutithreading. Actually the slowest thing is waiting for servers that don't respond to connection, but that can be solved by using asynchronous comm. and low timeouts.

Very nice spec !
Last edited by MonkOnHotTinRoof, .
MonkOnHotTinRoof
S2 licensed
Quote from sgt.flippy :
Thing I've always dreamed of: LFS physics in GTA... driving a car with a real feel to it, in a nicely layed out city... aaaaah

LFS MMORPG !! Free-way driving with LFS Physics on real world roads (at least you don't need license for those ).

Ahhh, good old Test Drive 3 - waiting for train to pass by, running over chicken on road, driving into stable of stupid looking cows, heavy snowing, police cars chasing you when you pass signs with 40 mph...

Well, as long LFS stays on racing tracks, police chases would look kind of stupid tbh.
FGED GREDG RDFGDR GSFDG