The online racing simulator
Searching in All forums
(968 results)
sinanju
S3 licensed
If you have any LFSLapper comments, requests, etc., then please put these in the LFSLapper section of the forum, which can be found HERE.

Look HERE and HERE for some pointers and code on launch/drag system.
sinanju
S3 licensed
Quote from MADNJPN :I meant to show show 0-100 Time seperately and 0-160 separately, it show same time $kmh_mph_conversion = ($AccelerationEndSpeedMph x 1.6) and there is something wrong with this I cant get it working

Been doing some testing, and it would appear that you can't have 2 different end speeds, even if they're kmh and mph.

Lapper takes the whichever time is the longest as the $acceleration time, which you can't change, and will give you that time for both kmh and mph.
sinanju
S3 licensed
whoops, hit wrong button!
Last edited by sinanju, . Reason : Hit wrong button!
sinanju
S3 licensed
Quote from MADNJPN :I meant to show show 0-100 Time seperately and 0-160 separately, it show same time $kmh_mph_conversion = ($AccelerationEndSpeedMph x 1.6) and there is something wrong with this I cant get it working

Don't think this has changed any from versions 5 to 6, so may have look at.
sinanju
S3 licensed
Quote from MADNJPN :Thank you! I'll try that, btw I was trying to add Event's but I don't know where to find them, I mean for example Event OnAcceleration where can I find all these commands? because I'm new in this ...

You will find them all within the lfslapper.lpr file - search for 'Event On'.

You are using a very old version of lapper, which has had a lot of changes in years since, and it may be hard to get forum support for it unless someone still using it, or unless the bit you want help on hasn't changed much.

If you want newer version, look HERE.

In the newer version, there is a directory called "doc". Within it, is a file called 'Lapper Events.txt'.

This lists all the events that are available.

An 'event' just means that when the specified event happens, you can have a bit of code activate. For instance, I have an event 'On RaceEnd', and the code that activates and shows 'flags' with the first few drivers names on them, by position - see HERE for what I mean.

There is also another file called 'player Vars.txt', which lists all the player variables that can be 'collected' and shown, such as split/sector times, pit details, laps, acceleration, etc.
sinanju
S3 licensed
You'll have to use both the $AccelerationEndSpeed (which shows speed in km/h) and $AccelerationEndSpeedMph (which shows speed in mph), but show the answer for the mph speed in km/h.

160km/h is approx 100mph, therefore change the 60 in
$AccelerationEndSpeedMph = 60;
to
100

Then try the following code;

Add the following line
$kmh_mph_conversion = ($AccelerationEndSpeedMph x 1.6)

Change existing line
Event OnAcceleration()
privMsg( "^8Accelerated in ^3" . $AccelerationTime . "^8 seconds to " . $AccelerationEndSpeed . " " . $UnitSpeed ."!" );
EndEvent

to

Event OnAcceleration()
privMsg( "^8Accelerated in ^3" . $AccelerationTime . "^8 seconds to " . $AccelerationEndSpeed . " " . $UnitSpeed ."!" );
privMsg( "^8Accelerated in ^3" . $AccelerationTime . "^8 seconds to " . $kmh_mph_conversion . " km/h" );
EndEvent

It's very early in the morning, and I'm tired, and I hope the above code works. If not, you should hopefully understand what I'm trying to do, and fix any errors yourself.
sinanju
S3 licensed
For me, it's usually because of either one of the following 2 possibilities -
  • wrong / no password in default.ini file
  • on local server (my home computer), I forgot to type /insim 29999 when in-game
.
Last edited by sinanju, . Reason : Too many 9's!
sinanju
S3 licensed
Are you talking about the addonused.lpr file, or the lfslapper.lpr file?

If you have a newer version of lapper, then they may be in:-

lfslapper.lpr - bin\defaultfiles\workingdir\ (search $DefaultTopCar)

addonused.lpr - bin\defaultfiles\workingdir\includes\

You can use a text editor (PSPad, Notepad, etc) to open the files
sinanju
S3 licensed
I think he means from the bottom up. In other words, written from scratch.

Considering how much time and effort would be needed, and we already have LFSLapper, Aario, Prism, etc., why would anyone even want to bother, especially just for 1 user.

People asking for a "coder" probably think its like building a mock website; that with a few hours work, the coder can make the exact program required doing exactly what they asked for.

People asking for specific things they want the code to do, should try making an exact specific list (a proper design brief), with examples, including diagrams (this is likely to take hours by itself, although these same people probably think its a 2 minute job). And if they then multiply each individual item wanted by a few days worth of coding per item, they might get some idea of amount of effort required.

They're likely to offer coder 10 euros/dollars for whole project.

So if the coding project takes few months, then if 120 days effort x 8 hours per day x 1 cent per hour = 9.60 euros/dollars -see how generous they are willing to be!

In other words, to all these asking for someone to code something for them that probably doesn't yet exist - good luck

Edit: took me longer to write this than I thought - and someone beat me to it!
sinanju
S3 licensed
Please do not repeat posts, as it makes it appear as if the first answers you got weren't to your liking.

As for your request - try LFSLapper - details given on your other post.
sinanju
S3 licensed
Use LFSLapper - it will give give times for splits, sectors and laps on any of the LFS normal tracks (not open configs) without playing with any configuration, except normal ip's, passwords, etc.

Copy of 'lapper' can be found HERE

Lapper doesn't care what kind of license you have, and there's a whole section on this forum HERE dedicated to the program.

Lapper also comes with a 'pitboard', made by one of the lapper coders, which is an add-on that has to be configured slightly (finding the right file and removing a #) - I loaded something onto YouTube HERE that shows you it in action (need to watch from about half way thru - Pitboard on left of screen).
sinanju
S3 licensed
Sorry, but I'm unlikely to make them public (I may have in the past, but too lazy to look) as I use them as a unique 'selling point' for people joining my server.

This even though some people think them stupid and feel they interfere with their enjoyment of LFS. To which I say (insert big wet raspberry noise here).
sinanju
S3 licensed
I'm glad you like the mod, and even happier that it works for you on newer versions of LFS.

However, I have absolutely no idea why it wouldn't work on earlier versions, but there must be something in the underlying LFSLapper code that doesn't connect with earlier version of LFS.

'dawesdust_12s says there was a change in the Insim between the different LFS versions - I wouldn't have a clue about that, what these changes were, and how they changed things.

I'm not a programmer - I can use lapper to open and close buttons, which are what the 'snow flakes' are. There's even a limitation in that you are only able to have a finite number of buttons open at one time (200?), so if you have any other lapper things open (like Yisc's Pitboard for instance), then bits of these other things can start disappearing.

I only did the coding at the time as I had been unemployed for a while, and was bored. Now I'm working, and other things are also happening in my life (some positive, some really not), I don't have the time or commitment to do anything else just now.

Even if I did, couldn't, as wouldn't know where to start.
sinanju
S3 licensed
You really think the Bernie would let anyone near a race weekend without paying him handsomely?

I use him (Sniper - not Bernie!) and his buddies quite a lot at South City.

Some of them are currently in use in my current server layout (Sin'rs Top Gear [shameless plug]).
sinanju
S3 licensed
Here's one I sometimes use on my server.....
.....along with other personnel.....
sinanju
S3 licensed
Whatever kind of text editor you use (Notepad, PSPad, etc), make sure it will save text (encode) as UTF-8 and not ANSI.

Assuming the letters you want to use are part of the UTF-8 character range you should get the correct characters.
sinanju
S3 licensed
There you go.

Sorry I don't have anything later, but I tend to make changes to them and don't bother to keep a backup of the zip file, as it was always (well, used to be) available on this forum.
sinanju
S3 licensed
Best I could do is V6.010, if that's any good?
FGED GREDG RDFGDR GSFDG