Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.org/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 2024-11-19 00:00 and 2024-11-20 00:00
Avatar
Mozilla killed Firefox by being poor, all the original developers are gone.
00:07
Idk how much longer I'll be able to keep using it
Avatar
ungoogled chromium!
00:07
because chromium is kinda just the better browser (having used both)
Avatar
Avatar
Tater
Mozilla killed Firefox by being poor, all the original developers are gone.
what does this mean for the browser?
Avatar
but id prefer is firefox doesnt die...
00:07
more than it is already dead
Avatar
I want a normal browser not something I have to fix every 6 months
Avatar
theres full 0.7 skin support
00:08
why is this tucked away to only when you are playing 0.7
Avatar
It's for 0.7 players I guess
Avatar
yeah but i didnt know there was 0.7 support until i saw the config vars
00:09
i had never looked
00:09
i think it should be a tab
Avatar
it's recent
Avatar
thanks chiller
00:09
like this
Avatar
Avatar
Tater
it's recent
i love 0.7 skins :)
Avatar
Avatar
Solly
like this
like this
Avatar
are ddnet servers ever going to support 0.7 skins?
Avatar
If 0.7 gets more popular it will probably get a bigger part of the client
Avatar
haha no :)
00:10
but i like the skins
Avatar
I don't expect that 0.7 skins are planned or plan to be planned
00:11
also theres weird padding in ur settings page
Avatar
where
Avatar
That is weird
00:12
@Tater can i make a pr ><
Avatar
Yes I'm not stopping you
Avatar
yipee
Avatar
Just make sure it works with all the settings
Avatar
ill try not to break it
00:14
would a pr to add 0.7 skin support be added
00:14
just be a sv config to turn it off a cl config to send 0.7 skin instead (if supported) and server support to relay skins the same way it does for 0.6 (edited)
Avatar
how do i use hotreloading?
Avatar
Avatar
Solly
would a pr to add 0.7 skin support be added
0.6 skins better
Avatar
Avatar
Solly
how do i use hotreloading?
login to rcon on local server
Avatar
Avatar
kebs
login to rcon on local server
then what?
Avatar
change the map to the same as in editor
01:14
and itll hot reload on save in editor
Avatar
Avatar
kebs
0.6 skins better
yeah but i like 0.7 skins, they are already in ur client, but server just doesnt send em
Avatar
Avatar
kebs
and itll hot reload on save in editor
i meant hot reloading code
01:15
never used hot reloading in vs
01:15
it compiles fast enough for me
Avatar
yeah but im doing incremental changes
01:15
so bit annoying
01:15
to compile (takes 5s or so), open, wait, navigate to where im looking (takes another 5s)
01:16
well its more that im converting alot of code
Avatar
for values i was adding a test config value
Avatar
and im doing it in small chunks to make sure i dont mess up
Avatar
ws-client BOT 2024-11-19 01:31
<ChillerDragon> @fokkonaut i dont think he rq. why?
Avatar
ws-client BOT 2024-11-19 01:42
<ChillerDragon> @Solly ddnet servers support 0.7 skins if you connect from 0.7
Avatar
who do i ping to ping you? do i just type @ChillerDragon
01:49
oh it... pinged the discord one
01:50
i didnt do that on purpose
01:50
but ive never seen a 0.7 skin?
Avatar
Just type his name
01:50
He is like voldemort
Avatar
i already used voldermort
01:50
for the client that shant be named
01:51
the devil is the only other thing which seems to appear when you talk about them (speak of the devil)
01:52
and the devil, despite never being caught doing bad things, feels more evil than voldermort who has on multiple occasions murdered people and also wants to kill a child for 7 books (edited)
01:53
01:53
01:53
i wouldnt call that support
01:54
can other 0.7 clients see 0.7 skins
01:54
im pullling out the 5th desktop for this one jeez
01:54
yes
01:54
Avatar
ws-client BOT 2024-11-19 02:59
<ChillerDragon> @Solly you can ping me by writing my name with @ or without https://zillyhuhn.com/cs/.1731985143.png
02:59
<ChillerDragon> @Solly you probably never saw a 0.7 skin because you always play 0.6
Avatar
Avatar
ws-client
<ChillerDragon> @Solly you probably never saw a 0.7 skin because you always play 0.6
the 0.7 skins dont show properly on ddnet
03:16
and i dont think it would be that hard to change
03:17
@ChillerDragon if youre still awake... how do you do scrolling
03:18
static CScrollRegion s_ScrollRegion; vec2 ScrollOffset(0.0f, 0.0f); CScrollRegionParams ScrollParams; ScrollParams.m_ScrollUnit = 120.0f; ScrollParams.m_SliderMinHeight = 500.0f; s_ScrollRegion.Begin(&MainView, &ScrollOffset, &ScrollParams); MainView.y += ScrollOffset.y; then scrollregion.addrect(??)
Avatar
Avatar
ws-client
<ChillerDragon> @Solly you can ping me by writing my name with @ or without https://zillyhuhn.com/cs/.1731985143.png
This is the first time I've seen what a discord looks like from the ChillerDragon side
Avatar
i forgo to do .end
Avatar
TEXTALIGN_ML or TEXTALIGN_LEFT
Avatar
// this is kinda slow, but whatever for(auto &Key : gs_aKeys) Key.m_KeyId = Key.m_ModifierCombination = 0; for(int Mod = 0; Mod < CBinds::MODIFIER_COMBINATION_COUNT; Mod++) { for(int KeyId = 0; KeyId < KEY_LAST; KeyId++) { const char *pBind = m_pClient->m_Binds.Get(KeyId, Mod); if(!pBind[0]) continue; for(auto &Key : gs_aKeys) if(str_comp(pBind, Key.m_pCommand) == 0) { Key.m_KeyId = KeyId; Key.m_ModifierCombination = Mod; break; } } }
04:35
oh dear
Avatar
TEXTALIGN_MIDDLE doesnt work
Avatar
✞Xikari✞ 2024-11-19 06:52
tell me why is my custom client after compiling is crashing when i want to connect any server
Avatar
Koll Potato 2024-11-19 06:53
u broke something
Avatar
Avatar
Koll Potato
u broke something
✞Xikari✞ 2024-11-19 06:54
moreover, I just installed the ddnet master and threw in the library
06:54
After that, he complimented
06:54
I didn't even touch anything.
Avatar
Koll Potato 2024-11-19 07:04
i cant help you without any information about crashes
Avatar
Avatar
✞Xikari✞
tell me why is my custom client after compiling is crashing when i want to connect any server
when people say crashing its normally assert failure or seg fault. as you havent provided a dbg msg its probably a segfault you can catch all segfaults by using asan the readme in https://github.com/ddnet/ddnet tells u how to enable it (edited)
07:17
font size in ddnet is varying between 12, 13 and 14, and its not noticeable at all
07:17
but really annoying
Avatar
GitHub BOT 2024-11-19 09:45
crashes when I try to start the server, although everything is fine in the main menu, I did not touch the game files, I just installed and uploaded the library and compiled the files
Avatar
Avatar
Solly
TEXTALIGN_ML or TEXTALIGN_LEFT
Always use the constants that specify both vertical and horizontal like TEXTALIGN_MC, never use the constants that only specify one (except with good reason)
Avatar
Avatar
Robyt3
Always use the constants that specify both vertical and horizontal like TEXTALIGN_MC, never use the constants that only specify one (except with good reason)
mmk its just tater had lots of _left
10:09
and i got confused
Avatar
just fixed a compiler issue by updating cmake, i can't believe it
Avatar
A whitening transformation or sphering transformation is a linear transformation that transforms a vector of random variables with a known covariance matrix into a set of new variables whose covariance is the identity matrix, meaning that they are uncorrelated and each have variance 1. The transformation is called "whitening" because it changes ...
Avatar
Has linear algebra gone too far?
Avatar
Avatar
risu
Has linear algebra gone too far?
Avatar
Oh yeah I remember hearing about something like this, where through some fancy trick + some randomness you can do matrix multiplication faster
Avatar
Avatar
risu
Oh yeah I remember hearing about something like this, where through some fancy trick + some randomness you can do matrix multiplication faster
I think it was solving inverses through iterative method were randomness would either speed up convergence or skip local minima
16:33
Rtfp (read the fucking paper)
Avatar
Avatar
zhn
Click to see attachment 🖼️
do this if you are insane
Avatar
lolwat
Avatar
I don't think this is that bad
17:23
If you need a local sqlite on the client you can also upload it to postgres to query on your server
Avatar
I mean maaaybe useful if you can have queries that can reach within the sqlite sub-db, like with jsonb columns
17:34
256 players... how?
Avatar
i dont even want to imagine how ugly it looks... - it's easy to set it up, but it will just look and probably feel bad
Avatar
Avatar
Evelyn
Click to see attachment 🖼️
Some just lie about it (which is against the masterserver rules)
17:57
Or someone actually did spend the time to extend the 128p patch to a 256p patch
Avatar
@heinrich5991 here is another attempt to request an increase in the size of the JSON accepted by the master server to 32KB. Currently, if I don't send the skin, send an empty clan, and set the score to zero, I can fit about 134 players. Without these tricks, the maximum is around 89 players. The remaining fields are mandatory and cannot be removed; otherwise, the client will drop the server information. I plan to compress the JSON later by removing line breaks, but unfortunately, even that won't be enough. I made approximate calculations without considering the JSON limitations, focusing more on the size of server data: Approximate maximum size of server information: 410 bytes Approximate maximum size of information per player: 256 bytes Thus, in the maximum case: 64 players: 410 + 256 * 64 = 16,794 bytes 128 players: 33,178 bytes 256 players: 65,949 bytes If compression is applied: 64 players: 13,209 bytes (345 + 201 * 64) 128 players: 26,073 bytes 256 players: 51,801 bytes Since the client sorts players by score, I can optimize this by sorting on the server side and sending, for example, only the top 64 players with skins, while the rest are sent without skins. This could reduce the information for 256 players to 35,162 bytes (410 + 12,864 + 21,888). If only 32 skins are sent, the total would be 32,378 bytes.
19:07
Samples: { "max_clients": 256, "max_players": 256, "passworded": false, "game_type": "XXXXXXXXXXXXX", "name": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "map": { "name": "XXXXXXXXXXXXXXXX", "sha256": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "size": 1111111 }, "version": "XXXXXXXXXXXXX", "client_score_kind": "XXXXXX", "requires_login": false, "clients": [ ] } { "name": "XXXXXXXXXXXXXXX", "clan": "XXXXXXXXXXX", "country": 111, "score": 11111, "is_player": false, "skin": { "name": "XXXXXXXXXXXXXXXXXXXXXXXX", "color_body": 11111111, "color_feet": 11111111 }, "afk": false, "team": 1 },
Avatar
Avatar
Evelyn
256 players... how?
translation magic
Avatar
I think I'll create issue on github to not lose conversation details
Avatar
GitHub BOT 2024-11-19 19:30
Here is another attempt to request an increase in the size of the JSON accepted by the master server to 32KB. Currently, if I don't send the skin, send an empty clan, and set the score to zero, I can fit about 134 players. Without these tricks, the maximum is around 89 players. The remaining fields are mandatory and cannot be removed; otherwise, the client will drop the server information. I plan to compress the JSON later by removing line breaks, but unfortunately, even that won't be enough....
Avatar
Koll Potato 2024-11-19 19:53
use protocol buffers when nouis
19:53
(this comment was not sponsored by google)
Avatar
GitHub BOT 2024-11-19 21:59
Avoid unnecessary indirection in the gameclient by moving the initialization of the texture scale and the conchain for the cl_text_entities_size variable directly to CMapImages. Remove the unused CMapImages constructor accepting a texture scale value that is never used.

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 ba...
Avatar
GitHub BOT 2024-11-19 22:38
7011113 Move texture scale initialization and conchain to CMapImages - Robyt3 6f3cb5e Merge pull request #9267 from Robyt3/Client-MapImages-TextureScale-Cleanup - def-
Exported 131 message(s)
Timezone: UTC+0