No, running LFS with in the /insim command-line switch does work.
If you are typing /insim=2999 after launch LFS (without the command-line switch) will only work if you first go into the single player or get to the server entry screen.
Try the Lfs State Inspector (http://www.lfsforum.net/showthread.php?t=28591) and see if you are able to connect. That will at least rule out issues with luaLFS or with your environment.
hi, this is my first try with Lua, it's fun to use, but it gets harder to debug as the thing gets a little bigger tho, so the code might get a bit messy
anyway it displays some timing info for qual and race, and a track position list (sth i've wanted for lfs for some time) showing info on
laps, flags, penalties etc. (see pic) all buttons are created on local machine, and simple text commands like '/o page timing' or '/o page track' can be used to switch between the two pages (so that no mouse clicks are needed, as text commands can be bound to F-keys)
i use a slightly modified version of luaLFS 1.0 api (nodelap[i] and compcar[i]) for this. In tests luaLFS generates a lot of 'BUFFER read in x bytes' output (maybe for evey mci packet there is one BUFFER output) and i don't know why. Doesn't seem like i am missing any packets tho.
It does this when it gets an incomplete packet and reads it in from the global buffer, into the local buffer. It should really only be a debugging message - I've changed this in my copy.
I've not looked at your modified api yet - so forgive me if its obvious, but is there any reason to not use the originals? (If so I'll happily include them in the next update).
That looks great icyocean. I've actually been wanting to write something like that, and the timing page of formula1.com, but just making it better and more flexible . Maybe I should give luaLFS a try
i loop through the compcar[] in a set of MCIs, and when the last compcar is met (info: 128) i fire a custom event to signal a complete new set of MCIs has arrived and the UI can reload the buttons etc.
i find it easier to do this when the compcar table uses an index rather than a PLID key.
Just in case you didn't know, there is a bug in the compcar struct when a player is in pit, so you shouldnt rely on the compcar.Info alone.. http://www.lfsforum.net/showthread.php?t=28061
the_angry_angel: Is the version from this post the latest one? I'm playing with it under Ubuntu, but with no success ATM. Could you always edit the first post and add the up to date link there? Thanks :-).
hi, i just want to know how to made some scripts of LuaLFS i want made triggers like !help for public use, and exemple !restart for admin use.. please can someone help me