The online racing simulator
Searching in All forums
(234 results)
MonkOnHotTinRoof
S2 licensed
Quote from C-Larsson :can someone who have a working LFSLapper please send me the PB.txt file. I need to look in to somethings and se how the syntax is written.

File format is described in doc/readme.txt. You can also download WebStats and look into its C++ source to see how to make valid UTF-8 XHTML page.

Quote from C-Larsson :Somtimes when I do a new server PB it dosent show on the screen. but if I look in the server console it says:

Maybe another system rcm message is already on screen ? Wrong way or sth like that.
MonkOnHotTinRoof
S2 licensed
If you don't like java then you can use insim gateway as a part of Race Manager written by Silkswift.

http://www.lfsforum.net/showthread.php?p=58644#post58644

I don't think it is any easier to set up tho.
MonkOnHotTinRoof
S2 licensed
Quote from gwendoline :
After jar started on 29999, all launched insim applis do have same port 29997 to works ?

Yes, 29997 is default gateway port, but you can change it:


java -jar jInSimGateway.jar -gw=65000

Quote from gwendoline :
I had some (old) mods using specific insim ports and i cant change it.
How can i make to use lapper and one appli needs 21029 insim port and another needs 65000 ?

Um, can't you configure both insim apps to use same port? Maybe cascading of gateway is possible (I haven't tried tho):


LFS (/insim=29999) <-> jInSimGateway (-gw=21029) <-> insimapp1 (uses insim port 21029)
<-> jInSimGateway (-gw=65000 -insim=21029) <-> insimapp2 (uses insim 65000)

Yeah, I know. I should write a readme... but documentation is coder's worst nightmare...
InSim gateway
MonkOnHotTinRoof
S2 licensed
jInSimGateway is a standalone InSim gateway, written in Java. It's a command line utility that allows more InSim applications to communicate to LFS at the same time (with some limitations).
Type java -jar jInSimGateway.jar -? to see options.
Basic things like skipping ISI, ISC and auto answering on ACK are implemented, more advanced things may be added later, if needed.
Source needs some heavy cleaning up, since it's my first app in Java, but if anyone is interested, I can post source too...

Installation:

Just unzip the archive anywhere

Requirements:

Java environment

Quick start:
  1. Setup your LFS host to use insim port 29999 and start it.
  2. Start gateway: java -jar jInSimGateway.jar (or just start it with double mouse click on the jar file - in this case you won't see any console output! It will be only seen in task manager as javaw.exe).
  3. Setup insim application to use port 29997 (default gateway port) as insim port and start it.
  4. If more insim applications, goto step 3.
Last edited by MonkOnHotTinRoof, .
MonkOnHotTinRoof
S2 licensed
Quote from imthebestracerthereis :I want to have people be able to press !ball and make me respawn in the middle once i get knocked out.

Add new action to pitlane you on command:

AutoAction = !ball|/pitlane imthebestracerthereis

You can't use private messages for that, messages can't do actions...
MonkOnHotTinRoof
S2 licensed
Quote from imthebestracerthereis :how to mka the !time come up like !drf

You would like current time to appear when players type !time ?
Easy, just add new action (or private message action) and use global variable {ShortTime}.

Example:


AutoAction = !time|/msg Server local time{colon} {LongDate} {ShortTime}

MonkOnHotTinRoof
S2 licensed
Quote from duke_toaster :Is it possible to get LFSL able to ban drivers after they have completed (say) 5 laps and force it to run 1 driver at a time?

Not without code modifications. LFSLapper does not count laps...
And... wouldn't banning after 5 laps be a bit weird ?

Quote from drzflaco174 :i did that now even more problems :weeping: wen i click the batch http://i7.tinypic.com/2eoh4ar.jpg

It looks ok! Dont mind those 2 warnings. You just got new LFSLapper.exe in bin directory ! Just run it and see how it works...
MonkOnHotTinRoof
S2 licensed
Quote from drzflaco174 :i found it it was in another folder in framework named v2.0.50727 i dont know if i did it right but i right clicked the batch and clicked on edit. then where i saw the last folder v1.1.4322 where the exe was supposed to be i changed v1.1.4322 to v2.0.50727 but it still tells me the same thing

you made error typing ? Do you have like this:


"%SystemRoot%\Microsoft.NET\Framework\v2.0.50727\csc" /out:./bin/LFSLapper.exe /o .\src\*.cs
pause

MonkOnHotTinRoof
S2 licensed
search in following directory and all its subdirectories for csc.exe

C:\WINDOWS\Microsoft.NET\Framework

If you find it, correct WinMSBuild.bat file so the path is correct...
If csc.exe is not there, you can't build and you need a c# compiler (but it should be?)
MonkOnHotTinRoof
S2 licensed
Quote from Gai-Luron :
MonkOnHotTinRoof, if you want use this version for standard version you can. As you want

Thanks, man. I will increase version to 3.5 and put it on page.
MonkOnHotTinRoof
S2 licensed
Quote from drzflaco174 :
AccelerationPrivateMessage = ^7from 0mph to 60mph in {AccelerationTime} ! thats the code that shows the 0-60 times all i want do do is make it so that other people 2 see it instead of just me. i saw it on a server i have c++ and C# but dont know what to do please help me thx in advance

Wouldn't that be a bit spammy ?

try this:

replace line 1490? (there somewhere) in main.cs


SendMsgToPlayer((byte)p.UniqueID, this.GlobalOptionsReplace(_PrivateAccMsg));

with:


SendMsg(this.GlobalOptionsReplace(_PrivateAccMsg));

and rebuild by running WinMSBuild.bat.
MonkOnHotTinRoof
S2 licensed
Quote from drzflaco174 :i have lapper and i put it on my server i dont know how to make it so that both speeds show

As you have already found out, LFSLapper only allows one definition of time measurement. I guess, someone has modified the code for his own use...
MonkOnHotTinRoof
S2 licensed
Quote from mrodgers :I start everything manually, but I start outgaugegateway first, then CSR, pitspotter (starts LFS auto), finally momoleds. If I start in different orders than this, something doesn't work.

Condition that must be met for outgaugegateway to work is, that when gateway starts receiving packets from LFS, outgauge applications must be already running. So there can be more ways to do it.

Quote from otolikos :Can someone explain clearly for all non programmers how to get CSR + momoleds working together please?

That is exactly the example I've shown in one of posts here. Just start csr and momoleds, then you can start gateway, then LFS (or LFS first, then gateway, it shouldn't matter). Before starting LFS, make sure you have Outgauge mode = 2 and Outgauge port set in cfg.txt.


...to end of cfg.txt file...
OutGauge Mode 2
OutGauge Delay 1
OutGauge IP 127.0.0.1
OutGauge Port 30000
OutGauge ID 0

Quote from Jakg :
My script doesnt have CSR as ill add it when i get it working!

If you don't have CSR running yet, then don't execute gateway with CSR's port, cause it will give exception (it won't be able to find a client on port 35555)
MonkOnHotTinRoof
S2 licensed
Hmm, in your batch file I don't see CSR starting .

Maybe the problem is, that gateway starts before outgauge apps (when you use start, applications are started in parallel). Try inserting 5 seconds of delay before starting outgaugegateway:

start LFSmomoLeds.exe
start /high CSR.exe (this line is missing in your bat file )
start LFSspotter.exe
start LFS.exe /insim=29999
wait 5000 <= try adding this line before starting outgaugegateway, if gateway crashes
start OutGaugeGateway.exe 30000 35555 56551
Last edited by MonkOnHotTinRoof, . Reason : priority added for csr
MonkOnHotTinRoof
S2 licensed
Quote from deggis :I'm trying to get CSR and MomoLeds to work but I can't. Only one of them will work.

I just tried with those 2 apps and worked fine (well at least it seems so - momoleds showed car name (I don't own momo wheel) -> which means it was able to get data).

I used following settings:

csr at port 35555 (default i think)
momoleds at port 56551 (default)
lfs outgauge at port 30000, mode 2

so the command is:

OutGaugeGateway.exe 30000 35555 56551

I ran outgauge apps first, then lfs, then gateway...
MonkOnHotTinRoof
S2 licensed
What, still only FXO cars on list ? Turbo league without XRTs doesn't deserve that name ...
Do I get any extra points if I join with XRT ?
Winamp song title -> LFS
MonkOnHotTinRoof
S2 licensed
Simple utility that reads the current song out of Winamp window and sends it to LFS via InSim.
  1. Run Winamp (confirmed working on v2.91, v5.1, v5.31; other versions may have different window class name ?), play some music.
  2. Run LFS and type /insim 30000.
  3. Run this app and click Start button.
"/echo " command shows title only to client (there is a space after command !). If you leave command empty, title will be shown as your ordinary message to chat (happy spamming )...

Notes:
  • If window dissappears when you click on Start, you most probably didn't start insim on LFS...
! Project lost ! (literally)
Last edited by MonkOnHotTinRoof, . Reason : hard disk gone to a better place :(
MonkOnHotTinRoof
S2 licensed
Começo rápido
  1. Arquivo do extrato ao diretório arbitrário.
  2. Abra cfg/LFSLapper.cfg com Notepad e modifica o valor na linha Password = Pass, de modo que a senha combine a senha do Admin de seu usuário de LFS.
  3. Ligue o usuário de LFS e datilografe-o /insim 29999. Não espere nenhuma confirmação de LFS.
  4. Comece o bin/NETStartDefault.bat e ignore avisos sobre algumas limas que não estão sendo criadas ainda...
MonkOnHotTinRoof
S2 licensed
Quote from birder :Is it possible to have 2 servers updating the same PB.txt or will this cause problems.

PB.txt is just an image of current PBs and it's overwritten everytime someone makes a PB. So same file should not be used for more that one server ! It is one of annoyances of the LFSLapper...

It is possible to merge files manually, but it's a cumbersome job:
1.stop lfslapper on both servers
2.concatenate PB.txt files on both servers to a new file and copy that file back to both servers (overwrite old one)
3.restart lfslapper on both servers

In that case results will be synchronized everytime you do that procedure...
However, I don't recommend you doing that, cause you can easily mess sth up .
MonkOnHotTinRoof
S2 licensed
Verjetno zaradi kakšnega timeouta. Se pogosto naredi, ko greš prvič na en strežnik (prvič traja dlje?). Tebi se ne uspe skonektat, na serverju pa napiše guest timed out. Ko probaš še drugič, ponavadi gre .
MonkOnHotTinRoof
S2 licensed
Quote from ThomasTym :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?

Nothing is wrong. You started LFSLapper, while you were already on track, and LFSLapper didn't have a chance to pick up your nickname yet. It will when you go to pits and back to track...

This is answered in FAQ, BTW.
MonkOnHotTinRoof
S2 licensed
Quote from mr_x :I did search it, but I didn't search 'swearing' maybe i should have

http://www.lfsforum.net/showthread.php?p=202661#post202661

But as I said, this filtering is the thing that should be done by a client, because it must be language dependent. And IMHO it should be an option...
(personally I don't like censoring, but if someone is getting too annoying and overusing swearing on my server, I'll kick him myself ).

LFSLapper is not very good for that purpose - not only it is usually used as a server side app (it can actually be also used as a client !), but it can only act when swearing has already been used...
Last LFSLapper update
MonkOnHotTinRoof
S2 licensed

+-------------------------+
|Changes from v3.3 to v3.4|
+-------------------------+

1.Bug fix: Drift scoring angle was calculated incorrectly (backward driving exploit)

2.Bug fix: rcm messages did not work when there was no schedule in script.

3.New actions for 30 and 45 seconds penalties. (only works on English language server unless you modify code and rebuild)

4.Added batch file, so everyone can rebuild by just clicking on WinMSBuild.bat.


This small update is very probably last update on LFSLapper. I will no longer maintain this crappy code . However I started new project that will be more powerful (and also easier to maintain).
I already have some on todo list:

structured input rules
real database support
more stats
decent player tracking
more global variables, actions and triggers
advanced actions with internal states
useful for leagues too, very generic...
nice GUI client to create rules
easy to add new modules

Drift scoring patch
MonkOnHotTinRoof
S2 licensed
Try again with v3.4. And it's not wise to set maximum angle over 90 degrees.
Last edited by MonkOnHotTinRoof, .
MonkOnHotTinRoof
S2 licensed
Quote from MadMag :I have added manually PB.txt and DriftPB.txt to the bin folder, but the files stay empty, no logging at all ?

No need to create files...
Did you ever pass finish line so that LFSLapper wrote something like
New PB by blabla (xf gti): 1:32.12
with big letters across the screen?

Remember that in default script, you have to go under 1:50 for action to activate and pb to be saved into file...

If it still doesn't work for you, contact me by MSN and I will look into it (if you have server accessible from outside).
FGED GREDG RDFGDR GSFDG