The online racing simulator
Searching in All forums
(970 results)
sinanju
S3 licensed
For someone who's currently showing as having Zero miles, not sure you'd notice or appreciate any difference.
sinanju
S3 licensed
The way I did it (which is very long winded) was to set up Zones, e.g.


<?php 
  RegisterZoneAction
"WE2X" , -348, -351PN1,"" );
  
RegisterZoneAction"WE2X" , -388, -351PN2,"" );
  
RegisterZoneAction"WE2X" , -390, -363PN2,"" );
  
RegisterZoneAction"WE2X" , -397, -358PN2,"" );
?>

Then make buttons for each zone.

Once you entered the zone, then button would appear with text.

In actual fact all I did, was delete some text, move other text up, show new text, and change text colours.

I moved text within a defined area - a button background called Sin'rs PACE NOTES



There's nothing to stop you moving text around the screen when going from one zone (or node) to another. Probably fairly easy within a pit lane, as per the example video you have, as it's a constricted space. You'd have to use zones there, as if you used nodes, anyone on track crossing these nodes would trigger the buttons to appear.
sinanju
S3 licensed
Quote from skorzz :...I also want to know the difference between catchevent and normal event...

Events are in the main LFSLapper.lpr file, but CatchEvents are used in additional scripts - sort of append these additional scripts to main file. Helps to keep things manageable.
sinanju
S3 licensed
They're not "3D", just text labels/buttons made in lapper that use nodes/zones to trigger the buttons.

I did something a while ago with pace notes ...



8 years ago. Scary!
sinanju
S3 licensed
Quote from zeeaq :Thanks for sharing this. Is there no addon to get that pitboard-like functionality for clients, regardless of what the server runs (or doesn't run)?

For lapper, you need to connect a host running lapper to connect to the LFS host.

Before LFS made it compulsory to use their hosts, I used to rent a server, and the hoster set things up for me.

Because I don't have a clue how to do that now, I don't run a full time server anymore.
sinanju
S3 licensed
If you went on a server that ran LFSLapper ("lapper") you might get something like ...


That's a Top table, so will only give you your best times for all laps completed, but there is a "pitboard" in lapper too, sometimes used which would be slightly better ...

sinanju
S3 licensed
Please keep SHIFT-U edit.

When I'm making layouts, lots of times I'll drive track I've made, save the replay, then watch it to see if objects should be added/deleted/moved - especially marker boards, or edit a barrier type that should be different, do something behind the barrier, etc. Things that don't change track boundaries, so my vehicle can still follow same route without going OOS. Then I can make changes at a specific place, then replay, make further changes if required, and move on to another part of the layout ... wash, rinse, repeat.
LA1 Symmetry Speed Trial
sinanju
S3 licensed


Attached layout is more basic than the image, but exactly same track layout still with turn signage.

sinanju
S3 licensed
Quote from Drifteris :....

I get a 'replay OOS error' when I try to play both of your files.

I'm using 0.7D44.
LA1 Brisbane
sinanju
S3 licensed
A Layout on the Large Area, with 2 routes; Standard (Long) and Sprint.





sinanju
S3 licensed
This was something I did in lapper, although you did have to press a button to get results.


1st pane = Top Times / 2nd pane = Own Top Times / 3rd pane = Top Drift Scores

Don't know how it would work with mods, though I expect it would just lump any and all mods in the one line, and give you the fastest time, score, for 'mod'.
LA1 Pau Arnos
sinanju
S3 licensed
Another layout based on real circuit, although doing my layout by eye didn't quite match the real thing ...



LA1 Los Angles
sinanju
S3 licensed
A layout I made on the Large Area, which is just shy of 4.6 miles / 7.4 km overall.


I was going for a symmetrical vibe in my design (which is why I chose that particular layout name), with all 2,400 objects placed by hand.


Start / Finish


BLY1 Sandell
sinanju
S3 licensed
Layout I made a while ago.

The eagle eyed amongst you may notice some very subtle tweaks that I've made since I made the video and took the screenies, although the track layout is exactly the same.





Because of the colouring, and the lighting, some of the turns can catch you out a bit.
LA1 Pistolero
sinanju
S3 licensed
Short, and bit fiddly layout on the Large layout area.

Track layout



Start / Finish


sinanju
S3 licensed
Start with a S1 license, then as and when you can afford a bit more, upgrade to a S2 or S3 license.

You can upgrade in stages rather than go for a S3 license right away.
sinanju
S3 licensed
If it's any use, this is (part of) the code I use in my Drift Meter script:


<?php 
CatchEvent OnDriftScore
$userName # This is the section for displaying the Drift Meter and Drift Messages

    
$AngleVelocity GetCurrentPlayerVar"AngleVelocity" );

     IF( 
$AngleVelocity )

    
THEN
        $AngleVelocity 
= -$AngleVelocity;

        
SetCurrentPlayerVar("Angle_Reverse",$AngleVelocity);

        
openPrivButton"driftmeter_angle",$DMorigL+1,$DMorigT+13,10,12,3,-1,64,langEngine"%{driftmeter_driftanglerevbox}%" GetCurrentPlayerVar"Angle_Reverse")));

    ELSE

        
openPrivButton"driftmeter_angle",$DMorigL+1,$DMorigT+14,10,12,3,-1,64,langEngine"%{driftmeter_driftanglebox}%" $AngleVelocity ));

    ENDIF

EndCatchEvent
?>


sinanju
S3 licensed
And the overall length of track ...

LA1_Sharky Park
sinanju
S3 licensed
For those that might like to see themselves driving round the outline ...

sinanju
S3 licensed
I like the vehicle model, but the hand movements are all wrong. Looks like a crab holding a stick rather than a hand gripping a steering wheel. And very strange when you actually turn the car.
sinanju
S3 licensed
Quote from tumes925semut :...And if i use "$GetAngleInDegree" it gives lots of decimals.

<?php 
    $GetAngleInDegrees 
GetAngle($userName,"-387:-635");
?>


Not quite sure exactly how you could do it with that code without trial and error, but you might be able to round the angle decimals down, such as (for 2 decimal places)

$GetAngleInDegrees = GetAngle($userName,round("-387:-635"),2);

Maybe?
sinanju
S3 licensed
Is there a limit on how many objects can be dealt with at once?

LFS currently has a limit of 30 for grouping together.
sinanju
S3 licensed
Stick it in the Bugs section - HERE
sinanju
S3 licensed
Hi. Hope you don't mind some constructive criticism.

You've put quite a number of objects on the road - specifically the start lights and arrow markers.

Things that can cause injuries in real life shouldn't be on a track. I'd put the lights behind the armco barrier, or something else, if available.

The marker boards, which in real life are usually made from polystyrene usually wouldn't matter too much, but there's enough 'street furniture' round a track that you can put signs up on lamp posts, street signs, traffic lights, fences, buildings, etc, to keep them out of the way - and usually in better places to see them. You can even make your own poles if needed.

There's a section, just after the start, where there are overhead direction markers that are pointing in wrong direction to where you want drivers to go, so these should be covered to stop any confusion.

Can't say I'm a fan of the very sharp corners you've used, nor the barriers with hard edges just sticking out into the track, as per the barriers for your chicane. Better to round corners into arcs and/or put tyres on outside of barriers.

Finish line. I much prefer when there's an actual finish line of some sort that you can actually see. The line you place to tell LFS where finish is, is invisible, so I tend to use straight coloured chalk lines on ground and/or an overhead banner, which is simple to make with just a pole either side of the road, with a cement wall joining them together.

Tip: If you want to make objects intersect to give better placement, lift and drop objects, and LFS will allow them to 'join'. I use this a lot when I want to make an arc of tyres that look like a solid wall.

I've amended one of your layouts to show what I mean with the points I've raised - see attached.

As far as making layouts, I've only ever done it by hand/eye using the LFS in-game editor, so the more you use it, the easier it gets - evem when using maximum amount of objects.

Feel free to ignore this post if you want Cool
sinanju
S3 licensed
I can't code, but I learned to use LFSLapper, where a guy named Gui-Luron made his underlying code interact with the LFS InSim, which was then fairly easy to change, especially as most of what I was doing was really just amending and adding buttons and labels.

Check out https://www.lfs.net/forum/441-Tutorials for examples, explanations, and scripts.

I would start with the explanations on how to make buttons.

The main script within 'lapper' has very good explanations of what particular parts of the script is doing, and sometimes how to change part of it to get a different result.
FGED GREDG RDFGDR GSFDG