The online racing simulator
LFSLapper insim4 Release
(2101 posts, closed, started )
Andy,

Here is our start_all.cmd file. use it for a example.
We changed the names from the LFS Dedi in LFS1.exe , LFS2.exe to see more easy witch server is running.
Server 1 and 2 are on S2 and 3 and 4 are Demo.

cd C:\Program Files\LFS\Server1
start LFS1.exe /cfg=setup.cfg
cd "C:\Program Files\LFS\LFSLapper5.52 server 1\bin"
start NetStartDefault.bat"

cd C:\Program Files\LFS\Server2
start LFS2.exe /cfg=setup.cfg
cd "C:\Program Files\LFS\LFSLapper5.52 server 2\bin"
start NetStartDefault.bat"

cd C:\Program Files\LFS\Server3
start LFS3.exe /cfg=setup.cfg
cd "C:\Program Files\LFS\LFSLapper5.52 server 3\bin"
start NetStartDefault.bat"
cd "C:\Program Files\LFS\LFSSC-0[1].3.2.0\LFSSC demo 1"
start LFSServerControl.exe

cd C:\Program Files\LFS\Server4
start LFS4.exe /cfg=setup.cfg
cd "C:\Program Files\LFS\LFSLapper5.52 server 4\bin"
start NetStartDefault.bat"
cd "C:\Program Files\LFS\LFSSC-0[1].3.2.0\LFSSC demo 2"
start LFSServerControl2.exe
Hello,

New beta version.

Warning Change in button syntax. Sorry but it's so complicated to make this powerfull and easy to use ^^

Quote :+---------------------------+
|Changes from v5.62 to 5.63 |
+---------------------------+
1. Check for bad words or swearwords ( Easy dev idea from Andy King, thank's )
SwearWordsList : is a list of bad words
- if you prefix with & , You can indicate a file name who contain list of swearWords, one word per line
- if you do not prefix, You can list word separated with ,
Syntax :
SwearWordsList = &./your_file;
or
SwearWordsList = word1,word2,...,wordn;

SwearWordsMax : Max allowed bad words / session
SwearWordsAction1 : is an action to do when user write bad words before reach SwearWordsMax
SwearWordsAction2 : is an action to do when user write bad words when reach SwearWordsMax

Variable avaiable on SwearWordsAction1 and SwearWordsAction2
{Nickname} - Nickname of driver
{Username} - Username of driver
{SwearWordsMax} = Max allowed swearwords
{SwearWordsRem} = Remaining retry before SwearWordsAction2

2. Remove gcbut, deprecated

3. Add to pbut one argument (Optionnal). this is a line command Lapper Do when you click on this button.
this command line must be quoted.
/pbut id,ids_to_close,L,T,W,H,I,Time,one line message,"command"

4. /cpbut is now a Lapper command to close one Button.
/cpbut id_buttontoclose&...&id_lastbuttonto close


Gai-Luron
Quote from Gai-Luron :
Your WR file is corrupted because
1 - Your pubstatIDK is wrong

Am using it for ages, so that's not very likely, I guess.

Quote from Gai-Luron : 2 - LFSworld is down

Hmm, might be, but shouldn't it have happened then to both servers?

Quote from Gai-Luron : 3 - WR file in lfsworld was changed ( i don't think )

Me neither..

BTW: Server a mentiones "Loading WR: ok" at startup, the other one" "Loading WR: WR not loaded".
BTW2: Both pb.txt files have "USERNAME 02" as their first entry at the moment (with nog further data behind it, the next username is follwing immedialtely after that name).

Does this perhaps point in any of the mentioned directions?

Greetz, Jos.
Hello

USERNAME02 it's normal at begin of file!

Have you take a look about spb relative to in shift+i. If WR are not loaded and you set this relative to WR. if your 2 server start at same time, PUBSTAT are not responding for 5 second. Try to start the two server at at less 10 second of interval


Gai-Luron
Quote from Gai-Luron :Try to start the two server at at less 10 second of interval

Guess I accidently did this just a few minutes ago. They both got a "Ok" at that moment. Anyway, good to know for the future..
Thanks for the quick info!
Hi Tim,
THANKYOU - got that working, got 2 more problems.

1) I need to delay the batch file from starting all servers within a split second as WR needs at least 5 seconds between calls less its not loaded.

2) Want to minimise LFS and Lapper DOS windows to taskbar.

Thanks for your help
so can anyone help me to get the drifting scoring system to work please?
Quote from Andy King :Hi Tim,
THANKYOU - got that working, got 2 more problems.

1) I need to delay the batch file from starting all servers within a split second as WR needs at least 5 seconds between calls less its not loaded.

2) Want to minimise LFS and Lapper DOS windows to taskbar.

Thanks for your help

Andy,

For the first one i dont have a solution yet . But there was a command in DOS called SLEEP maybe it works ( not tryed yet).

For the second question you can use start /min /low NETStartDefault.bat for example.
#859 - STF
he can use the sleep command if he has the resource kit installed from microsoft, but since it is not default on all computers, he can resort to a more unorthodox way.. ping an invalid host, with a 5 second timeout.
ping 1.2.3.4 -n 1 -w 5000 >nul
Quote from STF :he can use the sleep command if he has the resource kit installed from microsoft, but since it is not default on all computers, he can resort to a more unorthodox way.. ping an invalid host, with a 5 second timeout.
ping 1.2.3.4 -n 1 -w 5000 >nul

Thanks STF it works
Hi All,

Mine doesn't work using -w 5000,

If this was my bat file where would I add the -w 5000

cd C:\Program Files\LFS\Server2
start LFS2.exe /cfg=setup.cfg
cd "C:\Program Files\LFS\LFSLapper5.52 server 2\bin"
start NetStartDefault.bat"

GAI - Thanks for adding Agreement and Swear Words to Lapper - ITS FANTASTIC

On a Tatally different subject does anyone know where I can get the Logitech G15's software to show SimGauges in LCD Screen.

Thanks for any help
Andy,

You can download SLEEP.EXE from http://www.computerhope.com/dutil.htm and copy it to /windows/system32.

Example 1:
cd "D:\Live For Speed\LFSLapper5.62 server1\bin"
start /min /low NETStartDefault.bat
sleep 5
cd "D:\Live For Speed\LFSLapper5.62 server2\bin"
start /min /low NETStartDefault.bat

Or you can use ping 1.2.3.4 -n 1 -w 5000 >nul

Example 2:
cd "D:\Live For Speed\LFSLapper5.62 server1\bin"
start /min /low NETStartDefault.bat
ping 1.2.3.4 -n 1 -w 5000 >nul
cd "D:\Live For Speed\LFSLapper5.62 server2\bin"
start /min /low NETStartDefault.bat
Hi Tim,
Thanks matey all working brilliantly, all servers/lappers start with Win2003 and all minimised now to taskbar. I have tried so many times to do that, see Forums help lol.

Right next project is to get my Logitech G15 keyboards LCD on WinXP x64 OS displaying some LFS data with low fuel sound amongs other bits. No one seems to have done anything for this OS.

Thanks again Tim

GAI heres a wish:
Edited because Failure sorted my wish out lol
Please implement a voting system similar to ServerControls to stop races being restarted 8 laps into a 10 lap race.
@Gai-Luron : Your Lapper version 5.63 works SUPER
Thanks a lot , well done

Maybe you can add a part to stop voting for a restart after 2 or 3 lap's .
That will be great.
OK, here's another try.

Please please please,

Make the {username} variable available in trackinfo.cfg.

I am sure this can be done in a minute.

Thank you very much in advance.

@Andy:
While driving, click on kick/ban next to a username on the connection list and just press enter.
Takes 2 seconds, and usually i can carry on driving without any problem.
Quote from FM-Failure :
...
Make the {username} variable available in trackinfo.cfg.
...

Done , Released in the next version, soon

Gai-Luron
Quote from FM-Failure :@Andy:
While driving, click on kick/ban next to a username on the connection list and just press enter.
Takes 2 seconds, and usually i can carry on driving without any problem.

Thanks Failure I had forgotten all about the Connection List.

Tim,
Just come across a problem, I have moved my servers onto a partition called F:\LFS Servers and the batch file won't start them. Its saying cannot find LFS.exe even though the path is correct.
-
(Andy King) DELETED by Andy King
Thank you Gai!

Andy,
try it without spaces in the path, like F:\LFSservers
Maybe that helps.
Andy,

Just add a new line F: or move the batch file to the F Drive

Example :
F:
cd "F:\Live For Speed\LFSLapper5.62 server1\bin"
start /min /low NETStartDefault.bat
sleep 5
cd "F:\Live For Speed\LFSLapper5.62 server2\bin"
start /min /low NETStartDefault.bat
Hello,

New test version : 6.3.1

Changes:
Quote :
+----------------------------+
|Changes from v5.62 to 5.631 |
+----------------------------+
1. Add InRaceLapsVoteMinMax = Laps between Vote are allowed on race
Exemple:
InRaceLapsVoteMinMax = 0-0 Vote are never allowed
InRaceLapsVoteMinMax = -5 Vote allowed between first lap and 5 lap
InRaceLapsVoteMinMax = 2- Vote allowed between laps 2 and end of race
InRaceLapsVoteMinMax = - Vote always allowed

2. Add {Username} var in trackinfo.cfg

3. Add AutoRestartRaceMn = Minute between End of a race and an automatic restart
AutoRestartRaceMn = 0; No restart

4. Add Automatic rotation for car and or track
Rotation work only if AutoRestartRaceMn is set

EnableRotation = Allow or diallow rotation for track and/or car
Values : true or false
RotateTracks = track to rotate separated by ','
RotateCars = cars to rotate separated by ',' Use LFS definition for car. , if not set, no car rotation
RotateEveryNbRaces = Number of race to do before rotation


Thank's for testing

Gai-Luron
YOUR A STAR
THANKYOU


Hi Gai,
Can you add a 2 variables
1) Send a message (editable) that allows us to notify racers when Voting is not allowed.
2) Each time a Racer Votes Restart a private message is sent (editable) saying "Voting System Disabled"

Would be even better if we could have a majority voting system. Say 20 drivers are racing and I set 75% Majority in cfg then 15 drivers have to vote RESTART to restart a race. Perhaps with a meter showing how many votes are required and how many have voted and how many need to vote to restart the race. I have seen this at Conedodgers and it seems to be the best system.

After testing v5.631 I have found that once Voting has been stopped if you press Shift+R it shows "RESTARTING 3" then it disapears. In message area it shows I [AKM] Andy voted Restart and then underneath Vote Cancelled. Seems lapper is not stopping the system message as if its not cancelling it quick enough.

Thanks again for all your dedication.
Haven't got any time for LFS at the moment but still want to thank you for all those adjustments for an already great program.
Hello,

Try new system for voting

Quote :
+----------------------------+
|Changes from v5.631 to 5.632|
+----------------------------+

1. Add Lapper administration for vote
LapperAdminVote = false; if set to true, Lapper admin all votes
VoteRestart = 75; players percent needed to act this vote, host not include
VoteQualify = 75; players percent needed to act this vote, host not include
VoteEnd = 75; players percent needed to act this vote, host not include

VoteLifeSec = 30; Life in second for a vote

Quote :After testing v5.631 I have found that once Voting has been stopped if you press Shift+R it shows "RESTARTING 3" then it disapears. In message area it shows I [AKM] Andy voted Restart and then underneath Vote Cancelled. Seems lapper is not stopping the system message as if its not cancelling it quick enough.

It's not a Lapper Problem, but LFS who don't send quickly the player vote. I don't do anything about this

Gai-Luron
suggestion: add option for blocking AI. now a can type /ai and ai controls car
Hi Gai,
1) Voting for RACE Restart is operational in Qualifying which we don't need really or make it optional perhaps.
2) When someone votes RESTART it shows percentages at top but as soon as [AKM] Andy Voted to RESTART & Vote Cancelled messages disapear so does the percentage message. We really need the percentages message to stay onscreen until the 30 seconds (or whatever is defined in cfg) has elapsed. This will enable other drivers to know a restart is possible while message showing.

Thanks again
This thread is closed

LFSLapper insim4 Release
(2101 posts, closed, started )
FGED GREDG RDFGDR GSFDG