There has to be some activity before this happens. Today it was running for few hours, max 3 people connected & there were few races. And I've noticed this bug quite few times already, since W26 I think.
Guess I test this some more tomorrow to find easy way to reproduce.
And yes, this is directly with dedi server, not when connected as admin.
Noticed a bug with dedi server. After it has been running for some time, you can't enter commands & messages any more. That is, you can type text in and see it, press Enter, text disappears, but nothing happens.
I guess you can do whatever you want with this little demo. If all goes well this show names thing will be one of functions of InSim helper program I'm currently working on.
I noticed that ViewPLID in STA packet shows some (random?) other player's ID when you go to pits (shift + P). Shouldn't it be in this case zero = none?
Hmm after some thinking, this automatic system isn't perhaps that good, or so to say future compatible. Suppose one day you want to make LFS UI fully configurable. Which is quite likely I guess. Or just rearrange screens. In this case "recommended area" has no meaning any more.
Anyway, simplest solution is perhaps clear screen completely on shift+B/I, if InSim program requests that (with BFN?). Plus possibility to make "always on" buttons, which would be then treated as part of LFS interface. Simple, but quite flexible.
That would be nice. For space clearing maybe BFN packet could be used, with commands like "clear space", "unclear space", "make this ClickID always visible/not affecting space clearing", etc.
And few questions...
I noticed that buttons don't work at all in MPR replay. Is that intentional or not done yet?
Is it somehow possible to use on buttons those seven-segment numbers LFS uses to display times?
Here's a little toy to test the new button interface.
Put this exe into main LFS directory, then type into LFS commands:
/insim 29999
/exec names
or
/exec names localhost 29999 <password>
if you have admin password set.
Now when switching view to other cars with TAB key, player name is shown on top of screen.
Say I want to just add one small button to race setup screen... then disappearing LFS buttons seems kinda weird. Why not make disappearing LFS buttons optional, controlled by InSim in some way? Could be special TINY packet. BStyle in BTN is already all used... Maybe Instance could be removed and BStyle made a word?
And to make this post more useful, little suggestion not related to buttons: CNL packet could have reason for disconnect, normal/connection lost/kick/ban(/something else possible?).
I create 60 buttons (as on picture - players list), and it takes somewhere between 1.2 - 1.5 sec. That's quite slow.
Also I think 79 (if I'm not mistaken) local buttons is not enough, for example for creating some bigger tables with many columns. Why there has to be two separate ClickID ranges anyway?
Aha. There's few more of those "PlyNum" thingies I think, in camera control packets. And as for colour codes, I guess better is to put them back. For example, one of possibilities with buttons is full message history, but that wouldn't look right without colours.
Tried to make use of ViewPlayer in STA packet, but to my surprise it's not player's unique id. That "Player index of viewed car" is kinda useless, as seems like it doesn't relate directly to any other data received from LFS. Also this number can change, while viewed car itself doesn't. Quite confusing.
It seems losing focus is impossible to prevent ATM, unless program that is run creates its window in some sort of "silent" way (dunno I'm not familiar with winzozz programming). It is possible to exec programs in a way that window is created somehow on background, seen it done in other programs (AutoGK for example).