View Full Version : just want to know if its possible
royk1991
9th August 2008, 13:35
right here it is, i have a server and a website just want to know if you can put the race records onto my site but is there anyway it can be auto or do i have to do it manually
For e.g from the best pb to the worst pb just to let people know where they are standing in the table and so on.
Is there a programe thats lets you do so or is it not possible
Regards Kyle
Robbo01
9th August 2008, 23:03
dont know much stuff about doing this but i think you would have to store the info in a database and then get the information from the database onto your website which i dont know how to :(
Dygear
10th August 2008, 06:15
LFSWorld
Sure, but you can get that information for their best overall split / sector time through LFS World via the pb action. You'll need to get your own ID Key (IDK) but once you do, you can get the information from this url. (Just replace <IDK> with your ID Key and <RACER> with the name of the user you would like to get information on.) you might also need to use the hosts action to get a list of users on your host.
PB
http://www.lfsworld.net/pubstat/get_stat2.php?version=1.4&idk=<idk>&action=pb&
racer=<racer>&s=2
HOST
http://www.lfsworld.net/pubstat/get_stat2.php?version=1.4&idk=<idk>&action=hosts&s=2
InSim
If you want it for just your server, then an application would need to be made. You need the STA (for the track name) could just capture the SPX (for the time) and LAP (also for the time) packets, or the FIN (gives you just the best lap time for that race) packet depending on how in depth you want to get.
STA
struct IS_STA // STAte
{
byte Size; // 28
byte Type; // ISP_STA
byte ReqI; // ReqI if replying to a request packet
byte Zero;
float ReplaySpeed; // 4-byte float - 1.0 is normal speed
word Flags; // ISS state flags (see below)
byte InGameCam; // Which type of camera is selected (see below)
byte ViewPLID; // Unique ID of viewed player (0 = none)
byte NumP; // Number of players in race
byte NumConns; // Number of connections including host
byte NumFinished; // Number finished or qualified
byte RaceInProg; // 0 - no race / 1 - race / 2 - qualifying
byte QualMins;
byte RaceLaps; // see "RaceLaps" near the top of this document
byte Spare2;
byte Spare3;
char Track[6]; // short name for track e.g. FE2R
byte Weather; // 0,1,2...
byte Wind; // 0=off 1=weak 2=strong
};
SPX
struct IS_SPX // SPlit X time
{
byte Size; // 16
byte Type; // ISP_SPX
byte ReqI; // 0
byte PLID; // player's unique id
unsigned STime; // split time (ms)
unsigned ETime; // total time (ms)
byte Split; // split number 1, 2, 3
byte Penalty; // current penalty value (see below)
byte NumStops; // number of pit stops
byte Sp3;
};
LAP
struct IS_LAP // LAP time
{
byte Size; // 20
byte Type; // ISP_LAP
byte ReqI; // 0
byte PLID; // player's unique id
unsigned LTime; // lap time (ms)
unsigned ETime; // total time (ms)
word LapsDone; // laps completed
word Flags; // player flags
byte Sp0;
byte Penalty; // current penalty value (see below)
byte NumStops; // number of pit stops
byte Sp3;
};
FIN
struct IS_FIN // FINished race notification (not a final result - use IS_RES)
{
byte Size; // 20
byte Type; // ISP_FIN
byte ReqI; // 0
byte PLID; // player's unique id (0 = player left before result was sent)
unsigned TTime; // race time (ms)
unsigned BTime; // best lap (ms)
byte SpA;
byte NumStops; // number of pit stops
byte Confirm; // confirmation flags : disqualified etc - see below
byte SpB;
word LapsDone; // laps completed
word Flags; // player flags : help settings etc - see below
};
I fell generous today, I gave you alot of information that should get you started on it your self.
royk1991
11th August 2008, 19:28
where do i put all that text btw. sorry not good with code
Robbo01
12th August 2008, 15:38
where do i put all that text btw. sorry not good with code
lol do what he has told you to do in the first bit of his post all the other text he has cut it from the InSim.txt file to help you with what you need to do to find the users data
royk1991
17th August 2008, 15:07
btw is there any way i could put vcom onto my TCadminpanel and use it as my insim
royk1991
17th August 2008, 19:36
plz help really really wanna find out insim i have is pants
the_angry_angel
17th August 2008, 19:41
There appears to be an API and a reasonable amount of documentation, so it's likely that you could integrate TCAdmin and VCOM, but I've not see anyone advertising that they've written such a thing, so if it is possible it's likely to be something you'll have to pursue.
royk1991
17th August 2008, 23:11
klkl m8 cheerz anyway
royk1991
19th August 2008, 17:08
ohh and is it possible to add a points system to lfslapper
royk1991
20th August 2008, 18:14
need to if it is, if it is possible could somone tell me how
royk1991
21st August 2008, 19:24
sorry m8
Nadeo4441
21st August 2008, 19:30
Be patient .. and use edit post.
royk1991
24th August 2008, 21:51
plz help
amp88
24th August 2008, 22:59
plz help
<lots of relevant, good information>
I fell generous today, I gave you alot of information that should get you started on it your self.
...
sun, Mk2 anyone?
Why don't people read these days? If you're not going to put the time in to learn and develop code yourself why should people bend over backwards to help you?
the_angry_angel
24th August 2008, 23:52
plz helpWhilst I know it's possible to create a points based system from the same code as lapper, I personally don't know if it's possible to use lapper with only a modified config (which is what I suspect you want).
I also suspect that many who regularly look at this part of the forum, like myself, haven't really used lapper in any great amount of detail, and thus can't really comment. I know that Gai-Luron occasionally drops by, but not often. Dropping a single, quick question into the lapper thread here (http://www.lfsforum.net/showthread.php?t=25756) might get you an answer quicker.
However, bear in mind that a "points system" is a bit vague and covers a very wide range of things. I know that a lot of stuff is possible with lapper and conjoining scripts, but whether or not that matches what you want to do, is another question.
Also bear in mind that the people who post here are not paid to support you, and if someone knows the answer then they'll respond eventually.
royk1991
25th August 2008, 16:58
ok no problem, sorry for the constant posts and not editing.Well thanks for the help
Dygear
25th August 2008, 18:47
To bring this thread to a close, yes, it can be done.
royk1991
27th August 2008, 00:17
Well before it closes anychance i could be told how to.
No one need to make me the code just tell me how to that would be a good help.
Regards,
Kyle
Robbo01
27th August 2008, 10:18
your never gunna be able to do any of this unless someone gives u the code so the thread may as well be closed
amp88
27th August 2008, 16:05
your never gunna be able to do any of this unless someone gives u the code so the thread may as well be closed
I'm sorry, but that's exactly the kind of attitude that gets people nowhere in the programming forum. What you should have said was "You're not going to get anywhere unless someone gives you the code OR you actually learn to program.
royk1991
28th August 2008, 22:18
just close it
Dygear
29th August 2008, 04:03
When I get around to it I'll post some code, that could be in a week, that could be in a month. It will most likely use the LFSWorldSDK, so I hope your server has PHP on it, and I hope it's PHP5!
royk1991
29th August 2008, 22:54
no problem m8 thanks well my insim is lfslapper 5.173 i think so ull no if it has php i dont know lol well if you get it done dont really know how to thank you to be honest choking for it to get done lol
Dygear
31st August 2008, 07:38
Ok, I will type up the proposal tomorrow tomorrow for you to make sure it's what you want.
jasonmatthews
31st August 2008, 12:32
Wouldn't it just be easier to get the !top list from his lapper? This will give all the info he needs then...
Luke.S
31st August 2008, 14:04
I'm sorry, but that's exactly the kind of attitude that gets people nowhere in the programming forum. What you should have said was "You're not going to get anywhere unless someone gives you the code OR you actually learn to program.
We have an excuse. He was in WS and kept abusing admin and not following rules. So we kicked him out.
royk1991
31st August 2008, 19:05
One thing luke never once abused admin
The reason i was kicked was because i never brought nothing to the team because there was nothing to bring witch is why i want my own sever, And i got kicked for begging for cash off the one person who always gave me it but he also got it back but then they realised it was being constant so they kicked me but the person who was giving it wasn't showing a good example by giving me it ohh almost forgot he was also in the team.
And thanks a million DYGEAR.
Dygear
2nd September 2008, 00:31
Just to be sure, you want this for a website correct? Not in game, via buttons and what not?
royk1991
2nd September 2008, 20:17
its for ingame m8
sinanju
27th January 2009, 22:23
With LFSLapper you can do lists of pb's for all cars (although as BF1's are fastest, they do take up all the top positions), or for each particular car.
See image...
S14 DRIFT
28th January 2009, 00:54
.bmp file format should be banned from these forums. JPEG please. :p
sinanju
28th January 2009, 11:50
Tried saving image in jpeg first, but MSPaint destroyed image too much to read. Ditto for gif. And png was even bigger file size.
Feffe85
28th January 2009, 11:59
.bmp file format should be banned from these forums. JPEG please. :p
bmp has superior imagequality, so why should it?
sry for offtopic...
Whiskey
28th January 2009, 14:45
bmp has superior imagequality, so why should it?
sry for offtopic...
Because bmp has an awfull filesize while jpg has a good balance between quality and size.
If you want to share a full quality image (mp) you always can use rar's.
S14 DRIFT
28th January 2009, 15:42
bmp has superior imagequality, so why should it?
sry for offtopic...
Because if you save as a .bmp it's about 2mb, when you JPEG it is around 200kbs which is much nicer both for the uploader and for the viewer. :p
Or use photoshop and save it as quality 12 JPEG, can't see much of a difference over .bmp then. :D
Silox
28th January 2009, 16:20
or use photoshop and save it as quality 12 jpeg, can't see much of a difference over .bmp then. :d
+1
sinanju
29th January 2009, 12:35
Regardless of file type used, my image was just to show that Lapper will do lists of PB's (for each driver ONLY on that server, and only on the current track), and with a bit of simple coding (I managed it!), you can set buttons to pick the particular car you want to see times for.
With a bit of additional work, you could probably set up buttons for particular classes of cars (e.g FWD, RWD, etc).
And I only copied that particular screen dump, as it's one of the few where I lead the pack!
PS Thinking about it, it's probably possible to put in extra buttons to choose the tracks (incl Reverse) too. Must give that some thought.
Feffe85
30th January 2009, 09:58
Because bmp has an awfull filesize while jpg has a good balance between quality and size.
If you want to share a full quality image (mp) you always can use rar's.
rather then saying that jpg has a good balance i would just tell someone to use png.. and yes, its true that bmp is big, but its also alone to not destroy image quality :)
Because if you save as a .bmp it's about 2mb, when you JPEG it is around 200kbs which is much nicer both for the uploader and for the viewer. :p
Or use photoshop and save it as quality 12 JPEG, can't see much of a difference over .bmp then. :D
true :) but i rather sacrifice some bandwidth with a large file, than having a pixelated image being downloaded in 2 secs :/
but we're all right in a way so :P
OT: Happy to see that u made it work out :)
S14 DRIFT
30th January 2009, 13:46
I'm going to pioneer a new file format that has the quality of a BMP and the size of a JPEG. Or I'm gunna program the compression thing from Obe Dobe shop (New name for Adobe Photoshop according to my mates brother!) into Paint.
dougie-lampkin
30th January 2009, 14:25
Actually, the JPG compression in Windows 7 is far improved from previous versions. Haven't tried paint yet, but using Snipping Tool (Which takes screenshots or portions of screenshots), JPG quality is fine :)
I don't know why they don't just ask Adobe nicely how to save half-decent JPGs :shrug:
JO53PHS
30th January 2009, 15:37
I wish that MS would just scrap paint and replace it with something vaguely decent, of Paint.Net sort of quality. Surely it can't be that hard to make something that allows you to paint with Antialiasing and save pictures with out destroying the image quality :shrug:
(I dunno what they've done in Windoze 7)
DarkTimes
30th January 2009, 18:03
I don't know why they don't just ask Adobe nicely how to save half-decent JPGs :shrug:It's 'Not invented here (http://en.wikipedia.org/wiki/Not_Invented_Here)' syndrome, and Microsoft suffer from it badly. :)
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.