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 2023-07-26 00:00:00Z and 2023-07-27 00:00:00Z
Avatar
46.174.139.20:8303 185.72.9.187:8303 fake turkey servers probably grabbing ips
Avatar
46.174.139.20:8303 is not a DDNet or KoG server.
Avatar
45.141.57.154:8303 test
Avatar
45.141.57.154:8303 is not a DDNet or KoG server.
Avatar
Alright thanks !!
Avatar
This should hopefully finally fix #6855.

Checklist

  • [x] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test (especially base/) or added coverage to integration test
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memche...
08:25
we use ddnet.org nowadays
Avatar
@Spooky
Avatar
3010633 improve envelope y offset on reset for small value ranges - Marmare314 b440962 Merge pull request #6919 from Marmare314/zoomresetoffset - Robyt3
09:27
be86166 reset layer dragging status if no buttons were pressed - Marmare314 22bd19b Merge pull request #6920 from Marmare314/layer-drag-bug - Robyt3
Avatar
Copy a map (I tested with Aip-Gores) three times and keep switching between the copies on a LAN server with sv_map. After one or two changes the client will crash: ``` Error occurred on Wednesday, July 26, 2023 at 11:46:42. DDNet.exe caused an Access Violation at location 00007FF7EBE03DC9 in module DDNet.exe Reading from location 0000000000000008. AddrPC Params 00007FF7EBE03DC9 00000213365CB040 000000000000001F 000000003F800000 DDNet.exe!CConsole::ResetServerGameSettin...
Avatar
Could not remove old map file
!error Labeling it as a server bug, as the server should not keep the map file open.
Avatar
National Insurance Clerk 2023-07-26 10:49:53Z
to the more experienced game developers here - how harmful is letterboxing to a game? it makes it less immersive but way easier to manage, and i'm really torn on whether i should use this in my game or go through the exrta headaches to pull off a dynamic UI
10:50
I need some opinions from those who actually know what they're doing
Avatar
On "normal" resolutions?
10:54
I think it's fine if a game does not support all resolutions fine if it doesn't make sense
Avatar
on 1920 i would try to not have that
10:54
from what i seen some games do ui for the most used resolutions
10:55
and then yeah
Avatar
National Insurance Clerk 2023-07-26 10:55:20Z
i thought 1920x1080 was standard, but apparently there are a lot of modern monitors that use other ratios
10:55
my laptop is personally 16:9 too, and that's how most of my placeholder menus look now
Avatar
Will be good enough for the mainstream then
Avatar
National Insurance Clerk 2023-07-26 10:57:18Z
alr
10:57
worst case scenario i'll deal with it later on
Avatar
but beware ur asking developers not designers
11:22
xddd
11:22
lazy by nature
Avatar
National Insurance Clerk 2023-07-26 11:37:11Z
well
11:37
better to ask anyone
11:37
i should probably consult people who do design as well
11:38
or just do the lazy letterboxing thing and move on
Avatar
Simply try your best. But don't waste too much time on this. UI is probably easy to fix later^^
Avatar
!zoom_grid

Checklist

  • [x] Tested the change ingame
  • [x] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test (especially base/) or added coverage to integration test
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [ ...
Avatar
``` 2023-07-26 14:31:45 I save: Save successful: ff358a88-0138-4c05-be28-27131b26dd56 […] 2023-07-26 14:32:46 I chat: *** […] joined team 22 2023-07-26 14:32:49 I sql: [91] load team done on write backup database, Success=1 2023-07-26 14:32:49 I mysql: connection established 2023-07-26 14:32:49 I sql: [91] load team done on write database 2023-07-26 14:32:49 I sql: [91] load team done move write on backup database to non-backup table 2023-07-26 14:32:50 I sql: [92] load team done on w...
Avatar
@Learath2 ^
Avatar
@heinrich5991 #6256, willing to create a mem_init function and keep mem_zero for trivial types ?
Avatar
My preferred alternative to #6219. Thanks to @Chairn for laying the groundwork for making this safer. This PR simply doesn't allow to call mem_zero on nontrivial types. I like that better than ...
Avatar
what's mem_init? calling constructors and zeroing everything else?
14:14
@Chairn
Avatar
i guess
14:15
your comment said that you didn't like mem_zero not zeroing memory
Avatar
yes
14:19
what's the use case for mem_init?
14:19
@Chairn
Avatar
I suspect it was caused by the envelope zooming refactoring in #6885, @Marmare314.
Avatar
doing the same as mem_zero, ie dont leave memory uninitialized
Avatar
But as result type?
14:25
Int a = mem_init?
Avatar
that's done using {}?
14:33
that can be done*
Avatar
Test map: test_envelope_zoom_range.zip (screenshots with #6923 but it also happens without) Default zoom showing everything: !screenshot_2023-07-26_16-42-29 When using scroll wheel once it immediately changes zoom to this and you can't zoom out any further: ![screenshot_2023-07-26_16-42-37](https://github.com/ddnet/...
Avatar
Avatar
Jupstar ✪
But as result type?
more like mem_init(T* ptr) with T being non trivial type
Avatar
See commit messages. Closes #6922.

Checklist

  • [X] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test (especially base/) or added coverage to integration test
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https:/...
Avatar
Avatar
Chairn
more like mem_init(T* ptr) with T being non trivial type
Guess we should prefer constructors then
15:04
If we currently have weird hacks that justify this. We should better look if we can get away.. but tbf sometimes the code is insanely hacky xD
Avatar
How hard is it to disable ssl verification in aiohttp???
15:07
Like seriously why do they make everything so hard? I know what I'm doing just let me not verify it aAAAAAaaaa
Avatar
step 1
15:07
dont use python
Avatar
Avatar
Learath2
How hard is it to disable ssl verification in aiohttp???
Thanks to all those people who have spent their valuable time and contributed to the aiohttp. I am new to using the aiohttp library. When I went through the docs, noticed aiohttp.request() function...
15:12
seems pretty easy?
Avatar
You can only do it per request for some reason
Avatar
override the request method if you want to have it per-session
15:14
doesn't sound too har
15:14
d
15:14
ah
15:14
I guess there are multiple possible request methods
15:15
why do you want to disable it btw? (I'm required by law to ask this question) @Learath2
Avatar
ur required?
15:15
xd
15:15
ah u mean cuz its used in ddnet
15:15
?
Avatar
Avatar
heinrich5991
why do you want to disable it btw? (I'm required by law to ask this question) @Learath2
I just want to inspect the requests with a proxy AnyaSob
Avatar
if you just want to inspect, perhaps SSLKEYLOGFILE works?
Avatar
damn, that caterpillar map looks great. the guy posting it is at his 6 attempts 😄
Avatar
It's almost like I'm doing something wrong, how could it be this hard? Do people just not debug stuff in python and instead just keep rewriting it until it works or create bug reports?
Avatar
@Learath2 apparently SSLKEYLOGFILE is supported
15:19
perhaps use that?
Avatar
Avatar
heinrich5991
@Learath2 apparently SSLKEYLOGFILE is supported
I'd rather not work with wireshark
15:19
but that's a good fallback
Avatar
I like to see what's actually on the wire
Avatar
if I can't figure it out within the next 10 minutes
15:20
I like the interface of mitmproxy for messing around with these, especially since I can intercept and modify requests on the fly with it
Avatar
have you tried what I suggested in #tester ?
Avatar
Avatar
heinrich5991
I like to see what's actually on the wire
the wired
15:23
@Learath2 knows the reference
15:24
15:24
sus
Avatar
@Learath2 add ssl = False in the line after ssl = _merge_ssl_params(ssl, verify_ssl, ssl_context, fingerprint) in /usr/lib/python3.11/site-packages/aiohttp/client.py
Avatar
so u have dev talks in private channels
15:24
im saddened
Avatar
that should disable all ssl checks for all requests using aiohttp
15:25
(make sure to revert it afterwards ^^)
15:26
@Learath2 does that work for you?
Avatar
THANK GOD
15:26
Thank you @heinrich5991
Avatar
you're very welcome
Avatar
Mh I have a feeling the bot is running two times now, @murpi did you start it with systemctl?
15:30
Yeah you did, I'm going to start crying
Avatar
Yes, I wanted to see the request the bot does
Avatar
systemd kek
Avatar
Ok, I don't get it
15:33
The request contains the \n just fine, if I do the same request to the same endpoint on my own guild I get proper newlines
Avatar
when nixos servers on ddnet?
Avatar
Avatar
Learath2
Yeah you did, I'm going to start crying
sorry 😦
Avatar
Avatar
Learath2
The request contains the \n just fine, if I do the same request to the same endpoint on my own guild I get proper newlines
no it doesn't?
15:33
[2023-07-26 17:26:45][DEBUG][discord.gateway]: For Shard ID None: WebSocket Event: {'t': 'CHANNEL_UPDATE', 's': 344, 'op': 0, 'd': {'version': 1690385204989, 'type': 0, 'topic': '**"caterpillar4"** by **Test** [Race]https://ddnet.org/testmaps/?map=caterpillar4@learath2', 'theme_color': None, 'rate_limit_per_user': 0, 'position': 135, 'permission_overwrites': [{'type': 0, 'id': '746414504488861747', 'deny': '0', 'allow': '8192'}, {'type': 1, 'id': '216912122083409925', 'deny': '0', 'allow': '1024'}, {'type': 1, 'id': '849574991804497940', 'deny': '0', 'allow': '1024'}, {'type': 0, 'id': '421357200234250240', 'deny': '0', 'allow': '1088'}, {'type': 1, 'id': '1099262920497582099', 'deny': '0', 'allow': '1024'}, {'type': 0, 'id': '455814387169755176', 'deny': '0', 'allow': '1024'}, {'type': 0, 'id': '252358080522747904', 'deny': '1024', 'allow': '0'}, {'type': 1, 'id': '275534913384742913', 'deny': '0', 'allow': '1024'}, {'type': 0, 'id': '293543421426008064', 'deny': '0', 'allow': '9216'}], 'parent_id': '449352010072850443', 'nsfw': False, 'name': ':checkered_flag:caterpillar4', 'last_message_id': None, 'id': '1133782463697653831', 'icon_emoji': {'name': ':checkered_flag:', 'id': None}, 'hashes': {'version': 1, 'roles': {'hash': 'oCrJNw'}, 'metadata': {'hash': 'n11idw'}, 'channels': {'hash': 'AuBlCQ'}}, 'guild_id': '252358080522747904', 'guild_hashes': {'version': 1, 'roles': {'hash': 'oCrJNw'}, 'metadata': {'hash': 'n11idw'}, 'channels': {'hash': 'AuBlCQ'}}, 'flags': 0}}
15:34
they're missing entirely here too
Avatar
Idk how you are printing that, but I'm very sure the actual request that is made to the api contains the \n
Avatar
check the log file
15:35
i changed the logging level to debug
15:35
it prints the raw api requests into the log file
Avatar
{ "type":0, "name":"\ud83c\udfc1caterpillar4", "parent_id":449352010072850443, "permission_overwrites":[ { "allow":1024, "deny":0, "id":216912122083409925, "type":1 }, { "allow":1024, "deny":0, "id":1099262920497582099, "type ":1 }, { "allow":0, "deny":1024, "id":252358080522747904, "type":0 }, { "allow":1024, "deny":0, "id":455814387169755176, "type":0 }, { "allow":9216, "deny":0, "id":293543421426008064, "type":0 }, { "allow":1088, "deny":0, "id":421357200234250240, "type":0 }, { "allow":8192, "deny":0, "id":746414504488861747, "type":0 } ], "topic":"**\"caterpillar4\"** by **Test** [Race]\nhttps://ddnet.org/testmaps/?map=caterpillar4\n<@216912122083409925>" }
15:38
It obviously has no idea what it's printing
15:38
This is 100% what it is sending at the end of the day
15:39
btw what you logged is the gateway event notifying that the channel has been created, you are looking for the client request
Avatar
(I already logged within discord.py the request and it still had the \n)
15:43
AHA
15:43
Found it, it is an API issue
15:44
POST /guilds/<gid>/channels ignores the \ns PATCH /channels/<cid> doesn't
Avatar
make sure to re-enable tls verification 😉
Avatar
Avatar
heinrich5991
make sure to re-enable tls verification 😉
I nuked the entire venv since I was poking around lots of packages trying to rig it to work 😄
Avatar
Avatar
Learath2
Found it, it is an API issue
Description Creating a channel with newlines in the topic ends up dropping the newlines, however the exact same request updating the channel will correctly update the topic. Steps to Reproduce body...
16:04
Found a bug in githubs preview generator there 😄
Avatar
it's broken all the way down
16:05
all software, that is
Avatar
mitmproxy is such a nice piece of software btw, if any of y'all ever need to debug stuff like this
16:06
Rare python w
Avatar
@Learath2 youre the best (edited)
16:07
should I add the regex anyway? justatest
16:07
i've been changing the topics by hand the last couple of weeks
Avatar
Avatar
Learath2
mitmproxy is such a nice piece of software btw, if any of y'all ever need to debug stuff like this
haven't used it before
16:08
any advice when to start looking at it?
Avatar
Avatar
heinrich5991
any advice when to start looking at it?
It's especially useful when you feel like tinkering with the requests on the fly
Avatar
do programs usually not have timeouts that prohibit manual editing?
Avatar
Also very useful when you want to tinker with responses, e.g. you don't have access to the client source but want to see how it behaves w.r.t some response
Avatar
how do you usually deal with certificates?
Avatar
Avatar
heinrich5991
do programs usually not have timeouts that prohibit manual editing?
If the timeout becomes an issue it can also do automated editing iirc with full python support you can use to edit the request/response
Avatar
Avatar
heinrich5991
how do you usually deal with certificates?
e.g. depends on your target, e.g. way back in the day I was reversing some ios messaging app, just installing the mitmproxy CA certificate was enough (the apps fault really, it should have been making sure)
16:13
s/^e.g. d/D/
16:13
😄
Avatar
Avatar
Learath2
e.g. depends on your target, e.g. way back in the day I was reversing some ios messaging app, just installing the mitmproxy CA certificate was enough (the apps fault really, it should have been making sure)
not the app's fault if it's okay with being analyzed. it's the user's device after all
Avatar
That is true, but I doubt blackberry really wanted their messenger inspected in any manner
16:14
For apps that employ certificate pinning there are tools that can modify the installer, and a frida based magic tool that disables it at runtime
Avatar
Avatar
murpi
should I add the regex anyway? justatest
No, I'll fix it rn
Avatar
Fixes #6921 @Robyt3 Can you test this? Also I'm a little unsure if I'm committing cpp UB sin here, I think it's ok because FindCommand return 0x0 if it fails?

Checklist

  • [x] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test (especially base/) or added coverage to integration test
  • [ ] Considered possible null pointers and out of bounds array i...
Avatar
admin abuse happening in #📬submit-maps
16:33
@Learath2 releasing tons of maps
Avatar
I still do not undersand, how is this possible, I do the same request from the same server with curl it works, I do it with discord.py it doesn't work
Avatar
have you tried wireshark? ^^
16:34
it's likely not the same request
16:35
have you compared the headers? @Learath2
16:36
have you compared the URL?
Avatar
Headers I'm comparing rn, URL the bot was using a versioned one, I used a versioned one too didn't change anything
Avatar
the versioning sounds like it could be the issue
16:37
maybe try that again, maybe you missed something?
16:37
anyway, I'll be off for a bit. I'm interested in the eventual solution
Avatar
The api even replied with the now correct topic, I don't get it :/
Avatar
ctrl-r in the discord client sometimes fixes caching issues
Avatar
the debug prints in the logs are super confusing 😬
Avatar
I was doing the PATCH too quick
16:42
seems there is a race somewhere in discord api ;/
Avatar
If theres too much spam, disable the playerfinder cog btw
Avatar
Anyway, a 2 second sleep after creating the channel seems enough
Avatar
a: buse
Avatar
@murpi that's that fixed
Avatar
now port everything to YADDB
16:46
🙂
Avatar
One day
Avatar
Kani Rust Verifier. Contribute to model-checking/kani development by creating an account on GitHub.
19:34
JEP 400: UTF-8 by Default
19:34
rust defining standards
Avatar
we'll unfortunately never get rid of almost-utf-16 in java, javascript, .net, windows
Avatar
The Google Information Security Team revealed a new flaw in AMD's Zen 2 processors in a blog post today. The 'Zenbleed' flaw affects the entire Zen 2 product stack, from AMD's EPYC data center processors to the Ryzen 3000 CPUs, and can be exploited to steal sensitive data processed in the CPU,
20:25
today im faster
20:25
@Jupstar ✪ @ReiTW @Learath2 new lcoudflare blog dropped
20:26
hmm
20:26
upon further look doesnt seem as interesting xd
Avatar
already seen it
20:27
the microcode update
20:27
@heinrich5991 do u know examples of open source microcode? to know what it looks like
Avatar
I think there's some public old, REd intel microcode
20:29
While programmers today take multiplication for granted, most microprocessors in the 1970s could only add and subtract — multiplication r...
20:29
but I didn't mean that
20:30
20:31
btw
20:31
do you guys know streetcomplete? it's a nice app to get into contributing to openstreetmap 🙂
20:31
Avatar
ChillerDragon BOT 2023-07-26 20:34:47Z
@zwelf is there a way to search https://archive.strct.cc/ddnet without downloading all?
20:34
i am intrested in what ddnet did on r/place
Avatar
that happened in a thread which is not available in the archive AFAIK
Avatar
ChillerDragon BOT 2023-07-26 20:36:43Z
so not on ddnet discord?
Avatar
discord has threads
Avatar
ChillerDragon BOT 2023-07-26 20:37:31Z
like slack?
Avatar
Avatar
ChillerDragon
@zwelf is there a way to search https://archive.strct.cc/ddnet without downloading all?
@Zwelf
Avatar
ChillerDragon BOT 2023-07-26 20:37:56Z
isnt a thread in a channel?
Avatar
ye i guess
20:38
but like diferent idk
Avatar
yes. but it's not backed up by dce
20:39
I guess it would help if you could contribute there, ChillerDragon
20:40
What's possible as of now? Currently, there is no proper integration of threads or forum channels/their posts. However, you can still export threads/posts by passing their channel ID to the CLI...
Avatar
did someone make archive.org crawl all https://archive.strct.cc/ddnet/ ?
20:41
nope
20:41
i submitted it
20:41
but i think it doesnt do subpages automatically
Avatar
ChillerDragon BOT 2023-07-26 20:41:24Z
Avatar
u missed a lot
Avatar
ChillerDragon BOT 2023-07-26 20:41:47Z
like?
Avatar
how we teamed up with other communities
20:42
idk
20:42
xd
Avatar
ChillerDragon BOT 2023-07-26 20:42:50Z
epic
Avatar
So, what happened for this week? 20 July Main idea for r/place 2023 - ⁠r/place 2023⁠ Fist ddnet r/place - ⁠r/place 2023⁠ First pixels- ⁠r/place 2023⁠ OOF, that was close - ⁠r/place 2023⁠ War with KoG and SP|Someone, when they tried to destroy ddnet r/place - ⁠general⁠ DDRock just stared to ban player for saying, "KoG suck's" xD - ⁠r/place 2023⁠ Void are so close - ⁠r/place 2023⁠ Hitted by void, but keep calm :justatest: - ⁠r/place 2023⁠ We're dead - ⁠r/place 2023⁠ Some Spanish streamer just stole our place >:C - ⁠r/place 2023⁠ 21 July Old place actually AMOGUS field - ⁠r/place 2023⁠ ReD Getting back our place:D - ⁠r/place 2023⁠ (Also we comeback out friendship with KoG and DDrock) Collaboration with Sailor Moon @Johann [Sailor Moon] - ⁠r/place 2023⁠ Sailor moon kitty with DDNet art - ⁠r/place 2023⁠ - ⁠r/place 2023⁠ Ha ha happi cloud c: - ⁠r/place 2023⁠ Tardis with us on r/place - ⁠r/place 2023⁠ 23 July Had an idea about extend our field, but guys from Whole Lotta Red sain no:( - ⁠r/place 2023⁠ - ⁠r/place 2023⁠ Ok that fun XD - ⁠r/place 2023⁠ Heart with French:> - ⁠r/place 2023⁠ @Voxel get shadow ban xd - ⁠r/place 2023⁠ Actually nothing happen this day 24 July Void next to us (again) - ⁠r/place 2023⁠ New area - ⁠r/place 2023⁠ Reddit know what DDNet is - ⁠r/place 2023⁠ ehh.. well... - ⁠r/place 2023⁠ 🤫 - ⁠r/place 2023⁠ 25 July 0:26 am, alraeady beeing attacked bt frank ppls - ⁠r/place 2023⁠ Bot attack started (SO MUCH ATTACKS:0) - ⁠r/place 2023⁠ that was almost the end of r/place... - ⁠r/place 2023⁠ Guessing that r/place will end bot attack :feelsbadman: - ⁠r/place 2023⁠ - ⁠r/place 2023⁠ - ⁠r/place 2023⁠ - (almost dead btw) - ⁠r/place 2023⁠ Last screenshot before death... - ⁠r/place 2023⁠ BIG GG - ⁠r/place 2023
20:42
a resume
20:42
without links
20:43
⁠r/place 2023⁠ is a channel link
Avatar
seems kinda redundant to put it on archive.org
Avatar
Avatar
heinrich5991
seems kinda redundant to put it on archive.org
why? i trust it more than struct.cc
20:44
to continue living
Avatar
ChillerDragon BOT 2023-07-26 20:44:43Z
i dont get how r/place even works how is it not full of bots? How do people coordinate did you have like a ddnet template that others used? or how do they know where to place
Avatar
it is full of automated user accounts
Avatar
ye template
20:44
and ye lot of bots
20:44
sadly
Avatar
ChillerDragon BOT 2023-07-26 20:45:06Z
i see
Avatar
they dont even bother putting a protection
Avatar
ChillerDragon BOT 2023-07-26 20:45:12Z
wot?
20:45
like none at all?
Avatar
it looked like an event to boost user counts
Avatar
but this is done because of recent reddit drama and its a easy way to "fake" traffic to the website
Avatar
because reddit is doing badly with PR right now
Avatar
ChillerDragon BOT 2023-07-26 20:45:43Z
r/place is older than the PR struggle isnt it?
Avatar
r/place was reopened probably because of the PR struggle
Avatar
ChillerDragon BOT 2023-07-26 20:45:59Z
a
20:46
i thought its a reocurring event
Avatar
no
Avatar
r/place should have been only done once, reddit usually does something new on april fools
20:46
but when they did rplace they saw it was too much of a success
Avatar
ChillerDragon BOT 2023-07-26 20:46:24Z
i see
Avatar
so they repeated
Avatar
ChillerDragon BOT 2023-07-26 20:46:36Z
is it over now?
Avatar
ChillerDragon BOT 2023-07-26 20:46:47Z
sadge
Avatar
it ended with a big fuck u/spez (edited)
Avatar
ChillerDragon BOT 2023-07-26 20:46:54Z
how to even use a template?
Avatar
userscripts
Avatar
ChillerDragon BOT 2023-07-26 20:47:18Z
cool
Avatar
ChillerDragon BOT 2023-07-26 20:47:54Z
ima google who spez is my self
20:48
thanks for the insight :)
20:48
Spez, written as u/spez on Reddit, is the platform’s CEO. Real name Steve Huffman, users are protesting against the tech leader after Reddit revealed updates to its API (Application Programming Interface) in April 2023.
20:49
epic trol
Avatar
is tampermonkey not oss
21:46
's what i've been using
Exported 268 message(s)