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 2021-11-25 00:00:00Z and 2021-11-26 00:00:00Z
Avatar
84ecbdb add str_utf8_stats to base system - Robyt3 3500429 use str_utf8_stats in CLineInput::Set - Robyt3 5cf3562 refactor CLineInput::Clear - Robyt3 fa8f540 use str_utf8_stats in CLineInput::Manipulate - Robyt3 35a3d8c add CLineInput::SetRange - Robyt3 85236ed rename CLineInput::Add to Append and refactor - Robyt3 c5ca424 add CLineInput::Insert - Robyt3 dcdea25 remove unused CLineInput::CCallback - Robyt3 d747edd replace DeleteUntilCursor and DeleteFromCursor with SetRange - Robyt3 fd87fb8 Merge #4393 - bors[bot]
Avatar
btw, the map Pogchy used the telegun/telegrenade quite nicely
03:31
I like it, thanks for creating it @Ryozuki 🙂
Avatar
https://media.ccc.de/v/33c3-8127-how_do_i_crack_satellite_and_cable_pay_tv @Learath2 unwatched, but re the discussion the other day
Follow the steps taken to crack a conditional access and scrambling system used in millions of TV set-top-boxes across North America. Fro...
03:56
this year's offline ccc was also cancelled 😦
Avatar
just when i needed a https cert letsencrypt is down https://letsencrypt.status.io/
Support for Let's Encrypt services is community-based and information on current status and outages can be found at: https://community.letsencrypt.org
07:26
feelsbadman
07:26
lucky
Avatar
Use staging acme-staging-v02.api.letsencrypt.org wesmart
08:21
hackernews is with me
08:21
i got my cert already btw
08:22
pro tip: renew ur certs days before the expiration
08:22
not at the last days
08:22
imagine this happens then
08:22
monkalaugh
Avatar
Actually, certbot renew should be in crontab and it should auto-renew all certs much earlier than a day. This was the main promise of letsencrypt, getting a certificate totally automated
08:27
Being for free is just a side-effect of this: Since you can't forget to pay, you won't get a broken certificate for not paying
08:28
(ddnet.tw still had a certificate failure recently, but I'm not sure what happened there, might have been a cloudflare issue instead)
Avatar
ye i do it automatically
08:28
i never renewed it manually
08:28
but i saw some comments on hn
08:28
xD
08:30
@deen actually certbot is not part of letsencrypt as is
08:31
letsencrypt actually lists multiple clients for renewal, etc
08:31
Last updated: Oct 31, 2021 | See all Documentation Let’s Encrypt uses the ACME protocol to verify that you control a given domain name and to issue you a certificate. To get a Let’s Encrypt certificate, you’ll need to choose a piece of ACME client software to use. The ACME clients below are offered by third parties. Let’s Encrypt does not contro...
08:31
here is the list
08:32
Let’s Encrypt does not control or review third party clients and cannot make any guarantees about their safety or reliability.
Avatar
Recommended: Certbot
Good enough
Avatar
@timakro do you have the teesmash server config with votes?
08:48
@deen found it
08:48
The hocus-pocus making Unique happen. Contribute to unique-clan/unique-scripts development by creating an account on GitHub.
08:48
im glad we are open source too!
08:49
oh
08:49
its a template
08:49
lmao
08:56
if you can add the missing maps from here
08:56
smashy series
Avatar
481f9f5 Add donation by Ryozuki - def-
Avatar
@Ryozuki thanks!
Avatar
``` ================================================================= ==146168==ERROR: AddressSanitizer: heap-use-after-free on address 0x62d001f2fcf8 at pc 0x561d4b3d51a0 bp 0x7ffd540e1fb0 sp 0x7ffd540e1fa8 READ of size 1 at 0x62d001f2fcf8 thread T0 #0 0x561d4b3d519f in CCollision::GetTileIndex(int) const /media/ddnet/src/game/collision.cpp:980:25 #1 0x561d4b3d4d69 in CCollision::GetMoveRestrictions(bool ()(int, void), void*, vector2_base, float, int) /media/ddnet/src/game/col...
Avatar
I don't like certbot, it feels so overbuilt
11:07
I usually use acme.sh but would use something even more lighterweight if it existed
Avatar
A tiny script to issue and renew TLS certs from Let's Encrypt - GitHub - diafygi/acme-tiny: A tiny script to issue and renew TLS certs from Let's Encrypt
Avatar
golang
13:08
ah no python
13:09
golang is more blue white
Avatar
Python I can tolerate as long as it's something I never have to tinker with
Avatar
after using rust i rly dislike golang error handling
13:09
feels dirty
13:09
and wrong
13:10
a good blog post on why golang is badly thought https://fasterthanli.me/articles/i-want-off-mr-golangs-wild-ride
My honeymoon with the Go language is extremely over. This article is going to have a different tone from what I've been posting the past year - it's a proper rant. And I alw...
Avatar
Any error handling after rust feels pretty sad
Avatar
u should read it
13:10
(btw this guy is one of the best rust bloggers)
13:10
imho
13:10
tho his articles can take more than an hour to read xd
Avatar
That's the way I like my articles
Avatar
it has one about C and utf8 and people that complain about rust having 2 types for strings: String and &str
13:12
rly good too
Avatar
They need to take as long as possible so I can get away from my miserable existence
Avatar
There's a question that always comes up when people pick up the Rust programming language: why are there two string types? Why is there String , and &str ? My Declarati...
13:12
@Learath2 read this
13:13
it has C on it
13:13
only 75 mins
13:13
monkalaugh
Avatar
If it's C hate you need to give me a trigger warning
Avatar
idk if its c hate
13:17
cuz its just stating truths
13:18
monkalaugh
Avatar
oh, fasterthanli.me
13:20
good way to spend an hour or two understanding rust's async e.g.
Avatar
Okay this article is silly. I started only depressed now I’m annoyed and depressed
13:52
Did you know that in a language that has no concept of unicode, handling unicode requires you to do it yourself SMH
13:54
Or get this, a language with automatic memory management is easier to use correctly than one with manual memory management. Revolutionary
Avatar
That was (part of) an environment variable! Those are stored right next to the program's arguments in glibc, the GNU C library.
13:54
isn't that the linux kernel that does this?
Avatar
Avatar
Learath2
Or get this, a language with automatic memory management is easier to use correctly than one with manual memory management. Revolutionary
well the article explains why rust aproach is better
Avatar
Did you know if you cast away const you could break things? My mans saying this like all C programmers cast away const daily. In the decade I’ve been programming in C I have not seen more than 3 instances of people casting const away
Avatar
@Learath2 iirc this article was made cuz there were a lot of c devs saying uh duh rust has 2 types of a string etc
Avatar
All in beginner quesitons
Avatar
the str searching functions in C casually cast const away
13:59
#include <stddef.h> void *memchr(const void *s, int c, size_t n) { unsigned char p = (unsigned char)s; while( n-- ) if( *p != (unsigned char)c ) p++; else return p; return 0; }
Avatar
Idk what this kind of article is called but I hate it. Coding in one language like a braindead flipflop and comparing it to another without artificially hindering themselves
Avatar
@Learath2 did u fully read it tho?
14:00
i bet not
Avatar
I’m like one paragraph away from finishing it
Avatar
cuz he implements the utf8 in c too later
14:00
ah
14:01
i knew u would get kinda triggered xd
Avatar
toupper(0) = 0 sounds reasonable
Avatar
The fact that String and &str exists can be justified without the need to pull in an another language and code in it like a baboon
Avatar
I mean it's the identity for all non-letters, including U+0000, I guess
Avatar
in fact, rust does the same:
14:34
> cat a.rs fn main() { println!("{:?}", "\0".to_uppercase()); }
14:34
$ ./a "\u{0}"
Avatar
I bet there is some ambiguity in the standard he is talking about there
Avatar
Lucky toupper has no way to return an error and just returns 0 for 0, right? Or maybe 0 is what it returns on error? Who knows! It's a C API! Anything is possible.
Converted character or ch if no uppercase version is defined by the current C locale.
14:39
sounds pretty clearcut to return 0 if passed 0
14:40
the function is a bit ouch though
14:40
it's UB to call it with a signed char or a char that is signed
Avatar
Is it the case in C too or is it some C++ oddity?
Avatar
I usually assume that these things are the same in C and C++, let me double-check
14:44
in the c11 standard, there's no UB
14:45
ah well
14:45
what is "a character"?
Avatar
Heh, yeah those things can be a little vague
14:46
Maybe check the definitions at the start?
Avatar
doing so rn
14:46
character 〈abstract〉 member of a set of elements used for the organization, control, or representation of data
14:48
I don't know what to do with this
Avatar
chillerdragon BOT 2021-11-25 15:31:22Z
is there a way to save settings without closing the client? if not can we get one? :)
Avatar
With Linux celebrating it’s 30 year anniversary, I thought I’d use that as an excuse to highlight 30 of my favorite free and open source Linux games, their communities, and their stories. If you’ve haven’t
18:00
actually not bad list
18:00
ddnet not in there t ho
Avatar
Well, Teeworlds was in part 1 already
18:11
Easy to learn, but hard to master, Teeworlds is a nice little MMO that’s a mashup of retro platform and shooting games. Customize your character, battle with up to 16 players, create your own maps, or check out some of the amazing community-created maps.
>
Originally created by Magnus Auvinen, it’s now open source and maintained by the community. Unvanq
18:11
MMO sounds a bit weird
18:11
tho
Avatar
This removes the check for the null-terminator from the while loop, as this is also checked in str_utf8_forward, which returns an unchanged size in this case. The comparison new_size != *size was previously redundant for that reason. Update comments and add some empty lines for consistency. @heinrich5991

Checklist

  • [X] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [...
Avatar
@heinrich5991 what about #4380?
Avatar
Builds upon @Robyt3&#39;s #4378. Tries to make less changes to the whole codebase by simply fixing up argc and argv at program start. Fixes #4369. Checklist Tested the change ingame Provided...
Avatar
30 underrated reasons to be thankful, starting with the fact that atomic bombs don’t ignite the atmosphere
Avatar
i didnt wish to be born chill
Avatar
Is there a tutorial for ubuntu ddnet server setup?
Avatar
deen
22:10
typing..
22:10
justatest
Avatar
download version for linux from ddnet.tw, extract, run ./DDNet-Server (potentially in screen so it keeps running after you close your connection)
Avatar
ufw allow 8303 and server working fine
22:17
I can't seem to find config file
Avatar
data/autoexec_server.cfg
Avatar
Forgive my ignorance, I've only created servers for source engine games before.
Avatar
thats not called ignorance
Avatar
Turkish community needs gores server and I want to provide it.
22:23
Every Turkish player who wants to play gores has to enter German servers.
22:23
What procedure do I need to validate my server?
Avatar
The checkmark you mean? That is only for official DDNet and KoG servers
22:24
so only the ones I run and Avolicious runs
Avatar
I don't know exactly how ddnet global work. Many players in Turkey suggested that I open a server. Because they wanted a gores server in Turkey.
22:26
So if I can do something like authenticate/certify my server I would like to do that.
Avatar
No, you could ask Avolicious to run a KoG server in Turkey
22:31
or you can run your own, but then the ranks are not connected
22:31
and it's only on Internet tab, not KoG
Avatar
Thanks to 冷落 for report

Checklist

  • [x] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [x] Tested in combination with possibly related configuration options
  • [ ] Written a unit test if it works standalone, system.c especially
  • [x] Considered possible null pointers and out of bounds array indexing
  • [x] Changed no physics that affect existing maps
  • [x] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet...
22:51
22:51
09b32d2 Version 15.7 - def- 7bd464a No wasd moving when dialog is open (fixes #4370) - def- 203b1dd Update french.txt - Sehyn d1ced38 Update Chinese translations (by cheeser0613) - def- 1a4223f Update hungarian (by Cellegen) - def- 494460b full translate - edg-l
22:54
7392c5f Sanitize owner data in client (fixes #4388) - def-
23:23
6d9a23f Version 15.7 - def- 8dcabdb Merge pull request #160 from ddnet/pr-15.7 - def-
Avatar
c359d82 DDNet keeps being built by the Community post - def-
23:52
Exported 170 message(s)