The online racing simulator
Searching in All forums
(968 results)
sinanju
S3 licensed
Quote from Bass-Driver :... We need moderators in this LFSLapper Development section.

Thought I'd ask Devs if you and Yisc[NL] could be moderators for the lapper section Smile
Use your new powers wisely!
sinanju
S3 licensed
Quote from Siikais1 :Hello Sinanju!
who told that i need fully completed twin system?

You did
Quote from Siikais1 :i want to start new Twin system!
But idk where i need to start and how to start ;(

sinanju
S3 licensed
From my viewpoint, it looks like you want more than help. In fact, it sounds like you want someone to provide you with a fully complete working system, without any effort by yourself, and likely, if supplied with a system, you would be looking for ongoing support as well.

The fact you don't even know exactly what file you've to look it, speaks volumes about your likely lack of understanding on how to code lapper, even if you manage to open and read the correct file.

Can you explain why someone should just give you a twin drift system?

Apart from being more competition for getting people on our own servers, what will you, especially as a demo user, be contributing?
sinanju
S3 licensed
Looks like it may be a private or global message, both of which are limited in character length, rather than a button, which has long character length, so best if you split message into 2 lines.

Put the 'You will be banned....' into its own separate message line.
sinanju
S3 licensed
Been a long time since I've seen these messages, but I think it's the private messages in the Event OnNotMatchFlags section.

Put a # (hash) in front of every line that starts privMsg.

If messages disappear after that, then you can leave like that, or delete all lines starting privMsg - don't delete the Event/End Event lines.
Editing standard driftmeter.lpr script to suit your own requirements
sinanju
S3 licensed
If you open the driftmeter.lpr file (any text editor) and look for following 2 buttons -

openPrivButton( "drftscoretext",186,160,9,5,3,-1,0,langEngine( "%{driftmeter_driftscoretext}%" , $LastDriftScore ) );
openPrivButton( "driftcombotext",187,150,9,7,3,-1,0,langEngine( "%{driftmeter_driftcombotext}%" , $DriftScore ) );

drftscoretext is the button that shows your score for current drift - will be overwritten with new score if you do new drift.

driftcombotext is the button that shows your score for the current lap, and will add up and total all your scores for the individual drifts. Resets at start of new lap. Lapper does not save record unless you cross start/finish line.

Try playing around with the button parameters to move/edit buttons to suit.

First number is placement left to right (out of 200), 2nd is placement top to bottom (out of 200), 3rd is width, 4th is height of text, 5th would be spacing between lines of text, 6th is time in seconds for button to stay in view [-1 means always there], and last number refers to background colour of button + text alignment.

More info on button number meanings within standard LFSLapper.lpr file.

If you want to change colour of text within button, then you will have to edit the language file(s), which can be found at bottom of file - for English text, will be under Lang "EN".

Buttons are;
driftmeter_driftscoretext = "^2+ ^7{0}";
driftmeter_driftcombotext = "^7{0}";

The ^2 and ^7 refers to the colours used (I'll let you research within the LFSLapper.lpr file to find colour values), and the {0} refers to the $ var (eg $DriftScore) at the end of the button description line.

Have fun!

PS My keyboard spacebar key is kaput, and you've no idea how long it's taken to write this by CTRL-V spaces between every single word and sentence Smile Hope it was worth the effort.
sinanju
S3 licensed
Any smaller, and I'd never been able to work out what you wanted! Smile

To be honest, I wouldn't have a clue how to do the lights that show the angle.

You'll need to explain what the numbers mean (I assume both numbers represent scores - current drift (shown as O), and total lap score?

Was the original that you copied, done in lapper?
sinanju
S3 licensed
Hi, and welcome to the the world of LFSLapper Smile

The default 'lapper' script (LFSLapper.lpr) has a lot of comments within that explains what the code does, and how to make changes.

For further info, you should also read the changes.txt file that is in the /docs folder.

I would suggest that you read this post about the basics of buttons - HERE

From this, I'd suggest practising on editing the standard 'Welcome' message. If you get comfortable changing this, then you can have a play on moving/resizing/editing the drift scoreboard that you have got working.

As for someone changing the drift scoreboard gui, may help if you could do rough mock-up image of how you want it to look.

I would also suggest doing search within this section of the forum as you will also (eventually) find examples of other drift scoreboard layouts.
sinanju
S3 licensed
You gotta just love it when a demo user posts content showing a track and autocross objects they don't have license for - a paid for one, that is.

Or is it you just don't like using your proper licensed username on the forum? Or maybe you 'borrow' a relatives/friends/neighbours licensed account?

Or maybe you're doing it for someone else who doesn't speak English as well as you do? Or maybe they're painfully shy? Or maybe it's all a mistake, and you have bought a license, but 'demo licensed' under your username won't update.

Was showing https://www.facebook.com/emirhan.pala.108 a good idea?
sinanju
S3 licensed
Read this by Yisc[NL], which explains how to set zones on any track.
sinanju
S3 licensed
Quote from lfsrm :,,,I bet you're a student who are working on his free time or you're unemployed ,,,

I'm just over 10 years away from retiring, and left high school 40 years ago, so not student, and P45 required to hand to next employer as starting next temporary job.
sinanju
S3 licensed
Quote from lfsrm :Don't generalize, rich people are a very tiny minority in these country, computer and other stuff if they are officially imported the government may reduce taxes so the common people can buy one or two due to their importance nowadays, I bet the smartphones you're talking about are only 50$ chinese clone since I see them everywhere here, many people sacrifice money and time just to get normal things that you guys can buy in one day.

Well if we assume the average salary there is about 150 $, a 50$ for the s2 are about 30% of their total monthly income, if in your country you're paid 2500$ do you accept to spend 750$ in one game ?...

Talking of generalising...

I've earned about $5,278 US dollars for 51 weeks - a week shy of 12 months. If you're wondering why I didn't pay tax, its because I only earned one third of amount allowed before tax deducted. And I'm not alone in earning this amount.

And as for chinese cloned phones - most of the ones I saw were iphone 5's with apple logo on back - most people didn't want to put them in cases as it hid the logo. They were quite happy to let me handle them when I showed them my old 4S, and I said I'd like to compare.
Last edited by sinanju, .
sinanju
S3 licensed
Quote from lfsrm :...buying over the internet and spending 1 month worth of salary ( if not 2 ) for a game is a no-no for them...

And yet they have enough money to buy a computer, internet connection, server, wheel. And, from what I saw when I holidayed in Icmeler, in Turkey, a lot of young guys working in bars, restaurants, hotels, and on the beach had more modern smartphones than my 4 year old iphone 4s.
sinanju
S3 licensed
sinanju
S3 licensed
First thing you have to do is hit the blue button 'Preview in Full Editor' under the box you are typing in, and then you will see an area under the part where you type your description that says 'Drag files here'.

You can drag various files into this area - type and size just below the 'Upload / Update' blue button.

I assume you want to put your .lyt file online. If so, that is where you put them.
sinanju
S3 licensed
Have you edited the default_1.ini file yet?
sinanju
S3 licensed
When signed into LFSWorld / My LFSWorld Settings / Pubstat Access tab, then scroll to bottom of window, then click on the 'my account balance' link, it tries take you to www.lfsworld.net/# and then in a bit, you get a 'A page-load time out occurred' message.
Last edited by sinanju, . Reason : whoops; wrong thread!
sinanju
S3 licensed
You can already set up music to play while in car.

Options/Audio

then you have choices of

Music in Setup screens
Music while racing
Music during replays

Pick an ingame Channel (1, 2 or 3) - in this case, Channel basically means which radio station you want playing.

Look at bottom right of screen and you will see a button called Channels - click it, and it takes you to a screen where you can pick music and set music per channel.

Any music you want in there, save as OGG music file in your LFS data/ogg directory.

Easy enough finding mp3 to ogg converter to download.

Or if all that is too much work, play your mp3's on your pc or audio equipment in background while playing LFS.

To be honest, last thing I would want is to have to listen to other peoples music blaring from their cars while racing. I've almost given up watching youtube movies because of the awful music people use as background. Especially true for drift videos.
sinanju
S3 licensed
Some companies that sell the software, and give info...HERE

Google 'video stitch' for further info.
sinanju
S3 licensed
For those whose computer failed the Oculus Rift test, as mine did with i7-3770 CPU / 12 Gb memory / GTX 580 (due to poor processor and graphix card), my pc passed the ValveVR test as 'Ready' (with caveat).



In other words, with pc spec like mine, you may not be able to use the OR, but you may have chance with other VR headset.
sinanju
S3 licensed
I've been struggling testing for few hours with a setup of 3 autox lights all side by side, and set identifiers to 0, 1 and 2.

Took me long time with nothing happening before I thought to actually enable lights first like I was about to start a race.

Once I'd finally got figured that out....

startlightcontrol(5,149,0,1);

to set 1 of the 3 lights to red. This worked.

I realise that you can have multiple start lights with same identifier, and code will work on all identified lights as one.


Got above image by running lapper 3 times, with idents 0,1,2,0,1,2,0,1,2


However, for the next bits I need help.

Can't work out how to enable more than 1 set of lights at a time.

Tried the following in 3 lines, one line after another
startlightcontrol(5,149,0,1);
startlightcontrol(5,149,1,2);
startlightcontrol(5,149,2,8);

All resulted in lapper crashing.

Also.

Tried setting sub to trigger a change in lights (say if green, trigger to amber), but lapper didn't like the vars I put in the sub header. Tried
Sub lights ()
Sub lights ($KeyFlags,$id)
Sub lights ($LightAction,$LightIndex,$LightIndentifier,$LightColor)

but these just resulted in lapper having a fit.

After testing, found that you can use Insim Circles as triggers, but these might be too big in certain circumstances
IF ( $CircleIndex == "1" )
THEN
startlightcontrol (5,149,1,2); # set all ident 1 lights to amber
ENDIF

and you can also use Insim Checkpoints as triggers too, although not sure if lapper can differentiate between one kind of checkpoint and another (eg Finish Line v 1st Checkpoint)

IF ( $Flags == "2" )
THEN
startlightcontrol (5,149,1,8); # set all ident 1 lights to green
ENDIF

although might be possible to fiddle about with IF ($LightColor = n) THEN ... ?

Help!
Last edited by sinanju, . Reason : further testing
sinanju
S3 licensed
What have you called this Event?

Checking LFSLapper.lpr between your V7.030 and V7.031, the only difference I can see is that the explanation for breakdown of using Private Buttons has been copied under the #Action when a new Gapping Info is available# section.

Also, in the managePacket.cs file

Object[96] = "Short Railing"; Object[97] = "Medium Railing"; Object[98] = "Long Railing"; // Not moveable Railing

if (newCfg.varsLapper.DetectHitObject.Contains("All_Railings") && (obh.Index > 95 && obh.Index < 99))

Is this the file that should have these railings changed to Armco?
sinanju
S3 licensed
Thumbs up

Looks like you'll have to change your teamname from Impact to DISCO!
Last edited by sinanju, .
Buttons - Learn how to use them - Advanced (Symbols/Glyphs)
sinanju
S3 licensed
Advanced Button Making - Escape Codes and symbol Glyphs

List of available colours, language Code Pages and Special Characters:


= Colours

As you should already be well aware by now, caret/circumflex (^) in front of a number in a text string will colour the text, e.g. "^1 test" will output test.



openPrivButton( "test_colours",50,70,20,6,6,8,96,"^0 - black%nl%^1 - red%nl%^2 - green%nl%^3 - yellow%nl%^4 - blue%nl%^5 - violet%nl%^6 - cyan%nl%^7 - white%nl%^8 - no color");

= Special Characters

A caret/circumflex in front of certain lower case letters will output special characters.



openPrivButton( "test_characters1",50,70,10,6,6,8,96,"^1^v%nl%^1^d%nl%^1^s%nl%^1^t%nl%^1^a%nl%^1^q%nl%^1^l%nl%^1^r");

For instance, if you want to output a special character such as the hash sign (#) you would use "^h" within your text string.

In truth, most of these special characters are not required to be used in lapper as these symbols appear on a normal keyboard and you can just type the symbols in between quotes and the text will be output as you've typed it. However, some characters are required, such as the single quotation mark. If you try outputting a text string like

openPrivButton( "test_characters2",70,70,50,6,6,8,96,"^1 this string wants to use the "quote" marks");

then lapper will actually output



You would have to use

openPrivButton( "test_characters2",70,70,50,6,6,8,96,"^1 this string wants to use the ^tquote^t marks");

which outputs as



= Code Pages

A caret/circumflex in front of certain upper case letters will change the Code Page (language lookup).

Lapper appears to use Latin 1 as standard for most European languages, but it is possible to use the characters and symbol glyphs as used in other language Code Pages.

For instance, if you want to use some symbol glyphs that you find in the Traditional Chinese Character A1 set, then, with your lapper script open and LFS running;

- In LFS, type "t" to open message window, click on Latin 1, and change to Traditional Chinese, and click OK. Message window should expand down to show all the standard characters, along with a huge number of buttons with numbers/letters and buttons with numbers under the rows of normal Latin text and greyed out buttons.

If these additional characters don't appear, click the triangular up arrow.

Click on the A1 button, and then click the symbol you want to use in your script. This will now appear in the message.

CTRL C (copy) this symbol then go to your lapper script and paste into a button text string. When you do this, the symbol you copied will have changed into different text.

In front of this text, you will have to put the Code Page letter, in this case, ^H (for Traditional Chinese), and then ^9. The ^9 converts any subsequent buttons back to default code page, e.g. Latin 1. If you don't use this, then other buttons appearing after your new button may not show text as expected.

After the ^H^9, put your colour number, e.g. ^1, then the text message you want to display.

It is possible to mix the order of Code Pages / Convert and still have text display properly. Putting colour first will result in grey (no colour) text. However, for bug fixing I would recommend you keep to same convention throughout, as the text strings will make little sense on a quick look.



openPrivButton( "test_characters2",70,70,50,6,6,8,96,"^1 this string wants to uses the ^tquote^t marks");
openPrivButton( "test_characters3",70,76,50,6,6,8,96,"^0^H ¢R ¡ø ¡¹ ¢g - test char 3");
openPrivButton( "test_characters4",70,82,50,6,6,8,96,"^2^H^9 ¢R ¡ø ¡¹ ¢g - test char 4"); # outputs no colour instead of green
openPrivButton( "test_characters5",70,88,50,6,6,8,96,"^H^1 ¢R ¡ø ¡¹ ¢g - test char 5");
openPrivButton( "test_characters6",70,94,50,6,6,8,96,"^H^9^2 ¢R ¡ø ¡¹ ¢g - test char 6");
openPrivButton( "test_characters7",70,100,50,6,6,8,96,"^H^3 ¢R ¡ø ¡¹ ¢g - test char 7^9");

Although in the above examples, the ^H (for Traditional Chinese) works with the symbols I chose, there is no guarantee that all symbols will work for any language choice. I was unable to use some ^J (Japanese) and ^G (Greek) symbols during my limited tests.
Last edited by sinanju, .
sinanju
S3 licensed
Thanks for that.

I thought I'd tried 'TrackSide_Objects' and it hadn't worked, but I've just tried again, and now it does work Tilt My bad.

Railing - That was already in. I just wanted to differentiate between that and the Armco.

Rest of objects are fine.
FGED GREDG RDFGDR GSFDG