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-12-24 00:00 and 2024-12-25 00:00
Avatar
Avatar
Ewan
one day you will get unlucky and the bleeding edge repo updates will brick your system
I can handle being unlucky once a decade, especially as I can fix it without doing anything special because it's such a delightfully simple distro to manage
00:22
The days of rolling a D6 to see if your Xorg will break when you update ended forever ago
Avatar
GitHub BOT 2024-12-24 01:34
Since an additional setting was deemed evil in #9249, this completely reverts the popup while keeping the bugfix to always show the correct number next to the brush !image

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 t...
Avatar
Avatar
CeoGran
Made a funny ddnet ai, It can join any server you want automaticly, Thoughts? :D
After I am home I will add to the ai that it will be able to learn ddnet so at the end it would be possible to complete some maps (edited)
04:32
If its not against ddnet rules :)
Avatar
GitHub BOT 2024-12-24 05:30
345d204 A Barely Intermediate, M Axison - ddnet-maps
Avatar
Avatar
louis
fedora very convenient and i like vanilla gnome
I've been hearing decent things about fedora for a long time now. But as it's the first distro to unleash the cancer that is systemd out into the world I will not be giving it a chance
Avatar
morning
08:04
got my fsf card
πŸ’€ 1
Avatar
what does gnu linux inside mean
Avatar
@louis this is also a usb
08:08
the left side thing
08:08
its dope
Avatar
does it boot?
Avatar
idk what it has inside
08:09
let me see
08:09
iu hope its gnu hurd
08:10
[ 360.068936] usb 1-3: new high-speed USB device number 3 using xhci_hcd [ 360.284415] usb 1-3: New USB device found, idVendor=090c, idProduct=1000, bcdDevice=11.00 [ 360.284420] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 360.284422] usb 1-3: Product: Flash Disk [ 360.284424] usb 1-3: Manufacturer: USB [ 360.284426] usb 1-3: SerialNumber: SCY0000000026583 [ 360.296454] usb-storage 1-3:1.0: USB Mass Storage device detected [ 360.296589] scsi host12: usb-storage 1-3:1.0 [ 361.826133] scsi 12:0:0:0: Direct-Access USB Flash Disk 1100 PQ: 0 ANSI: 4 [ 361.826323] sd 12:0:0:0: Attached scsi generic sg0 type 0 [ 361.829320] sd 12:0:0:0: [sda] 31129600 512-byte logical blocks: (15.9 GB/14.8 GiB) [ 361.829967] sd 12:0:0:0: [sda] Write Protect is off [ 361.829970] sd 12:0:0:0: [sda] Mode Sense: 43 00 00 00 [ 361.830421] sd 12:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 361.847160] sda: sda1 [ 361.847228] sd 12:0:0:0: [sda] Attached SCSI removable disk
08:10
its a flash disk
08:11
Disk /dev/sda: 14.84 GiB, 15938355200 bytes, 31129600 sectors Disk model: Flash Disk Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x5d6d715e Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 31129599 31127552 14.8G c W95 FAT32 (LBA)
08:11
16gb probs xD
08:12
08:12
its trisquel linux
08:12
Trisquel GNU/Linux is a fully free operating system for home users, small enterprises and educational centers.
Avatar
GitHub BOT 2024-12-24 08:16
6e5ce8e Revert Tele popup - KebsCS 2c1f076 Merge pull request #9421 from KebsCS/pr-revert-tele-popup - def-
Avatar
ChillerDragon BOT 2024-12-24 08:39
@deen so sometimes the mouse is fully lost and i can not get it back in by moving it onto the screen then moving it onto the screen and toggeling the console helps you said it should happen every render? I assume closing the console does one more thing that really helps
Avatar
Avatar
Ryozuki
Click to see attachment πŸ–ΌοΈ
That's really cool ASCII art, I think the weird angle is super neat
Avatar
yes, closing the console refocuses the mouse
Avatar
The most vexing parse is a counterintuitive form of syntactic ambiguity resolution in the C++ programming language. In certain situations, the C++ grammar cannot distinguish between the creation of an object parameter and specification of a function's type. In those situations, the compiler is required to interpret the line as a function type s...
Avatar
How to properly deal with utf8 inside ddnet code? I want to encode players' nicknames into ddnet-web like string, where special characters are being replaced with -number-, but I'm getting errors because my chars are obviously wrong
09:56
Okay I think I got it
Avatar
sorry, it's my own format, I think I should have used something standard instead
Avatar
ChillerDragon BOT 2024-12-24 10:09
@deen what do you suggest i do here? try to patch ddnet to force refocus? or downgrade gnome?
10:10
i wonder why i am the only one with this issue
10:10
no other gnome arch users with multiple screens?
Avatar
ChillerDragon: what is your issue
10:23
i think i have a related issue
10:24
using mouse inside ddnet menu basically moves the cursor on my desktop and it'll freeze when it hits screen borders
Avatar
GitHub BOT 2024-12-24 10:38
!image

Checklist

  • [X] Tested the change ingame
  • [X] 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
  • [X] Changed no physics that affect existing maps
  • [ ] Tested the cha...
10:42
!image Circled is a + eye that is never used afaik. My proposal is to instead use this for the afk / crying eyes so newer skins can have custom graphics for these eyes instead of using the smushed default eyes. Cons: Need to replace every skin in the db to replace these eyes with scaled normal eyes using some script Have to manage people's custom skins getting broken
Avatar
llvm is adding a type sanitizer
10:45
This patch introduces the LLVM components of a type sanitizer: a sanitizer for type-based aliasing violations. It is based on Hal Finkel's https://reviews.llvm.org/D32198. C/C++ have...
10:45
C/C++ have type-based aliasing rules, and LLVM's optimizer can exploit these given TBAA metadata added by Clang. Roughly, a pointer of given type cannot be used to access an object of a different type (with, of course, certain exceptions). Unfortunately, there's a lot of code in the wild that violates these rules (e.g. for type punning), and such code often must be built with -fno-strict-aliasing. Performance is often sacrificed as a result. Part of the problem is the difficulty of finding TBAA violations. Hopefully, this sanitizer will help.
10:46
i think ddnet does type punning
10:46
which is why we cant do lto iirc
Avatar
ChillerDragon BOT 2024-12-24 10:48
@louis i dont get freezes but my mouse escapes the ddnet window onto the second screen
Avatar
yeah, i think i got that behavior if i connected multiple monitors, but i can re-test it later
10:49
i'm using gnome on fedora with nightly ddnet but i don't think this occured before (the issue with single monitor)
10:49
i wonder if you'd also get the issue using one monitor
Avatar
ChillerDragon BOT 2024-12-24 11:03
i think my issue is impossible with one monitor and fullscreen because then the mouse cant escape anywhere
11:04
it might mess up your aim tho if the mouse can move freely instead of only the max mouse distance radius
11:05
@louis i dont think its a new ddnet bug but a new gnome bug
11:07
is halloween'ipo on this discord? or does someone know how to contact him?
Avatar
yeah, my issue was that the ddnet menu cursor would freeze when the desktop cursor hit the edge of the desktop.
Avatar
Avatar
ChillerDragon
@deen what do you suggest i do here? try to patch ddnet to force refocus? or downgrade gnome?
I sometimes had this issue on macOS, maybe DDNet client should acquire mouse focus when we get the SDL event for window focus
Avatar
Jupstar βœͺ 2024-12-24 12:38
Tbh relative mouse mode is simply a mess. Every backend behaves different on it. I do not understand why the OS itself doesn't simply ungrab the mouse if the window is inactive. Who needs relative mouse mode on an unfocused window realistically
12:38
In fact I once tried to upstream it to sdl: https://github.com/libsdl-org/SDL/pull/4683 But seems they don't care that using relative mouse mode just sucks xD
Avatar
this just recently started happening for my ddnet
Avatar
Jupstar βœͺ 2024-12-24 12:39
yeah probs a gnome issue
12:39
just use kde, all other window managers on linux are simply bad xD
Avatar
gnome better
Avatar
Jupstar βœͺ 2024-12-24 12:40
and wayland also still feels unfinished
12:40
i use it daily now, but always some annoying bugs xD
Avatar
how recent can the gnome issue be though? i can't remember this happening any more than a month ago
Avatar
Avatar
louis
how recent can the gnome issue be though? i can't remember this happening any more than a month ago
Jupstar βœͺ 2024-12-24 12:40
do you use arch?
12:40
btw
Avatar
fedora
Avatar
Jupstar βœͺ 2024-12-24 12:41
and was there some update last month?
12:41
wait do you use steam version or website?
Avatar
steam
Avatar
Jupstar βœͺ 2024-12-24 12:42
ah ok
12:42
yeah tbh i think our steam version for linux is broken rn anyway
Avatar
Jupstar βœͺ 2024-12-24 12:42
After launching the game, about 30 minutes or so, the game lags when moving the mouse. Version: Steam v18.7, Vulkan. Distro: CachyOS.
12:42
this only happens for me on the steam build
12:42
so most likely the shipped sdl is broken
Avatar
GitHub BOT 2024-12-24 12:43
56d912e Add button to open Touch controls wiki page to controls editor - Robyt3 f5bebc6 Merge pull request #9422 from Robyt3/Client-Touch-Controls-Wiki-Link - def-
Avatar
Jupstar βœͺ 2024-12-24 12:43
@louis do you use wayland?
12:43
with gnome
Avatar
Jupstar βœͺ 2024-12-24 12:43
maybe they changed some protocol again lmao
12:43
@louis can u try to see if website verison works
12:43
then we'd at least know if it's sdl related
Avatar
Should I start building my own DDNet?
Avatar
Jupstar βœͺ 2024-12-24 12:44
i dunno
12:44
i mean yes
12:44
program your own ddnet
12:44
i need competition
Avatar
I like the Steam playtime tracking but installing into steamapps/common seems somewhat annoying
Avatar
Jupstar βœͺ 2024-12-24 12:45
i solved the issue by only playing ddnet <30 min
12:45
😏
Avatar
I guess I could just change the launch command
Avatar
Jupstar βœͺ 2024-12-24 12:45
After launching the game, about 30 minutes or so, the game lags when moving the mouse. Version: Steam v18.7, Vulkan. Distro: CachyOS.
12:46
that guy even said a solution
Avatar
I played over 200h in a month because I'm mentally ill
12:46
For like my first two months
Avatar
Jupstar βœͺ 2024-12-24 12:46
the first years of teeworlds are addiction
12:46
we all been through that
Avatar
Avatar
Jupstar βœͺ
@louis can u try to see if website verison works
but im lazy
12:46
ill try
12:48
hmm the website download has whole other issues
12:48
i can only play 1440x960 although i'm on double that with 200% scaling
12:49
can't seem to reproduce the cursor bug though
Avatar
ok apparently sveltekit can bite you in the ass if you don't understand exactly how runes works
15:46
catbite
15:47
spent two hours rewriting most of my pages. a lot of search results are still for sveltekit 4. it's a bit confusing
Avatar
Avatar
GitHub
Click to see attachment πŸ–ΌοΈ
thats why smushed default eyes are good, you always know what emotion it is
Avatar
Avatar
Ryozuki
got my fsf card
fuck fsf lol
Avatar
Avatar
GitHub
Click to see attachment πŸ–ΌοΈ
half the db skins have default eyes if we make one default crying eye we can make a tool that replaces all the default ones
17:03
and if i get bored enough i could help replace the rest
17:08
so: Angry: signs fury angry Squint: zzzz tear mmm Shock: wtf what hey boo Happy: music heartw happy Hurt: sorry ouch oop
17:09
dunno what we can change to a sad face
17:09
or if we were to add more emotes
Avatar
@Jupstar βœͺ Any way I can do CUi::DoButtonLogic with my own mousepos? I added component that uses remapped screen resolution and ui's mousepos is like 1/4's of my component's screen. I don't want to duplicate code for such minor stuff (edited)
17:26
Also what is HotItem and ActiveItem, I couldn't understand purely from usages in code
Avatar
Avatar
Voxel
so: Angry: signs fury angry Squint: zzzz tear mmm Shock: wtf what hey boo Happy: music heartw happy Hurt: sorry ouch oop
I kinda wish I could use the shocked emotes without changing my eyes... Maybe make emotes and eyes separate?
17:48
πŸ’€πŸ˜‘ and πŸ’€πŸ˜± are very different in tone
Avatar
theres a command for that
17:48
/eyeemote i think
Avatar
Ah, I guess I should rtfm
Avatar
Avatar
Ryozuki
got my fsf card
He joined them and shared the software He became free, hackers, he became free
Avatar
smash or pass?
Avatar
Koll Potato 2024-12-24 19:14
smash
19:14
noobs also need a custom menu to join teams
19:15
cus even when u explain them how to do it
19:15
they are not capable of understanding
Avatar
Avatar
Koll Potato
noobs also need a custom menu to join teams
actually goated
brownbear 1
Avatar
Koll Potato 2024-12-24 19:41
omg
19:42
magnificent
Avatar
Avatar
Anime.pdf
actually goated
add mute and ban buttons with in place duration and reason fields
19:58
justatest
Avatar
Koll Potato 2024-12-24 20:03
protocol expers here, what does sequence mean in the vital chunk header?
Avatar
Avatar
Anime.pdf
actually goated
this needs to be merged holy
20:07
man you're making me want to rice up ddnet on my own
kek 1
Avatar
Avatar
Anime.pdf
smash or pass?
smash but the colored icons feel off fsr
Avatar
ChillerDragon BOT 2024-12-24 20:48
oof not being able to scroll while the demo menu is hidden is crazy annoying
Avatar
cyberfighter 2 2024-12-24 20:52
i wish there was a tile like speeders but it sets your speed to a specific amount
20:52
and maybe something to tp you to a direct coord
Avatar
Avatar
Voxel
smash but the colored icons feel off fsr
white looked a little too plain to me, but yeah, im not very good with colors and stuff
Avatar
chillerdragon BOT 2024-12-24 21:01
Every chunk header can contain a vital flag (MSGFLAG_VITAL). Note that one teeworlds packet can contain multiple chunks. If said vital flag is set to true the receiving party has to increment a counter. This counter is called the sequence or acknowledge number. Client and server will send the amount of vital chunks they received as sequence number in the packet header
Replying to @Koll Potato protocol expers here, what does sequence mean in the vital chunk header?
21:02
In the packet header its amount received and in the chunk header its amount sent
Avatar
Koll Potato 2024-12-24 21:12
thank you, i got it working by trial and error, but wasnt sure what i was doing
21:12
pretty much the connection part up to the EnterGame packet is done :P
Avatar
chillerdragon BOT 2024-12-24 21:13
Nice
Avatar
Avatar
Anime.pdf
@Jupstar βœͺ Any way I can do CUi::DoButtonLogic with my own mousepos? I added component that uses remapped screen resolution and ui's mousepos is like 1/4's of my component's screen. I don't want to duplicate code for such minor stuff (edited)
Jupstar βœͺ 2024-12-24 21:34
i honestly dunno, maybe robyte can help. havent touched ddnet ui code in like 2 years
21:35
i mean there is always a way ig xd
Avatar
Avatar
Sans
this needs to be merged holy
F4 I don't want my mouse unlocked while looking at the scoreboard
Avatar
Avatar
Jupstar βœͺ
i mean there is always a way ig xd
i kinda just made implementation myself, referencing emoticon menu, and for some reason sometimes clicks don't count lol, but i didn't debug this yet
Avatar
Avatar
Teero
F4 I don't want my mouse unlocked while looking at the scoreboard
It's pretty inline with other games I play ¯\_(ツ)_/¯
Avatar
Avatar
Teero
F4 I don't want my mouse unlocked while looking at the scoreboard
don't worry, i don't think i will pr this, also it's locking/unlocking with key
Avatar
Ah ok
Avatar
Koll Potato 2024-12-24 21:45
omg the server is working
Avatar
To be fair, it would be nice to have a hotkey to toggle the mouse on tab, that way you don't loose the freedom of looking around with tab open, and if you want those nice and juicy quick actions you can toggle ur mouse, and do whatever
21:45
kinda like in shooter games (cs2, val)
Avatar
Koll Potato 2024-12-24 21:45
oh god thanks heinrich i love u for libtw2
Avatar
Avatar
Anime.pdf
don't worry, i don't think i will pr this, also it's locking/unlocking with key
nooo, pls do, it's too good
Avatar
Avatar
Sans
kinda like in shooter games (cs2, val)
tf2 was insipration xd
Avatar
Avatar
Anime.pdf
@Jupstar βœͺ Any way I can do CUi::DoButtonLogic with my own mousepos? I added component that uses remapped screen resolution and ui's mousepos is like 1/4's of my component's screen. I don't want to duplicate code for such minor stuff (edited)
You can't use most UI functions outside of components that update the UI (menus and editor). I think the first step towards a clean solution would be to also use separate CUi instances for emoticon/spectator/scoreboard and update those like the menus/editor UI.
Avatar
Just having this in a custom client would be sick
Avatar
Avatar
Anime.pdf
Also what is HotItem and ActiveItem, I couldn't understand purely from usages in code
The hot item it the top-most UI element that was hovered in the previous frame. The active item is the UI element that is being activated in the current frame. Only the hot item can become the active item.
Avatar
cyberfighter 2 2024-12-24 21:58
21:58
why it do that
Avatar
Avatar
Robyt3
The hot item it the top-most UI element that was hovered in the previous frame. The active item is the UI element that is being activated in the current frame. Only the hot item can become the active item.
the 'top-most' factor aka z-index is calculated just by render order or I can manually specify what should be on top?
Avatar
Avatar
Anime.pdf
the 'top-most' factor aka z-index is calculated just by render order or I can manually specify what should be on top?
yes, the last UI element being rendered at that position
Avatar
oki, thanks. can't think of usage tbh, but will know it exists (edited)
Avatar
It's for example to handle popup menus where UI elements in the popup are rendered above those in the regular UI
πŸ‘ 1
22:02
Of you only looked at the position then you could activate UI elements below the active popup menu
Avatar
Avatar
cyberfighter 2
Click to see attachment πŸ–ΌοΈ
cyberfighter 2 2024-12-24 22:03
can this be patched or something
22:03
happens when i just go afk
22:03
and do nothing
22:04
monitor was off but idk if it affects anything
Exported 177 message(s)
Timezone: UTC+0