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-04-10 00:00:00Z and 2023-04-11 00:00:00Z
Avatar
Original message was deleted or could not be loaded.
don't insult
Avatar
Jupstar βœͺ 2023-04-10 08:20:48Z
nice number
Avatar
someone forgot to exclude packages?
08:29
or is that like a commit of 50+ merged pull requests (edited)
Avatar
Jupstar βœͺ 2023-04-10 08:35:05Z
that is the total number of commits in ddnet repo
Avatar
What do you recommend I do for getting info about all the maps? i.e. I want to get the median time of all the ddnet maps (~2200) so I can sort them based on expected length. I could use https://ddnet.org/maps/?json=MAP_NAME but I don't want to spam that endpoint 2200 times. (I could put a 1sec delay between each request but that might still be excessive). This is just a once-off request, and for any new maps I can just use that api. Thoughts? (edited)
Avatar
2200 with delay is not that much
Avatar
Jupstar βœͺ 2023-04-10 08:50:51Z
u can also download the whole ddnet database, but maybe these 2200 requests are still less. also depends how long u want to cache it
πŸ‘ 1
Avatar
I will likely cache it forever, since those median times won't change much, especially for old maps
Avatar
Oh yeah, forgot about that datasette
Avatar
Avatar
UnlucksMcGee
What do you recommend I do for getting info about all the maps? i.e. I want to get the median time of all the ddnet maps (~2200) so I can sort them based on expected length. I could use https://ddnet.org/maps/?json=MAP_NAME but I don't want to spam that endpoint 2200 times. (I could put a 1sec delay between each request but that might still be excessive). This is just a once-off request, and for any new maps I can just use that api. Thoughts? (edited)
one request per second sounds fine to me
Avatar
Cool thanks, I'll go with that. I was looking up how to get median in SQL (need to order the data and then offset it to get the middle item in the results...), I'll just stick with the requests monkalaugh
Avatar
Mʎɹ γ‚· 2023-04-10 09:03:49Z
:(
Avatar
Avatar
UnlucksMcGee
Cool thanks, I'll go with that. I was looking up how to get median in SQL (need to order the data and then offset it to get the middle item in the results...), I'll just stick with the requests monkalaugh
The magic scripts that make DDNet run. Contribute to ddnet/ddnet-scripts development by creating an account on GitHub.
09:04
mariadb/mysql
Avatar
Does datasette use that same sql i.e. mariadb/mysql?
09:07
for datasette it seems annoying, except if Ryozuki installs https://github.com/simonw/datasette-statistics
SQL statistics functions for Datasette. Contribute to simonw/datasette-statistics development by creating an account on GitHub.
Avatar
Ah ok. I'll go the requests route, thanks!
Avatar
Avatar
UnlucksMcGee
What do you recommend I do for getting info about all the maps? i.e. I want to get the median time of all the ddnet maps (~2200) so I can sort them based on expected length. I could use https://ddnet.org/maps/?json=MAP_NAME but I don't want to spam that endpoint 2200 times. (I could put a 1sec delay between each request but that might still be excessive). This is just a once-off request, and for any new maps I can just use that api. Thoughts? (edited)
Cool, what do you do rhat for? Finish them in that order then?
Avatar
So that I can decide what map to play based on how much time I have :)
11:56
maybe add as well success rate... but i guess that's not possible, since nothing gets saved when a player kills half way through the map
Avatar
Avatar
UnlucksMcGee
Does datasette use that same sql i.e. mariadb/mysql?
it uses sqlite
Avatar
Avatar
deen
for datasette it seems annoying, except if Ryozuki installs https://github.com/simonw/datasette-statistics
installed
Avatar
what is actually saved about a map? i remember someone posting the playtime of multeasymap. and also how long a specific player spend on multeasy. but playtime is only the sum of the racetimes? or is it saved when a player just spends 10 minutes on a map and then kills? then you could do playtime_of_map/racetime_of_map
12:03
racetimes = when player finishes race
Avatar
Avatar
cauldron
maybe add as well success rate... but i guess that's not possible, since nothing gets saved when a player kills half way through the map
I just rank the maps by least difficulty (no. stars/points) and then by most finishes. It works okay at having the easier maps near the top
Avatar
are there a vector versions of gui assets? in particular im lookin for gui_cursor.png?
Avatar
Avatar
k2d222
are there a vector versions of gui assets? in particular im lookin for gui_cursor.png?
Jupstar βœͺ 2023-04-10 12:55:12Z
https://github.com/ddnet/ddnet-data-svg/issues/46 seems like voxel is working on them
List of vectors I will be working on: Arrow GUI Buttons GUI Cursor GUI Icons Strong/Weak If you are working on any of these, message now.
12:55
so not yet
Avatar
cool! @Voxel , Ill be interested to get pinged when its done πŸ˜‰
Avatar
wildchancho BOT 2023-04-10 13:41:44Z
123
13:41
booba
Avatar
ChillerDragon BOT 2023-04-10 13:43:58Z
o/
Avatar
wildchancho BOT 2023-04-10 13:44:16Z
hi
13:44
whats this
Avatar
ChillerDragon BOT 2023-04-10 13:44:43Z
@k2d222 write a comment below the issue u get a email from github when its closed
πŸ‘ 1
13:45
wildchancho this is club penguin chat room
Avatar
wildchancho BOT 2023-04-10 13:46:01Z
(0-o)
Avatar
ChillerDragon BOT 2023-04-10 13:46:26Z
eh i mean u can even enable notifications for a issue w out comment @k2d222
Avatar
thats what i did thx
Avatar
Avatar
Jupstar βœͺ
https://github.com/ddnet/ddnet-data-svg/issues/46 seems like voxel is working on them
i wish gui_cursor wasnt so misaligned
Avatar
don't over align things
14:22
dissymetry is what makes things beautiful
Avatar
fiiine. i'll keep the outline 2.5 pixels thick
Avatar
Jupstar βœͺ 2023-04-10 14:24:17Z
nah just fix this shit xd
Avatar
thats what i was gonna do
Avatar

Checklist

  • [ ] 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://github.com/ddnet/ddnet/#using-addres...
Avatar
76ad9e2 Use Localizable instead of comment with Localize - Robyt3 9383fd2 Merge #6508 - bors[bot]
15:37

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://github.com/ddnet/ddnet/#using-addres...
Avatar
When zooming out with headless client. This can easily cause 100% cpu usage on strong machines. I am trying to track player movement with the headless client in a downstream project and would very much appreciate dropping it back to 40% cpu usage with this patch.

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 c...
Avatar
Should change layout only very little.

Notes if you are porting this downstream

SLabelProperties::m_AlignVertically is removed. The usage was previously confusing and inconvenient, as the SLabelProperties parameter object was necessary to change the vertical alignment. If m_AlignVertically == 1 (which is the default value) then the text is vertically centered and this works correctly also for multi-line text, assuming that the correct rect height is specified and the previous ...
Avatar
3015675 Fix client crash when spectating on server with missing game info - Robyt3 4d697c7 Merge #6509 - bors[bot]
Avatar
bf1e757 Fix incorrect text width calculation when cursor not starting at X=0 - Robyt3 8507a65 Refactor vertical alignment in UI - Robyt3 9ad2f9f Add functions to get text bounding box to ITextRender - Robyt3 a6f9fdd Add function to get caret position to ITextRender - Robyt3 8f5708a Use TextBoundingBox for tooltip rendering - Robyt3 b1f2862 Merge #6511 - bors[bot]
Avatar
is there any need to use alloc.h macros? it can be replaced with some wrapper class instead
Avatar
Not as cleanly. alloc.h let’s us have those classes pool allocated completely transparently
Exported 61 message(s)