Guild icon
Teeworlds
discord.gg/teeworlds / development
For discussions around the development of the official Teeworlds
Between 2020-01-28 00:00:00Z and 2020-01-29 00:00:00Z
Avatar
When a teeworlds server is running without players for some time it is really annoying to read the logs since they are spammed with master server information: ``` [...] [2020-01-28 10:01:58][register]: fetching server counts [2020-01-28 10:01:58][register]: chose 'master2.teeworlds.com' as master, sending heartbeats [2020-01-28 10:01:59][register]: no firewall/nat problems detected [2020-01-28 10:01:59][register]: server registered [2020-01-28 10:32:00][engine/mastersrv]: refreshing ...
Avatar
@ChillerDragon ./teeworlds_srv | grep -v "[register]" is probably as fast as ./teeworlds_srv "sv_some_obscure_option 0"
Avatar
ChillerDragon 2020-01-28 12:03:39Z
yes but i use logfile @Dune
12:03
there is no pipe
12:04
and it should be egrep -v '^\[.{19}\]\[register\]' | egrep -v '^\[.{19}\]\[engine/mastersrv\]'
Avatar
@ChillerDragon ah, well yeah, not so easy indeed
14:29
I'm a bit chilly with putting options for logging, defaults should be sane and easy to filter
Avatar
ChillerDragon 2020-01-28 14:30:49Z
there should be no useless spam imo that everyone has to filter
14:31
one success message is fine
Avatar
that sounds better to me 🙂
Avatar
ChillerDragon 2020-01-28 14:31:29Z
thats literally what i wrote as option 1 in my issue
Avatar
I mean, not as an option
Avatar
if the connection is lost, one error message, if it's found again, one message
Avatar
might be confusing for server hosters who are used to see heartbeats though?
Avatar
ChillerDragon 2020-01-28 15:19:05Z
like who
15:19
there are maybe 10 server hoster
15:19
12 of them are on this discord
Avatar
connection to masterserver established connection to masterserver lost connection to masterserver re-established
Avatar
sounds clear yeah
Avatar
maybe with specific master server
Avatar
it's probably good to keep the spam when it fails though 🙂
Avatar
usually nobody connects maybe to the server except for people who have that server as favourite
15:23
-maybe
Avatar
usually, as the server cannot be found in the server list, nobody plays on it
15:24
except for those that have that server favorited.
Avatar
unless the connection was lost, which happens
Avatar
so usually the last message in the logs will be the error
15:25
one simple message would be enough, as in this case, it would spam again. I guess a masterserver prefix might highlight those master server heartbeat messages enough to find them in the logs
15:26
usual prefix is [chat] or [game]
15:26
as [masterserver] is way longer
Avatar
ChillerDragon 2020-01-28 15:41:58Z
engine/mastersrv
Avatar
It is save to assume that a server hoster who manually set the logfile config wants his logging to work. The new log system does not allow absolute paths or anything outside of the teeworlds/dumps directory. So when updating to the new system with old path configs there is a small silent error somewhere in the beginning of the server log. This change fails loudly and shows directly what went wrong: ``` $ ./teeworlds_srv "logfile /a" [2020-01-28 17:44:55][engine]: running on unix-l...
Avatar
Space should put in effect the command. It makes typos less scary, and is generally smoother: Input /team hi⏎ is more convenient than /team⏎hi⏎ [All] /team -> [Team] -> [Team] hi⏎ Input /whisper Dune hey⏎ is more convenient and less scary than /whisper Dune⏎ hey⏎ [All] /whisper -> [All] -> /whisper Dune -> [Whisper: Dune] -> [Whisper: Dune] hey⏎ Same with /r, etc. Minor drawback: it is not possible to message Chiller Dragon if there is a player name...
19:44
81376fd Add convenience functions to read complete files - heinrich5991 7e829cf test: Make it easier to generate multiple tempo... - heinrich5991 a2bd987 test: Add tests for CJsonWriter - heinrich5991 75289fb Change some CJsonWriter output formatting - heinrich5991 750a241 Add some stylistic changes to CJsonWriter - heinrich5991
19:50
a809e59 Implement global support for nested clipping re... - Robyt3 1ed1a4e fix usage of bool in binary and warning - Robyt3 ca4fd6a remove unused field - Robyt3 e448423 use static array for clip region stack - Robyt3 b919e7d Merge pull request #2439 from Robyt3/nestedClip... - oy
19:50
e75432e Fix name of fs_read_str in the doc - heinrich5991 c8250cd Merge pull request #2446 from heinrich5991/pr_d... - oy
Avatar
352adfa added another check for invalid server info. cl... - oy
20:36
93db90b removed some dead code - oy
Avatar
  • Replace some ints in menus and UI with bools.
  • Remove some unused and dead button code from UI.
  • Remove unused parameters of DoButtonLogic. Checked was actually always unused, as it's always >= 0.
  • Use pointer to member function for FDropdownCallback instead of static methods.
Avatar
ChillerDragon 2020-01-28 23:34:04Z
ah the menu bools nice
Exported 50 message(s)