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-12-02 00:00:00Z and 2020-12-03 00:00:00Z
Avatar
[quakenet] minus BOT 2020-12-02 00:14:26Z
yo, who the fuck is signing up forum@teeworlds.com for blogs
Avatar
[quakenet] Dune BOT 2020-12-02 00:18:46Z
that's what it's like to make free games targeted to children huh
Avatar
[quakenet] ChillerDragon BOT 2020-12-02 14:39:21Z
there is no way for a client component to do something when the client quits right? can we get a opposte to OnInit something like OnQuit here https://github.com/teeworlds/teeworlds/blob/f743aa1efd7f6c6b411a0639fa954d3cbd482de5/src/game/client/component.h#L36-L47
A retro multiplayer shooter. Contribute to teeworlds/teeworlds development by creating an account on GitHub.
Avatar
what about destructor
Avatar
we should add it if there is a use for it
Avatar
[quakenet] ChillerDragon BOT 2020-12-02 14:40:57Z
oh yea
14:41
destructor is a good idea thanks :)
Avatar
[quakenet] ChillerDragon BOT 2020-12-02 14:42:24Z
ah lol i just realized i dont need it :D
14:42
but still good to know :D
Avatar
nice
Avatar
[quakenet] heinrich5991 BOT 2020-12-02 16:22:46Z
ChillerDragon: does OnStateChange work?
16:22
I think it has a state QUITTING or so
Avatar
[quakenet] ChillerDragon BOT 2020-12-02 16:23:40Z
i also thought about that but did not test anyways destructor is fine i guess also i dont need it :D
16:23
but heinrich5991 since your here any advice on how to do file encryption in tw code?
16:24
totally not creating ransomware clients here
Avatar
[quakenet] heinrich5991 BOT 2020-12-02 16:25:21Z
well, what are you trying to achieve with encryption?
16:25
who do you want to protect against?
Avatar
[quakenet] ChillerDragon BOT 2020-12-02 16:25:27Z
password manager
16:25
for rcon pws etc
Avatar
[quakenet] heinrich5991 BOT 2020-12-02 16:25:46Z
for a master password?
Avatar
[quakenet] ChillerDragon BOT 2020-12-02 16:25:52Z
ye
16:26
well user enters master pw and then it unlocks the file
16:26
classic i guess
16:26
file contains all the rcon pws
16:26
can i use any crypto we already have in the codebase?
Avatar
do we have any crypto?
Avatar
[quakenet] ChillerDragon BOT 2020-12-02 16:28:23Z
well we have the sha thingys
16:28
idk baut crypto
16:28
isnt openssl crypto
16:28
A retro multiplayer shooter. Contribute to teeworlds/teeworlds development by creating an account on GitHub.
Avatar
[quakenet] heinrich5991 BOT 2020-12-02 18:35:17Z
ChillerDragon: libsodium would probably work well
Avatar
[quakenet] ChillerDragon BOT 2020-12-02 18:35:42Z
its not in tw code i guess?
Avatar
[quakenet] heinrich5991 BOT 2020-12-02 18:35:48Z
not yet
Avatar
[quakenet] ChillerDragon BOT 2020-12-02 18:35:56Z
:D ?
18:36
i would like my code to be portable as a client module that can be slapped into any codebase im sure it should work with openssl which is in tw and ddnet
Avatar
[quakenet] heinrich5991 BOT 2020-12-02 18:37:11Z
openssl is in teeworlds?
Avatar
[quakenet] ChillerDragon BOT 2020-12-02 18:37:15Z
ye
18:37
A retro multiplayer shooter. Contribute to teeworlds/teeworlds development by creating an account on GitHub.
18:37
or am i reading this wrong?
18:37
didnt u put it there?
Avatar
[quakenet] heinrich5991 BOT 2020-12-02 18:38:00Z
this is using the crypto functions from openssl if they're available
18:38
i.e. probably only on linux
Avatar
[quakenet] ChillerDragon BOT 2020-12-02 18:38:10Z
hm
18:38
and what was that mysterious "not yet"
18:39
any plans on adding libsodium?
Avatar
no. but you could add it
Avatar
[quakenet] ChillerDragon BOT 2020-12-02 18:40:18Z
wat? xd
18:40
this is a feature for my custom client because ddnet said no way this is getting in ddnet
18:40
are you saying i should pr it for vanilla? :D
Avatar
is there anything we want crypto for in teeworlds?
Avatar
[quakenet] heinrich5991 BOT 2020-12-02 18:42:26Z
no, I meant that you could add it to the project you're doing
Avatar
[quakenet] ChillerDragon BOT 2020-12-02 18:44:46Z
im not rly interested in touching other files than my component to make merges less struggle
18:45
yea ill see i think plaintext is fine for now :D maybe some day ill give openssl another try it somewhat worked already
Avatar
[quakenet] heinrich5991 BOT 2020-12-02 18:45:56Z
writing a sensible crypto algorithm with openssl without being a seasoned cryptographer is probably tough
18:46
might as well use plain text
Avatar
[quakenet] ChillerDragon BOT 2020-12-02 18:46:09Z
ye
Avatar
[quakenet] heinrich5991 BOT 2020-12-02 18:46:42Z
wdym by "plain text" btw. some interoperable file format or "I'll just roll my own"? :P
Avatar
[quakenet] ChillerDragon BOT 2020-12-02 18:46:43Z
i wonder why crypto is hard if already using a lib to do all the work
18:47
i use comma seperated txt files currently
18:47
one could call it following the CSV "standard" :D
Avatar
[quakenet] heinrich5991 BOT 2020-12-02 18:47:23Z
how do you deal with commas in fields?
18:47
^^
Avatar
[quakenet] ChillerDragon BOT 2020-12-02 18:47:37Z
i don't have commas in the fields :P
18:47
hostname,dummy,password
Avatar
[quakenet] heinrich5991 BOT 2020-12-02 18:48:05Z
password can't have commas?
Avatar
[quakenet] ChillerDragon BOT 2020-12-02 18:48:08Z
i parse 2 commas and then im done password could contain commas but i ignore them
18:48
it can
Avatar
[quakenet] heinrich5991 BOT 2020-12-02 18:48:14Z
ok, so not csv
Avatar
[quakenet] ChillerDragon BOT 2020-12-02 18:48:17Z
yea
Avatar
[quakenet] heinrich5991 BOT 2020-12-02 18:49:11Z
you could implement csv by double-quoting the field if it contains a comma or a double-quote, and replacing double-quotes with two double-quotes
Avatar
[quakenet] ChillerDragon BOT 2020-12-02 18:49:20Z
ik
18:49
but why would i
Avatar
[quakenet] heinrich5991 BOT 2020-12-02 18:49:37Z
to have a standard file format
Avatar
[quakenet] ChillerDragon BOT 2020-12-02 18:49:39Z
sounds like a lot of work and complexity and more ways to fuck it up
18:49
why do i profit from a standard file format
Avatar
[quakenet] heinrich5991 BOT 2020-12-02 18:50:10Z
easier to read from other implementations
Avatar
[quakenet] ChillerDragon BOT 2020-12-02 18:50:18Z
yes
Avatar
[quakenet] heinrich5991 BOT 2020-12-02 18:50:31Z
easier to extend if you need more fields
Avatar
[quakenet] ChillerDragon BOT 2020-12-02 18:50:40Z
it still easy
18:50
also no need for other implementations
18:51
in all these easy script languages following standards is fun but in c++ meh
Avatar
[quakenet] heinrich5991 BOT 2020-12-02 18:51:45Z
well then c++ sucks I guess
Avatar
[quakenet] ChillerDragon BOT 2020-12-02 18:51:53Z
oof
Avatar
[quakenet] heinrich5991 BOT 2020-12-02 18:52:25Z
(note that there's a partial implementation of csv in ddnet already; writing is implemented)
Avatar
[quakenet] ChillerDragon BOT 2020-12-02 18:52:39Z
oh wow why?
Avatar
[quakenet] heinrich5991 BOT 2020-12-02 18:52:48Z
ddnet-saves.txt
Avatar
[quakenet] ChillerDragon BOT 2020-12-02 18:52:55Z
what is it
18:53
passwords for /save?
18:53
nah
Avatar
[quakenet] heinrich5991 BOT 2020-12-02 18:53:15Z
yes
Avatar
[quakenet] ChillerDragon BOT 2020-12-02 18:53:17Z
wat
18:53
we have that?
Avatar
[quakenet] heinrich5991 BOT 2020-12-02 18:53:23Z
yes
Avatar
[quakenet] ChillerDragon BOT 2020-12-02 18:53:26Z
how to use it
Avatar
[quakenet] heinrich5991 BOT 2020-12-02 18:53:36Z
type /save <code> anywhere
18:53
the code is saved into the file
18:53
done
Avatar
[quakenet] ChillerDragon BOT 2020-12-02 18:53:46Z
oh
18:53
not bad
18:54
thats half of my password manager already xd
Avatar
@anyonewhoknowshowfuckingenvelopesworkpleaseineedinformation So, I wanted to know if it is possible to make a day/night cycle using envelopes that is synced between clients, no matter when the client was started, the server was joined or when the tee touched the start/finish line. Is that possible? (Notice: My server is playable from 0.7 and 0.6 (DDNet only, not vanilla))
Avatar
make the envelope "synced" I think
21:21
@fokkonaut ^
Avatar
Would it work for 0.7?
21:22
is that some hack?
21:22
or ddnet-noly
21:22
only*
Avatar
synced means it's based on server time
Avatar
is it a feature that also exists in 0.7?
Avatar
synced? yes
21:22
it's a TW feature IIRC
Avatar
cant find it in 0.7 editor
21:23
only in ddnet
21:23
oh no
21:23
wait
21:23
i found it :D
21:23
i will try it out, thanks alot
Avatar
@heinrich5991 mh, doesnt seem to work correctly. My server modifies the game start tick in order to show race time. with Synchronized being enabled, the animation is always synced for 0.7 and 0.6 clients, but as soon as passing the start line the server resets the gamestart tick for that player of course, so its at 0:00, but it only affects 0.7 clients, as their animation will reset but DDNets animation will just continue to be synced
21:37
why is that? gamestarttick should not affect envelopes anymore, like in DDNet i think
Exported 120 message(s)