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 2019-08-19 00:00:00Z and 2019-08-20 00:00:00Z
Avatar
Posted in #general aswell. Yeah so basically i'm having extreme lags. I have no noticable delays whatsoever throughout the entire playtime. It just goes from 0-100 and then back from 100-0 (If even..). No high ping, steady ping of 48 even throughout the entire lagperiod. As mentioned it behaves like a DDOS attack, if i press space then i twitch on the spot until whatever grabbed me down finally releases me... Then i can normally move a couple of blocks before my Tee races off like a freaking ferrari when i as much as look at A or D. Inbetween those lag-attacks i can move fine as i said and i don't have delays nor high ping or anything. For the most part this doesn't stop at all. I usually stop playing entirely for a couple of days because it gets frustrating. It can happen at any time, unprovoked. Everyday and like up to 2 weeks without lag. So i did a reddit post on this and i got some answers there. Some that didn't work out and one solution i'm trying out atm. However, since the lags come so unfrequently its hard to test things out. Another thing came to my mind today though which is that it sometimes takes AGES to load onto a server. Not the download of a map but the actual loading onto a server. Took 3 minutes today. This also happens randomly. Same thing goes to connecting my dummy. Takes up to 1 minute to connect my dummy sometimes aswell. It just says "Connecting Dummy". If it takes too long it will revert to "Connect Dummy" and i have to press again. I don't know if these problems all relate to same thing, or if they're happening independently. I would love to play this game again, but it just won't let me 😄 Dunno if it's essential to know but i'm having 500mbs fiber via cable, NOT Wifi. Also good to know: I don't lag in any other game, ever. Always got a steady ping, at all times. Even when the lag starts at Teeworlds. I hope someone can help me here, never had this problem before Q_Q
🇹 2
🇱 2
🇩 2
🇷 2
Avatar
@Learath2 what's the talk about, roughly?
Avatar
Could it be that you lose tele weapons due to saving? probably happened to starkiller & me at brainduck 2 tournament
Avatar
@heinrich5991 the guy made a program to find hidden/undocumented x86 instructions and ended up also finding various software/hardware bugs
Avatar
@WeezMe to make sure whether it's your ISP or your PC you could try connecting your PC to another internet connection, or connecting a friend's computer at your home network connection
06:36
and if it turns out to be the ISP, complain to them. If it's your PC, remove stuff until the lags stop
06:36
it sounds like your ISP is blocking a few packets though
06:36
so you get dropped packets and that's why it feels like DDoS attack
Avatar
@heinrich5991 the talk I sent? Fuzzing the x86 instruction set to find undocumented instructions and a couple odd quirks found along the way
Avatar
ive never watched a 40minute+ youtube video before the first x86 one o_o
Avatar
FreezestylerToday at 03:41 Could it be that you lose tele weapons due to saving? probably happened to starkiller & me at brainduck 2 tournament
(edited)
07:27
idk why it doesnt work
07:28
I don't know if the if statements below are correct, please tell me if they aren't as i don't know much what they are about.
07:28
this should work
07:28
maybe num is incorrect?
Avatar
[quakenet] deen BOT 2019-08-19 07:29:24Z
I see there is not just HasTeleGun, but also HasTelegunGun
07:29
is that something different?
Avatar
where is HasTelegunGun?
Avatar
[quakenet] deen BOT 2019-08-19 07:30:09Z
probably you have to set m_Core.m_HasTelegunGun/Grenade/Laser too
07:30
see TILE_TELE_GUN_ENABLE in character.cpp
07:30
it sets both
Avatar
ok found it
Avatar
[quakenet] deen BOT 2019-08-19 07:30:53Z
or even better, remove one of them
07:31
having two values that do the same thing seems like a great way to get bugs
Avatar
ye idk how it ended that way
Avatar
[quakenet] deen BOT 2019-08-19 07:39:55Z
Will you provide a fix?
Avatar
im trying
Avatar
[quakenet] deen BOT 2019-08-19 07:40:10Z
Thanks
Avatar
i see why, core wasnt setting telegun status when loading but char did, now im removing char and using only core
07:56
this doesnt seem to be my fault
07:56
is there something wrong with console format?
07:57
hmm
Avatar
[quakenet] deen BOT 2019-08-19 07:57:09Z
probably a null pointer being passed in
Avatar
i added a check on pStr on Bind and now i get a segfault here
08:00
08:00
08:00
this is also weird
08:01
08:01
it fails to load files
Avatar
[quakenet] deen BOT 2019-08-19 08:01:53Z
try a debug build and debug?
Avatar
maybe its a problem on my end
08:01
somehow
08:02
ok
08:03
hmm it works
08:04
ill try with RelWithDebInfo
08:04
it works
08:04
maybe i had to refresh cmake
08:07
how to enable save?
08:07
i wanna test it
Avatar
[quakenet] deen BOT 2019-08-19 08:07:47Z
you need mysql
08:07
or add support for file based save/load
08:08
I don't think we have it at the moment
08:08
if it's too hard to add a db locally, you could give me the source code and I can run a test server on DDNet GER
Avatar
ok ill pr
08:09
next time ill setup the db
Avatar
[quakenet] deen BOT 2019-08-19 08:15:39Z
ger.ddnet.tw:8303 is updated with your version
Avatar
ok ill test
08:20
ok it doesnt work xd
08:20
hmm
Avatar
[quakenet] deen BOT 2019-08-19 08:26:20Z
"case 97:" can't be right, can it?
08:27
ah, my bad
Avatar
there are 100 elements right now
Avatar
[quakenet] deen BOT 2019-08-19 08:28:44Z
yeah, looks correct
Avatar
so it shouldnt be the problem
08:29
othert elements also set core variables when loading so that shouldnt be a problem either
Avatar
[quakenet] deen BOT 2019-08-19 08:29:55Z
Is m_String long enough?
08:30
maybe not
08:31
08:31
i guess its long enough?
08:31
what does getString do
Avatar
[quakenet] deen BOT 2019-08-19 08:31:40Z
I meant m_String in save.h
Avatar
[quakenet] deen BOT 2019-08-19 08:31:53Z
but that looks big enough as well, 700 bytes in use currently
08:31
shouldn't be over 2048 with your change
Avatar
i guess
Avatar
[quakenet] deen BOT 2019-08-19 08:33:47Z
Found the mistake
Avatar
:o where
Avatar
[quakenet] deen BOT 2019-08-19 08:34:11Z
\t instead of t in save.cpp:191
08:34
xD
08:34
my editor even doesnt highlight it
08:34
but i guess its hard to find
08:36
ok i forcepushed
08:36
update the sv just in case
08:36
its ez to test in wormhole map
Avatar
[quakenet] deen BOT 2019-08-19 08:37:57Z
try again
08:39
b58037f fix the telegun save - Ryozuki fb3fa9d Merge pull request #1898 from Ryozuki/pr_fix_telegunsave - def-
Avatar
[quakenet] deen BOT 2019-08-19 08:39:43Z
thanks for the fix
Avatar
well you found the fix at the end :P
08:40
but we got cleaner code now i guess
Avatar
[quakenet] deen BOT 2019-08-19 08:40:26Z
getting rid of the thousand character long lines would also be a nice next step :D
Avatar
yep xD
08:45
maybe a serializable struct/class
Avatar
Not really easy to get rid of though, even if we move to a binary format we'd need to encode it somehow to store it in the db
08:45
I guess we could split it into two tables in the db and store it properly, but that's quite some work
Avatar
fed8083 6th Birthday Tournament results - def-
Avatar
@heinrich5991 can you help me? Im trying to get rid of the automatic client disconnect like in DDNet. First is in network_conn.cpp, too weak connection (out of buffer) and the second is in network_server.cpp Error sending data. I cannot seem to properly eliminate those Disconnects, as the client just laggs out if I comment them like in DDNet
Avatar
So why removing them?
Avatar
anyone remember when isaid i had a problem with keyboard that it repeated keys while holding it when playing? unplugging and plugging it on another usb slot fixed it
14:39
i can play tw again yay
14:39
justatest
Avatar
"gaming" optimized usb slot probably with higher input rate?
Avatar
not rly
16:16
never heard of that xD
16:17
AMD B450 Ultra Durable Motherboard with Realtek® GbE LAN with cFosSpeed, PCIe Gen3 x4 M.2, 7-colors RGB LED Strips Support, Anti-Sulfur Resistor, CEC 2019 r...
16:17
this is my motherboard
Avatar
i want to install kernel 5.3-rc5 on arch but compiling it takes ages
16:25
twintri
Avatar
u can throw away modules u dont need
Avatar
Kernels compile quite quickly, are you compiling on a toaster?
17:03
Compared to chromium and firefox everything compiles quite quickly actually
Avatar
@Learath2 lol did u try compiling arch linux mainline?
17:08
i guess they enable all shit cuz its arch
Avatar
Oh could be bloated as shit true
17:08
I'll give it a try
Avatar
i just want to test if the audio cracking with a analog input with realteck is fixed
17:09
@Learath2 i dont think i hav a potato xd
Avatar
what do you mean, lags out, @fokkonaut
Avatar
like a timeout
17:11
and then too weak connection (not acked for 1 0 sec)
Avatar
the client does that I guess?
Avatar
@Ryozuki i had alot of audio problems too nano /etc/pulse/daemon.conf change: default-fragments = 5 default-fragments-size-msec = 2 default-sample-rate = 48000 resample-method = src-sinc-best-quality nano /etc/pulse/default.pa change: load-module module-jackdbus-detect channels=2 tsched=0 #load-module module-suspend-on-idle this fixed it for me xD
Avatar
do u have a amd cpu with intel audio and a ANALOG mic?
17:12
i tried lot of shit
17:12
but they say its fixedi n 5.3
Avatar
i have realtek and amd cpu
Avatar
ah and /usr/share/pulseaudio/alsa-mixer/paths/analog-input-internal-mic.conf [Element Capture] switch = mute volume = merge override-map.1 = all override-map.2 = all-left,all-right to [Element Capture] switch = mute
Avatar
does ur mic work clean in discord?
Avatar
in teamspeak
17:13
i dont use discord normally
Avatar
but do u have a analog mic?
Avatar
yes
Avatar
hm ill try later maybe
Avatar
also try to use the back ports
17:14
there is no backports from releaae candidates
Avatar
i mean
Avatar
im on latest kernel
Avatar
dont use ur front panels
17:14
in ur case
Avatar
i tried front and back panels
Avatar
ok
Avatar
both have same bug
Avatar
@heinrich5991 im on 0.7 and try to handle this like ddnet, they just commented that out, the auto disconnect and there its working fine
Avatar
anyway all theses things together fixed it for me 😄
17:19
btw the most important thing was commeting out "#load-module module-suspend-on-idle" somehow i read, that the audio drivers go suspend sometimes even if ur audio is used, that created annoying strange sounds, the rest came mostly from eletromagnetic fields from compents in the case, that weren't grounded, causing the analog cables to do loud pieps xd
Avatar
i just know my mic is fine cuz it works on windows
17:20
its a driver issue or smth
17:20
thats why i have hopes o nthe kernel release
Avatar
when i was tocuhing my case for example the noise was much less, since i was protecting the analog cables more or less xD
17:28
@Deleted User so u use nano
17:28
thats no gud
Avatar
why shouldnt i xD (edited)
17:30
vim isnt preinstalled on my machine
17:30
nano is
Avatar
install vim then
17:30
masterrace
Avatar
idc so much about terminal editors tbh 😄
Avatar
u srsly edit ddnet code with nano? xd
17:30
oh
Avatar
i use proper text editors
Avatar
vim is a better than "proper text editor"
Avatar
depends
Avatar
and coming from a clion user
Avatar
with enough mods maybe
Avatar
i changed and after u adapt
17:31
its gud
17:31
i use neovim with lot of stuff ofc
Avatar
i think i am fast coding like i trained it
Avatar
i have autocompletion and lot of stuff like a fuzzy finder with fzf which works with the autocompletion and tags too
Avatar
vi (unlike vim) is usually installed on unixy machines
Avatar
but it was clear ryozuki meant vim here xd
Avatar
my vimrc. GitHub Gist: instantly share code, notes, and snippets.
17:33
my mess vimrc
Avatar
would be more interesting to see a video where u code
17:34
then i could judge if its worth it 😄
Avatar
i hav one
17:35
its bit cringey im coding opengl and u will for sure laugh at me
17:35
also when i record i dont code like when i dont
17:35
u know when u feel watched when u code
17:35
u drop ur perfomance a lot
17:35
xd
17:36
here u have
Avatar
i dont laugh at ppl who code 😄
Avatar
i was setting up freetype rendering with opengl
17:36
but now im changing it to use an atlas
17:36
and u know what igot?
17:36
shit
17:36
opengl feels great
Avatar
:D, well i can tell u, i code completly different, i use my mouse alot
17:38
i like discovering new vim utilities
17:38
dt) will delete until )
17:38
i use this shit a lot
Avatar
if u have good aim its good xDD
17:39
its all about getting used
17:39
i also used a lot mouse when using clion
17:39
but i wanted to go full vim
17:39
to feel hackerman u know
Avatar
yeah, now u freetype opengl hakrr
Avatar
my vim theme sucks i need to change it tho
Avatar
i like high contrast
Avatar
me too
17:41
Avatar
well atleast u using more modern opengl
17:43
most ppl learn old opengl
Avatar
why would u learn old opengl
Avatar
and dont understand the whole pipeline process
17:43
i think understanding what the hardware does is extremly essential
Avatar
ah u mean the vertex shader -> fragment -> geometry
17:44
oh wait
17:44
its vertex geo and frag
17:44
xd
17:44
i never use geo one
Avatar
yeah u dont need to 😄
17:44
but it also has its use cases
Avatar
its just sad that the GL drivers still are sooo buggy
17:45
but the more games will use it, the better they get
Avatar
vulkan is also in C right?
17:45
what u think about it
Avatar
well vulkan is an api too
17:45
it probs has a java implementation too
Avatar
since i went only C i had to find a alternative to glm and i found https://github.com/recp/cglm
📽 Highly Optimized Graphics Math (glm) for C. Contribute to recp/cglm development by creating an account on GitHub.
Avatar
but yeah vulkan is deffs the better choice if u have the time
17:45
but their drivers are also bad
Avatar
r u a pro graphics coder?
17:46
xD
Avatar
i would say no
17:46
its not about coding anyway
17:46
its about math and creativity
Avatar
im still understanding the MVP matrix and the space coords opengl uses (edited)
17:46
its a bit confusing at start
Avatar
yeah, but in germany u learn that coordinate system anyway in school, so im fine with it xD
Avatar
and sadly i wanted to use instead of an atlas for freetype glyps the new feature opengl has called texture arrays
Avatar
directx is more of a pain for me there xD
Avatar
but there are 0 tutorial
17:47
tutorials*
Avatar
just imagine what it could be 😄
17:48
i mean its self explaining isnt it?
Avatar
i guess but im still confused
Avatar
i think tw 0.7 uses that approach
17:49
texture arrays for all tiles
Avatar
well ok
17:50
it uses 3d textures xD
Avatar
tw 0.7?
Avatar
yes
Avatar
to remove the bug of tiles beings rendered shitty
17:50
like when zooming out u see lines
Avatar
isnt that mip mapping
17:50
or smth
Avatar
in my implementation its fixed by loading a specific mipmap
17:51
but for older opengl u cant do it that ez
17:51
its mipmapping, but u can clamp the texture boundaries in 3d textures
17:51
like 1 tile is 64x64
Avatar
im still surprised by the need of thigns like GLEW due to windows
Avatar
and not more
17:51
but if u look into a tile set
Avatar
on linux only u dont need it right
Avatar
its 1024x1024
17:52
yeah but that doesnt annoy me too much tbh, it gives some kind of downward compability, if u dont have newer opengl headers installed
Avatar
ChillerDragon 2019-08-19 21:27:35Z
hm myghost shows the afk emote all the time :c
Exported 275 message(s)