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 2020-12-24 00:00:00Z and 2020-12-25 00:00:00Z
Avatar
YouTube has to compete with Facebook/Twitter/Reddit etc for screen time. They all just show stuff to keep you on their site as long as possible to get maximum ad revenue. Impossible to find quality content anywhere now because quality is less enticing than cringe/outrageous/negative dog-poo.
02:20
💩
07:50
hah! :p
Avatar
Дядя Женя 2020-12-24 09:10:21Z
@deen where do you load state of player on timeout reconnect?
Avatar
We don't "load" any state. We just swap the fresh tee with the stale tee
Avatar
Дядя Женя 2020-12-24 09:12:04Z
where
Avatar
i think i showed you a few days ago
09:12
it was in some network cpp file
Avatar
Дядя Женя 2020-12-24 09:13:03Z
yes, I forgot
Avatar
Дядя Женя 2020-12-24 09:23:13Z
@deen in what measurement 0-9999 times in server settings are?
09:23
seconds / milliseconds / microseconds etc.
Avatar
different per setting
Avatar
Дядя Женя 2020-12-24 09:24:02Z
NICE
Avatar
sometimes seconds makes sense, sometimes minutes
Avatar
Дядя Женя 2020-12-24 09:28:51Z
how do I get seconds from server time
Avatar
not sure what you mean
Avatar
Дядя Женя 2020-12-24 09:29:09Z
I have pSelf->Server()->TickSpeed() and pSelf->Server()->Tick()
Avatar
some internal times are in ticks
09:29
so 50 / second
09:29
Tick / TickSpeed
Avatar
Дядя Женя 2020-12-24 09:29:37Z
and I have let's say m_SavedTime
09:29
so I need to add several seconds to saved time
09:29
and check if it passed
Avatar
m_SavedTime += Seconds * TickSpeed;
Avatar
Avatar
Дядя Женя
@deen where do you load state of player on timeout reconnect?
check ddracechat.cpp::ConTimeouz
09:34
Timeout*
09:34
thats where it starts, then make your way through the SetTimedOut functions
09:34
(one in server.cpp, one in network_server.cpp)
09:36
I recently worked with it to support timeout in my server, also for 0.7 clients :D
Avatar
@Learath2 btw, any idea why timeout from a 0.7 client to a 0.6 client doesnt work correctly?
09:37
I saw, in ddnet it works that way too
09:37
And I cant seem to get that working, for now i have 0.7 to 0.7 and 0.6 to 0.6 only
09:37
no crossed
Avatar
Дядя Женя 2020-12-24 09:39:12Z
09:39
if(pSelf->Server()->IsSixup(pResult->m_ClientID))
Avatar
@Learath2 also, does ddnet client change port after timeout to be able to reconnect again? Because in fclient i need to restart the client to get a new port
Avatar
same problem in ddnet i think
Avatar
Дядя Женя 2020-12-24 09:44:45Z
How do I check if the client with ID (X) is the same client that it was 9999 seconds ago?
Avatar
@deen ok thanks
09:45
There are timeoutcodes
09:45
timeoutcodes are sent using /timeout xyz
09:45
or in ddnet, it happens automatically
09:45
there is cl_timeout_code and cl_timeout_seed
09:45
and it will send a /timeout <code> based on the code and the seed
09:45
if you set seed to "" it will just send the code unchanged
09:46
@deen what we might need is to save the seed, if seed is set to "" it will get a new random seed on client start
Avatar
The cross thing just worked out of the box for me. Be careful about preserving stale sevendown state
09:47
I remember having to add a sixup = false to reset and a m_sixup = sixup to join
Avatar
Should be the same for me
09:47
just with sevendown
Avatar
RudolfMonekey 2020-12-24 09:47:49Z
Hello, I'm a Discord bOt dEv
Avatar
Oh btw it needs to be at a specific part. Maybe you have it on the wrong reset function?
Avatar
Nope
09:48
i dont think so
09:48
It should all be correct
Avatar
Well ok, I’m out of conpletely random guesses. You’ll need to elaborate on “doesn’t work”
Avatar
Wait, what? Advent of code has day 25?
Avatar
yep 🙂
Avatar
[quakenet] ChillerDragon BOT 2020-12-24 13:27:35Z
does one know how vscode extenions work? I often find extensions on marketplace.visualstudio.com but not in vscode it self. I just lost my vscode-input-sequence extensions and cant get it back :/ how do you guys sequent numbers? Or is there even an easy way in vim to do that?
Avatar
I just noticed if we are far enough away from the origin it can become impossible to stand on the edge of a kill tile
13:41
I wonder how far it is until we lose 1/32nds of precision
Avatar
[quakenet] ChillerDragon BOT 2020-12-24 13:41:56Z
ah found it in vim g ctrl+a in visual mode is bae
13:42
how far @Learath2?
13:42
ah u wonder xd
13:42
do the maffs
13:42
or make a big map lol
13:43
i remember mapping a 10k big map some years ago but it crashed my client consistantly
13:43
lmao far lands in teeworlds :D
13:44
almost as impressive as in minecraft
Avatar
In the wake of the recent Meltdown and Spectre vulnerabilities, it
Avatar
[quakenet] ChillerDragon BOT 2020-12-24 14:11:50Z
yo @Learath2 did u read "The Art of Exploitation" ?
Avatar
Nope, is it any good?
Avatar
[quakenet] ChillerDragon BOT 2020-12-24 14:12:28Z
yes very :)
14:12
its too basic for u tho i think
14:12
it starts by explaining what if statements are and ends in exploit writing
14:13
this dude also calls C a high level language in the book :D
Avatar
I'd guess the arguments are different though
14:15
I might give it a read, I love exploits
Avatar
[quakenet] ChillerDragon BOT 2020-12-24 14:16:26Z
its a rly fun book
14:17
i only knew the gdb command "bt" before and copied a hello world assembly from a yt tut and i leanred a lot about gdb c and assembly in the book
14:17
but ur a decent reverse engineer already so yeah
14:17
also the book is like super old
14:17
perl instead of python scripts etc
14:17
but c and assembly and gdb didnt change too much
14:18
but most exploits are not possible anymore due to all the newer protections like ASLR etc
Avatar
perl > python anyway
Avatar
[quakenet] ChillerDragon BOT 2020-12-24 14:19:12Z
i see ur a man of culture
14:19
yea maybe u might enjoy the book
14:19
do you read books? like physical ones? or just ebooks and articles?
Avatar
Well there is stuff I read on physical form, like history and literature. Academic stuff I usually read ebooks, mostly because the physical books are so expensive you'd need to be a saudi oil baron to have any decent collection of them
Avatar
[quakenet] ChillerDragon BOT 2020-12-24 14:40:04Z
xd
14:40
i can afford it because i read 1 book a year max
Avatar
As suggested by CyberFighter on discord. E.g: add_foe "" "clantag" - similar to add_friend
Avatar
is there a limit how many quads can be seenw hen you use opengl3?
Avatar
[quakenet] ChillerDragon BOT 2020-12-24 20:34:36Z
as the name implies
20:34
3
Avatar
xd
20:36
for real tho its pretty annoying when some users cant see half of the design of the map
Avatar
[quakenet] ChillerDragon BOT 2020-12-24 20:38:27Z
never heard of it
20:38
@Learath2 merry xmas pls fix SDL xd https://zillyhuhn.com/cs/.1608842119.png
Avatar
That’s one I haven’t seen
Avatar
[quakenet] ChillerDragon BOT 2020-12-24 20:39:32Z
its reproducible :)
Avatar
Oh wow, thats a first
20:45
Create an issue
Avatar
[quakenet] ChillerDragon BOT 2020-12-24 20:45:46Z
on it
Avatar
!image 1. Go to settings -> Player -> Name 2. Then enter as many characters as possible. 3. Paste your favorite poop emoji or something like ø 4. ??? 5. profit ``` Thread 7 "SDLAudioP2" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffe37fe640 (LWP 44222)] 0x00007ffff6df4cb4 in __gconv_alias_compare () from /usr/lib/libc.so.6 (gdb) bt #0 0x00007ffff6d...
Avatar
end character might count as 2 "slots" and run out of memory somewhere
Avatar
[quakenet] ChillerDragon BOT 2020-12-24 20:49:03Z
ye
Avatar
i discover strange thing if i want change color the body i have to change feet too ???whybluestripe
Exported 113 message(s)