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-05-09 00:00:00Z and 2024-05-10 00:00:00Z
Avatar
I spend more time in the editor lately that in game. And I currently have no mouse. So it might be a bit of a biased uncommon situation. But while spectating I intuitively pressed W, A, S, D to pan my camera which works in the editor but sadly it does not work in game. Imo it would be nice if there was a console command to pan the view in any direction. Similar to set_view but relative instead of absolute. Then users can bind that on any key they want to use for panning the view. Even on...
Avatar
ws-client BOT 2024-05-09 01:28:53Z
<ChillerDragon> there is mingw on ubuntu? o.O
01:29
<ChillerDragon> yo @heinrich5991 can i turn off this spamming message? 2024-05-09 09:27:40 D stun/6: couldn't send stun request i am having a hard time reading my debug prints with scrolling logs
Avatar
it’s just gcc that targets windows lol
01:53
yea mingw is anywhere u need it
Avatar
Nice QoL change, why not

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 to integration test
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://gith...
Avatar
#7902

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 to integration test
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#usi...
Avatar
I noticed that on the current master the goto_tele feature was skipping one tele. https://github.com/ddnet/ddnet/assets/20344300/afface81-7199-4419-be2a-9e80d8ada79b I did not want to debug the code because it looked so complex. So I refactored it and it also fixed the bug. As you can see it now finds one more tele in the same map: https://github.com/ddnet/ddnet/assets/20344300/49dc9ed3-d1f6-43db-a80a-9ca71d86b6b2 Also the performance should be much better. Since now the wor...
Avatar
Check #7669

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 to integration test
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddne...
05:28
anyone know why the rendering bounces with the window resize but only in y direction? xd am i doing smth wrong or is this common place with opengl? (edited)
Avatar
I think that "bounce" looks more of a center alignment for me (wrong call) (edited)
05:33
on second look, the scale is off by 80%~ on the horizontal axis?? (edited)
05:35
does the TextureWidth account for the current size, or the default size of the window?
05:35
Something's fishy beyond line 24
Avatar
i fixed the scale of the characters but thats not what im talking about. there is no center alignment. (edited)
Avatar
that's your window manager's frame?
Avatar
just seems like the wm is painting a black brush behind as it waits on your app to respond
05:42
if you move it slowly does it jiggle
Avatar
it doesn't happen with other applications
Avatar
yours might just be slow
05:47
idk
Avatar
or more likely you're not pumping events frequently enough
Avatar
but that shouldn't make the whole rendering scene move xD
05:47
if i was slow then it would not do anything
05:49
this is my resize callback void framebuffer_size_callback(GLFWwindow *window, int width, int height) { glViewport(0, 0, width, height); glMatrixMode(GL_PROJECTION); glLoadIdentity(); glOrtho(0, width, height, 0, -1, 1); glMatrixMode(GL_MODELVIEW); }
Avatar
morning
Avatar
morning ☕
06:04
idk if i3 is messing with me or why it only affects one axis
Avatar
Avatar
Teero
anyone know why the rendering bounces with the window resize but only in y direction? xd am i doing smth wrong or is this common place with opengl? (edited)
can you do it slower? seems like compositor makes its work
Avatar
Avatar
zhn
can you do it slower? seems like compositor makes its work
when going slower the bounce is lesser too. compositor? Do you mean smth like picom or OpenGL related
Avatar
Avatar
Teero
this is my resize callback void framebuffer_size_callback(GLFWwindow *window, int width, int height) { glViewport(0, 0, width, height); glMatrixMode(GL_PROJECTION); glLoadIdentity(); glOrtho(0, width, height, 0, -1, 1); glMatrixMode(GL_MODELVIEW); }
my dumbass guess would be something to do with drawing leftrightbottomup
06:44
not sure if there is even a possible way to fix it tho. cuz i have no idea if different window compositors behaves differently. i mean it can even be the compositor being the one drawing leftrightbottomup so it could also be possible that it wasn't even something you could fix in application.
06:47
if you are not making Windowkill i think you should just ignore it. yep
Avatar
Avatar
Teero
this is my resize callback void framebuffer_size_callback(GLFWwindow *window, int width, int height) { glViewport(0, 0, width, height); glMatrixMode(GL_PROJECTION); glLoadIdentity(); glOrtho(0, width, height, 0, -1, 1); glMatrixMode(GL_MODELVIEW); }
i mean you could try flipping your framebuffer and see if the problem goes away. and if the window problem goes away, you can figure out how to flip your content so it was the right way up again.
Avatar
I will try ❤️
07:07
i'm no graphic dev so....
07:07
just guessing
Avatar
Avatar
Teero
anyone know why the rendering bounces with the window resize but only in y direction? xd am i doing smth wrong or is this common place with opengl? (edited)
i think this happens because there are old frames still stored in the WM's frame queue and it uses the current window dimensions to rescale it or smth.
07:11
i dunno if u can fix it, do other apps not do it?
Avatar
Avatar
Jupstar ✪
i dunno if u can fix it, do other apps not do it?
none that i know of
Avatar
so ddnet works with opengl?
07:12
without bounces
Avatar
dunno i can't resize it since my cursor is captured xdd
Avatar
f1
Avatar
lol i just found a bug
Avatar
that's no bug, it finally stops rendering that ugly chess field, that's a feature lol
Avatar
my eyes can't tell if ddnet is bouncing since there are so many moving parts xd
Avatar
anyway, ddnet does this:
  • gets resize event
  • halts the backend
  • sets the new viewport via glViewport
  • continues rendering
07:16
i assume ur program is single threaded?
✅ 1
Avatar
opaque resize
Avatar
Avatar
Teero
this is my resize callback void framebuffer_size_callback(GLFWwindow *window, int width, int height) { glViewport(0, 0, width, height); glMatrixMode(GL_PROJECTION); glLoadIdentity(); glOrtho(0, width, height, 0, -1, 1); glMatrixMode(GL_MODELVIEW); }
ohh. since i invert the projection it thinks it resizes correctly but it does not xdd
07:28
nvm that didn't fix it
Avatar
ChillerDragon: easiest way would probably to get an IPv6 address ^^
07:44
how much is "spammed"?
07:45
perhaps you could add a grep -v --line-buffered "stun request" to the command line?
Avatar
.text .file "LLVMDialectModule" .globl main .p2align 4, 0x90 .type main,@function main: subq $24, %rsp movabsq $8031924123371070824, %rax leaq 8(%rsp), %rdi movq %rax, 8(%rsp) movl $560229490, 16(%rsp) movb $0, 20(%rsp) callq puts@PLT xorl %eax, %eax addq $24, %rsp retq .Lfunc_end0: .size main, .Lfunc_end0-main .section ".note.GNU-stack","",@progbits
08:03
epyc hello world assembly
08:03
xd
08:10
4f0d8a5 add set_view_relative - gerdoe-jr c0a6bb9 Merge pull request #8336 from gerdoe-jr/set_view_relative - heinrich5991
Avatar
im developer
Avatar
i am also a developer!
Avatar
give me my developer role
Avatar
thats.. not how it works
Avatar
make pr to ddnet
Avatar
Avatar
meloƞ
thats.. not how it works
im developer 💯
Avatar
hi developer im dad
Avatar
@dev role: Assigned to users with accepted pull requests on our main repository.
Avatar
Avatar
Ryozuki
hi developer im dad
no you're not, thats me.
Avatar
Avatar
Ryozuki
hi developer im dad
hi dad
Avatar
i have some question. im making a 2D pixelart game. Should the text be embedded into the sprites for buttons or should it be dynamically rendered onto them? Should the buttons be extensible and split up into parts so you can scale the axis independently or hardcoded? Is a ui system like ddnet has a good option or are there better ones?
Avatar
Avatar
Ryozuki
Click to see attachment 🖼️
Avatar
Avatar
meloƞ
Click to see attachment 🖼️
are u web-cam model ?
08:15
Avatar
Avatar
Teero
i have some question. im making a 2D pixelart game. Should the text be embedded into the sprites for buttons or should it be dynamically rendered onto them? Should the buttons be extensible and split up into parts so you can scale the axis independently or hardcoded? Is a ui system like ddnet has a good option or are there better ones?
embedded text is useful if the text never really changes
Avatar
Avatar
meloƞ
embedded text is useful if the text never really changes
i kinda don't want to make 25 sprites for 25 buttons tho. does it have any other advantages?
Avatar
Avatar
Teero
i have some question. im making a 2D pixelart game. Should the text be embedded into the sprites for buttons or should it be dynamically rendered onto them? Should the buttons be extensible and split up into parts so you can scale the axis independently or hardcoded? Is a ui system like ddnet has a good option or are there better ones?
better ones please jesus
Avatar
Avatar
Ewan
better ones please jesus
kek
Avatar
use something like 9 slice for buttons
Avatar
ddnet ui pretty good xd
justatest 3
pepe_holy 4
Avatar
it's very generic
08:17
no
Avatar
Avatar
Ewan
use something like 9 slice for buttons
works for any kind of rectangular primitive
Avatar
Avatar
Ewan
use something like 9 slice for buttons
yes that was what i was planning
08:18
aec0dc9 Change type from int to int64_t - BlaiZephyr 60dbd73 Merge pull request #8333 from BlaiZephyr/change-time-timestamp-type - heinrich5991
Avatar
then what q about buttons
Avatar
but for positioning
Avatar
Avatar
GitHub
Click to see attachment 🖼️
dab1
Avatar
probably use a layout system with proper margins and such
Avatar
epyc pr
owo 1
Avatar
the math isn't complicated even for multiple kinds of size policies
Avatar
okay im going with ddnet ui :D other sounds too complicated xd
Avatar
dyingmonkey my honest reaction (edited)
Avatar
please add ddnet jank to ur game
08:20
it's gonna be good xd
Avatar
teero have u ever seen any other ui code
08:20
ever
Avatar
not really lmaoo
Avatar
ddnet ui is
Avatar
so goddamn convoluted
08:21
and it's not really performant
08:21
especially since you have to rebuild and render your entire layout every frame
Avatar
yea thats a shame
Avatar
some kind of dirty/damage/retained mode rendering is needed for a performant game ui
08:21
which isn't rly possilbe with ddnet system
Avatar
chillerdragon when use prebuild binarys so i dont have to remove the cmakecache of each single dep if i wanna play around with generators in Craft >:(
Avatar
why would you want that
08:22
use a competent package manager and then he doesn't need to provide anything
08:22
shared libraries...
08:23
i have 0 sympathy for VS users in 2024
08:23
if u missed the msys2 bus it's probably over
08:23
cavemen
Avatar
i am using ninja tho
08:23
dab
Avatar
congratulations
Avatar
with minGW toolchain
08:24
dab
Avatar
the compiler is the least problematic thing about VS
08:26
no idea how to make ui code properly. ik i don't want to use ddnet code
08:27
ddnet draws on a virtual canvas and then scales to the real resolution right? so everything fits
Avatar
ddnet just transposes coordinates based on the nearest integer scale factor
Avatar
morning
Avatar
good morning
Avatar
Avatar
Teero
no idea how to make ui code properly. ik i don't want to use ddnet code
you most likely want object oriented
08:31
every unique control inherits from a base control which responds to particular events that are propagated by its parents which inherit the same type (edited)
08:31
events like render, mouse, resize, etc
08:33
instead of working with rectangles manually you can have properties for all of your controls which define size, and they can either be placed absolutely or they can be in a layout system which also receives the resize event and decides where to place its children based on their properties
Avatar
Avatar
Ewan
events like render, mouse, resize, etc
and then for custom behavior you reimplement these event handlers
08:35
you don't need very much for a system like this
Avatar
Avatar
Teero
lol i just found a bug
was reported (by me troll) (edited)
09:48
trolling fellow irc members
09:48
does anyone know how to actually stick with assembler?
09:50
some voices told me that i'll be learning 8080 asm (KR580VM80A actually but they should be identical ig), but i can't really find anything as an introduction
Avatar
@heinrich5991 im sorry for ping, but can you review #7820 in your free time?
Avatar
See #7815 and #2255 Checklist Tested the change ingame Provided screenshots if it is a visual change Tested in combination with possibly related configuration options Written a unit test (espe...
Avatar
i create a new map with non-standard-mechanic, it is funny but have one huge problem it is copy dummy. I need somehow turn this off. i think best way it is sv_max_clients_per_ip set 1 i know it is possible to avoid with vpn and other stuff, but it is enough. !image can u plz add this for map setting? like this vars ![image](https://github.com/ddnet/ddnet/assets/39918652/c6d68ca3-3b68-4d02-a664-b79eced...
Avatar
chillerdragon BOT 2024-05-09 10:37:43Z
What are generators? Why do you have to remove the cache? But yea cache in the dependencies sounds like a problem. I wonder if cmake has something like make clean I still think Makefile is better than cmake lol
Replying to @meloƞ chillerdragon when use prebuild binarys so i dont have to remove the cma…
Avatar
what are generators LOL
pepepopcorn 1
10:45
chiller plz stop trolling
10:45
it does have a clean target
Avatar
what are generators - gg
10:57
Avatar
@Learath2 ill make a c api library
13:42
for tablegen
13:42
and then a rust crate using it
13:42
xd
Avatar
chillerdragon BOT 2024-05-09 14:18:37Z
Even patching out the line is easier than just getting an ipv6.
Replying to @heinrich5991 ChillerDragon: easiest way would probably to get an IPv6 address ^^
14:20
It printed like 3 times in a row making me confuse lines in my debug mess every time
Replying to @heinrich5991 how much is "spammed"?
14:21
I look at the local console too. It would be nice if there was a config to turn it off or it would only print once. The master server also does some logging client side. It all seems a bit polluted.
Replying to @heinrich5991 perhaps you could add a `grep -v --line-buffered "stun request"` to the …
Avatar
Avatar
Ryozuki
@Learath2 ill make a c api library
Who is a tablegen?
Avatar
Interesting, so why does it need a C api? Looks more like a standalone tool that one invokes
14:54
its used as a library
14:55
The TableGen front end parses a file, instantiates the declarations, and hands the result off to a domain-specific backend for processing.
14:56
@Learath2 you can make a rust macro backend to make rust files from tablegen
14:57
llvm makes c++ files from tablegen
Avatar
Ah, I see, and why don't you directly wrap the C++ api instead?
Avatar
17f1927 Remove Erenzy's 4 € donation - def-
❓ 4
Avatar
Avatar
Ryozuki
@Learath2 ill make a c api library
do you think u like c now more than you did before you started your job? lol
Avatar
i get the feeling rust-analyzer has some serious memory leaks xD
19:10
why delete @meloƞ
Avatar
i.. didnt?
Avatar
wtf
19:10
i saw the msg then it was gone
Avatar
❓ on what kind of list am i on
19:10
help
Avatar
Avatar
GitHub
Click to see attachment 🖼️
What happened here? Did they refund it? 😄
Avatar
Avatar
Learath2
What happened here? Did they refund it? 😄
He realllllly needed those 4€ back xddd (edited)
Avatar
Sometimes you really do need it
Avatar
I wouldn't be surprised with the state of the turkish economy 😛
Avatar
Some people are just broke
21:20
$4 can be the difference between eating and not eating
Avatar
is there a way to mute whispers right now?
Avatar
cl_showchat 0
Avatar
:D - no i meant specificly only whispers
Avatar
You can mute the person
21:31
another chat filter setting for chiller 😪
Avatar
i thought about it more as an addition the streamer_mode
21:35
teamchat only, disable whispers, etc
✅ 1
21:36
but locked behind streamer_mode, useful for stormax, stepfunn, cendren, rqza, me, and a few others that i cant recall atm
21:37
stepfunn HAS to turn his chat off and peak at it through the damn console because he's constantly getting harassed :D
Avatar
lol fucked up
Avatar
chillerdragon BOT 2024-05-09 22:57:17Z
Thanks good read. I rate this blog 9/10. Finally understood Nagels algorithm.
Exported 208 message(s)