The online racing simulator
Searching in All forums
(969 results)
sinanju
S3 licensed
Hi

That's fine. Just thought it would make it easier for everyone.

If anyone's interested, the code i'm using is

Event OnCrossingChecker($userName,$Flags,$Time,$Object,$UserSpeed,$CircleIndex) # Player event
privmsg(getplayervar($userName,"NickName"));
privmsg($Object." Sector split: ".(NumToMSH($Time)));
EndEvent

InSim Checkpoint discrepancies
sinanju
S3 licensed
After reading about, and getting involved in a post by scania regarding making a 2 way RoC course, I thought I'd try making my own autox layout with autox and InSim checkpoints.

If you complete a lap using the normal LFS start position, checkpoints and finish lines, it all works as normal.

However, I'm finding that when I start from a autox start position, cross the InSim checkpoints, then the InSim finish line, there are timing problems.

Issues that I'm having;

Firstly, spawning points from garage are different.

Secondly, there's a huge difference in time (approx 11+ secs) between the LFS timer, and the InSim timer.

Thirdly, in normal autox mode, a timed lap is from green light, to crossing finish line. In InSim timing mode, a timed lap is from green light to crossing normal finish line 2nd time.

My InSim start is half lap from normal start, so you have to do lap and a half to get a finish time.

Anyone else used the InSim checkpoints?

Did you note any discrepancies?

Is this an InSim issue, or an LFS autox issue?

I've loaded a lap on YouTube to show results.



InSim start line is half way round lap.

Used all 3 autox checkpoints and autox finish line, and all 3 InSim checkpoints and InSim finish line on the layout. For video, start position 1 in front of InSim finish line. Originally, I had start position 1 in front of autox finish line, and start postion 2 in front of InSim finish line, but as I'm testing alone, kept them in same position, but changed start position numbers round in edit mode.

I've broken down my observations, especially the timings.

LFS Route = standard checkpoints and finish line
- start position 1 in front of finish line, and start postion 2 in front of InSim finish line
- leave garage and spawn off track. Shift R to start race, spawn on start 1 position
- recorded lap time is from Green light to crossing finish line

InSim Route = InSim checkpoints and InSim finish line
- start position 1 in front of InSim finish line, and start postion 2 in front of autox finish line
- leave garage and spawn on start 1 position in front of InSim finish line
- recorded lap time is from green light at InSim start, crossing LFS start position, crossing InSim finish line, to crossing LFS finish line

Splits -
InSim split LFS split Difference Comment
0:13.74 0:02.18 0:11.56 standing start from green light to crossing start line
0:36.10 0:24.69 0:11.41 cross InSim checkpoint 1
0:59.28 0:47.88 0:12.40 cross InSim checkpoint 2
1:17.50 1:05.82 0:11.68 cross InSim checkpoint 3
1:42.90 1:30.76 0:11.43 cross InSim finish line
2:03.23 1:51.51 0:11.72 cross InSim checkpoint 1 (2nd time)
2:25.91 2:14.52 0:11.39 cross InSim checkpoint 2 (2nd time)

0:59.01 cross normal start line (after half lap)
1:18.37 from green light, crossing normal start line, to LFS checkpoint 1
1:37.80 from checkpoint 1 to crossing checkpoint 2
2:01.13 from checkpoint 2 to crossing checkpoint 3
2:25.32 from checkpoint 3 to crossing LFS finish line

InSim lap time => 1:42.90 - 0:13.74 = 1:29.16 from standing start
LFS lap time => 2:25.32 - 0:59.01 = 1:26.31 from rolling start (at full speed)
sinanju
S3 licensed
Now that I've got it working, and am playing with InSim checkpoints ...

Would it be better rather than having to play about with changing time outputs from numbers, lapper gave you the proper, real time, without having to use NumToMSH?

Using the following event

<?php 
Event OnCrossingChecker
($userName,$Flags,$Time,$Object,$UserSpeed,$CircleIndex)  # Player event
    
privmsg(getplayervar($userName,"NickName"));
    
privmsg("Action: ".$Flags);
    
privmsg("Time: ".$Time);
    
privmsg("Object: ".$Object);
    
privmsg("CircleIndex: ".$CircleIndex);
    
privmsg("Speed: ".$UserSpeed." ".getplayervar($userName,"UnitSpeed"));
EndEvent
?>




gives me a number such as 70210, which I then have to add code, in proper format, to change into a proper time (ie 1m 10.21s).

Not so bad for people who have some experience of lapper, but its complicated when you don't really know it, (or in my case, forget how to use it) and expect things to work without having to delve into code and change it.

Also.

Would be worth adding comment to the !myconfig line in the lfslapper.lpr file - there's nothing to say what it does, and it seems to be hard wired into lapper, as you can search for the function, and find nothing. Maybe comment such as "#function to change language, unit of speed, etc"?
sinanju
S3 licensed
I tried 3 times last night to get this working, each time copying original zip file into new directory, renaming to version number, and changed the admin and superuser text files, and the ini passwork file, and each time the error and the self deleting exe file.

Tried it after getting home from work earlier, doing exactly same as last night, and 3 differences.

AVG didn't send the exe file to its server to check if virus - I forgot to mention that in my earlier post. Probably because it recognised it as same exe it already checked.

Didn't get any error messages on the command prompt.



Now works flawlessly!

I didn't change any .lpr files yesterday or today, so don't understand the illegal character error message.

Anyway, now works, so ok now.

Apologies if this caused you any work to check out Frown
sinanju
S3 licensed
Was going to try play about with this, but I can't get it to start properly.

As soon as I try to run lapper, I get an illegal character error



The lfslapper.lpr file only has 2183 lines, and there's nothing in the error files to tell me which file error refers to - actually, there's nothing in the error files at all to show any problems.

I don't know what order lapper loads the addon files, so can't tell which file is affected.

Once the command prompt finishes (after hundreds of lines telling me of error), lapper goes into Stand by state, then closes. Then the lapper.exe file disappears! Doesn't make its way into the recycle bin - just self deletes!

Not sure if it makes a difference, but due to small size of my C: drive - using a small capacity SSD - I have LFS and lapper loaded on my D: drive. Works for my copy V6 lapper that I use online.

The only things I've changed from default, is to add my username to both admin.txt and superusers.txt, and added password to default_1.ini file.

Any ideas?
sinanju
S3 licensed
Quote from sinanju :I tried it by myself without InSim and it worked ok. LFS just treats it like an AutoX layout, with driver placed in a start position, timed splits when you cross the checkpoints, and a lap time when you cross the finish line.

Quote from scania :no, it wont splits Confused

Just finished trying the layout with normal autox and insim autox checkpoints etc.

Only did the 'normal' part of the track, and everything worked as it should.

Short video on YouTube



Left garage as normal, spawned off track, restarted race to put me on track layout, then did the short lap. During the lap, all 3 checkpoint times appeared, as did the lap time when I finished the lap.

Assuming you can get InSim commands worked out correctly, I see no reason why other side of track won't work either.

I might put together a better course to try this at later date. I'll need to make short LFSLapper script for the InSim checkpoints to go with it, to get it working.
sinanju
S3 licensed
Quote from scania :it won't work for meConfused

I tried it by myself without InSim and it worked ok. LFS just treats it like an AutoX layout, with driver placed in a start position, timed splits when you cross the checkpoints, and a lap time when you cross the finish line.
sinanju
S3 licensed
Managed to find copy of track layout ...

sinanju
S3 licensed
Changing Racon's layout so ImSim checkpoints are used would look like attached.

Put 2 cars on track, then Shift R to start race.

Haven't tested it in either 2 person mode, or with InSim.
sinanju
S3 licensed
Do you have a link to the 2 way ROC track layout?

Looked online, but can't find any.
sinanju
S3 licensed
I haven't tried it (famous words!), but it might be possible using the InSim controls in the AutoX editor.



Using Start Position 1 and the normal checkpoints and finish line from the 'control' menu one way, and Start Position 2 and then Insim checkpoints and finish line from the 'marshall' menu the other way.

Place mobile Start Lights facing in opposite directions, and you should be good to go!

Course, does rely on you using an InSim program to get it working.
sinanju
S3 licensed
Not tried to use any scripts, but the commands.txt file does have

/view save - save any changes made to a custom view

Or maybe the views are saved in the data/views folder. All the car types are listed in there (eg BF1.cvw), although they can't be viewed in notepad.
sinanju
S3 licensed
Look at the join date of the people who replied to your post, and divide the cost of a license by the number of years since they joined.

Considering their longevity of playing the game, does that seem reasonable?

And some of us pay for servers too.
sinanju
S3 licensed
I fail to see why a demo user would want to run a Cruise server.

From what I've seen, you would need to place barriers, signs, and lines at the very least to make a 2 way road system on Blackwood, which you can't do as a demo user.

So why do you want such a system?

And why, considering the huge amount of work and effort that goes into producing a working cruise system, should anyone give it away for free? Especially to demo users who contribute nothing in the way of income for the game developers, who licenced users rely on to keep - at the very, very least - the master server and this forum going.
sinanju
S3 licensed
Alternatively, make spectating free.

This will allow lower licence holders, including demo, to see what they could get if they upgrade, and if good racing, what kind of events they could be involved in.

However!!
Don't give them messaging rights!
Can just imagine load of users just coming on to spam and swear.
sinanju
S3 licensed
Make sure when picking track that you pick the X configuration for Autocross.

sinanju
S3 licensed
There's a whole section on the forum on car skins - https://www.lfs.net/forum/29-Car-Skins

Especially the "Threads in Skin help/tools/templates" section.

You'll want the wire kits.

Edit - and I forgot about Master Skinnerz - http://www.barkingpig.org/msz/
Last edited by sinanju, .
sinanju
S3 licensed
Have you read the very first part of the message when you land on the "What is LFS?" page?

sinanju
S3 licensed
Remembered, and found, an old post from last year by cargame.nl that says you won't have any luck...

https://www.lfs.net/forum/post/1929080#post1929080
sinanju
S3 licensed
I assume you've opened the addonsused.lpr file, and added the line

include( "./team_chat.lpr");

and you're using the command

!tc

to start chatting with your team?

If not working, then best bet would be to look in your error log file

default/logs

to see if it gives a clue to where it's going wrong.
sinanju
S3 licensed
Quote from seksen :In terms of the development of the game I think that a few ads that will be placed on the site will not hurt anyone.

And more demo users buying a licence would hurt less than adverts that most people may never see due to using ad blockers.

More licenses more likely to be profitable for developers than hoping for thousands of users to click on an advert and get a small percentage of 1p / 1c per click.
sinanju
S3 licensed
Do we assume that you're using modern pc running windows?

If so, LFS should be saved under either C:\ or C:\Games
sinanju
S3 licensed
The amount of grip is immaterial really, as the concrete surface grip will be exactly the same for everyone.

And as LFS doesn't simulate the road surface getting more grip as more rubber goes down, no one can gain a time advantage whether they're first to race or 100th.

Makes it fair for everyone Smile
sinanju
S3 licensed
Discovering LFS on a computer disk when I bought a PC magazine over a dozen years ago. Loaded it, and spent lot of time in single player mode. Didn't have wheel in these days, so all keyboard driving.

First time I tried online, joined ongoing race at South City, came out of pits wondering why I couldn't go very fast, and got in way of leaders and likely spoilt their race (belated apologies!). I joined race in a car I hadn't tried before, and didn't realise the car had a speed limiter. Promptly left, and took while before I braved going online again.

Did a lot of hot lapping at one time setting times with keyboard. Tried with wheel since then to try improve times, and find can't get anywhere near these times I set.
sinanju
S3 licensed
Using Draggo's file and Yisc[NL]'s script, got this working.

Using Gai-Luron's sample lines, I got failures.

My steps;

Saved unzipped files into temp folder on my desktop.

Ran command prompt as administrator.

Changed directory till I was in my temp folder (C:\Users\Sinanju\Desktop\temp>), then input following into cmd window -
ConvWr.exe -l sinanju -p [my pass here] -c coef -mlc maxLapCoef -o trackInfo.cfg

This came back with error message -
TrackInfo maker version 1.3 by Gai-Luron
Small change by FreeScirocco: RO / WE 2.0 / BL 2.0 support
Retreiving infos
coef
Identification is required - https://www.lfs.net/forum/thread/14480
.The following error occurred:
Identification is required - https://www.lfs.net/forum/thread/14480
ConvWr
at conv.Program.conv(String user, String pass, String idk, String scoef, String smlcoef, String outputFile)
at conv.Program.Main(String[] args)
Void conv(System.String, System.String, System.String, System.String, System.String, System.String)

Then tried various other scripts -
ConvWr.exe -l sinanju -p [my pubstat here] -c coef -mlc maxLapCoef -o trackInfo.cfg

ConvWr.exe -l [my pubstat here] -c coef -mlc maxLapCoef -o trackInfo.cfg

ConvWr.exe [my pubstat here] -c coef -mlc maxLapCoef -o trackInfo.cfg

ConvWr.exe -l [my pubstat here] -p [my pass here] -c coef -mlc maxLapCoef -o trackInfo.cfg

These all failed.

Then used Yisc[NL]'s script (changed with my pubstat)

ConvWr.exe -i [my pubstat here] -o trackInfo.cfg -c 100.5:102 -mlc 200

Worked!

Message -
TrackInfo maker version 1.3 by Gai-Luron
Small change by FreeScirocco: RO / WE 2.0 / BL 2.0 support
Retreiving infos
100.5:102
1 150 FBM 30950 0 0 64870 513 sl10

etc, etc

This saved all info in trackInfo.cfg file

E.g.
track = BL1
len = 3.3
car = XRT
MaxLapTime = 2.46.60
split1 = 0.27.10:0.27.50
split2 = 0.59.70:1.00.59
lapTime = 1.23.71:1.24.96

Tried different criteria -
ConvWr.exe -i [my pubstat here] -o trackInfo.cfg -c 100.5:101:101.5 -mlc 180

This worked too, and output trackInfo.cfg file

E.g.
track = BL1
len = 3.3
car = XRT
MaxLapTime = 2.29.94
split1 = 0.27.10:0.27.23:0.27.37
split2 = 0.59.70:1.00.00:1.00.30
lapTime = 1.23.71:1.24.13:1.24.54

Many thanks to you both Smile

My output file using 2nd criteria (WR x 180%) attached. Change .txt to .cfg to use.
FGED GREDG RDFGDR GSFDG