The online racing simulator
Searching in All forums
(234 results)
MonkOnHotTinRoof
S2 licensed
Quote from Ezoworx :Alot of the people on MIDWEST DRIFT TEAM SERVER on the demo are going reverse on Blackwood Track's dragstrip, and, well, the scores on LFSLapper now are insane. Is there a way, a code to disable reverse points altogether? An answer would be godly.

It is known exploit. Default script has too big angle defined. Reducing MaximumDriftAngle should help. To 40 degrees maybe ?

Or are you asking how to delete just the points won by driving backwards from txt file? That is not possible, unless you know who the cheaters are . Then you could delete them manually from file... (but it's still tedious job to do, when lots of players).
Last edited by MonkOnHotTinRoof, .
MonkOnHotTinRoof
S2 licensed
Quote from monzta :
Rules are simple. Cars race against each other like in a normal LFS2 race. Only thing is that points are beeing collected for drifts. But the winner get his points doubled up. That is done so that noone can use 1½ hour per lap and collect 68745132184312 points per lap.

This still doesn't work well if "looser" drives more that 2x more than "winner".
In LFSLapper this is solved in a way that speed influences on score more than angle (score = sum(angle*speed^2)). Cheating (turning car around) is (sort of) prevented by defining minimum speed to maintain, which is not so good, but it was the best solution I was able to found and it's easy to implement.

As I intend to rewrite LFSLapper, I am interested in better solution. However, since I am no a drifter nor I have any knowledge how RL scoring works, any suggestion is welcome .
MonkOnHotTinRoof
S2 licensed
Quote from Nitrojunkies :
what do i do to get the lapper to lap??

Did you type /insim 29999 on lfs server ? Please read first post in this thread (first page) for quick start...
MonkOnHotTinRoof
S2 licensed
What is the purpose of these bolded flags ? They never raise... Not implemented yet ?

#define OG_SHIFTLIGHT 1
#define OG_FULLBEAM 2
#define OG_HANDBRAKE 4
#define OG_PITSPEED 8
#define OG_TC 16
#define OG_HEADLIGHTS 32
#define OG_SIGNAL_L 64
#define OG_SIGNAL_R 128
#define OG_REDLINE 256
#define OG_OILWARN 512
#define OG_1 1024
#define OG_2 2048
#define OG_3 4096
#define OG_4 8192
#define OG_KM 16384
#define OG_BAR 32768
MonkOnHotTinRoof
S2 licensed
I had some visitors today on my server (no driving aids allowed). It's surprising, how many people use helps. And when they disabled it, they weren't even able to change gears (and clutch isn't even well simulated ).
MonkOnHotTinRoof
S2 licensed
Quote from misterman :EDIT:
I Accidently solved it. Don't ask me how.

But misteriously it started when i started LFSLapper.

Uhm. I sense port mixup here. LFSLapper is not outgauge application (and it shouldn't make any difference whether you run it or not, as long you have separated ports for insim and outgauge). Which outgauge applications did you use ?
MonkOnHotTinRoof
S2 licensed
Quote from Blowtus :ok, I got this to work - have pitspotter and csr functional, but I get thousands of 'unknown packet' messages, making it currently unusable.

Pitspotter ? Isn't that an InSim application ? You don't need a outgaugegateway to combine insim and outgauge application... It is only for outgauge only applications.

OutgaugeGateway is a generic UDP packet forwarder and duplicator. All it does, is listen on one port (first argument in command line) and send the packets it receives to other ports (next arguments in command line). It doesn't send anything back to LFS (if it does, you configured ports incorrectly).

Is there any more outgauge applications i can test this on ? I don't have momo so momoleds probably won't work for me... will use a search button...
MonkOnHotTinRoof
S2 licensed
Quote from Jakg :still crashes same error as i had at the start



Hmm, I see you use lot of insim applications too, maybe one of them is using 30000 as listening port. Try changing lfs outgauge port to lets say 41234 ?


then: outgaugegateway 41234 35555
MonkOnHotTinRoof
S2 licensed
Tutorial on using OutGaugeGateway:

1. Configure LFS to send outgauge packets:

in example I will use port 30000

end of cfg.txt file:

OutGauge Mode 2
OutGauge Delay 1
OutGauge IP 127.0.0.1
OutGauge Port 30000
OutGauge ID 0

Note: Do not use same port for insim, outsim and outgauge !

2. Start LFS

When you start LFS, port 30000 must be still unused. You can see ports, if you type netstat -a -p UDP in command line.

3. Start OutGauge application and set it to use one free port (must not be the same as LFS outgauge port!)

in example I will use CSR at port 35555

You won't hear sound yet...

If you type netstat -a -p UDP in command line, you will see that port 35555 is used. Port 30000 is still free !

4. If more OutGauge applications goto step 3.

5. Start OutGaugeGateway

We have to listen on port 30000 and send packets to port 35555, so:


OutGaugeGateway [COLOR=Red]30000[/COLOR] [COLOR=DarkOrchid]35555[/COLOR]

If more outgauge applications, just add more ports in following arguments...

Soon after you run this, sound will appear in CSR (Well I have to change priority of CSR first, otherwise there is awesome delay ).
Last edited by MonkOnHotTinRoof, . Reason : note added in step 1 of tutorial
MonkOnHotTinRoof
S2 licensed
I specifed already used port and got same error and it writes in console when box is closed :
Unhandled Exception: System.Net.Sockets.SocketException: Only one usage of each
socket address (protocol/network address/port) is normally permitted

I think u have specified wrong ports (at least first one (gateway port) is obviously already taken by some app).

Try doing exactly this from command line:
OutGaugeGateway 54321 54322

Do you still get that message box, or do you get:

Gateway started...

in console window

Gateway port must be free (this is the one you specify in LFS outgauge)
- it is listening for OutGauge data from LFS

Notes: Need to make a usage tutorial and better error descriptions when I come home
MonkOnHotTinRoof
S2 licensed
Quote from Jakg :

I guess you don't have .net 1.1 either ... Hmm, I thought it comes automatically with WXP SP2 .

Will try to rewrite in C today if I have time...

Did someone else (beside me) succeeded in running it ?
MonkOnHotTinRoof
S2 licensed
Quote from Kyoshiro : but I been doing all the information and still the PB.txt and DriftPB.txt refuses to create

I really don't know why file isn't created for some people while others don't have any problems with it. Files are created automatically when someone makes a time that is better than defined in script:


# Maximum allowed lap time to record it and execute action.

MaxLapTime = 2.00.00

Note that in default script right this option is overriden at end of file as an example...


# Instead of changing default options above, you can overide them.

MaxLapTime = 1.50.00

In other words, if you have such definition, file PB.txt should be created when someone makes his lap time better than 1:50:00.

Other thing that may (but probably doesn't) prevent file from being created is, that you dont' have writing access to defined file paths.
You can also specify your own path for result files:

example:


Database = c:/PB.txt

MonkOnHotTinRoof
S2 licensed
Quote from XtremeSR-MrX :I changed the admin password in the CFG and in in the server CFG. But it still says "Insim: admin password does not match".

Are you sure the right script is being run ? Maybe you modified one, and run the other one... Or maybe you forgot to delete that extra '/' in LFS's setup.cfg

It has to be like:

/admin=Pass

and not

//admin=Pass
MonkOnHotTinRoof
S2 licensed
Quote from Jakg :
@echo off
start LogitechProfiler.lnk /noui
start LFSmomoLeds.exe
start LFSspotter.exe
start LFS.exe /insim=29999
start OutGaugeGateway.exe /30000 35555 56551
Exit

Profiler - For my wheel
Momoleds - Outgauge app on 56551
Spotter - Insim app, set up manually
LFS (insim for Spotter)
Run your program like that - it just crashes - what should i do?

There is only momoleds here that uses outgage ? Then you don't need gateway ?

How does it crash ? With a message box ? If you don't have .net 2.0 I can compile it for 1.1... Can you post a print screen of error

And it's without that first slash symbol...
MonkOnHotTinRoof
S2 licensed
This is what I could done in 15 minutes.
I made a quick test with only one outgauge app (csr) and it worked...

start in command line: OutGaugeGateway gatewayPort port1 port2 portX ...

example: you have lfs outgauge set at 30000, csr at 35555, and other app on port 50000 :

OutGaugeGateway.exe 30000 35555 50000

And start it while everything else is already running, otherwise you will get one long exception...
Last edited by MonkOnHotTinRoof, .
MonkOnHotTinRoof
S2 licensed
Quote from Lible :You could try blanking the required strings for that

EDIT: Nope, that won't help, there needs to be at least one character, if not, a string from original english file will be used

Blanking works, but not for all messages. You need to make sure that you also change the value in line tx_langname. And don't change original file, just make a copy of original, and then modify it... When entering LFS, choose new language.
MonkOnHotTinRoof
S2 licensed
Quote from gwendoline :
its not possible ?

It seems like someone already done that (usernames) on LFSLapper. I hope I will get the source updates, so I can put them
in main branch...
Received quite a few other improvements from others, but I am again in that lazy state...
MonkOnHotTinRoof
S2 licensed
I guess it's possible to make a server side insim to kick players that use help (I've already done that some time ago, but I was having some problems - I think it's only possible to check aids while player is joining race, but not afterwards...). If anyone is interested, I can clap something together...

- kick on joining race with helps on done
(join Hardcore test server and try leaving pits )
Last edited by MonkOnHotTinRoof, . Reason : update
MonkOnHotTinRoof
S2 licensed
Quote from MadMag :Another question:

How do I reset the score/time for a single user ?

Delete lines that belong to that user from txt file. And do that while LFSLapper is not running...

Quote from Zmod :I made the /insim 29999 in the lfs server window and then fired upp a "mono" console and tried starting lfs lapper! But i get an error message: Connection reset by peer

Possibly the server has more network interfaces ? Use the same (external IP) IP on lfs server and in lfslapper.cfg file...
MonkOnHotTinRoof
S2 licensed
Quote from MadMag :
1. The PB.txt file wont create it self.. what to do ?

It will be created automatically when someone makes time below time defined in cfg.

Quote from MadMag :
2. The drifting points work perfectly on all tracks (I think) But when I go on the track Autocross where I have added some barriers to drift within, it wont come up with the points..

You are probably running LFS U patch. In this patch LFS does not output MCI packets on AutoX (these packets are needed for drift calculations).
If you update server with U20 patch, it should work on AutoX too...
MonkOnHotTinRoof
S2 licensed
Quote from Cr45h :
I don't understand if i have to put !adi@nick| or something different for all the users i want to add or if there's a specific pattern to use or if i can add only 1 user to do a specific action.

You can use comma to separate users (hopefully noone uses comma in his nickname ).



triggerText1:trigerText2:trigerText3@nickname1,nickname2,nickname3|actionToExecute1:actionToExecute2


MonkOnHotTinRoof
S2 licensed
Quote from roo-boy :Does anyone have the driftPB and the PB text files outputting to a readable score sheet, like in HTML for example?

Various scripts have been made (from different people) for showing results on web page:

asp

http://www.lfsforum.net/showthread.php?p=124063#post124063

php

http://www.lfsforum.net/showthread.php?p=130056#post130056

cgi

http://www.lfsforum.net/showthread.php?p=114357#post114357
MonkOnHotTinRoof
S2 licensed
Quote from Jack Tebbutt :Is there any chance someone could tell me literally a step to step guide on how to get this to work?

Did you try to follow steps from 1st post of this thread ?

Quote from Frags :Can the lfs lapper be used to show how many laps has been driven..
Like if I'm hosting a 12 hour race, and some one gets a disconnection and reconnects ?

LFSLapper was made for hotlappers initially and there is no support for counting laps and racing in general...
MonkOnHotTinRoof
S2 licensed
Quote from Pinto_PT :Does anyone know how often does lfslapper uploads the PB's to FTP when configured in the cfg?

Every time someone makes a new pb. I haven't tested it myself for a long time now, but gwendoline uses that feature ?

Quote from gwendoline :
Now if you are late up 3 laps on race you dont take pass thru or stop&go penalties but directly 30 sec and 45 sec penalties.
All fast drivers on pitlane and late more 3laps can drive fast on pits without moved spectators.

If it works the same as those I added last time, it shouldn't be a problem. I am a bit busy lately tho...
MonkOnHotTinRoof
S2 licensed
Quote from Mac... :
I wonder what is wrong with my LFSlapper configuration, because at split times always says, great time split by UNKNOWN PLAYER. Why unknown player?what is wrong?

To je zato, ker si pognal LFSLapper tačas ko si bil že na progi (program se zapomni ime, ko greš iz garaže). Pojdi v pitse in nazaj na stezo, pa se bo prikazalo pravo ime ob splitih...

Quote from Mac... :
And also I dont get any other options like acellerate(how much to get 100km/h) etc. I get an error loading ./driftPB.txt file or file...

Če si uporabil default skripto, pol imaš že skonfigurirano. Ustavi avto do speed = 0, in pol po gasu.
Verjetno je problem isti kot zgoraj...

Tisto opozorilo o fajlih ni pomembno, se pojavi samo prvič ko še ni nobenih podatkov...
FGED GREDG RDFGDR GSFDG