The online racing simulator
Searching in All forums
(132 results)
A.Fedorov
No longer welcome
Can I try edit api.lua for additional function luaLFSapi:lap, luaLFSapi:spx and so on?

in api.lua
function luaLFSapi:lap(imsg)
print("Parsing LAP")
local n, psize, pty, reqi, plid, pltime, petime, plapsdone, pflags, spare, penalty, numstops, spare2 = bunpack(imsg, "bbbbLLhhbbbb")
return { plid = plid, ucid = ucid, ltime = pltime, etime = petime, lapsdone = plapsdone, flags = pflags, penalty = penalty, numstops = numstops }
end

in test.lua
function testing()
local t = luaLFSapi:lap(imsg)
laptime = t.ltime
print("laptime="..laptime)
end
evt_bind(ISP_LAP, testing)

in console only Parsing LAP . help me
Last edited by A.Fedorov, . Reason : bunpack(imsg, "bbbb4b4bhhbbbb") -> bunpack(imsg, "bbbbLLhhbbbb")
A.Fedorov
No longer welcome
thanks. Great tools
A.Fedorov
No longer welcome
how i can write some information to file? Useful for some statistic.

if it not externalize do please function - read; write; append; delete;
A.Fedorov
No longer welcome
Bug. VCom (grey color) display right.

p.s. on track AI
A.Fedorov
No longer welcome
i see TPB in BL1 =>1:12.88
bug or right?
A.Fedorov
No longer welcome
connection to LFS
Port: 29999
InSim v4(TCP)

connection from application
Port: 65000
InSim v3(UDP)

in lfs_spectate port 65000
GateWay InSim v3 <-> InSim v4
A.Fedorov
No longer welcome
Some program for LFS server not supported. For them using need this GateWay. Who can write program?
A.Fedorov
No longer welcome
Quote :
but i have installed the latest test-patch and when i now watch a replay with tv-director i get the error message:
(TEST Patch V5)

...
InSim : discarding unacknowledged packet (30)
InSim : discarding unacknowledged packet (31)
InSim : discarding unacknowledged packet (32)
....


until i shut down the tv-director. then no more msg appear.

this has something todo with the 4 new insim-commands in the latest test patch.

we waiting fix
Last edited by A.Fedorov, .
A.Fedorov
No longer welcome
Request. I'm not coder.
WhiteList
A.Fedorov
No longer welcome
BlackList doing use Ban. What about WhiteList? (for example championship)

- A Program connect to inSim.
- Has its base of the users, when entering the racer compares its username (not to muddle with nickname) with the base, and unless finds - kick on stage of the connection else.
- In the same way, program must block input only before begin race (better do switch), but after begin racing, blocking possible to remove since during racing already it is impossible call at for its participations.
Last edited by A.Fedorov, .
A.Fedorov
No longer welcome
if you use 2 or more addons for lfs (which use insim) you need run it addons over gateway else only one addon will work.
A.Fedorov
No longer welcome
You need program, which emulates secondary press button when you release button. Need find the coder who write this program
A.Fedorov
No longer welcome
Search in www.google.com i don't remember where i find this application. Work in small progress. Statistics view not complete.
A.Fedorov
No longer welcome
I write functions.php for work with laps.log (log of RaceManager). One of function count all laps, total lenght (only for finished laps)

ps. I novice in php.
A.Fedorov
No longer welcome
smith: When i run graph this rebuild all image. In my opinion the best way if build only image that not exists. If run graph.exe /rebuild then rebuild all image. It save time to generate statistics
A.Fedorov
No longer welcome
what about Black Flag?
A.Fedorov
No longer welcome
I use RM for "stats", "LFSLapper","VCom". All programms work. Check ports, ip in config files.
A.Fedorov
No longer welcome
Quote :is there a way for me to run 2 lfs lappers on 1 server?

Try use gateway of RaceManager. Run your lfs lapper through gateway. Use different config. I tested this method. It work.

For run lfs companion you need drag and drop lfs.exe to window of lfs companion.
A.Fedorov
No longer welcome
0.0.0.0 - this means that server uses all network interfaces. For you it 88.212.10.139 and localhost (127.0.0.1)

.NET not necessary but may be useful in future for other programms of LFS
A.Fedorov
No longer welcome
try use old driver version 77.77
Last edited by A.Fedorov, .
A.Fedorov
No longer welcome
May be it out of DEMO mode. Try what i wrote you. Use latest version of LFSLapper.

In setup.cfg use /ip=0.0.0.0
In LFSLapper.cfg use Host = 127.0.0.1
Gateway InSim
A.Fedorov
No longer welcome
Now i use RaceManager, but i think that it work a bit not properly. Sometimes RM disconnect from server and all programms using gateway also disconnect. I want individual program for gateway insim. There is such?
A.Fedorov
No longer welcome
LFSLapper use port for connection to InSim. You must enter identical pots in setup.cfg (/insim=29999) and LFSLapper.cfg (Port = 29999)

About why not work:
Here not shamans. Need more information. May be you wrong started lapper and your port not 29999 in LFSLapper.cfg

In setup.cfg use /ip=0.0.0.0
In LFSLapper.cfg use Host = 127.0.0.1

When lapper starter you should see

Product:S2 Version:0.5U30 InSim Version:2
LFSLapper is running...


in console of LFSLapper and this in console of dedicate server
Last edited by A.Fedorov, .
keyboard support
A.Fedorov
No longer welcome
make please support of the keyboard
FGED GREDG RDFGDR GSFDG