The online racing simulator
Quote from Victor :at this time there is no pubstat hotlaps country filter. I could add it for a next version, but that probably won't be very soon.

Thank you for the reply
Hi Victor,

for a few days now the "?action=hosts" command sends a wrong version-flag in TMLT. For example "oelfsm@liwest.at" has a "1" in Type which stands for new S1 but I am quite sure this is a S2-Sever. And there are quite a few more servers where this happens.

Maybe you can have a look.
Thank you.
Quote from --==Gogo==-- :Hi Victor,

for a few days now the "?action=hosts" command sends a wrong version-flag in TMLT. For example "oelfsm@liwest.at" has a "1" in Type which stands for new S1 but I am quite sure this is a S2-Sever. And there are quite a few more servers where this happens.

Maybe you can have a look.
Thank you.

That's not a fault of that command, but thats because the server running S1 content. The cars which used, are RB4, FXO and the XRT, that is S1 content. The track (South City) is also S1 content. It doesn't matter if it is a S2 server, but LFS World and LFS looking at the track/car combo if it is Demo/S1/S2.
Ah, thank you. Didn't know that.
But with 46 max connections it should still be S2, unless they dropped the max conns limit for S1
Quote from morpha :But with 46 max connections it should still be S2, unless they dropped the max conns limit for S1

The only difference between S1 and S2 is the content (cars & tracks).
Quote from joshdifabio :The only difference between S1 and S2 is the content (cars & tracks).

Good to know, for some reason I thought S1 was limited to 24 connections or something like that
online at: info
Hi,
How do I get online at: info
Wanna make gadget for team that will show at which server are team mates
if they are online of course
Attached images
Capture3 copy.jpg
ok,THX for that,but can you help me with code for html pls
<img src="http://www.lfsworld.net/athost.username" alt="Status">

Quote from Flame CZE :
<img src="http://www.lfsworld.net/athost.username" alt="Status">


THX but its not working
That's because athost displays the hostname as string, not as image. What you're trying to do requires javascript. An inline frame would work too, but it'd probably ruin your layout.
Yes i did try with inline frame,but then it shows like this:
^4(^3IHR^4)^4IRONHORSE RACING

and should be like this:
(IHR)IRONHORSE RACING
Quote from dmartin :Yes i did try with inline frame,but then it shows like this:
^4(^3IHR^4)^4IRONHORSE RACING

and should be like this:
(IHR)IRONHORSE RACING

Ah yes, you will definitely need to process the string then, which means either JS or a completely different approach, which is to "assemble" your team mate gadget thingy entirely on a server (php, python, asp, ruby, ...).

Unfortunately it'll be quite difficult in JS, for startes it requires AJAX, which the Windows gadget thingy should support though. Converting hostnames using non-standard character sets is tough though, I'm not sure it can be done in a reasonably efficient and small fashion using JS.
The function convert_lfs_text, from the LFSWorldSDK 1.9.5 Alpha, can be used stand alone to parse this text into it's normally formatted html mark'ed up string.


<?php 
php

reqiure_once
('lfsworldsdk.php');

echo 
LFSWorldSDK::convert_lfs_text($str);

?>

Pubstats suggestions...
I was wondering if it would be possible in the future, to add this suggestions in the LFS World pubstats.

Fisrt, I would like to be able to retrive the number of drivers from any country to have that number as statistic in a website.

Second, have the possibility of something like the world records but filtered just for my country or any specific country. This way we will be able to know who holds the best times on every track and car per country.

Hope you find the suggestions intresting
Quote from NelsonGPV :I was wondering if it would be possible in the future, to add this suggestions in the LFS World pubstats.

Fisrt, I would like to be able to retrive the number of drivers from any country to have that number as statistic in a website.

Second, have the possibility of something like the world records but filtered just for my country or any specific country. This way we will be able to know who holds the best times on every track and car per country.

Hope you find the suggestions intresting

There is currently no way at all to get the country information so we can't even cross reference this information from multiple pubstats calls. I would at least like to be able to get the players country from their profile in the pubstats as this might greatly aide with localization.

So a huge Plus 1 for this idea.
Quote from Dygear :There is currently no way at all to get the country information so we can't even cross reference this information from multiple pubstats calls.

This is one of the rare occasions (do you call it this way in english?! not sure ...), where you have to be corrected:
-----------
?action=pst
-----------
(online statistics of one racer)

requires: &racer=<racer>
optional: -
returns: distance in metres
fuel burnt in cl
laps
hosts joined
wins
second
third
finished
quals
pole
drags
drag wins
[B]country[/B]
online status (0 = offline, 1 = spectating, 2 = pits, 3 = in-race)
current / last hostname (or blank line if not online or on hidden host)
last_activity_time(*) (Unix timestamp (UTC))
current / last known track(*)
current / last known car(*)

additionally, there is such thing as:
http://www.lfsworld.net/highlight_countries/highlights_<Country_Name>.txt
(not as useful though)
Quote from dmartin :Yes i did try with inline frame,but then it shows like this:
^4(^3IHR^4)^4IRONHORSE RACING

and should be like this:
(IHR)IRONHORSE RACING

HI dmartin, did you solve this issue?

I found my self trying to do the same on my team website, and I would like to know if you manage to make it work?
Vic, it's not showing my name in the Eagle Race Team (EAGLE) member list. I am a member, and the tag shows correctly in my profile page, but it's not registering that I'm a member of this team in the pubstats, or on the member list on the LFSWorld website GUI. Any idea what's up with that?
Order of args.
As it turns out these two strings are not the same as far as get_stat2 is concerned.

http://lfsworld.net/pubstat/get_stat2.php?version=1.4&idk=35cP2S05Cvj3z7564aXKyw0Mqf1Hhx7P&ps=1

http://lfsworld.net/pubstat/get_stat2.php?version=1.4&ps=1&idk=35cP2S05Cvj3z7564aXKyw0Mqf1Hhx7P

As having the &ps defined before the &idk results in a Invalid IDKey error no matter what.
Any way of retrieving WR timestamp(date) ?
Hi all,
I am writing a little standalone (ie not a web page) app in Visual Basic (Ok who's that laughing? I can hear you) that allows a player to check almost all of their online LFS stats, well all the stats I can get anyway.

I'm using ?action=wr to get a list of all world records to allow a player to compare their online PB's against the WR's.
I know this isn't a very accurate guide to performance, race environment versus solo hotlapping, but hey, I was bored
But also I would like to be able to show how old a WR is. But there is no time stamp available.

Can this info be gained another way ?

Or could this info be considered for some possible future update to the pubstats system?

P.s.
First post on here, so, Hi to everyone who comes to this part of LFS land
:wave2:
Quote from obmit :(Ok who's that laughing? I can hear you)

Sorry, that was me.

Quote from obmit :Can this info be gained another way?

Not right now, no, Victor will have to add it.

FGED GREDG RDFGDR GSFDG