The online racing simulator
Searching in All forums
(554 results)
vitaly_m
S3 licensed
Bugfix version 1.2.1 released. Download: Linux Windows

Changes:
  • Empty command ("!" by default) now clears the window instead of crashing.
Last edited by vitaly_m, .
vitaly_m
S3 licensed
Ok, hopefully I can get the /laps crash backtrace tommorow so I can fix it. So far I have no clue why could this happen. And now some sleep...
vitaly_m
S3 licensed
Quote from Pasci :In the meantime I have also crashes with other commands. By the way: Also if I send the command "!" to hide the info boxes of LFSTop.

You will find 2 debug logs attached. Perhaps you will found out whats wrong.

With which user do you start lfstop? root or a dediacted (service) user? If as root, try as an other user. Perhaps in this case you can reproduce my problem?

I need to change the file extension to .txt because .log is not allowed here. :-)

Are these both logs related to the "!" issue? That one I can reproduce and the fix is trivial...

I can't see /laps command report in any of those...
vitaly_m
S3 licensed
Quote from Pasci :Hm... other problem:

15.11.2015 18:40:48.525 INFO [srv1] Connect success
15.11.2015 18:40:48.551 INFO [srv1] loaded track database: AS4
15.11.2015 19:16:25.929 INFO [srv1] Admin command: /laps 10
Segmentation fault

Because of admin command "/laps" your program quit! I can reproduce this behaviour. But I don't find any other hint in the logs. :-(

I can't reproduce it on my pc, but obviously this is a bug...

Do you have gdb installed on that machine? It would be great if you could provide me backtrace.

1. Enter the directory as you normally do

cd lfstop

2. Start gdb session recording output to a log file

gdb ./lfstop | tee debug_output.log

3. When gdb shell opens, run the program

run

4. Execute the /laps command on the server to cause the segmentation fault.
5. Ask gdb to print backtrace:

bt

Then type enter until you see the whole backtrace (in case it gets long) and type ctrl+d or quit to finish debgging session.

After you done this post me the content of that debug_output.log file.
vitaly_m
S3 licensed
Quote from Pasci :After posting my Problem I've found the issue. :-)

The directory /data/lfstop itself was not owned by user lfstop.

Everything works fine now. Thanks

I am glad you have it sorted now Smile
vitaly_m
S3 licensed
Been waiting for this for some time, nice guide, hopefully no one will take anything of this personally and rather learn from that Thumbs up
vitaly_m
S3 licensed
Quote from DANIEL-CRO :
That is usually done using mutexes. Also be careful about working directory and path to exe, LFSLazy stores all files based on path to exe.

Are you proposing to get the LFSTop window to foreground if it is running already? This is not the thing I would want to do, since I want to allow multiple instances (for example you want to run one instance for one group of LFS servers and another instance for another group of servers -- maybe you are running a hosting service or something like that), but I want to protect the folder containing all the databases and configs from multiple instances working on it.

Quote from DANIEL-CRO :
What if your program crash? It won't be able to start next time, right?

That is true. To overcome this I might need to create watchdog process that will monitor the state of the server and clean up running.pid if it crashes. The watchdog thing is quite usefull thing for daemons (daemon term is translated as 'service' term for Windows world). Using watchdog I would be able to restart cleanly (not just rerunning the whole code that currently lays in the main() function) and do other fancy things. But those things are in future, so with current version you have to deal with crashes by yourself.
vitaly_m
S3 licensed
Version 1.2.0 released. Download: Linux Windows

Changes:
  • Implemented switcher for splits/sections in !top, !avg, !tb, !tbs, !pb commands (see http://i.imgur.com/FlNzldL.gif)
  • Added configurable !recent command: Number of drivers stored option, Restricted to admins only option
  • !ver command added displaying version info, uptime and bytes read/written
  • Can now find specific username doing db query (!top, !avg, !tb, !tbs) (like !top Scawen, !top me)
  • Can now scroll to N'th position in the query window (like !top 13
  • Create running.pid file while running to prevent multiple instances
  • Showing admin commands to admin in help window
  • Linux build produced in release mode shrinking binaries size twice
  • Some small fixes and improvements no one will probably mention
vitaly_m
S3 licensed
Also it might be that ride height is too short. But more info will be helpful -- your setup, the name of the combo, replay.
vitaly_m
S3 licensed
Quote from Gutholz :Is this for running on servers or works offline too? (cant test atm)

There is not really much point in making it work offline, apart from !stint feature (and being always #1 in !top if you don't provide pubstat key for WR downloading feature). I don't think it will work properly offline atm. But I will consider making it so.

Also I want to make it working with replays for debugging and being able to hotlap with historical heroes of online racing after you gather replay data and then run the app offline or on dedicated server.

All of those are future plans... And lately I can't contribute as much time as I want into this.
vitaly_m
S3 licensed
Quote from cargame.nl :Yeah, but sadly a lot more needs to happen before you can say a lap is 'clean'. Drafting behind another car for example.

Then it will work on normal tracks. The challenging bit are the custom tracks.

If you're talking about my insim, then I must clarify that it has draft checking (it is done kinda straightforward, so lap counts drafted if car in front is above 60km/hour and less than 40 meters ahead).


Checking custom layouts is a great challenge indeed - track creators can come up with a lot of ideas and moreover Insim protocol is not really complete enough to compute 100% legitimate checking. Airio developers have put a lot of effort to create their AIRW checking but yet it is way far from being easy to apply on custom layouts.
vitaly_m
S3 licensed
Here is how it looks in my insim tracker now:


Tracker thread: https://www.lfs.net/forum/thread/88468-LFSTop-tracker

Test online: LFSTop Test Server
vitaly_m
S3 licensed
Uploaded v1.0.1 with handicapping fixed on initial connect.
LFSTop tracker
vitaly_m
S3 licensed
After several months of development I am ready to release first public version of my tracker.

Here is what it does and what it has:
  • Top server laps (!top)
  • Average of 3 consecutive laps (!avg)
  • Theoretical best lap (!tb)
  • Theoretical best lap during 1 stint (!tbs)
  • For all of the above there is separate table for each tyres compound combination as well as combined table where the best result of every driver is merged
  • Also, everything is split to clean-only and nonclean+clean,
  • Detailed stint information: lap-by-lap info, average lap and theoretical laps (!stint)
  • Custom cars and classes, using newly introduced IS_HCP packet, so you can set up easy to join balanced classes servers (handicap can be applied automatically, note: it doesn't clean up after you shutdown LFSTop so you might need to restart your server or just type !cars ALL before shutting down LFSTop)
  • Configurable Hot Lap Validation Check system. You can set different options for LFS stock tracks and custom tracks (per-track override is available, for example if you want to count drafting as clean on oval tracks)
  • User-configurable settings for laptimes notifications (!opt)
  • Airio importer (put your Airio.sta.* files in lfstop directory and run lfstop_airio_import)
  • Unicode chat logging
  • Can be translated to any of the language that is supported by LFS (and any others that can be used inside LFS chat)
  • Custom info windows (for custom commands like !info, !rules, etc)
The intention of this Yet Another tracker is to have a simple yet usable tool for racers and hotlappers.

Limitations and defects:
  • To change settings you have to restart the server (you can only change allowed cars list with !cars command, but can not define any cars and classes)
It is still in early development and haven't experienced any serious testing, so use it at your own risk : )

Note for linux admins: you need to run it from the directory where config.ini and others lay in, like this:
cd lfstop-1.0.0-linux-i686; ./lfstop

LFSTop is free software under GPL.

Source code, issue tracker: https://gitlab.com/fiasco/lfstop

Translation service: https://www.transifex.com/lfstop/lfstop/

Download: Linux Windows

Changelog: https://gitlab.com/fiasco/lfstop/blob/master/CHANGES
Last edited by vitaly_m, . Reason : new version
vitaly_m
S3 licensed
No thanks.

Funny how it went from a crowd funded project with cross-platform, open-source SDK, to a proprietary, closed-source SDK, then to a closed-sourced, non-cross-platform Facebook product. And then they ask loads of money for it.
vitaly_m
S3 licensed
Quote from Khiro :
But there is people that simply don't search in forums for an addon, or are not able to install an make it work. Because that my asking is about to be something intregrated into LFS, something easy and that works allways...

That particular thing is not that hard to implement (since even I could do something similar huh )

But the thing is, putting every possible feature will take so much time to make it right, then some people might not even like it in some particular aspects. I wouldn't be against this stuff, yet I don't feel like I want developers to spend their time exactly on this thing.

TL;DR, use addons, since thats why Insim protocol was made -- so that developers can focus on things they have interest in.
vitaly_m
S3 licensed
I don't think it's the right place to ask about it. You should go to MRc forum http://masterracecar.forumactif.com/f16-server-tracker-status and ask them.
vitaly_m
S3 licensed
Thanks Daniel, it seems to be pretty easy to integrate into my project. And I would have spent days figuring out those formulas Smile
vitaly_m
S3 licensed
Quote from DANIEL-CRO :
If you are interested I can provide you my code and you can improve it even further.

That would be very nice of you Smile
vitaly_m
S3 licensed
Quote from DANIEL-CRO :For example LFSLazy checks for cars that are 0.3s ahead and within 10° of car's direction.

0.3s is time gap here, isn't it?
Draft checking with IS_MCI: help wanted
vitaly_m
S3 licensed
I have number of questions about it:
  • How close should the catching car be to have the slipstream?
  • How wide the slipstream is?
  • At what speeds does it come into play?
  • Are there variations for different cars?
  • What is reasonable vertical margin if cars move on a sloping surface?
Any help would be appreciated -- links, your experience, source code (any language).
vitaly_m
S3 licensed
Quote from Whiskey :
But LFS does not require to be installed to work Thumbs up

Yes but in that case user will be prompted to set it up manually or something... Smile
vitaly_m
S3 licensed
Quote from DANIEL-CRO :
...
But yeah, you would have to point where your LFS is installed, and it would not be ideal in all cases (for example if you don't want to restart LFS).
...

You can grab it from registry "HKEY_CURRENT_USER\Software\Classes\lfs\Shell\Open\Command" (Works for me in windows 7)
vitaly_m
S3 licensed
Nice features here and there huh Thumbs up

Would be nice to have Ctrl+S screenshot stuff working only when LFS is in focus, since it blocks a lot of applications "Save file" hotkey for me.

I'm on Windows 7.
vitaly_m
S3 licensed
I don't get it as I am still out of the tracker. I have done 1:25.7... laptime, do I have to wait even more or what?
FGED GREDG RDFGDR GSFDG