The online racing simulator
Searching in All forums
(970 results)
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?
sinanju
S3 licensed
I've just checked some of my lapper sql database files, and they show track only saved as AU1. No layout name saved.
sinanju
S3 licensed
Due to a reset on my server on xmas eve, drivers were allowed to do 5 laps instead of a single lap. This means that some times were set from rolling starts, so were consequently much quicker than those doing a standing start.

For that reason, I've deleted times set on multiple laps, where these laps were set between 15:30 and 19.40 (gmt), when I reset laps back to one.

This has mainly affected times set by;

LLM.TCLF
DOBBY
EVO D Rernatt
HUGO
Bass8
[MRc]Niko.H
Eddie ITA

Apologies for that, but I'd rather delete these times than make the other 2,500 times that have been set worthless.

I've found where the issue for the reset to 5 laps comes from and if another reset occurs, then reset will always be 1 lap.

I've just reset the server so apologies if you had times up on the top 12 on screen (especially to Google, who had 1st place) as they've now gone.

On the plus side, if you're quick, maybe you can get your time on screen.
sinanju
S3 licensed
Quote from CodeLyoko1 :aside from t2 being utter bullcrap (getting spectated while driving on course)..

Just before Turn 2 (aka "Chigago"), where the tyre wall is, there is a white line. You have to stay in the 'lane' created by line on left, and line of speed humps / green tyres on right. In that 'lane' is a route marker. Miss it and the next route marker you hit (which is just after the turn), kicks you off track.

Everyone has to go thru this marker - all the ones who've recorded a lap (quick or slow), have had to do it.

There's another marker at the "Hammerhead", which also catches people out.
sinanju
S3 licensed
Just for the record, I don't believe in deities or any form of divine celestial supreme being, so I'm incapable of loving any non-existant act of faith.

And as what to call it, some call it 'potato' and some call it 'photatho'; where I come from, we all call it a tattie (as for instance used in the phrase 'tattie howking'). Singular: tattie - plural: tatties.

As long as the person I converse with understands, who cares, as long as we can make chips out of it?

And to any north american reading this, when I say chips, I don't mean crisps, I mean fries. And when I say crisps, I of course mean potato chips. And when I normally talk of potato chips, I'm usually referring to chips made out of potatoes. That's french fry chips, and not potato chip crisps.
sinanju
S3 licensed
Quote from zazcoisa1998 :well, i see a lot of almost copied insims, i mean almost same features with one or two differences.

That's probably because most people want the same thing now.

Remember, this game is quite a few years old now (look at my Join Date - and I was a latecomer!), and its likely that features that people would like to see in an Insim have probably already been done.

Quote from zazcoisa1998 :so you mean that there's no benefits from creating a different insim than those and sell it?

I'm not saying there's no benefits; just don't expect to make any/much money from it.

Rather than worrying just now about the pros and cons of a new insim, make it, put it on a server - both to show people what you've done and for testing, and then come back to the forum and then ask if there's a market for your insim.

HOWEVER!

If you show or tell people about a new feature, be prepared for people to make their own version of that feature - there's a lot of very bright progammers using LFS that can make an insim (look at how many give free advice to budding and existing programmers), and once they've seen something new, there will be nothing to stop them making their own interpretation of that feature.

Even if you manage to sell one copy of your insim, once its in the public domain (ie showing running on a server - which is the very point of an insim) then any new idea is open to being plagiarised. You don't need to see actual code to copy an idea.

I don't want to appear all negative - I am trying to be constructive.

If I could programme (I do scripts using someone else's main code, so don't consider myself a programmer) I'd start by doing an insim with just some of the 'common features' that you talk about in your first post, and show on a server that it works, and is stable. Once you've got to that stage, then think about your additional features, and what to do with them.

At the very least, putting it out there and therefore proving that you can programme in the real world might well be something that you can put on your CV/Resume. That might be where any money might come from.

After all that, if you do decide to do some programming, then good luck.
Last edited by sinanju, . Reason : stupid spelling mistooks
sinanju
S3 licensed
Quote from sinanju :...Currently working on the pop-up that appears when you hit 60mph/100kph, but its quite a bit of work...

Turned out to be bit less work than I thought, so the script has been re-written so that you are asked when you are in spectator mode if you want stats to show on acceleration. Click on button to show stats. Join race and stats will show when you hit 0-60mph/0-100kph. Spectate, and message changes to question about closing stats window.

Stats now only shown to driver - previously everyone saw them - so now if you're mid-lap, someone else's stats won't pop up on your screen when they're just starting their lap.

Only quickly tested by myself, and as I only see what I expect it to do, may have missed something, or it may have a bug.

Hopefully I won't get complaints now about an extra button showing in the spectate screen.
sinanju
S3 licensed
Quote from amp88 :.....et al.....

Excellent riposte!

Seems I'm going to have to revise my estimation of some Glaswegians! And this from someone born in Edinburgh!
sinanju
S3 licensed
The 2 main InSims that I've seen used on servers are LFSLapper (aka lapper) and Aario, which are both free (Aario has a pay for version, but now that EQWorry has 'disappeared' not sure that that version is still available).

There are other Insims around - bit more specialized to use (I think, although I maybe doing them a dis-service), like PRISM, etc.

And as the cruise element of LFS always seem to be having spats and falling out with each other, you sometimes see someone make a cruise insim available for free.

With all these free choices, and not having tens of thousands of server owners, not sure would even be worth it.

And even if you managed to make a sale, what guarantee would you have that it wouldn't be available for free (stolen, hacked, accident) within short time anyway. I mean if Microsoft can't make Windows or Office hack proof, can you make your software such?

As someone who writes add-on scripts for lapper, much better to do it for the challenge, or the experience, or for fun, or for showing originality, or for kudos, or whatever, but NOT for making any money out of it; especially not a living!
sinanju
S3 licensed
Server seems to have reset recently to 5 laps (not sure why, especially when I have it set to 1 lap as default) - I've reset server back to one lap again.

Most of my layouts tend to be for doing a lap, and most of these only 1 driver can start at a time. In some cases this is deliberate - especially where I have a figure of 8 track, and drivers can crash into each other at the intersections!

I think I only have the one layout where I've had it so that 2 people can start side by side, but separated with barriers, and follow 'their' piece of track till they finish on the other drivers start position - as they do in Race of Champions (RoC) events.

I understand what you mean about 'pop-ups'. Some drivers don't want anything to show on their screen that doesn't appear in real life - they want the true immersive experience, and with the work currently going on in LFS on 3d and the 'Rift', that number might increase.

In my defence, so of these pop-ups I find useful (split/sector times, drift scores, etc), some I find add to the experience, which is why I wrote and use my WinnerFlags script, so there's more of a hooray when you finish a race, or my yellow flag system when there's a crash, and some I do just for fun, like the marshalls and other 'people' that can appear at certain points of a circuit or layout and can display semi-serious or silly messages.

Currently working on the pop-up that appears when you hit 60mph/100kph, but its quite a bit of work, and now that I'm working again (after loooonnnnggg period of unemployment), the number of hours I've got spare to work on anything has reduced enormously. On the plus side, I can probably afford to keep my server going for another year now.
FGED GREDG RDFGDR GSFDG