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 2025-02-09 00:00 and 2025-02-10 00:00
Avatar
is this part used anywhere?
01:12
im making #9092 escaping from rust
Avatar
Closes #6733 Closes #9009 Alternative to #9060 Runs a local server with the currently opened map (if it's saved to maps/) and automatically authenticates with a new custom rcon password ...
Avatar
and if the argument is "sv_name \"test\\\"" then that part of code will consume last \\\" and break
01:18
same thing happens in whisper
01:19
@Robyt3 should i remove it?
Avatar
Avatar
chillerdragon
Load map where on startup of what?
david loves Jellycar Worlds 2025-02-09 01:38
load map into the game when opening the game
Avatar
Good morning gcc enjoyers and others
Avatar
MilkeeyCat 2025-02-09 09:11
morning graph coloring enjoyers and others
Avatar
morning sea of node enjoyers and others
Avatar
chillerdragon BOT 2025-02-09 10:07
I think it could break existing bonds
Replying to @kebs Robyt3 should i remove it?
10:07
Binds
10:08
@Ryozuki: Dont rq ddnet omg. Road to 10 open prs
10:08
The amount of stale prs is super frustrating
10:10
tomorrow ill look at em
10:11
today is lazy sunday
Avatar
Avatar
kebs
same thing happens in whisper
Looks like the correct escaping to me? Should better not change existing console behavior
Avatar
ws-client BOT 2025-02-09 11:37
<ChillerDragon> does the server know its ip address? No right?
11:38
<ChillerDragon> only if you configure a bindaddr setting
Avatar
Jupstar βœͺ 2025-02-09 11:40
usually it does not know
Avatar
ws-client BOT 2025-02-09 11:40
<ChillerDragon> shiet
11:40
<ChillerDragon> but yea makes sense how would it know
Avatar
Avatar
MilkeeyCat
@Learath2 hi, can you help me xd. I was trying to make an interference graph using this vid (https://www.youtube.com/watch?v=eeXk_ec1n6g), at ~11:30 there's an algorithm how to calculate it, I implemented it and wrote a test program +--------------+ defs {%1, %2} |%0: | uses {%1} |%1 = 1 + 1 | in {%1, %4} |%2 = 0 + %1 | out {%1, %2, %4} |goto %3 | +--------------+ +--------------+ defs {%4} |%3: | uses {%1, %2, %4} |%4 = %1 + %2 | in {%1, %2, %4} |ret %4 | out βˆ… +--------------+ but it gives a weird in variables for block %0 block, is it my skill issues or it's the correct answer? UPD. uses were calculated wrongly (edited)
Did you figure it out?
Avatar
Avatar
Learath2
Did you figure it out?
MilkeeyCat 2025-02-09 11:46
ye, there's upd
πŸ‘ 1
11:46
i was calculating uses wrongly
11:47
now I have to make graph coloring and precoloring and I'll have a register allocator :DD
Avatar
@Robyt3 first numbers are in, I found 46 maps who potentially abuse this bug. Should I try to reduce this number further? From experience this only happened on vertical speedtiles so far and on ones, which are next to a wall. My script just checked for maps who have a speedup layer, where speedups with max_speed are set
Avatar
who the hell don't sort map list names ?
Avatar
thought the same xD on it
12:06
why am I missing that other two maps that abuse the bug willingly?
12:08
@Chairn sorted
Avatar
where Cosirys ?
Avatar
But I think something is not working, since Brain Damage is missing
12:10
exactly
Avatar
you using twmap ?
12:12
I use map.speedup_layer().tiles[1]
12:12
according to documentation this should be correct
12:12
Tilemap layers: | tiles - 3d numpy array with the dimension [height, width, n]. The last dimension varies on the layer kind: | 'Tiles', 'Game', 'Front': [id, flags] | 'Tele': [number, id] | 'Speedup': [force, map_speed, id, angle] | In 'Speedup', elements are i16 instead of u8, since angle can be anywhere between 0 and 360 | 'Switch': [number, id, flags, delay] | 'Tune': [number, id]
Avatar
what's id in speedup ?
12:14
map_speed, typo for max_speed ?
Avatar
should be always the same, should be the tile id from the speeup layer
12:16
okay speedup_layer().tiles contains 142 things
12:16
something seems to be incorrect
12:19
numpy shape is reversed ... (142, 351, 4)
Avatar
now I find 474 maps including the ones we already have
Avatar
that's quite a lot of map
Avatar
trying to add more restrictions, brb
Avatar
Avatar
Robyt3
Looks like the correct escaping to me? Should better not change existing console behavior
how do i do it then? "sv_name \"test\\\"" is correct but ParseArgs breaks it
Avatar
Avatar
kebs
how do i do it then? "sv_name \"test\\\"" is correct but ParseArgs breaks it
What does "breaks it" mean? Can you give the expected and actual output?
Avatar
GitHub BOT 2025-02-09 13:05
Add properties to the root object of the touch controls configuration to adjust the background color of all touch buttons:
  • "background-color-inactive": specifies the background color of inactive touch buttons.
  • "background-color-active": specifies the background color of active touch buttons.
For backwards compatibility these properties are allowed to be unset in which case the previous default values will be used. Colors are specified as hexadecimal strings in the formats `R...
Avatar
expected is that servername is test\ but parseargs thinks closing slash isnt escaped and will consume the last \" which means it never finds closing quote and says argument is invalid
Avatar
Avatar
kebs
expected is that servername is test\ but parseargs thinks closing slash isnt escaped and will consume the last \" which means it never finds closing quote and says argument is invalid
Why is the command "sv_name \"test\\\"" though? The sv_name shouldn't be inside quotes. sv_name "\"test\\\"" works as expected and sets the server name to "test\"
Avatar
Avatar
Assa
@Robyt3 first numbers are in, I found 46 maps who potentially abuse this bug. Should I try to reduce this number further? From experience this only happened on vertical speedtiles so far and on ones, which are next to a wall. My script just checked for maps who have a speedup layer, where speedups with max_speed are set
It's best to post the results on GitHub so others can also discuss
Avatar
Avatar
Robyt3
Why is the command "sv_name \"test\\\"" though? The sv_name shouldn't be inside quotes. sv_name "\"test\\\"" works as expected and sets the server name to "test\"
this is what im putting into shell_execute, it has to be in quotes because its a single argument, without them it treats sv_name and test as seperate args because of the spacebar (edited)
Avatar
But then the outer quotes should be stripped by the command line argument parsing. The string that is passed to ParseArgs shouldn't be enclosed in quotes
Avatar
they are
13:28
or you meant the outer quotes of test?
Avatar
DDNet-Server.exe "sv_name \"name\\\\\"" --> server: server name is 'name\', the outer quotes are stripped
Avatar
Avatar
kebs
same thing happens in whisper
Jupstar βœͺ 2025-02-09 13:37
ig the logic has to escape the name properly
13:37
if that was auto complete
Avatar
Avatar
Robyt3
It's best to post the results on GitHub so others can also discuss
yes, but I was running into issue xD currently I am working on a version where a potential position is also returned
Avatar
i broke my pr
13:51
tempted to call out of work to dedicate all my time to fix it
Avatar
Jupstar βœͺ 2025-02-09 13:51
@Hecta have u ever played geometry dash?
Avatar
this is #developer
Avatar
Avatar
Hecta
this is #developer
Jupstar βœͺ 2025-02-09 13:52
well i am not asking bcs i care about the game xd
13:52
it has a auto mapper rule creator
13:52
and i wondered if you ever tried that
Avatar
oh yea its pretty handy
13:53
kinda hard to wrap my head around
Avatar
Jupstar βœͺ 2025-02-09 13:53
does it scale for teeworlds maps too?
13:54
like, easy to use rule creators often are good for simple tile sets, but as soon as you want smth more complex it also get's very hard to use (if possible at all)
Avatar
Avatar
Robyt3
DDNet-Server.exe "sv_name \"name\\\\\"" --> server: server name is 'name\', the outer quotes are stripped
ok so passing slashes to the function will look like this, same as whisper command does it
Avatar
I still have > 400 maps with the bug, even checking for the conditions 😦
Avatar
Jupstar βœͺ 2025-02-09 14:56
maybe a new tile would really be better
14:56
in louis we trust
Avatar
GitHub BOT 2025-02-09 15:05
086c666 Support changing touch button background color - Robyt3 69c92a7 Merge pull request #9660 from Robyt3/Client-Touch-Controls-Background-Color - def-
Avatar
Koll Potato 2025-02-09 16:43
whats wrong with ddnet.org rn
16:43
am i the only one having issues
Avatar
Jupstar βœͺ 2025-02-09 16:44
you are not
Avatar
What's wrong?
Avatar
Jupstar βœͺ 2025-02-09 16:50
nothing anymore
Avatar
Koll Potato 2025-02-09 16:50
yea
16:50
there were some ssl handshake errors
16:50
no idea what that means
Avatar
@Discord Mod whats up with all these scammers now
Avatar
Avatar
Hecta
@Discord Mod whats up with all these scammers now
cyberfighter 2 2025-02-09 17:12
ddnet cracked 2025 working torrent free no virus punjabi πŸ‘€
Avatar
Can someone who has experience with this take a look? https://github.com/ddnet/ddnet/issues/5593 I'm tired of copying back and forth and using old server
As Tezcan reported on Discord, if a DDNet server is reachable via a different port than it listens on (e.g. because a NAT remaps the port to some other port), the new masterserver registration fail...
Avatar
Avatar
Jupstar βœͺ
maybe a new tile would really be better
I continue to believe so as well
Avatar
Guys when ban fucking krx users who tas ranks on offical maps
Avatar
as soon as we can ban anyone and have it mean anything πŸ˜‚
18:57
ip based bans don't work anymore
Avatar
even if you'd ban based on steam accounts, it would be easy to avoid
18:58
So hardware ban when? /s
Avatar
accounts discussion proposes email based account system iirc
18:58
not foolproof
18:58
hopefully better tho
18:59
i have an idea. let's vet every single player manually
Avatar
Avatar
godly
Guys when ban fucking krx users who tas ranks on offical maps
we cant say cheat client names here
Avatar
Does a d movement affect y Axis? I see my friend often presses a d when getting thrown to roof as if it would help with not touching roof, it seems dumb to me as why would it affect your y Axis. Let me know please (edited)
Avatar
i don't feel like it does anything
Avatar
you know what
20:06
linux-heads win this time (edited)
20:13
/home/runner/work/ddnet/ddnet/src/game/editor/auto_map.h:79:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] 79 | const int CAutoMapper::CheckIndexFlag(int Flag, const char *pFlag, bool CheckNone); | ^~~~~
justatest 1
20:13
im looking it up do int commands need to be const? because i feel like thats whats the warning is saying
Avatar
Avatar
Hecta
im looking it up do int commands need to be const? because i feel like thats whats the warning is saying
opposite
Avatar
'const' type qualifier on return type has no effect
20:17
return type with const makes no sense
Avatar
since ur returning an int, having const or not having const wont make a difference
Avatar
i guess so maybe i misread what robyt3 said
Also mark functions as const when possible to make it clear that the function does not modify this.
Avatar
int CAutoMapper::CheckIndexFlag(int Flag, const char *pFlag, bool CheckNone) const;
20:23
if it doesnt modify this
20:23
const is at end
Avatar
this being a ptr to the instance of cautomapper
Avatar
i used to be so much better at coding
Avatar
MilkeeyCat 2025-02-09 20:37
@Learath2 do you not know what has to happen to precolored nodes during graph coloring by simplification? I couldn't find anything about on internet. But I tried to simply not remove those nodes and it seems to work 😬
Avatar
ws-client BOT 2025-02-09 22:18
<ChillerDragon> window handling in ddnet is so good. changing resolution without restart. heck i can even change screen while in fullscreen with gnome keybindings.
Avatar
Jupstar βœͺ 2025-02-09 22:20
Wow, almost as if we are in 2004
Avatar
ws-client BOT 2025-02-09 22:21
<ChillerDragon> no dude its good
Avatar
Jupstar βœͺ 2025-02-09 22:22
I've never seen a game that doesn't let you change resolution without restart xd
22:22
well maybe some very old games
Avatar
ws-client BOT 2025-02-09 22:22
<ChillerDragon> teeworlds
Avatar
Jupstar βœͺ 2025-02-09 22:22
2007 then
22:23
<ChillerDragon> i was shook when this worked
Avatar
chiller is your run over?
Avatar
ws-client BOT 2025-02-09 22:23
<ChillerDragon> yes i deded
Avatar
flw me!
Avatar
ws-client BOT 2025-02-09 22:29
<ChillerDragon> hmkay cs2 can do it too
22:29
<ChillerDragon> maybe not too special xd
Avatar
Avatar
Hecta
we cant say cheat client names here
I can
23:52
2.17 tutorial is impossible
23:52
And ranks 1. 1. 1. 1. 1. Its KRX BRO
23:52
AND U SAY WE CANT SAY
23:52
XD
23:53
I go sleep
Avatar
@murpi will be the judge of that
Avatar
Avatar
Hecta
@murpi will be the judge of that
Real
Exported 145 message(s)
Timezone: UTC+0