Guild icon
Teeworlds
IRC / bridge
One-way IRC channel bridge. If you want to be able to send messages to IRC, contact @Dune or @heinrich5991. https://www.teeworlds.com/?page=docs&wiki=rules/irc_rules
Between 2020-04-02 00:00:00Z and 2020-04-03 00:00:00Z
Avatar
[quakenet] wavi BOT 2020-04-02 01:53:48Z
i'm using econ, any idea why on one server log messages look like this [econ]: cid=0 authed and on another server they look like this [01:48:53][econ]: cid=0 authed
01:53
(prefixed with current time)?
01:58
I'm trying to parse the log lines and I expected to see the same format on both servers (they are running the same server version)
Avatar
ChillerDragon 2020-04-02 09:11:38Z
any steps to reproduce?
09:14
And what log are you looking at exactly? There are multiple places where logs show up. Ingame console in the server console in stdout in the logfile and in the econ console are logs.
Avatar
[quakenet] Learath2 BOT 2020-04-02 10:18:13Z
@Dune I don't see the missing io_close for CMap either #1120
10:19
The NumChunks overflow was also fixed
10:20
by 64e5165ee that is
Avatar
[quakenet] wavi BOT 2020-04-02 10:27:34Z
ChillerDragon, I
10:28
I'm just connecting via econ, and reading all the data sent from the server
10:30
then, if I just look at the stdout messages of both servers, they are different too, and not in the same way as in econ
10:31
on one server stdout looks like:
10:31
[5e85b849][game]: Teams are balanced (red=0 blue=0)
10:31
and on the other:
10:31
[2020-04-02 10:25:30][game]: Teams are balanced (red=1 blue=0)
Avatar
[quakenet] Learath2 BOT 2020-04-02 10:35:43Z
What is the point of thread_destroy if it just calls thread_join?
Avatar
[quakenet] wavi BOT 2020-04-02 10:35:56Z
I don't have any specific steps to reproduce, I'm just connecting to two servers and reading data from econ
Avatar
[quakenet] wavi BOT 2020-04-02 10:56:29Z
A retro multiplayer shooter. Contribute to teeworlds/teeworlds development by creating an account on GitHub.
10:57
seems like that's where the timestamp gets inserted into the beginning of the log line
10:59
on both servers the data in the first brackets is the current time. the first is the current unix timestamp in hex, the second is human readable.
11:01
both servers have ec_output_level 999
11:07
Dune, do you have any idea about this?
Avatar
[quakenet] wavi BOT 2020-04-02 11:14:28Z
I found this issue and asked about it there https://github.com/teeworlds/teeworlds/issues/245
Every entry at the beginning has a value like [4ccc0913]. Is this a timestamp? If not what is it for? In my opinion there should be a formatted timestamp in the server log (or let it control with a...
Avatar
[quakenet] wavi BOT 2020-04-02 11:30:59Z
this is ridiculous, both servers report the same version, but the size of the teeworlds_srv executable is different
Avatar
[quakenet] Learath2 BOT 2020-04-02 11:32:01Z
let me take a look at the code
Avatar
wavi: how did you get the two servers? they could be different versions... e.g. one is trunk
Avatar
[quakenet] wavi BOT 2020-04-02 11:36:23Z
one of them I setup myself, can't remember where I downloaded it from, the other one is setup by my coworker, so not sure of that either :/
11:36
anyway, maybe my solution is to simply check for either of the timestamp formats and strip them out before parsing the logs (?)
Avatar
[quakenet] Learath2 BOT 2020-04-02 11:37:53Z
well if they have different executable sizes they are different versions
Avatar
[quakenet] wavi BOT 2020-04-02 11:38:00Z
yeah
Avatar
[quakenet] Learath2 BOT 2020-04-02 11:38:52Z
we should probably be embedding the git version somewhere
Avatar
[quakenet] wavi BOT 2020-04-02 11:39:52Z
I probably have the git version on the server that I setup myself
11:40
but is this timestamp format thing some recent change?
Avatar
yeah @ChillerDragon changed it iirc
11:41
so that's probably the thing, you are comparing 074 and trunk
Avatar
[quakenet] wavi BOT 2020-04-02 11:41:50Z
ok cool :)
Avatar
oh and the other one is 073 even, so yeah
Avatar
[quakenet] wavi BOT 2020-04-02 11:42:33Z
I'll just strip the timestamp out if it's present 🤷 thanks for the help everyone!
11:42
and sorry for the confusion
Avatar
[quakenet] Learath2 BOT 2020-04-02 11:42:46Z
isn't it always present?
Avatar
[quakenet] wavi BOT 2020-04-02 11:42:49Z
no
Avatar
[quakenet] Learath2 BOT 2020-04-02 11:42:57Z
weird
Avatar
[quakenet] wavi BOT 2020-04-02 11:43:01Z
Every entry at the beginning has a value like [4ccc0913]. Is this a timestamp? If not what is it for? In my opinion there should be a formatted timestamp in the server log (or let it control with a...
Avatar
that issue is from 2010.
Avatar
[quakenet] Dune BOT 2020-04-02 11:58:23Z
Learath2, wavi: isn't it always present on the recent teeworlds versions?
Avatar
Just start your regex without the timestamp, especially if you do't need the time at all :0?
12:00
don't
Avatar
[quakenet] wavi BOT 2020-04-02 12:10:07Z
I'm not sure how to do that. I'm using /(.)]:\W?(.)/ to split messages like "[econ]: cid=0 authed" into "econ", "cid=0 authed" but when the timestamp exists i the first match is "12:08:39][econ"
12:11
nvm i fixed it
Avatar
it's possible to share your regex with test data on regex101.com
Avatar
[quakenet] wavi BOT 2020-04-02 12:23:23Z
this is what I have and it seems to work the way I want https://regex101.com/r/FGulcZ/1/
Regex101 allows you to create, debug, test and have your expressions explained for PHP, PCRE, Python, Golang and JavaScript. The website also features a community where you can share useful expressions.
12:24
ignores the timestamp, gets the event type between [ and ], and the event data. I then process the event data with other regexes
Avatar
[quakenet] Learath2 BOT 2020-04-02 13:34:58Z
Just noticed SDL2 has everything needed to do text input properly, I guess it's about time we fix this one
Avatar
[quakenet] Dune BOT 2020-04-02 13:39:38Z
what do you mean, properly, Learath2?
Avatar
[quakenet] Learath2 BOT 2020-04-02 13:40:40Z
Well currently we just let the OS do whatever it pleases, on macOS you first get the letter itself, then you get a composition event, then you get the accented version you chose
13:40
not to mention the accent menu is rendered on the top left, not above the text rectangle
13:41
idk what happens on windows and linux but I doubt it's much better
Avatar
[quakenet] wavi BOT 2020-04-02 13:42:53Z
I've occasionally been a bit disappointed that I cant select and copy text out of teeworlds inputs
Avatar
[quakenet] Learath2 BOT 2020-04-02 13:43:33Z
On macOS SDLTranslatorResponder implements the NSTextInput protocol, which means the candidate list is rendered in the correct place
Avatar
[quakenet] Learath2 BOT 2020-04-02 13:44:10Z
On windows it handles even more legacy crap microsoft insists on keeping around
13:45
wavi: https://github.com/teeworlds/teeworlds/pull/2521 implements copying from most text input fields
Baby steps towards #12, leaving a draft for feedback.
Avatar
[quakenet] wavi BOT 2020-04-02 13:47:26Z
sweet
Avatar
[quakenet] Learath2 BOT 2020-04-02 13:48:58Z
妹の
13:49
My terminal handles IME better then teeworlds :P
Avatar
[quakenet] Dune BOT 2020-04-02 13:54:49Z
your terminal isn't cross-platform though :P
Avatar
[quakenet] Learath2 BOT 2020-04-02 14:02:21Z
kitty is very much crossplatform
14:03
it even uses OpenGL instead of the native text rendering
Avatar
[quakenet] Dune BOT 2020-04-02 14:08:10Z
when will they make terminals in javascript
Avatar
[quakenet] Learath2 BOT 2020-04-02 14:09:22Z
I'm sure it already exists, people love making things that have no business being in javascript in javascript
14:09
Terminal front-end component written in JavaScript that works in the browser.
Avatar
[quakenet] Dune BOT 2020-04-02 14:11:14Z
:(
Avatar
[quakenet] Learath2 BOT 2020-04-02 14:12:45Z
Maybe we should just remove all the UI code from teeworlds and render a webpage over the entire screen
14:13
we could embed chromium like every other hip project
Avatar
[quakenet] wavi BOT 2020-04-02 14:14:31Z
such an accurate quote, sadly: "people love making things that have no business being in javascript in javascript"
Avatar
[quakenet] Learath2 BOT 2020-04-02 14:15:32Z
Oh oh oh, we can even implement something like the React Native Bridge to interact with OS facilities and the client itself, it'd be so cool
Avatar
[quakenet] wavi BOT 2020-04-02 14:17:32Z
btw, text rendering with webgl by apple https://twitter.com/danlucraft/status/1225763866765905922
Just been looking at https://t.co/yCb7sgyJ3j’s new web Notes app, because I’m working on a mobile text editing component and I didn’t understand how they’d accomplished some things that are still causing me difficulties. Turns out the text editing is done in WebGL. 🤯
Retweets
102
Likes
550
Avatar
[quakenet] Learath2 BOT 2020-04-02 14:21:10Z
Interesting, I wonder if they used emscripten to achieve this. AppKit already is capable of rendering with opengl
Avatar
[quakenet] Ryozuki BOT 2020-04-02 14:30:51Z
Learath2 i used kitty in the past, then i found https://github.com/alacritty/alacritty
A cross-platform, GPU-accelerated terminal emulator - alacritty/alacritty
Avatar
[quakenet] Learath2 BOT 2020-04-02 16:15:00Z
as always it's not so simple with macOS, turns out the accent menu goes through a completely different API then the IME for CJK
16:15
and SDL doesn't even handle that API, furthermore, it uses the API wrong so you always get a wrong replacementRange
Avatar
ChillerDragon 2020-04-02 16:39:36Z
@ Learath2 https://github.com/teeworlds/teeworlds/issues/1659#issuecomment-607805777 still not able to travel to my mac but when i can get hands on it any idea how to debug that :/
16:39
i think @onbgy has the same issue
Avatar
I can let you know where to place some dbg_msgs and the output will be helpful
Avatar
ChillerDragon 2020-04-02 16:40:12Z
that would be great!
16:40
but isnt the exact line known
16:40
isn there oy's commit just locking the res?
16:41
i tried fixing it once in https://github.com/teeworlds/teeworlds/pull/2450 i have no ideas left
Avatar
I know why the resolution is locked, but it shouldn't be pixellated
16:41
it's completely fine for me
16:43
Idk what you mean by pixellated tbh, maybe you can show me?
Avatar
ChillerDragon 2020-04-02 16:44:35Z
i mean its only 1440 thats less than my native res so you have more pixel
16:44
nothing in particular
16:45
might be the wrong term
Avatar
at 2880 you should be getting 1920 x sth
16:53
which at highdpi gives you a resolution of 2880
Avatar
ChillerDragon 2020-04-02 17:04:57Z
oh wait so highdpi magic gives me higher values than tw setting shows?
17:05
iirc i could select my actual resolution in ddnet client
17:05
and it looked more crisp
Avatar
[quakenet] Ryozuki BOT 2020-04-02 17:14:33Z
cuz it was ddnet :9
17:14
:)
Avatar
you select a resolution, then SDL_GL_GetDrawableSize gets you the actual resolution after highdpi
Exported 104 message(s)