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:
Setup your LFS host to use insim port 29999 and start it.
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).
Setup insim application to use port 29997 (default gateway port) as insim port and start it.
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}
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?)
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.
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
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)
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
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...
Simple utility that reads the current song out of Winamp window and sends it to LFS via InSim.
Run Winamp (confirmed working on v2.91, v5.1, v5.31; other versions may have different window class name ?), play some music.
Run LFS and type /insim 30000.
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 :(
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 .
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 .
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...
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...
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
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).