The online racing simulator
Live To Cruise PubStat
(11 posts, started )
Live To Cruise PubStat
I have created a little script for public stats being obtained from the LTC database. Its quite simple with only a few features.

If you require extra features, please let me know! I Shall add asap.

With this documentation I shall release a public use ident key - you can request your own by pm'n me, or replying to this topic. Each ident key is sandpitted at 5 seconds (for now).

www.livetocruise.net/pubstat.php is the script.

?action=<ACTION>&ident=<KEY>

The actions are
- user_profile&username=<lfs_licence>
- lap_records&username=<lfs_licence>
- server_info&server_id=<server_id>

user_profile output
id=1
username=Krammeh
player_name=^7[^6LTC^7] ^3Krammeh
cash=5945
licence=2200
licence_name=Elite
cars=LX6;BF1;FXR;FZR;XRR;FBM;UF1;MRT;UFR;
server_id=2
driving=0
EOF

lap_records output
id=1
username=Krammeh
player_name=^7[^6LTC^7] ^3Krammeh
num_recs=6
lap_records=13,FZR,WE1,109120,01:49.12;5,UF1,WE1,152930,02:32.93....
EOF

lap_records is layed out as: position,car,track,milliseconds,friendly;position,car,track,milliseconds,friendly

serer_info output
server_name=[LTC] Live To Cruise 2 (WE1) [Y]
connections=25
user=-Maverick-
driving=FZR
user=furiously-fast
driving=FXR
....
EOF

Server id's range from 1~3

Public use Ident: 5c05c042641b98de65e742d2c97cfba8 (remember, you can ask for your own!)
Hello, I have made a .Net SDK for this aswell. At the moment this is version 1.0.0(starting version). Ive tested this a little bit and it seems to be ok. The way it works, You must first make an instance of the client.

LTCPubstat.Client Stats = new LTCPubstat.Client();

You must then fill in your ident key. This will be issued by krammeh atm.

Stats.IDKey = "SomeKey"

Once that is done, You must hook up the events the library can fire. Once you have done that, You can start getting some data from LTC system. To do that, You call a method. for example.

GetUserStats("mcgas001");

Then some code will be returned to the event handler. What you do with it from there on is upto you. As Ive said, This is a very basic version. I will update a lot more and add features. Any bugs please let me know. I'll sort them out. Thanks
Attached files
LTC_Pubstat.zip - 4 KB - 244 views
#3 - filur
Good to see some originality instead of the same old xml, yaml and json.
Quote from filur :Good to see some originality instead of the same old xml, yaml and json.

I'm going to add a XML output too. . Whatever is requested really.
Quote from filur :Good to see some originality instead of the same old xml, yaml and json.

Am I the only one who found this very, very funny?
Quote from the_angry_angel :Am I the only one who found this very, very funny?

I sat for a minute earlier and tried to work out if it was a joke or not, then decided it was better to not say anything.
Sorry, I will point out that I think this is a good thing for anyone looking get data out from LTC.
meh. I always wondered why I didn't bother releasing anything that's requested for this community anymore.

This kinda answers it.
Added an XML output version.

just add "&op=xml" to the end of the request
Oh hush, that was more of a joke in filur's direction then yours.
And, yes, I also found it funny also. We all have are reasons.

Live To Cruise PubStat
(11 posts, started )
FGED GREDG RDFGDR GSFDG