The online racing simulator
Console Dedicated Host TEST5
(58 posts, closed, started )
OK... can reproduce this now! Yesterday's lead was false but I have found a way to reproduce this 100% (and I know why it happens). I will not say how it's done at this point! But I'll tell you that the last line of the log file when you got the crash might tell you how to to it.

I'll work on a clean fix and there's a couple of requests to consider. By the way, does anyone use invisible hosts using the /dedicated=invisible option? It doesn't do anything with DCon because the console window just appears - LFS doesn't have any control over that. I'm not sure but maybe you can create an invisible host by piping or redirecting the output...
I thought this just restarting the instance and 'not saving the logs' would get back to me at some point

I did a quick look though, every time it happened. But didn't noticed a pattern. Apparently there was one then.

---
nogfx option here.
I'm glad the Sherlock Holmes in you found the culprit so fast Personally, I never really looked into making use of the invisible option.

OFF-TOPIC: I can't resist to ask you for a mini status update of the autocross improvements discussed a few months ago:https://www.lfsforum.net/showt ... php?p=1759364#post1759364 I'm wondering if they are still on your todos list since I'm working on my InSim application anticipating these new features
About invisible window: maybe using ShowWindow((HWND)LFS, SW_HIDE); (as I already told Victor)
Quote from DANIEL-CRO :About invisible window: maybe using ShowWindow((HWND)LFS, SW_HIDE); (as I already told Victor)

For this to work you'd have to get the handle of the console window which would require some heuristics and even then it would be error prone (like if you had two consoles with the same title running).
EDIT: You could generate some random string, call SetConsoleTitle() and look for that with FindWindow(), but that sounds like a nasty hack...

For a full GUI-less experience on Windows it would be better to have DCon run as a service.
Encountered a very odd issue 10 minutes ago. Server setup:

Track: AS3
Laps: 3
Cars: FXR only
Players: ~10-15

On the third lap 50m before the leader crossed the finish line the race auto restarted. No SHIFT + R votes were seen. And in my InSim logs no "/restart" was found (my InSim app logs all commands even if ACR UCID == 0).

I tend to think it's a bug so far but I might have missed something very obvious. The only thing I have so far:

Quote :Jun 15 22:20:03 LOWERSTANDARDS™^L voted to RESTART
Jun 15 22:20:07 ClaViCo Lap PB by Brendan : 1:51.73 ^Lon AS3 (FXR) ^L[5/9]
Jun 15 22:20:07 LFSW - new FXR PB by bdog922: 1:51.73 (-0:16.18)
Jun 15 22:20:08 ClaViCo Split1 PB by MIHA® : 0:46.30 ^Lon AS3 (FXR)
Jun 15 22:20:09 ClaViCo Lap PB by LOWERSTANDARDS™ : 1:55.72 ^Lon AS3 (FXR) ^L[7/9]
Jun 15 22:20:10 LFSW - new FXR PB by Yaboiraqui: 1:55.72 (-0:10.39)
Jun 15 22:20:21 ClaViCo Split1 PB by Ivan1337 : 0:46.59 ^Lon AS3 (FXR)
Jun 15 22:20:27 ClaViCo Split1 PB by ^CØ^Týllý : 0:45.26 ^Lon AS3 (FXR)
Jun 15 22:20:28 ClaViCo Split1 PB by [MRc] Nofreak : 0:45.50 ^Lon AS3 (FXR)
Jun 15 22:20:30 ClaViCo Split1 PB by SiCo : 0:45.66 ^Lon AS3 (FXR)
Jun 15 22:20:39 ClaViCo Split1 PB by ·^Cÿ^GîSFLdrifter : 0:46.77 ^Lon AS3 (FXR)
Jun 15 22:20:50 ClaViCo Split1 PB by [COP]Ayrnay : 0:47.55 ^Lon AS3 (FXR)
Jun 15 22:20:57 ClaViCo Split1 PB by LOWERSTANDARDS™ : 0:48.60 ^Lon AS3 (FXR)
Jun 15 22:21:07 ClaViCo Lap PB by MIHA® : 1:44.49 ^Lon AS3 (FXR) ^L[4/9]
Jun 15 22:21:19 [MRc] Nofreak : ^LDamn lol
Jun 15 22:21:21 ^CØ^Týllý : ^L: [
Jun 15 22:21:21 [MRc] Nofreak^L joined the spectators
Jun 15 22:21:24 Repaired Mesh
Jun 15 22:21:24 Repaired Mesh
Jun 15 22:21:24 Repaired Mesh
Jun 15 22:21:24 Repaired Mesh
Jun 15 22:21:26 [MRc] Nofreak^L left the pits (FXR)
Jun 15 22:21:26 ^CØ^Týllý : ^Lnooo
Jun 15 22:21:27 SiCo : ^LWHAT

Some manifestation of frustration there since the race would have been over (for the top 3) 5 seconds later

Am I right to assume that IS_ACR always reports /restart when it occurs (by vote, admin, InSim app)? Obviously I have no idea how to reproduce it.

Take this report with a grain of salt but if anyone ever encountered this I would gladly hear about it.

EDIT: I may have failed to see the obvious after all. If you look at the logs. The race restarted after the "Repaired Mesh" and especially when "[MRc] Nofreak^L left the pits (FXR)". Most importantly 1 minute before that event: "Jun 15 22:20:03 LOWERSTANDARDS™^L voted to RESTART". Could it be that when someone votes to restart race and afterwards a player spectates the amount of votes required for a race restart drops by 1 thus triggering an auto race restart after all. I suppose I'm close to dismissing this invalid bug report...Will try to reproduce it though.
I've personally seen races restart on a spectate event (caught me by surprise first time!). Indeed I interpreted it to mean that the vote threshold must reduce by 1...
And wth, it's always good to get bug reports so don't feel bad
It seems to be the explanation. I still wonder if this is a bug or intentional. Either way it seems unlikely to be related to TEST5. Finally, what is perhaps worth noting is that "/restart" is not reported with IS_ACR when this auto-restart happens.
Quote from sicotange :Could it be that when someone votes to restart race and afterwards a player spectates the amount of votes required for a race restart drops by 1 thus triggering an auto race restart after all.

If >50% on the track votes for a race restart then it simply restarts yes. So if someone spectates which didn't vote, it makes it easier for the ones who did vote for a restart because it's easier for them to reach a majority.

Two solutions to that;

1) turn off voting
2) use IS_VTC (since 0.6B) to cancel an ongoing vote when it's not the right time to start a vote.
Quote from cargame.nl :If >=50% on ...
Two solutions to that;

1) turn off voting
2) use IS_VTC (since 0.6B) to cancel an ongoing vote when it's not the right time to start a vote.

if you mean /vote=no , this has nothing to do with race restart votes. Its for ban/kick votes... so there is no easy way to turn off votes, altought its possible by setting very high /rstmin
Quote :
1) turn off voting
2) use IS_VTC (since 0.6B) to cancel an ongoing vote when it's not the right time to start a vote.

1) I don't think you can turn off the ability to SHIFT + R (and SHIFT + X).
2) My InSim app already cancels votes sending TINY_VTC when an IS_VTN is received (one of our admins disabled this InSim feature so in the case I reported no TINY_VTC was sent).

In the end my report intends to obtain some clarity concerning SHIFT + R voted restarts. More precisely if it's normal that a SHIFT + R vote could result in an auto restart later on when someone spectates during the race. I suppose it's not something that was introduced with TEST5. It's because I was taken by surprise I thought it was TEST5 related thus reported it. It should be fairly easy to "reproduce" if you have a bunch of racers on. Suppose 8 7 players are online and racing. If 3 players vote to restart and at some point 1 racer spectates then an auto restart could be triggered. That is if 50% (or more) of votes are required.
Quote from sicotange :Suppose 8 players are online and racing. If 3 players vote to restart and at some point 1 racer spectates then an auto restart could be triggered. That is if 50% (or more) of votes are required.

If you meant "7 players are online and racing" then yeah, I think that's what would happen (3/7 is less than half...)
Corrected ;-) Is it a certainty LFS votes work this way? The vote is passed when 50% or more voted? Does this vote condition apply to SHIFT + R, SHIFT + X, kick and ban votes?
Yes, although I think kick/ban uses majority of server, not majority of users in race.
Ok good to know although I still wonder what the exact distinction is. Which votetype has which conditions and if there is a difference between players spectating and players in garage. I speculate there is a distinction between spectators vs players on track (or in garage). It's not that hard to test but if someone knows for sure how it works that would be nice.

I think my report should be dismissed as I believe auto-restarts are reported by IS_VTN thus making it possible to cancel the restart if required. Doing "totalvotes required - 1" when someone spectates probably makes more sense anyway, yet it feels far-fetched and confusing but now I understand how it works so I can anticipate things InSim wise
In a console window doesn't display Cyrillics, it is normal?
Attached images
2013-06-17_235715.jpg
Quote from [Audi TT] :In a console window doesn't display Cyrillics, it is normal?

I think the dedi shows the characters as encoded by LFS's string coding. Not in the real codepage
Quote from dawesdust_12 :I think the dedi shows the characters as encoded by LFS's string coding. Not in the real codepage

maybe it isn't provided since it isn't necessary
bug
I started my server connected to it. The file deb.log is all recorded and "live progress" reacted to commands /laps 20 or /laps 0. After accidentally starting a second time, it was written "bind failed". After that, the file deb.log nothing new has been written and "live progress" does not respond to commands, and does not change the number of laps.
Quote from [Audi TT] :bug
I started my server connected to it. The file deb.log is all recorded and "live progress" reacted to commands /laps 20 or /laps 0.

Thats becuase deb.log is overwritten by other instance of DEDI... Maybe it should somehow lock file and prevent further instances to write... or create deb_2.log


Quote from [Audi TT] :bug
After accidentally starting a second time, it was written "bind failed".

Becuase you cannot start two servers with same /port

Quote from [Audi TT] : and "live progress" does not respond to commands, and does not change the number of laps.

I cannot reproduce this



E: BTW, I noticed when you type "//something" (double slash) it always threat that as /run command. I didn't see that anywhere documented...
also from wiki
Quote : The only exception are empty lines, and lines that start with "//", which are treated as comments and thus ignored.

I think it's documented to be the behaviour in the client, but is a comment inside config file.
My server (TEST5) crashed for the 2nd time, tonight, exact same error.

Quote :I will not say how it's done at this point! But I'll tell you that the last line of the log file when you got the crash might tell you how to to it.

I suppose you won't tell how to prevent partycrashers to cause the server to crash. (Hopefully it's not a stupid move to speculate that it is related to an InSim packet with name starting with IS_M__?:schwitz

Scawen, should we revert to LFS dedi 0.6E temporarily while awaiting TEST6 or do you think TEST6 is close enough to remain on TEST5 for now or perhaps it can still be useful to remain on TEST5 ?
Quote from DANIEL-CRO :

E: BTW, I noticed when you type "//something" (double slash) it always threat that as /run command. I didn't see that anywhere documented...
also from wiki

From "Commands.txt"
Quote :IN A SCRIPT : //comment - this line is ignored
IN CHAT BOX : //xxx - short for /run xxx

DANIEL-CRO, I think the program should scan processes and make sure that it is in this folder, does not have running processes. And if the program is running, the program does not start and displays a message in a window with the message "the program is running, click OK, to exit."

p.s. damn Google
I disagree, cause ten a person couldn't run multiple hosts from 1 dedi install.

LFS should instead die if binding to network fails, or try again after 10s (eventually permanently timing out).
This thread is closed

Console Dedicated Host TEST5
(58 posts, closed, started )
FGED GREDG RDFGDR GSFDG