Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.tw/irclogs/ Connected with DDNet's IRC channel, Matrix room and GitHub repositories โ€” IRC: #ddnet on Quakenet | Matrix: #ddnet-developer:matrix.org GitHub: https://github.com/ddnet
Between 2020-06-09 00:00:00Z and 2020-06-10 00:00:00Z
Avatar
[quakenet] ZillyHuhn BOT 2020-06-09 10:34:26Z
https://zillyhuhn.com/cs/.1591698785.png why do always the things i need disappear from my history o.O ?
Avatar
In my case they disappear also from the future ๐Ÿ˜…
Avatar
["2020-06-04","๏ฟฝ| øø๏ฟฝ~D๏ฟฝ","status"s"]"[020-06-04","๏ฟฝ| øø๏ฟฝ~D๏ฟฝ","dump_antibot"] this is one interesting entry in teehistorian ๐Ÿ˜„
Avatar
is this straight from the file or with some decoding applied?
Avatar
I'm checking whether the original file has this or it's my script messing up
10:57
hm somehow the users name is not known at this point
Avatar
rcon commands can be entered before the client enters the game
Avatar
but not before an auth, can it?
Avatar
no, not before auth
Avatar
well actually it could happen before login
Avatar
well, they can be sent ofc, but should not end up in teehistorian
Avatar
not sure if th would log yeah
Avatar
because it only logs actually executed commands
Avatar
can you take a look at 0357754a-e7b4-46d0-a042-ce496e896709.teehistorian?
11:02
I keep an array strings for each client, on auth init or auth login I set it to t.identity
11:03
I don't see how a client possibly wouldn't have a name by then, but I guess I should be initializing that vec
11:04
Actually String::new() should take care of it, I thought that'd get me an empty string
Avatar
String::new gives you an empty string indeed
Avatar
Uhm I don't get what happened here actually
11:06
this tool does decode this properly
11:07
ล øøโ„ข just breaks this
Avatar
oh, my fake json isn't jsony enough?
Avatar
I don't get it, outputting to the terminal it looks fine
11:09
outputting to a file it's broken when I open in vim
11:09
if I reload it utf8 vim says there is a conversion error
11:10
Is that string not utf8?
Avatar
string is always utf-8
Avatar
If it was not utf8 how would teeworlds even handle it?
Avatar
String
11:10
ddnet rejects non-utf8 strings
11:10
not sure what it does about cut-off utf8 though
11:10
perhaps there's a gap
Avatar
well vim atleast recognizes it's 3 characters when I open with utf-8
11:12
I thought maybe it's my terminal not having the characters but it does output fine if I cat it to the terminal
11:13
what an odd issue, I guess it won't cause issues in the final parser as it'll be js
Avatar
The String type, which is provided by Rustโ€™s standard library rather than coded into the core language, is a growable, mutable, owned, UTF-8 encoded string type. When Rustaceans refer to โ€œstringsโ€ in Rust, they usually mean the String and the string slice &str types, not just one of those types. Although this section is largely about String, both types are used heavily in Rustโ€™s standard library, and both String and string slices are UTF-8 encoded.
11:27
poggers
Avatar
it's weird that when a mod enforces a vote it seems the commands are executed with their client id but elevated privileges
Avatar
this is one interesting entry in teehistorian ๐Ÿ˜„
could it be related to my bind that does "rcon_auth ....; rcon dump_antibot; rcon logout" all in one
Avatar
thats my real pw btw
Avatar
nah it was ล øøโ„ขs name breaking my vim
Avatar
now that I think about it we really should have went for bcrypt for our rcon auth system
12:05
I mean it's still not trivial to bruteforce salted md5 but with gpus you can probably generate rather large rainbow tables
Avatar
yes. there was a problem with using an actual password hashing function though, potential DoS by trying to log in
12:09
also, the checking would have to happen in a background thread
Avatar
we could have rate limited the logins
12:11
Yeah it'd probably be expensive enough not to do in the main thread though
12:11
but luckily the login wouldn't be too hard to move to another thread
Avatar
@Learath2 instead of bcrypt, argon2 is better
12:14
Argon2 is a key derivation function that was selected as the winner of the Password Hashing Competition in July 2015. It was designed by Alex Biryukov, Daniel Dinu, and Dmitry Khovratovich from the University of Luxembourg. The reference implementation of Argon2 is released un...
Avatar
still probably too slow to be ran on the main thread
12:18
(the point of a password hashing function is to be slow)
Avatar
so put it in a thread
12:19
rate limiting seems good
Avatar
I guess we can wait until it breaks ๐Ÿ˜„
Avatar
todays question, why are C++ compilers and linkers so bad at devirtualisation?
13:36
runtime polymorphism is so expensive without devirtualisation
Avatar
@Learath2 because you didn't mark your methods as final and you can't know if another shared lib will overwrite. i guess
Avatar
or you use pointers and anyone could redirect them to an object of another subtype
Avatar
hm, I guess I need to help the optimiser reason about my pointers, it seems it only catches the most trivial cases. After a dynamic_cast it should be safe to assume the type
Avatar
does using namespace override things in the global scope?
Avatar
@heinrich5991 Q: How would teehistorian handle 0.7 messages on a 0.6 server?
16:21
The complete data doesn't seem to be enough anymore because Sixup is stateful
Avatar
record the version on client join, I'd say
Avatar
@Learath2 ddnet use's LUA?
18:06
ATH does
Avatar
๐•€๐• ๐•Ÿ๐•ฆ๐•ฅ 2020-06-09 18:09:29Z
Hey can someone help me setup a ddnet server?
Avatar
double click DDNet-Server.exe
๐Ÿ‘ 2
Avatar
DDNet is coded in lenguaje c & c++ right?
Avatar
& c
Avatar
lenguaje
Avatar
If u know c u can use it in c++ code
Exported 79 message(s)